一键导入
debugging
Use when investigating bugs - systematic root-cause analysis approach
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when investigating bugs - systematic root-cause analysis approach
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when creating, modifying, or reviewing a cliagents provider adapter for a CLI tool such as Codex, Claude Code, Gemini CLI, Qwen CLI, or OpenCode.
Use when operating as a supervised root that delegates work to child sessions through cliagents
Use when reducing prompt size for roots and child sessions without losing the information needed to execute well
Use when passing work between agents with context preservation
Use when exploring design options or solving open-ended problems
Use when reviewing code for quality, bugs, security, and maintainability
| name | debugging |
| description | Use when investigating bugs - systematic root-cause analysis approach |
| tags | ["debugging","troubleshooting","workflow"] |
A systematic approach to finding and fixing bugs efficiently.
Before fixing anything, ensure you can reliably reproduce the issue:
Key Question: Can you make the bug happen on demand?
Collect data about what's happening:
Key Question: What is the system actually doing vs what you expect?
Based on gathered information, form theories:
Key Question: What could explain all the observed symptoms?
Systematically validate or eliminate each theory:
Key Question: Does the evidence support or refute this hypothesis?
Once you've identified the root cause:
Key Question: Does this fix the root cause, not just a symptom?
Ensure the bug doesn't return:
| Category | Symptoms | Investigation |
|---|---|---|
| Off-by-one | Wrong counts, missing items | Check loop bounds, indices |
| Null/undefined | "Cannot read property" | Trace data flow to source |
| Race condition | Intermittent failures | Check async timing, locks |
| State mutation | Unexpected side effects | Find all state modifications |
| Type coercion | Surprising comparisons | Use strict equality, check types |