From superpowers-plus
Structured debugging method: find root cause before fixing. Guides through error analysis, pattern comparison, hypothesis testing, and verified fixes for bugs, test failures, and unexpected behavior.
How this skill is triggered — by the user, by Claude, or both
Slash command
/superpowers-plus:systematic-debuggingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- Any bug, test failure, or unexpected behavior — before proposing fixes
brainstorming), code review (providing-code-review)Core principle: ALWAYS find root cause before attempting fixes.
Wrong skill? Feature design →
brainstorming. Code review →providing-code-review.
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
If you haven't completed Phase 1, you cannot propose fixes.
BEFORE attempting ANY fix:
root-cause-tracing.md for complete technique.superpowers:test-driven-development skillWhen fixes keep failing, the problem is usually misdiagnosed. Don't try a third fix — escalate:
think-twice — verbalize what you've tried and why each failedIf 3+ fixes in different locations: the architecture is wrong, not your fix. Stop patching and discuss with the human.
| Failure | Symptom | Recovery |
|---|---|---|
| Wrong layer | Fix works locally but breaks integration | Check one layer up: is the caller sending wrong data? |
| Confirmation bias | Only testing the happy path after fix | Write a test for the original failure case first |
| Environment mismatch | Works on your machine, fails in CI/prod | Compare env vars, dependency versions, OS differences. Don't assume equivalence |
root-cause-tracing.md — trace bugs backward through call stackdefense-in-depth.md — add validation at multiple layerscondition-based-waiting.md — replace arbitrary timeouts with condition pollinginvestigation-state — persist debugging context across sessions for multi-day bugsthink-twice — dispatch fresh sub-agent when stuck in a hypothesis loopadversarial-search — search for the WRONG value when symptoms contradict expectationsnpx claudepluginhub bordenet/superpowers-plus --plugin superpowers-plusGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.