Systematic Debugging
Structured four-phase debugging method that requires root-cause investigation before any proposed fix.
- CCM score
- 63 of 100
- skills.sh installs
- 1.2K
- GitHub stars
- 8.6K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers the full debugging flow: root-cause investigation, pattern analysis, hypothesis testing, and implementation
- Includes a rule that no fix is proposed until the investigation phase is complete, plus a red-flags list of shortcut thinking
- Enforces a stop-and-question-architecture step after three failed fix attempts, and a failing-test-first requirement
- Designed for debugging test failures, production bugs, build failures, and integration issues, with companion files for call-stack tracing and defense-in-depth
Install
$ npx -y skills add jnmetacode/superpowers-zh --skill systematic-debugging -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
系统化调试
概述
核心原则: 在尝试修复之前,务必先找到根本原因。只修症状就是失败。
敷衍走流程等于违背调试的精神。
铁律
不做根因调查,不许提修复方案
如果你还没完成第一阶段,就不能提出修复方案。
何时使用
用于任何技术问题:
- 测试失败
- 生产环境 bug
- 异常行为
- 性能问题
- 构建失败
- 集成问题
尤其在以下情况必须使用:
- 时间紧迫(紧急情况最容易让人猜测式修复)
- 觉得"一个小修改"就能搞定
- 已经尝试了多种修复
- 上一次修复没有生效
- 你没有完全理解问题
以下情况也不要跳过:
- 问题看起来很简单(简单的 bug 也有根本原因)
- 你很赶时间(越急越容易返工)
- 领导要求立刻修好(系统化调试比反复尝试更快)
四个阶段
你必须完成每个阶段后才能进入下一个。
第一阶段:根因调查
在尝试任何修复之前:
-
仔细阅读错误信息
- 不要跳过错误或警告
- 它们往往直接包含解决方案
- 完整阅读堆栈跟踪
- 记下行号、文件路径、错误码
-
稳定复现
- 你能可靠地触发它吗?
- 具体的复现步骤是什么?
- 每次都能复现吗?
- 如果无法复现 → 收集更多数据,不要猜测
-
检查近期变更
- 什么变更可能导致了这个问题?
- git diff、最近的提交
- 新依赖、配置变更
- 环境差异
-
在多组件系统中收集证据
当系统有多个组件时(CI → 构建 → 签名,API → 服务 → 数据库):
在提出修复方案之前,先添加诊断埋点:
对每个组件边界: - 记录进入组件的数据 - 记录离开组件的数据 - 验证环境/配置的传递 - 检查每一层的状态 执行一次以收集证据,确定断裂点在哪里 然后分析证据,定位故障组件 然后针对该组件深入调查示例(多层系统):
# 第 1 层:工作流 echo "=== Secrets available in workflow: ===" echo "IDENTITY: $([ -n "${IDENTITY:-}" ] && echo SET || echo UNSET)"
Details
- Repository
- github.com/jnmetacode/superpowers-zh
- Categories
- Debugging, Agent Workflow & Planning
- First seen
- Jun 3, 2026
Questions
What does the systematic-debugging skill do?
The systematic-debugging skill makes the agent find the root cause of a bug, test failure or unexpected behavior before it proposes any fix. It works through four phases: root-cause investigation, pattern analysis, hypothesis testing, and implementation with a failing test first.
When should I use the systematic-debugging skill?
Use it whenever you hit a bug, a failing test or abnormal behavior, before proposing a fix. The SKILL.md also says to apply it under time pressure, when a quick change seems enough, or after a previous fix did not work.
How do I install the systematic-debugging skill?
Run npx -y skills add jnmetacode/superpowers-zh --skill systematic-debugging -y in your project. Once installed, the agent follows the four-phase debugging method whenever a bug or failure comes up.
Where does systematic-debugging stand in the Debugging category?
It is listed in the Debugging category alongside diagnosing-bugs, safe-debug, azure-messaging and sentry-cli. Its distinct focus is the rule that no fix is proposed until root-cause investigation is complete, with a stop-and-question-the-architecture step after three failed fixes.
More from jnmetacode/superpowers-zh
All 20- Receiving Code Review1.1K
- Verification Before Completion1.1K
- Writing Plans1.1K
- Test Driven Development1.1K
- Chinese Code Review1.1K
- Chinese Commit Conventions1.1K
- Subagent Driven Development1.1K
- Executing Plans1.1K
- Requesting Code Review1K
- Finishing A Development Branch1K
- Using Git Worktrees1K
- Chinese Git Workflow995
- Dispatching Parallel Agents986
- Writing Skills983
- Mcp Builder979
- Workflow Runner968
- Using Superpowers1.3K
- Chinese Documentation1.3K
- Brainstorming1.2K
Similar to Systematic Debugging
More Debuggingdebugpproenca/dot-skills458 installsStructured debugging methodology that covers reproduction, hypothesis-driven search, and root cause analysis across 54 rules.
debugging-and-error-recoveryaddyosmani/agent-skills85.2K installsGuided root-cause debugging that triages failures, localizes the layer, and fixes the cause rather than the symptom.
debugging-strategiessickn33/agentic-awesome-skills425 installsSystematic debugging method that reproduces, isolates, and verifies bugs before any fix is applied.
ce-debugeveryinc/compound-engineering-plugin3.8K installsDiagnosis-first debugging loop that finds root causes with file evidence before any test-first fix.
debuggersickn33/agentic-awesome-skills379 installsSystematic root-cause debugger that reproduces failures, tests competing hypotheses, and reports verified fixes.