{"id":"138994a1-a92c-4706-b1cd-6433a9acfe9d","entityType":"agent","slug":"clawhub-windy-001-crypto-debug-master","name":"Debug Master","canonicalUrl":"https://www.xpersona.co/agent/clawhub-windy-001-crypto-debug-master","canonicalPath":"/agent/clawhub-windy-001-crypto-debug-master","generatedAt":"2026-10-10T17:34:04.118Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-10T14:06:12.909Z","emptyReason":null},"description":"AI调试大师，集成7步调试法+根因分析+自动化测试+错误模式识别。触发词：'报错'、'出错了'、'debug'、'帮我看看'、'代码有问题'、'程序崩溃'、'修复bug'。相比原版debug-pro，新增AI根因分析、自动测试生成、错误模式库、跨语言调试。 Skill: Debug Master Owner: windy-001-crypto Summary: AI调试大师，集成7步调试法+根因分析+自动化测试+错误模式识别。触发词：'报错'、'出错了'、'debug'、'帮我看看'、'代码有问题'、'程序崩溃'、'修复bug'。相比原版debug-pro，新增AI根因分析、自动测试生成、错误模式库、跨语言调试。 Tags: bug:1.0.0, debug:1.0.0, debugging:1.0.0, error:1.0.0, latest:1.0.0, programming:1.0.0 Version history: v1.0.0 | 2026-03-26T09:31:59.439Z | auto Initial release of debug-master, an enhanced debugging assistant. - Introduces AI根因分析 (A","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.4K downloads reported by the source. Last updated 10/10/2026.","installCommand":"clawhub skill install s1736ky0sjf4n07k892nb8555n83gn8g:debug-master","sourceUrl":"https://clawhub.ai/windy-001-crypto/debug-master","homepage":"https://clawhub.ai/windy-001-crypto/skills/debug-master","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/windy-001-crypto/debug-master","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/windy-001-crypto/skills/debug-master","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":63,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"AI调试大师，集成7步调试法+根因分析+自动化测试+错误模式识别。触发词：'报错'、'出错了'、'debug'、'帮我看看'、'代码有问题'、'程序崩溃'、'修复bug'。相比原版debug-pro，新增AI根因分析、自动测试生成、错误模式库、跨语言调试。 Skill: Debug Master Owner: wind"},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-10T14:06:12.909Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T14:06:12.909Z","emptyReason":null},"stars":null,"forks":null,"downloads":1397,"packageName":null,"latestVersion":"1.0.0","tractionLabel":"1.4K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T14:06:12.909Z","emptyReason":null},"lastUpdatedAt":"2026-10-10T14:06:12.909Z","lastCrawledAt":"2026-10-10T14:06:12.909Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-11T14:06:12.909Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.0","createdAt":"2026-03-26T09:31:59.439Z","changelog":"Initial release of debug-master, an enhanced debugging assistant. - Introduces AI根因分析 (AI root cause analysis) and automatic test case generation. - Expands错误模式库 (error pattern library) for smarter error recognition and solutions. - Supports跨语言调试 (cross-language debugging) for 15+ popular programming languages. - Provides context-aware修复建议 (smart fix suggestions) and代码质量扫描预警 (quality scanning & early warnings). - Offers a comprehensive 7-step debugging methodology with detailed guides and templates.","fileCount":3,"zipByteSize":4609}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s1736ky0sjf4n07k892nb8555n83gn8g:debug-master","setupComplexity":"low","setupSteps":["Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-windy-001-crypto-debug-master/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-windy-001-crypto-debug-master/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-windy-001-crypto-debug-master/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-windy-001-crypto-debug-master/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-windy-001-crypto-debug-master/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-windy-001-crypto-debug-master/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-10T17:34:04.118Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-windy-001-crypto-debug-master/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-windy-001-crypto-debug-master/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-windy-001-crypto-debug-master/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-windy-001-crypto-debug-master/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-10-10T14:06:12.909Z","emptyReason":null},"readme":"Skill: Debug Master\n\nOwner: windy-001-crypto\n\nSummary: AI调试大师，集成7步调试法+根因分析+自动化测试+错误模式识别。触发词：'报错'、'出错了'、'debug'、'帮我看看'、'代码有问题'、'程序崩溃'、'修复bug'。相比原版debug-pro，新增AI根因分析、自动测试生成、错误模式库、跨语言调试。\n\nTags: bug:1.0.0, debug:1.0.0, debugging:1.0.0, error:1.0.0, latest:1.0.0, programming:1.0.0\n\nVersion history:\n\nv1.0.0 | 2026-03-26T09:31:59.439Z | auto\n\nInitial release of debug-master, an enhanced debugging assistant.\n\n- Introduces AI根因分析 (AI root cause analysis) and automatic test case generation.\n- Expands错误模式库 (error pattern library) for smarter error recognition and solutions.\n- Supports跨语言调试 (cross-language debugging) for 15+ popular programming languages.\n- Provides context-aware修复建议 (smart fix suggestions) and代码质量扫描预警 (quality scanning & early warnings).\n- Offers a comprehensive 7-step debugging methodology with detailed guides and templates.\n\nArchive index:\n\nArchive v1.0.0: 3 files, 4609 bytes\n\nFiles: skill-card.md (1911b), SKILL.md (6101b), _meta.json (131b)\n\nFile v1.0.0:SKILL.md\n\n---\nname: \"debug-master\"\nversion: \"1.0.0\"\ndescription: \"AI调试大师，集成7步调试法+根因分析+自动化测试+错误模式识别。触发词：'报错'、'出错了'、'debug'、'帮我看看'、'代码有问题'、'程序崩溃'、'修复bug'。相比原版debug-pro，新增AI根因分析、自动测试生成、错误模式库、跨语言调试。\"\n---\n\n# Debug Master\n\nAI调试大师，让Bug无处遁形。\n\n## 核心升级\n\n| 功能 | 原版 | 增强版 |\n|------|------|--------|\n| 调试方法 | 7步法 | **7步法 + AI根因分析** |\n| 测试生成 | 手动 | **自动生成测试用例** |\n| 错误模式 | 基础 | **智能错误模式库** |\n| 跨语言 | 有限 | **15+主流语言全覆盖** |\n| 修复建议 | 通用 | **上下文感知智能建议** |\n| 预防机制 | 无 | **代码质量扫描预警** |\n\n## 触发词\n\n当用户说以下内容时激活：\n- \"报错\"、\"出错了\"、\"bug\"\n- \"debug\"、\"帮我看看\"\n- \"代码有问题\"、\"程序崩溃\"\n- \"修复bug\"、\"这个错误\"\n- \"为什么不行\"、\"怎么回事\"\n\n## 7步调试法 + AI增强\n\n### Step 1: 复现问题\n\n```\n❌ 不要：直接猜测原因\n✅ 要：精确复现错误\n\n复现命令：\nnode --trace-errors app.js\npython -v debug script.py\n```\n\n### Step 2: 捕获错误信息\n\n```\n错误类型识别：\n├── SyntaxError → 语法错误（最容易修）\n├── TypeError → 类型错误（检查变量类型）\n├── ReferenceError → 引用错误（检查是否定义）\n├── NetworkError → 网络错误（检查API/连接）\n└── RuntimeError → 运行时错误（需要详细分析）\n```\n\n### Step 3: AI根因分析（新增）\n\n```\n分析错误不只是表象，要找根本原因\n\nWhy-Tree 分析法：\nWhy: 报错 \"Cannot read property 'map' of undefined\"\n  → Why: data变量是undefined\n    → Why: API返回数据为空\n      → Why: 接口超时未处理\n        → 根本原因：缺少空值判断和超时处理\n```\n\n### Step 4: 定位代码\n\n```javascript\n// 错误定位技巧\nconst debug = require('debug')('app:*');\n\n// 添加断点日志\nconsole.log('🔍 DEBUG: 变量值', { variable: value });\n\n// 使用source map\nsource-map /path/to/bundle.js.map\n```\n\n### Step 5: 修复方案\n\n```\n修复优先级：\n1. 立即止血（try-catch包裹）\n2. 找到根本原因\n3. 系统性修复（防止复发）\n4. 添加测试用例\n```\n\n### Step 6: 验证修复\n\n```bash\n# 自动测试\nnpm test\n# 集成测试\nnpm run test:integration\n# 端到端测试\nnpm run test:e2e\n```\n\n### Step 7: 预防复发\n\n```\n添加到错误模式库\n记录：错误类型 + 根本原因 + 修复方案 + 预防措施\n```\n\n## 支持语言\n\n| 语言 | 调试命令 | 常见错误 |\n|------|---------|---------|\n| JavaScript | `node --inspect` | TypeError, ReferenceError |\n| TypeScript | `ts-node` | 类型错误 |\n| Python | `pdb` / `ipdb` | IndentationError, ImportError |\n| Java | jdb / IntelliJ | NullPointerException |\n| Go | `delve` | nil pointer, race condition |\n| Rust | `rust-gdb` / `rust-lldb` | borrow checker |\n| C/C++ | gdb / lldb | segmentation fault |\n| Ruby | byebug | NoMethodError |\n| PHP | Xdebug | Fatal Error |\n| SQL | EXPLAIN | 语法错误 |\n\n## 错误模式库\n\n### 模式1: JavaScript类型错误\n\n```\n症状: \"Cannot read property 'x' of undefined\"\n原因: 访问undefined/null的属性\n修复:\n  // ❌ 错误\n  data.items.map(x => x.name)\n\n  // ✅ 正确\n  data?.items?.map(x => x.name) || []\n```\n\n### 模式2: Python导入错误\n\n```\n症状: \"ModuleNotFoundError: No module named 'xxx'\"\n原因: 模块未安装或路径错误\n修复:\n  pip install xxx\n  # 或检查 PYTHONPATH\n```\n\n### 模式3: 异步错误\n\n```\n症状: \"UnhandledPromiseRejection\"\n原因: Promise错误未被捕获\n修复:\n  // 添加错误处理\n  promise.catch(err => console.error(err))\n  // 或使用 try-await\n  try { await asyncFn() } catch (err) {}\n```\n\n### 模式4: 并发竞争\n\n```\n症状: 数据不一致 / 状态错乱\n原因: 多线程同时修改同一数据\n修复:\n  // 使用锁或原子操作\n  // Go: sync.Mutex\n  // Python: threading.Lock\n  // JS: async-await + 状态管理\n```\n\n## 自动测试生成\n\n### 根据错误生成测试用例\n\n```\n当修复一个bug时，自动生成防止复发的测试：\n\n原始错误：\nTypeError: Cannot read property 'name' of undefined\n\n自动生成测试：\ntest('should handle undefined user gracefully', () => {\n  const result = getUserName(undefined);\n  expect(result).toBe('Guest');\n});\n```\n\n## 调试工具箱\n\n```javascript\n// 通用调试工具\nconst debug = {\n  log: (...args) => console.log('[DEBUG]', ...args),\n  error: (...args) => console.error('[ERROR]', ...args),\n  warn: (...args) => console.warn('[WARN]', ...args),\n};\n\n// 检查变量\nconst inspect = (obj) => JSON.stringify(obj, null, 2);\n\n// 性能分析\nconsole.time('operation');\n// ... operation ...\nconsole.timeEnd('operation');\n```\n\n## 常见场景解决方案\n\n### 场景1: API调用失败\n\n```\n排查步骤：\n1. 检查网络请求（F12 Network）\n2. 查看请求头/参数\n3. 检查CORS配置\n4. 验证API Key/Token\n5. 测试API直接访问\n\n常见修复：\n- 添加超时处理\n- 添加重试逻辑\n- 添加错误边界\n```\n\n### 场景2: 内存泄漏\n\n```\n排查工具：\n- Chrome DevTools Memory\n- Node: node --inspect\n\n特征：\n- 内存持续增长\n- 页面越来越卡\n- 定时任务越来越慢\n\n常见原因：\n- 事件监听未移除\n- 全局变量累积\n- 闭包引用未释放\n```\n\n### 场景3: 性能问题\n\n```\n排查工具：\n- Chrome DevTools Performance\n- Lighthouse\n- Web Vitals\n\n优化方向：\n- 减少重排重绘\n- 代码分割懒加载\n- 优化数据库查询\n- 使用缓存\n```\n\n## 调试报告模板\n\n```markdown\n# Bug调试报告\n\n## 问题描述\n[简短描述]\n\n## 错误信息\n```\n[粘贴错误日志]\n```\n\n## 复现步骤\n1. [步骤1]\n2. [步骤2]\n\n## 根因分析\n**直接原因**: [表象]\n**根本原因**: [深层原因]\n\n## 修复方案\n```[代码]\n[修复代码]\n```\n\n## 预防措施\n- [ ] 添加测试用例\n- [ ] 增加空值判断\n- [ ] 添加日志监控\n\n## 验证结果\n[测试通过截图/日志]\n```\n\nFile v1.0.0:_meta.json\n\n{\n  \"ownerId\": \"kn76zj982hmr7e9qq0q3frc0q5825s3q\",\n  \"slug\": \"debug-master\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1774517519439\n}\n\nFile v1.0.0:skill-card.md\n\n## Description:\n\nDebug Master provides Chinese-language debugging guidance using a seven-step method, root-cause analysis, automated test-case suggestions, error-pattern recognition, and cross-language troubleshooting.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[windy-001-crypto](https://clawhub.ai/user/windy-001-crypto)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nDevelopers and engineers use this skill to diagnose programming errors, analyze root causes, generate regression test ideas, and structure debugging reports across common programming languages.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill may activate on broad debugging phrases and produce fixes or tests that have not been validated against the user's codebase.\n\nMitigation: Review generated tests and fixes before applying them, and run the project's normal test suite after changes.\n\nRisk: Debugging logs can contain secrets such as API keys or tokens.\n\nMitigation: Redact credentials and other sensitive values before sharing logs with the agent.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/windy-001-crypto/skills/debug-master)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, Code, Shell commands, Guidance]\n\n**Output Format:** [Markdown with code blocks, shell command examples, debugging reports, fix suggestions, and test-case examples]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Outputs should be reviewed before applying fixes or tests to a codebase.]\n\n## Skill Version(s):\n\n1.0.0 (source: frontmatter and server release evidence)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.","readmeExcerpt":"Skill: Debug Master Owner: windy-001-crypto Summary: AI调试大师，集成7步调试法+根因分析+自动化测试+错误模式识别。触发词：'报错'、'出错了'、'debug'、'帮我看看'、'代码有问题'、'程序崩溃'、'修复bug'。相比原版debug-pro，新增AI根因分析、自动测试生成、错误模式库、跨语言调试。 Tags: bug:1.0.0, debug:1.0.0, debugging:1.0.0, error:1.0.0, latest:1.0.0, programming:1.0.0 Version history: v1.0.0 | 2026-03-26T09:31:59.439Z | auto Initial release of debug-master, an enhanced debugging assistant. - Introduces AI根因分析 (A","codeSnippets":[],"executableExamples":[{"language":"text","snippet":"❌ 不要：直接猜测原因\n✅ 要：精确复现错误\n\n复现命令：\nnode --trace-errors app.js\npython -v debug script.py"},{"language":"text","snippet":"错误类型识别：\n├── SyntaxError → 语法错误（最容易修）\n├── TypeError → 类型错误（检查变量类型）\n├── ReferenceError → 引用错误（检查是否定义）\n├── NetworkError → 网络错误（检查API/连接）\n└── RuntimeError → 运行时错误（需要详细分析）"},{"language":"text","snippet":"分析错误不只是表象，要找根本原因\n\nWhy-Tree 分析法：\nWhy: 报错 \"Cannot read property 'map' of undefined\"\n  → Why: data变量是undefined\n    → Why: API返回数据为空\n      → Why: 接口超时未处理\n        → 根本原因：缺少空值判断和超时处理"},{"language":"javascript","snippet":"// 错误定位技巧\nconst debug = require('debug')('app:*');\n\n// 添加断点日志\nconsole.log('🔍 DEBUG: 变量值', { variable: value });\n\n// 使用source map\nsource-map /path/to/bundle.js.map"},{"language":"text","snippet":"修复优先级：\n1. 立即止血（try-catch包裹）\n2. 找到根本原因\n3. 系统性修复（防止复发）\n4. 添加测试用例"},{"language":"bash","snippet":"# 自动测试\nnpm test\n# 集成测试\nnpm run test:integration\n# 端到端测试\nnpm run test:e2e"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"debug-master\"\nversion: \"1.0.0\"\ndescription: \"AI调试大师，集成7步调试法+根因分析+自动化测试+错误模式识别。触发词：'报错'、'出错了'、'debug'、'帮我看看'、'代码有问题'、'程序崩溃'、'修复bug'。相比原版debug-pro，新增AI根因分析、自动测试生成、错误模式库、跨语言调试。\"\n---\n\n# Debug Master\n\nAI调试大师，让Bug无处遁形。\n\n## 核心升级\n\n| 功能 | 原版 | 增强版 |\n|------|------|--------|\n| 调试方法 | 7步法 | **7步法 + AI根因分析** |\n| 测试生成 | 手动 | **自动生成测试用例** |\n| 错误模式 | 基础 | **智能错误模式库** |\n| 跨语言 | 有限 | **15+主流语言全覆盖** |\n| 修复建议 | 通用 | **上下文感知智能建议** |\n| 预防机制 | 无 | **代码质量扫描预警** |\n\n## 触发词\n\n当用户说以下内容时激活：\n- \"报错\"、\"出错了\"、\"bug\"\n- \"debug\"、\"帮我看看\"\n- \"代码有问题\"、\"程序崩溃\"\n- \"修复bug\"、\"这个错误\"\n- \"为什么不行\"、\"怎么回事\"\n\n## 7步调试法 + AI增强\n\n### Step 1: 复现问题\n\n```\n❌ 不要：直接猜测原因\n✅ 要：精确复现错误\n\n复现命令：\nnode --trace-errors app.js\npython -v debug script.py\n```\n\n### Step 2: 捕获错误信息\n\n```\n错误类型识别：\n├── SyntaxError → 语法错误（最容易修）\n├── TypeError → 类型错误（检查变量类型）\n├── ReferenceError → 引用错误（检查是否定义）\n├── NetworkError → 网络错误（检查API/连接）\n└── RuntimeError → 运行时错误（需要详细分析）\n```\n\n### Step 3: AI根因分析（新增）\n\n```\n分析错误不只是表象，要找根本原因\n\nWhy-Tree 分析法：\nWhy: 报错 \"Cannot read property 'map' of undefined\"\n  → Why: data变量是undefined\n    → Why: API返回数据为空\n      → Why: 接口超时未处理\n        → 根本原因：缺少空值判断和超时处理\n```\n\n### Step 4: 定位代码\n\n```javascript\n// 错误定位技巧\nconst debug = require('debug')('app:*');\n\n// 添加断点日志\nconsole.log('🔍 DEBUG: 变量值', { variable: value });\n\n// 使用source map\nsource-map /path/to/bundle.js.map\n```\n\n### Step 5: 修复方案\n\n```\n修复优先级：\n1. 立即止血（try-catch包裹）\n2. 找到根本原因\n3. 系统性修复（防止复发）\n4. 添加测试用例\n```\n\n### Step 6: 验证修复\n\n```bash\n# 自动测试\nnpm test\n# 集成测试\nnpm run test:integration\n# 端到端测试\nnpm run test:e2e\n```\n\n### Step 7: 预防复发\n\n```\n添加到错误模式库\n记录：错误类型 + 根本原因 + 修复方案 + 预防措施\n```\n\n## 支持语言\n\n| 语言 | 调试命令 | 常见错误 |\n|------|---------|---------|\n| JavaScript | `node --inspect` | TypeError, ReferenceError |\n| TypeScript | `ts-node` | 类型错误 |\n| Python | `pdb` / `ipdb` | IndentationError, ImportError |\n| Java | jdb / IntelliJ | NullPointerException |\n| Go | `delve` | nil pointer, race condition |\n| Rust | `rust-gdb` / `rust-lldb` | borrow checker |\n| C/C++ | gdb / lldb | segmentation fault |\n| Ruby | byebug | NoMethodError |\n| PHP | Xdebug | Fatal Error |\n| SQL | EXPLAIN | 语法错误 |\n\n## 错误模式库\n\n### 模式1: JavaScript类型错误\n\n```\n症状: \"Cannot read property 'x' of undefined\"\n原因: 访问undefined/null的属性\n修复:\n  // ❌ 错误\n  data.items.map(x => x.name)\n\n  // ✅ 正确\n  data?.items?.map(x => x.name) || []\n```\n\n### 模式2: Python导入错误\n\n```\n症状: \"ModuleNotFoundError: No module named 'xxx'\"\n原因: 模块未安装或路径错误\n修复:\n  pip install xxx\n  # 或检查 PYTHONPATH\n```\n\n### 模式3: 异步错误\n\n```\n症状: \"UnhandledPromiseRejection\"\n原因: Promise错误未被捕获\n修复:\n  // 添加错误处理\n  promise.catch(err => console.error(err))\n  // 或使用 try-await\n  try { await asyncFn() } catch (err) {}\n```\n\n### 模式4: 并发竞争\n\n```\n症状: 数据不一致 / 状态错乱\n原因: 多线程同时修改同一数据\n修复:\n  // 使用锁或原子操作\n  // Go: sync.Mutex\n  // Python: threading.Lock\n  // JS: async-await + 状态管理\n```\n\n## 自动测试生成\n\n### 根据错误生成测试用例\n\n```\n当修复一个bug时，自动生成防止复发的测试：\n\n原始错误：\nTypeError: Cannot read property 'name' of undefined\n\n自动生成测试：\ntest('should handle undefined user gracefully', () => {\n  const result = getUserName(undefined);\n  expect(result).toBe('Guest');\n});\n```"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn76zj982hmr7e9qq0q3frc0q5825s3q\",\n  \"slug\": \"debug-master\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1774517519439\n}"},{"path":"skill-card.md","content":"## Description:\n\nDebug Master provides Chinese-language debugging guidance using a seven-step method, root-cause analysis, automated test-case suggestions, error-pattern recognition, and cross-language troubleshooting.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[windy-001-crypto](https://clawhub.ai/user/windy-001-crypto)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nDevelopers and engineers use this skill to diagnose programming errors, analyze root causes, generate regression test ideas, and structure debugging reports across common programming languages.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill may activate on broad debugging phrases and produce fixes or tests that have not been validated against the user's codebase.\n\nMitigation: Review generated tests and fixes before applying them, and run the project's normal test suite after changes.\n\nRisk: Debugging logs can contain secrets such as API keys or tokens.\n\nMitigation: Redact credentials and other sensitive values before sharing logs with the agent.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/windy-001-crypto/skills/debug-master)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, Code, Shell commands, Guidance]\n\n**Output Format:** [Markdown with code blocks, shell command examples, debugging reports, fix suggestions, and test-case examples]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Outputs should be reviewed before applying fixes or tests to a codebase.]\n\n## Skill Version(s):\n\n1.0.0 (source: frontmatter and server release evidence)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment."}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":"AI调试大师，集成7步调试法+根因分析+自动化测试+错误模式识别。触发词：'报错'、'出错了'、'debug'、'帮我看看'、'代码有问题'、'程序崩溃'、'修复bug'。相比原版debug-pro，新增AI根因分析、自动测试生成、错误模式库、跨语言调试。 Skill: Debug Master Owner: windy-001-crypto Summary: AI调试大师，集成7步调试法+根因分析+自动化测试+错误模式识别。触发词：'报错'、'出错了'、'debug'、'帮我看看'、'代码有问题'、'程序崩溃'、'修复bug'。相比原版debug-pro，新增AI根因分析、自动测试生成、错误模式库、跨语言调试。 Tags: bug:1.0.0, debug:1.0.0, debugging:1.0.0, error:1.0.0, latest:1.0.0, programming:1.0.0 Version history: v1.0.0 | 2026-03-26T09:31:59.439Z | auto Initial release of debug-master, an enhanced debugging assistant. - Introduces AI根因分析 (A","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":732,"uniquenessScore":63,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-10T14:06:12.909Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-10T14:06:12.909Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-10T17:34:04.118Z","emptyReason":null},"items":[{"id":"8ebccd8e-3863-4187-8355-c3f14e1f9edf","entityType":"agent","canonicalPath":"/agent/iofficeai-aionui","slug":"iofficeai-aionui","name":"AionUi","description":"Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!","url":"https://github.com/iOfficeAI/AionUi","homepage":"https://www.aionui.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-10-09T19:11:12.944Z","createdAt":"2026-02-25T03:38:16.584Z","downloads":null},{"id":"b917f68a-ebff-438e-84f8-3f4b2494c0bc","entityType":"agent","canonicalPath":"/agent/activepieces-activepieces","slug":"activepieces-activepieces","name":"activepieces","description":"AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents","url":"https://github.com/activepieces/activepieces","homepage":"https://www.activepieces.com","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-15T02:22:12.426Z","createdAt":"2026-02-25T03:38:12.412Z","downloads":null},{"id":"5cb26759-3a39-483f-94cf-276a98c13bb8","entityType":"agent","canonicalPath":"/agent/cherryhq-cherry-studio","slug":"cherryhq-cherry-studio","name":"cherry-studio","description":"AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs","url":"https://github.com/CherryHQ/cherry-studio","homepage":"https://cherry-ai.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-11T14:38:40.986Z","createdAt":"2026-02-25T03:38:19.379Z","downloads":null},{"id":"6f6582d0-5d76-4f0f-b81d-86520247950b","entityType":"agent","canonicalPath":"/agent/copilotkit-copilotkit","slug":"copilotkit-copilotkit","name":"CopilotKit","description":"The Frontend for Agents & Generative UI. React + Angular","url":"https://github.com/CopilotKit/CopilotKit","homepage":"https://docs.copilotkit.ai","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-03-25T09:50:57.846Z","createdAt":"2026-02-25T03:39:14.617Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/clawhub","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}