systematic-debugging
4-phase debugging protocol for diagnosing and fixing failing tests
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
4-phase debugging protocol for diagnosing and fixing failing tests
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
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>