skills/systematic-debugging/SKILL.md
Use when a test fails, a bug is reported, or unexpected behavior occurs. 4-phase root-cause process.
npx skillsauth add seokan-jeong/team-shinchan team-shinchan:systematic-debuggingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Never guess. Investigate, analyze, hypothesize, then fix -- one variable at a time.
git diff and git log for what changed since it last workedDo NOT attempt any fix until you can answer: "What exactly is failing and where?"
The bug is in the delta. If you cannot find the delta, your mental model of the system is wrong -- go back to Phase 1.
3+ fixes failed -- you are likely wrong about the root cause. Stop. Question every assumption you have made. Return to Phase 1 and start the investigation from scratch with fresh eyes.
| Technique | When to Use | Method | |-----------|-------------|--------| | Root-cause tracing (5 Whys) | Symptom is clear but cause is not | Ask "why?" iteratively until you reach the origin | | Defense-in-depth | Fix found but similar bugs could recur | Apply the fix AND add a guard (assertion, validation, type check) | | Condition-based waiting | Timing-related failures | Replace arbitrary sleeps with explicit condition checks (poll, event, callback) |
Trying random changes hoping something works. Signs you are doing this:
If you catch yourself shotgun debugging, STOP immediately and return to Phase 1.
testing
Default-on interview option-quality panel — N diverse generators produce structure-free options, a SelfCheckGPT majority-vote consensus filters hallucinations, a SteerConf cautious-confidence judge scores survivors, and a deterministic top-K is returned. Workflow tier; the single fierce-* skill that is ON by default.
development
Deterministic adversarial code review for high-stakes scope — independent per-dimension review, a non-skippable per-finding refutation, completeness + interaction critics, and a deterministic 3-lens rubric judge panel. Opt-in main-loop Workflow tier.
data-ai
Deterministic loop-until-done for high-stakes long-running tasks — a worker/verifier loop the script bounds by iteration cap, token budget, and stagnation, closed by an Action-Kamen gate. Opt-in main-loop Workflow tier.
testing
Deterministic adversarial debate for high-stakes or irreversible decisions — mandatory refutation plus a scored judge panel. Opt-in main-loop Workflow tier.