/superpowers:systematic-debuggingfrom superpowers
Use when debugging complex, persistent, or unclear failures that resist quick diagnosis — not needed when the cause is already obvious from the error message
Ships in superpowers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Core principle: Find root cause before attempting fixes. Symptom fixes are failure.
Use the full process for:
Quick investigation is fine for:
Even for quick fixes, read the error message carefully and verify the fix works. If a "quick fix" doesn't work on the first try, switch to the full process.
BEFORE attempting ANY fix:
Read Error Messages Carefully
Reproduce Consistently
Check Recent Changes
Gather Evidence in Multi-Component Systems
When system has multiple components, add diagnostic instrumentation at component boundaries before proposing fixes. Run once to see WHERE it breaks, then investigate that specific component.
Trace Data Flow
See root-cause-tracing.md in this directory for the complete backward tracing technique. Quick version: where does the bad value originate? Keep tracing up until you find the source. Fix at source, not at symptom.
superpowers:test-driven-development skill for writing proper failing tests.| Excuse | Reality |
|---|---|
| "Just try this first, then investigate" | First fix sets the pattern. Do it right from the start. |
| "I see the problem, let me fix it" | Seeing symptoms =/= understanding root cause. |
| "Multiple fixes at once saves time" | Can't isolate what worked. Causes new bugs. |
| "One more fix attempt" (after 2+ failures) | 3+ failures = something fundamental is wrong. Stop patching and reassess. |
| Phase | Key Activities | Success Criteria |
|---|---|---|
| 1. Root Cause | Read errors, reproduce, check changes, gather evidence | Understand WHAT and WHY |
| 2. Pattern | Find working examples, compare | Identify differences |
| 3. Hypothesis | Form theory, test minimally | Confirmed or new hypothesis |
| 4. Implementation | Create test, fix, verify | Bug resolved, tests pass |
These techniques are part of systematic debugging and available in this directory:
root-cause-tracing.md - Trace bugs backward through call stack to find original triggerdefense-in-depth.md - Add validation at multiple layers after finding root causecondition-based-waiting.md - Replace arbitrary timeouts with condition pollingCREATION-LOG.md (opens in a new tab)condition-based-waiting-example.ts (opens in a new tab)condition-based-waiting.md (opens in a new tab)defense-in-depth.md (opens in a new tab)find-polluter.sh (opens in a new tab)root-cause-tracing.md (opens in a new tab)test-academic.md (opens in a new tab)test-pressure-1.md (opens in a new tab)test-pressure-2.md (opens in a new tab)test-pressure-3.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub satishsolanki1990/ss-superpowers --plugin superpowers17 skills in this plugin
/brainstormingUse when building new features or components that involve meaningful design decisions, ambiguous requirements, or architectural changes — not needed for clear, well-scoped modifications to existing code/diagnosing-superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness./dispatching-parallel-agents