From supertools
Use when encountering any bug, test failure, or unexpected behavior. Reproduce first, isolate, then hypothesize. Rigid — no fixing from intuition.
How this skill is triggered — by the user, by Claude, or both
Slash command
/supertools:systematic-debuggingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
When something is wrong, do not propose fixes from intuition. Work the
When something is wrong, do not propose fixes from intuition. Work the problem.
Reproduce. Find the smallest sequence of steps that reliably triggers the bug. If you can't reproduce it, you can't fix it — keep trying or instrument the code to capture the next occurrence.
Isolate. Cut the reproduction down to the minimum. Strip unrelated state. Find the smallest possible failing case.
Hypothesize. State what you think is happening. ONE hypothesis at a time. Be specific: not "the parser is broken" but "the parser discards trailing whitespace before checking for the closing token."
Test the hypothesis. Add a print, attach a debugger, write a focused test, read the relevant code closely. Look for evidence that confirms or denies. Be honest — confirmation bias is the enemy.
If wrong, go back to step 3. Discard the hypothesis. Form a new one. Don't bend the evidence.
Once confirmed, fix. The fix should target the root cause, not the symptom.
Add a regression test that would have caught the bug. Confirm it fails before the fix and passes after.
If you've tried three or more hypotheses and the bug persists, STOP iterating on fixes. The bug is probably not where you think it is. Step back and ask:
Re-read the relevant code with fresh eyes. Tell the user you've hit a wall, summarize the three failed hypotheses and what each ruled out, and ask whether the architecture itself needs to change before more fix attempts.
You're done debugging when:
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub yoshana/supertools --plugin supertools