Debug Master
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
Rank
62
Safety
84
Downloads
1.4k
Updated
Oct 10, 2026
Version
1.0.0
Source
CLAWHUB
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1.4K downloads reported by the source. Last updated 10/10/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · observed Oct 10, 2026
- Protocol compatibility
- OpenClawcompatibility · observed Oct 10, 2026
- Adoption signal
- 1.4K downloadsadoption · observed Oct 10, 2026
- Latest release
- 1.0.0release · observed Mar 26, 2026
- Handshake status
- UNKNOWNsecurity
Install and run
Setup complexity: low.
clawhub skill install s1736ky0sjf4n07k892nb8555n83gn8g:debug-master- 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: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-windy-001-crypto-debug-master/snapshot"
Documentation
CLAWHUB
7,137 characters of source documentation, loaded on request.
Extracted files
3 files captured from the source.
SKILL.md
---
name: "debug-master"
version: "1.0.0"
description: "AI调试大师,集成7步调试法+根因分析+自动化测试+错误模式识别。触发词:'报错'、'出错了'、'debug'、'帮我看看'、'代码有问题'、'程序崩溃'、'修复bug'。相比原版debug-pro,新增AI根因分析、自动测试生成、错误模式库、跨语言调试。"
---
# Debug Master
AI调试大师,让Bug无处遁形。
## 核心升级
| 功能 | 原版 | 增强版 |
|------|------|--------|
| 调试方法 | 7步法 | **7步法 + AI根因分析** |
| 测试生成 | 手动 | **自动生成测试用例** |
| 错误模式 | 基础 | **智能错误模式库** |
| 跨语言 | 有限 | **15+主流语言全覆盖** |
| 修复建议 | 通用 | **上下文感知智能建议** |
| 预防机制 | 无 | **代码质量扫描预警** |
## 触发词
当用户说以下内容时激活:
- "报错"、"出错了"、"bug"
- "debug"、"帮我看看"
- "代码有问题"、"程序崩溃"
- "修复bug"、"这个错误"
- "为什么不行"、"怎么回事"
## 7步调试法 + AI增强
### Step 1: 复现问题
```
❌ 不要:直接猜测原因
✅ 要:精确复现错误
复现命令:
node --trace-errors app.js
python -v debug script.py
```
### Step 2: 捕获错误信息
```
错误类型识别:
├── SyntaxError → 语法错误(最容易修)
├── TypeError → 类型错误(检查变量类型)
├── ReferenceError → 引用错误(检查是否定义)
├── NetworkError → 网络错误(检查API/连接)
└── RuntimeError → 运行时错误(需要详细分析)
```
### Step 3: AI根因分析(新增)
```
分析错误不只是表象,要找根本原因
Why-Tree 分析法:
Why: 报错 "Cannot read property 'map' of undefined"
→ Why: data变量是undefined
→ Why: API返回数据为空
→ Why: 接口超时未处理
→ 根本原因:缺少空值判断和超时处理
```
### Step 4: 定位代码
```javascript
// 错误定位技巧
const debug = require('debug')('app:*');
// 添加断点日志
console.log('🔍 DEBUG: 变量值', { variable: value });
// 使用source map
source-map /path/to/bundle.js.map
```
### Step 5: 修复方案
```
修复优先级:
1. 立即止血(try-catch包裹)
2. 找到根本原因
3. 系统性修复(防止复发)
4. 添加测试用例
```
### Step 6: 验证修复
```bash
# 自动测试
npm test
# 集成测试
npm run test:integration
# 端到端测试
npm run test:e2e
```
### Step 7: 预防复发
```
添加到错误模式库
记录:错误类型 + 根本原因 + 修复方案 + 预防措施
```
## 支持语言
| 语言 | 调试命令 | 常见错误 |
|------|---------|---------|
| JavaScript | `node --inspect` | TypeError, ReferenceError |
| TypeScript | `ts-node` | 类型错误 |
| Python | `pdb` / `ipdb` | IndentationError, ImportError |
| Java | jdb / IntelliJ | NullPointerException |
| Go | `delve` | nil pointer, race condition |
| Rust | `rust-gdb` / `rust-lldb` | borrow checker |
| C/C++ | gdb / lldb | segmentation fault |
| Ruby | byebug | NoMethodError |
| PHP | Xdebug | Fatal Error |
| SQL | EXPLAIN | 语法错误 |
## 错误模式库
### 模式1: JavaScript类型错误
```
症状: "Cannot read property 'x' of undefined"
原因: 访问undefined/null的属性
修复:
// ❌ 错误
data.items.map(x => x.name)
// ✅ 正确
data?.items?.map(x => x.name) || []
```
### 模式2: Python导入错误
```
症状: "ModuleNotFoundError: No module named 'xxx'"
原因: 模块未安装或路径错误
修复:
pip install xxx
# 或检查 PYTHONPATH
```
### 模式3: 异步错误
```
症状: "UnhandledPromiseRejection"
原因: Promise错误未被捕获
修复:
// 添加错误处理
promise.catch(err => console.error(err))
// 或使用 try-await
try { await asyncFn() } catch (err) {}
```
### 模式4: 并发竞争
```
症状: 数据不一致 / 状态错乱
原因: 多线程同时修改同一数据
修复:
// 使用锁或原子操作
// Go: sync.Mutex
// Python: threading.Lock
// JS: async-await + 状态管理
```
## 自动测试生成
### 根据错误生成测试用例
```
当修复一个bug时,自动生成防止复发的测试:
原始错误:
TypeError: Cannot read property 'name' of undefined
自动生成测试:
test('should handle undefined user gracefully', () => {
const result = getUserName(undefined);
expect(result).toBe('Guest');
});
```_meta.json
{
"ownerId": "kn76zj982hmr7e9qq0q3frc0q5825s3q",
"slug": "debug-master",
"version": "1.0.0",
"publishedAt": 1774517519439
}skill-card.md
## Description: Debug 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. This skill is ready for commercial/non-commercial use. ## Publisher: [windy-001-crypto](https://clawhub.ai/user/windy-001-crypto) ### License/Terms of Use: MIT-0 ## Use Case: Developers and engineers use this skill to diagnose programming errors, analyze root causes, generate regression test ideas, and structure debugging reports across common programming languages. ### Deployment Geography for Use: Global ## Known Risks and Mitigations: Risk: The skill may activate on broad debugging phrases and produce fixes or tests that have not been validated against the user's codebase. Mitigation: Review generated tests and fixes before applying them, and run the project's normal test suite after changes. Risk: Debugging logs can contain secrets such as API keys or tokens. Mitigation: Redact credentials and other sensitive values before sharing logs with the agent. ## Reference(s): - [ClawHub skill page](https://clawhub.ai/windy-001-crypto/skills/debug-master) ## Skill Output: **Output Type(s):** [Text, Markdown, Code, Shell commands, Guidance] **Output Format:** [Markdown with code blocks, shell command examples, debugging reports, fix suggestions, and test-case examples] **Output Parameters:** [1D] **Other Properties Related to Output:** [Outputs should be reviewed before applying fixes or tests to a codebase.] ## Skill Version(s): 1.0.0 (source: frontmatter and server release evidence) ## Ethical Considerations: Users 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.
AionUi
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!
activepieces
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
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/windy-001-crypto/skills/debug-master",
"sourceUrl": "https://clawhub.ai/windy-001-crypto/skills/debug-master",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T14:06:12.909Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-windy-001-crypto-debug-master/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-windy-001-crypto-debug-master/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-10T14:06:12.909Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1.4K downloads",
"href": "https://clawhub.ai/windy-001-crypto/debug-master",
"sourceUrl": "https://clawhub.ai/windy-001-crypto/debug-master",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T14:06:12.909Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.0.0",
"href": "https://clawhub.ai/windy-001-crypto/debug-master",
"sourceUrl": "https://clawhub.ai/windy-001-crypto/debug-master",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-03-26T09:31:59.439Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-windy-001-crypto-debug-master/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-windy-001-crypto-debug-master/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.0.0",
"description": "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.",
"href": "https://clawhub.ai/windy-001-crypto/debug-master",
"sourceUrl": "https://clawhub.ai/windy-001-crypto/debug-master",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-03-26T09:31:59.439Z",
"isPublic": true
}
]
}Record generated Oct 10, 2026.
