systematic-debugging
4-phase debugging protocol for diagnosing and fixing failing tests
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
4-phase debugging protocol for diagnosing and fixing failing tests
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Structured code review
Find and load available skills
PR description generation
Spec-faithful implementation for spec-driven development
Architecture and interface design for spec-driven development
Codebase analysis and context gathering for spec-driven development
| name | systematic-debugging |
| description | 4-phase debugging protocol for diagnosing and fixing failing tests |
| methodology | tdd |
Diagnose and fix failing tests using a structured 4-phase protocol. This skill is used by the Debugger when tests are failing and the cause is not immediately obvious.
Identify the failing test(s) exactly.
Create a minimal reproduction.
Document what you know.
Identify the failure boundary.
Check common causes first.
-race flag)Trace the data flow.
Make the smallest targeted fix.
Verify the fix addresses the root cause.
Run the previously-failing test — it must now pass.
go test -race ./...## Debug Report
### Failure Summary
- Test: <test name>
- Assertion: expected <X>, got <Y>
- Consistent/Flaky: <consistent|flaky>
### Root Cause
<Explanation of what caused the failure>
### Fix Applied
<Description of the change and why it works>
### Verification
- Failing test now passes: ✓
- Full suite passing: ✓
- Race detector clean: ✓
### Regression Test Added
<Yes/No and why>