[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A60VN30WF29DYAVBTQ8NPE":3,"skill-same:01M7A60VN30WF29DYAVBTQ8NPE":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7A60VN30WF29DYAVBTQ8NPE","debug-helper",null,"Help debug code by analyzing error messages, identifying root causes, and providing fix suggestions.","siuserxiaowei\u002Fxiaowei-ai-tools","siuserxiaowei","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F226641659?v=4","01M7A3SYZKS0MVRZZJQC10XSYM","siuser小伟","01M7A3SZ0735VJJQ0479SNF44J",1,"CC0-1.0","https:\u002F\u002Fgithub.com\u002Fsiuserxiaowei\u002Fxiaowei-ai-tools\u002Fblob\u002Fmain\u002Fprojects\u002F技能集合与工具目录\u002Fjacky-awesome-agent-skills\u002Fexamples\u002Fdebug-helper\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: debug-helper\ndescription: Help debug code by analyzing error messages, identifying root causes, and providing fix suggestions.\nlicense: CC0-1.0\n---\n\n# Debug Helper\n\n> 帮助调试代码，分析错误信息，定位问题根源，提供修复建议。\n>\n> Help debug code by analyzing error messages, identifying root causes, and providing fix suggestions.\n\n## When to Use\n\n当用户请求以下操作时使用此 skill：\n- 调试代码 \u002F Debug code\n- 分析错误信息 \u002F Analyze error messages\n- 修复 bug \u002F Fix bugs\n- 理解异常原因 \u002F Understand exception causes\n- 排查问题 \u002F Troubleshoot issues\n\n## Instructions\n\n### 调试步骤 \u002F Debugging Steps\n\n1. **收集信息** - 获取错误信息、堆栈跟踪、相关代码\n2. **分析错误** - 理解错误类型和消息含义\n3. **定位根源** - 找到导致问题的代码位置\n4. **提供解决方案** - 给出具体的修复建议\n5. **预防建议** - 提供避免类似问题的建议\n\n### 常见错误类型 \u002F Common Error Types\n\n| 错误类型 | 可能原因 |\n|----------|----------|\n| TypeError | 类型不匹配、空值操作 |\n| ReferenceError | 未定义变量、作用域问题 |\n| SyntaxError | 语法错误、缺少括号\u002F引号 |\n| RuntimeError | 运行时逻辑错误 |\n| NetworkError | 网络请求失败、超时 |\n\n### 分析框架 \u002F Analysis Framework\n\n对于每个错误，需要分析：\n- **What**: 发生了什么错误\n- **Where**: 错误发生在哪里\n- **Why**: 为什么会发生\n- **How**: 如何修复\n\n### 输出格式 \u002F Output Format\n\n使用 `templates\u002Fdebug-report.md` 模板格式化输出。\n\nUse the `templates\u002Fdebug-report.md` template to format output.\n\n```markdown\n## 调试分析报告 \u002F Debug Analysis Report\n\n### 错误概述 \u002F Error Summary\n[错误类型和简要描述]\n\n### 根本原因 \u002F Root Cause\n[详细分析]\n\n### 修复方案 \u002F Fix\n[具体代码修改]\n\n### 预防建议 \u002F Prevention\n[如何避免类似问题]\n```\n\n## Examples\n\n### 输入 \u002F Input\n\n错误信息：\n```\nTypeError: Cannot read properties of undefined (reading 'map')\n    at UserList (UserList.jsx:15:23)\n    at renderWithHooks (react-dom.development.js:14985:18)\n```\n\n相关代码：\n```jsx\nfunction UserList({ users }) {\n  return (\n    \u003Cul>\n      {users.map(user => (\n        \u003Cli key={user.id}>{user.name}\u003C\u002Fli>\n      ))}\n    \u003C\u002Ful>\n  );\n}\n```\n\n### 输出 \u002F Output\n\n## 调试分析报告\n\n### 错误概述\n`TypeError: Cannot read properties of undefined (reading 'map')`\n\n在 `UserList` 组件第 15 行调用 `.map()` 时，`users` 变量为 `undefined`。\n\n### 根本原因\n\n1. **直接原因**: 尝试在 `undefined` 上调用 `.map()` 方法\n2. **深层原因**:\n   - 父组件可能没有传递 `users` prop\n   - 数据获取尚未完成时组件已渲染\n   - API 返回格式与预期不符\n\n### 修复方案\n\n**方案 1: 添加默认值（推荐）**\n```jsx\nfunction UserList({ users = [] }) {\n  return (\n    \u003Cul>\n      {users.map(user => (\n        \u003Cli key={user.id}>{user.name}\u003C\u002Fli>\n      ))}\n    \u003C\u002Ful>\n  );\n}\n```\n\n**方案 2: 条件渲染**\n```jsx\nfunction UserList({ users }) {\n  if (!users || users.length === 0) {\n    return \u003Cp>No users found\u003C\u002Fp>;\n  }\n\n  return (\n    \u003Cul>\n      {users.map(user => (\n        \u003Cli key={user.id}>{user.name}\u003C\u002Fli>\n      ))}\n    \u003C\u002Ful>\n  );\n}\n```\n\n**方案 3: 可选链操作符**\n```jsx\nfunction UserList({ users }) {\n  return (\n    \u003Cul>\n      {users?.map(user => (\n        \u003Cli key={user.id}>{user.name}\u003C\u002Fli>\n      ))}\n    \u003C\u002Ful>\n  );\n}\n```\n\n### 预防建议\n\n1. **使用 TypeScript** - 添加类型检查\n   ```typescript\n   interface Props {\n     users: User[];\n   }\n   ```\n\n2. **添加 PropTypes** - 运行时类型检查\n   ```jsx\n   UserList.propTypes = {\n     users: PropTypes.array.isRequired\n   };\n   ```\n\n3. **检查数据源** - 确保父组件正确传递数据\n4. **处理加载状态** - 在数据获取期间显示加载指示器\n","# Debug Helper\n\n> 帮助调试代码，分析错误信息，定位问题根源，提供修复建议。\n>\n> Help debug code by analyzing error messages, identifying root causes, and providing fix suggestions.\n\n## When to Use\n\n当用户请求以下操作时使用此 skill：\n- 调试代码 \u002F Debug code\n- 分析错误信息 \u002F Analyze error messages\n- 修复 bug \u002F Fix bugs\n- 理解异常原因 \u002F Understand exception causes\n- 排查问题 \u002F Troubleshoot issues\n\n## Instructions\n\n### 调试步骤 \u002F Debugging Steps\n\n1. **收集信息** - 获取错误信息、堆栈跟踪、相关代码\n2. **分析错误** - 理解错误类型和消息含义\n3. **定位根源** - 找到导致问题的代码位置\n4. **提供解决方案** - 给出具体的修复建议\n5. **预防建议** - 提供避免类似问题的建议\n\n### 常见错误类型 \u002F Common Error Types\n\n| 错误类型 | 可能原因 |\n|----------|----------|\n| TypeError | 类型不匹配、空值操作 |\n| ReferenceError | 未定义变量、作用域问题 |\n| SyntaxError | 语法错误、缺少括号\u002F引号 |\n| RuntimeError | 运行时逻辑错误 |\n| NetworkError | 网络请求失败、超时 |\n\n### 分析框架 \u002F Analysis Framework\n\n对于每个错误，需要分析：\n- **What**: 发生了什么错误\n- **Where**: 错误发生在哪里\n- **Why**: 为什么会发生\n- **How**: 如何修复\n\n### 输出格式 \u002F Output Format\n\n使用 `templates\u002Fdebug-report.md` 模板格式化输出。\n\nUse the `templates\u002Fdebug-report.md` template to format output.\n\n```markdown\n## 调试分析报告 \u002F Debug Analysis Report\n\n### 错误概述 \u002F Error Summary\n[错误类型和简要描述]\n\n### 根本原因 \u002F Root Cause\n[详细分析]\n\n### 修复方案 \u002F Fix\n[具体代码修改]\n\n### 预防建议 \u002F Prevention\n[如何避免类似问题]\n```\n\n## Examples\n\n### 输入 \u002F Input\n\n错误信息：\n```\nTypeError: Cannot read properties of undefined (reading 'map')\n    at UserList (UserList.jsx:15:23)\n    at renderWithHooks (react-dom.development.js:14985:18)\n```\n\n相关代码：\n```jsx\nfunction UserList({ users }) {\n  return (\n    \u003Cul>\n      {users.map(user => (\n        \u003Cli key={user.id}>{user.name}\u003C\u002Fli>\n      ))}\n    \u003C\u002Ful>\n  );\n}\n```\n\n### 输出 \u002F Output\n\n## 调试分析报告\n\n### 错误概述\n`TypeError: Cannot read properties of undefined (reading 'map')`\n\n在 `UserList` 组件第 15 行调用 `.map()` 时，`users` 变量为 `undefined`。\n\n### 根本原因\n\n1. **直接原因**: 尝试在 `undefined` 上调用 `.map()` 方法\n2. **深层原因**:\n   - 父组件可能没有传递 `users` prop\n   - 数据获取尚未完成时组件已渲染\n   - API 返回格式与预期不符\n\n### 修复方案\n\n**方案 1: 添加默认值（推荐）**\n```jsx\nfunction UserList({ users = [] }) {\n  return (\n    \u003Cul>\n      {users.map(user => (\n        \u003Cli key={user.id}>{user.name}\u003C\u002Fli>\n      ))}\n    \u003C\u002Ful>\n  );\n}\n```\n\n**方案 2: 条件渲染**\n```jsx\nfunction UserList({ users }) {\n  if (!users || users.length === 0) {\n    return \u003Cp>No users found\u003C\u002Fp>;\n  }\n\n  return (\n    \u003Cul>\n      {users.map(user => (\n        \u003Cli key={user.id}>{user.name}\u003C\u002Fli>\n      ))}\n    \u003C\u002Ful>\n  );\n}\n```\n\n**方案 3: 可选链操作符**\n```jsx\nfunction UserList({ users }) {\n  return (\n    \u003Cul>\n      {users?.map(user => (\n        \u003Cli key={user.id}>{user.name}\u003C\u002Fli>\n      ))}\n    \u003C\u002Ful>\n  );\n}\n```\n\n### 预防建议\n\n1. **使用 TypeScript** - 添加类型检查\n   ```typescript\n   interface Props {\n     users: User[];\n   }\n   ```\n\n2. **添加 PropTypes** - 运行时类型检查\n   ```jsx\n   UserList.propTypes = {\n     users: PropTypes.array.isRequired\n   };\n   ```\n\n3. **检查数据源** - 确保父组件正确传递数据\n4. **处理加载状态** - 在数据获取期间显示加载指示器\n",{"name":5,"license":15,"description":7},"main","ebb257363024c428d3c797cb705194b35d00cb0f","projects\u002F技能集合与工具目录\u002Fjacky-awesome-agent-skills\u002Fexamples\u002Fdebug-helper",0,"https:\u002F\u002Fgithub.com\u002Fsiuserxiaowei\u002Fxiaowei-ai-tools","https:\u002F\u002Fgithub.com\u002Fsiuserxiaowei","2026-11-03 21:39:44",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add siuserxiaowei\u002Fxiaowei-ai-tools --skill debug-helper",{"tool":37,"command":38},"bunx","bunx skills add siuserxiaowei\u002Fxiaowei-ai-tools --skill debug-helper",{"tool":40,"command":41},"pnpm","pnpm dlx skills add siuserxiaowei\u002Fxiaowei-ai-tools --skill debug-helper","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsiuserxiaowei\u002Fxiaowei-ai-tools\u002Fblob\u002Fmain\u002Fprojects\u002F技能集合与工具目录\u002Fjacky-awesome-agent-skills\u002Fexamples\u002Fdebug-helper\u002FSKILL.md",true,[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"templates\u002Fdebug-report.md","REFERENCE","参考文档",1050,"https:\u002F\u002Fgithub.com\u002Fsiuserxiaowei\u002Fxiaowei-ai-tools\u002Fblob\u002Fmain\u002Fprojects\u002F技能集合与工具目录\u002Fjacky-awesome-agent-skills\u002Fexamples\u002Fdebug-helper\u002Ftemplates\u002Fdebug-report.md",[52,60,67,74,81,88],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":56,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7A66TQCYTAPVGB01H6593P0","x-article-draft-uploader","把本地 Markdown 转为经核验的 X Articles 新草稿。适用于需要保留首图封面、正文图片相对位置，并在独立 Playwright 会话中复用用户已授权 Chrome 登录态的任务；不负责公开发布。","MIT","https:\u002F\u002Fgithub.com\u002Fsiuserxiaowei\u002Fxiaowei-ai-tools\u002Fblob\u002Fmain\u002Fskills\u002Fx-article-draft-uploader\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":56,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7A66R643K97EQHY5AFBBVQ6","wecom-operations","通过用户已配置的官方 wecom-cli 管理企业微信文档、智能文档、待办、会议和日程。适合创建或查询这些云端对象、把本地 Markdown 转为智能文档，以及在明确确认后更新或取消对象；不发送消息、不控制桌面客户端。","https:\u002F\u002Fgithub.com\u002Fsiuserxiaowei\u002Fxiaowei-ai-tools\u002Fblob\u002Fmain\u002Fskills\u002Fwecom-operations\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":56,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7A66M3AXR54FQB7B4TX5VN9","wecom-local-vault","Inspect authorized local WeCom databases on macOS, create private plaintext snapshots, and query or export contacts, conversations, and messages without modifying the source account store. Use when the user asks to parse 企业微信\u002FWeCom local data, recover a private database snapshot, inspect local contacts or sessions, search chat history, or export a bounded conversation.","https:\u002F\u002Fgithub.com\u002Fsiuserxiaowei\u002Fxiaowei-ai-tools\u002Fblob\u002Fmain\u002Fskills\u002Fwecom-local-vault\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":56,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7A6649YFS2SQ8SKFSTBRN2Z","wechat-reading","Read and analyze WeRead\u002F微信读书 search results, book metadata, bookshelf entries, progress, notes, highlights, public reviews, recommendations, and reading statistics through the official read-only Agent Gateway. Use for WeRead account questions or exports; do not imply that the current Gateway can add, remove, upload, rate, like, or edit content.","https:\u002F\u002Fgithub.com\u002Fsiuserxiaowei\u002Fxiaowei-ai-tools\u002Fblob\u002Fmain\u002Fskills\u002Fwechat-reading\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":56,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7A65QZNA4FBYV32WH9S97QG","wechat-mp-batch-exporter","Build a bounded, private archive from known WeChat Official Account article URLs or an owner-authorized account-history export, with explicit reconciliation of article, publish-group, and platform-marked-original counts. Use for batch body capture, history normalization, or enhanced metrics\u002Fcomments workflows. Do not use for a one-page summary or to automate the WeChat client.","https:\u002F\u002Fgithub.com\u002Fsiuserxiaowei\u002Fxiaowei-ai-tools\u002Fblob\u002Fmain\u002Fskills\u002Fwechat-mp-batch-exporter\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":56,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7A65NP84R1JFFZEPVZT065P","wechat-local-vault","在 macOS 本机建立并查询私有微信数据快照。适用于盘点数据库、离线校验已有密钥候选、创建全量或增量明文快照、查会话与联系人、按时间检索消息、导出指定聊天、查看朋友圈或收藏，以及准备群聊摘要素材。所有查询只读，默认隐藏内部账号标识，不操控微信界面，也不发送任何内容。","https:\u002F\u002Fgithub.com\u002Fsiuserxiaowei\u002Fxiaowei-ai-tools\u002Fblob\u002Fmain\u002Fskills\u002Fwechat-local-vault\u002FSKILL.md",[],[]]