Agent skill

Superpowers Systematic Debugging

by christopherarter in christopherarter/superpowers-reasonix

Any bug, failing or flaky test, or surprise behavior?. An agent skill from christopherarter/superpowers-reasonix.

MITAuto-check passedDevelopment

Install Superpowers Systematic Debugging

skills CLI
$ npx skills add christopherarter/superpowers-reasonix --skill superpowers-systematic-debugging -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install christopherarter/superpowers-reasonix superpowers-systematic-debugging --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/christopherarter/superpowers-reasonix.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/superpowers-systematic-debugging .claude/skills/superpowers-systematic-debugging && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
superpowers-systematic-debugging
GitHub stars
102
Token cost
~2k tokens
SKILL.md length
955 words
Files
5 (incl. scripts, references)
Skills in repo
11
Repo updated
First seen
Licence
MIT

At a glance

Any bug, failing or flaky test, or surprise behavior?. An agent skill from christopherarter/superpowers-reasonix.

  • Works in 4 steps: Root Cause Investigation → Pattern Analysis → Hypothesis and Testing → …
  • Tasks that involve Debugging
  • SKILL.md covers Overview, The Iron Law, When to Use and The Four Phases, plus 6 more sections
  • Runs Shell scripts from its folder; calls git

What it does

Superpowers Systematic Debugging is an agent skill from christopherarter/superpowers-reasonix. Any bug, failing or flaky test, or surprise behavior? Load BEFORE you investigate or guess.

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts and reference files (for example `references/condition-based-waiting.md`, `references/defense-in-depth.md` and `references/root-cause-tracing.md`).

It sits in Development, covering Debugging, Failing and flaky tests and Root cause analysis. The repository describes itself as: Superpowers skill port to Reasonix coding harness. The licence is MIT.

When your agent uses it

  • Tasks that involve Debugging
  • Tasks that involve Failing and flaky tests
  • Tasks that involve Root cause analysis

Example prompts

  • “/superpowers-systematic-debugging”

Requirements

  • A Bash shell

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Root Cause Investigation
  2. Pattern Analysis
  3. Hypothesis and Testing
  4. Implementation

What it can do on your machine

Read from SKILL.md and the folder at commit d202ba4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Superpowers Systematic Debugging loads about 2k tokens when it runs, and up to ~4.2k if it reads all its reference files. Until then it costs about 31 tokens; SKILL.md has 955 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~31
When it runs · the whole SKILL.md, loaded when a task matches
~2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from christopherarter/superpowers-reasonix at commit d202ba4, republished under its MIT licence (© christopherarter). 955 words, ~1,994 tokens.

Download SKILL.mdSave it as .claude/skills/superpowers-systematic-debugging/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
superpowers-systematic-debugging
description
Any bug, failing or flaky test, or surprise behavior? Load BEFORE you investigate or guess.

Systematic Debugging

Overview

Random fixes waste time, create new bugs. Quick patches mask real issue.

Core principle: ALWAYS find root cause before fixes. Symptom fixes = failure.

Break letter of process = break spirit of debugging.

The Iron Law

NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST

Phase 1 not done? Cannot propose fixes.

When to Use

ANY technical issue: test failures, production bugs, unexpected behavior, performance problems, build failures, integration issues.

ESPECIALLY when:

  • Under time pressure (emergencies make guessing tempting)
  • "Just one quick fix" seems obvious
  • Already tried multiple fixes
  • Previous fix didn't work
  • Don't fully understand the issue

Don't skip when:

  • Issue seems simple (simple bugs have root causes too)
  • In a hurry (rushing guarantees rework)
  • Manager wants it NOW (systematic beats thrashing)

The Four Phases

You MUST complete each phase before the next.

Phase 1: Root Cause Investigation

BEFORE attempting ANY fix:

  1. Read Error Messages Carefully

    • Don't skip errors or warnings — often contain the exact solution
    • Read stack traces completely; note line numbers, file paths, error codes
  2. Reproduce Consistently

    • Trigger it reliably? Exact steps?
    • Not reproducible → gather more data, don't guess
  3. Check Recent Changes

    • What changed that could cause this? (git diff, recent commits, new deps, config)
  4. Gather Evidence in Multi-Component Systems

    WHEN system has multiple components (CI → build → signing, API → service → database), BEFORE proposing fixes, add diagnostic instrumentation at each boundary:

    For EACH component boundary:
      - Log what data enters the component
      - Log what data exits the component
      - Verify environment/config propagation
    Run once to gather evidence showing WHERE it breaks
    THEN investigate that specific component

    Example (multi-layer system):

    bash
    echo "=== Secrets available in workflow ==="
    echo "IDENTITY: ${IDENTITY:+SET}${IDENTITY:-UNSET}"
    echo "=== Env vars in build script ==="
    env | grep IDENTITY || echo "IDENTITY not in environment"
    echo "=== Keychain state ==="
    security find-identity -v

    This reveals which layer fails (secrets → workflow ✓, workflow → build ✗).

  5. Trace Data Flow

    WHEN error deep in call stack: see Root Cause Tracing reference (auto-included below) for complete backward-tracing technique.

    Quick version: Where does bad value originate? What called this with bad value? Trace up until you find source. Fix at source, not symptom.

Phase 2: Pattern Analysis
  1. Find Working Examples — locate similar working code in same codebase
  2. Compare Against References — implementing a pattern? Read reference implementation COMPLETELY (every line, no skimming)
  3. Identify Differences — list every difference between working and broken, however small. Don't assume "that can't matter"
  4. Understand Dependencies — what components, settings, config, environment, assumptions does this need?
Phase 3: Hypothesis and Testing
  1. Form Single Hypothesis — "I think X is root cause because Y." Write it down. Be specific.
  2. Test Minimally — SMALLEST possible change to test it. One variable at a time.
  3. Verify Before Continuing — Worked? → Phase 4. Didn't? → form NEW hypothesis. DON'T pile fixes on top.
  4. When You Don't Know — say "I don't understand X." Don't pretend. Ask for help. Research more.
Phase 4: Implementation

Fix root cause, not symptom:

  1. Create Failing Test Case — simplest reproduction, automated if possible. MUST have before fixing. Use superpowers-test-driven-development skill.
  2. Implement Single Fix — address root cause. ONE change. No "while I'm here" improvements, no bundled refactoring.
  3. Verify Fix — test passes now? No other tests broken? Issue actually resolved? (Use superpowers-verification-before-completion skill.)
  4. If Fix Doesn't Work — STOP. Count fixes tried. < 3: return to Phase 1 with new info. ≥ 3: STOP and question architecture (step 5). DON'T attempt fix #4 without architectural discussion.
  5. If 3+ Fixes Failed: Question Architecture
    • Pattern: each fix reveals new coupling elsewhere; fixes require "massive refactoring"; each fix creates new symptoms.
    • STOP. Question fundamentals: Is this pattern sound? Continuing through inertia? Refactor vs. keep patching symptoms?
    • Discuss with your human partner before more fixes. NOT a failed hypothesis — a wrong architecture.
Show full SKILL.md (409 more words)Show less

Red Flags - STOP and Follow Process

Catch yourself thinking:

  • "Quick fix for now, investigate later"
  • "Just try changing X and see if it works"
  • "Add multiple changes, run tests"
  • "Skip the test, I'll manually verify"
  • "It's probably X, let me fix that"
  • "I don't fully understand but this might work"
  • "Here are the main problems: [lists fixes without investigation]"
  • Proposing solutions before tracing data flow
  • "One more fix attempt" (when already tried 2+)
  • Each fix reveals a new problem in a different place

ALL of these mean: STOP. Return to Phase 1. 3+ fixes failed: question architecture (Phase 4.5).

Signals You're Doing It Wrong

Watch for these redirections from your human partner:

  • "Is that not happening?" — you assumed without verifying
  • "Will it show us...?" — you should have added evidence gathering
  • "Stop guessing" — you're proposing fixes without understanding
  • "We're stuck?" (frustrated) — your approach isn't working

See these: STOP. Return to Phase 1.

Common Rationalizations

ExcuseReality
"Issue is simple, don't need process"Simple issues have root causes too. Process is fast for simple bugs.
"Emergency, no time for process"Systematic debugging is FASTER than guess-and-check thrashing.
"Just try this first, then investigate"First fix sets the pattern. Do it right from the start.
"I'll write test after confirming fix works"Untested fixes don't stick. Test first proves it.
"Multiple fixes at once saves time"Can't isolate what worked. Causes new bugs.
"Reference too long, I'll adapt the pattern"Partial understanding guarantees bugs. Read it completely.
"I see the problem, let me fix it"Seeing symptoms ≠ understanding root cause.
"One more fix attempt" (after 2+ failures)3+ failures = architectural problem. Question pattern, don't fix again.

Quick Reference

PhaseKey ActivitiesSuccess Criteria
1. Root CauseRead errors, reproduce, check changes, gather evidenceUnderstand WHAT and WHY
2. PatternFind working examples, compareIdentify differences
3. HypothesisForm theory, test minimallyConfirmed or new hypothesis
4. ImplementationCreate test, fix, verifyBug resolved, tests pass

When Process Reveals "No Root Cause"

Systematic investigation shows issue is truly environmental, timing-dependent, or external? Process complete. Document what you investigated, implement appropriate handling (retry, timeout, error message), add monitoring/logging.

But: 95% of "no root cause" cases = incomplete investigation.

Supporting Techniques (auto-included references)

  • Root Cause Tracing — trace bugs backward through call stack to original trigger
  • Defense in Depth — add validation at multiple layers after finding root cause
  • Condition-Based Waiting — replace arbitrary timeouts with condition polling

Related skills: superpowers-test-driven-development (Phase 4 failing test) · superpowers-verification-before-completion (confirm the fix).

© christopherarter, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (scripts, references) in skills/superpowers-systematic-debugging of christopherarter/superpowers-reasonix.

  • SKILL.md
  • references/condition-based-waiting.md
  • references/defense-in-depth.md
  • references/root-cause-tracing.md
  • scripts/find-polluter.sh

Open the folder on GitHubat commit d202ba4

Compare with similar skills

Superpowers Systematic Debugging next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Superpowers Systematic Debugging compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Superpowers Systematic Debugging this skillchristopherarter/superpowers-reasonix102—~2kAutomated safety check: PassMIT
Root Cause Debuggingjsmastery-pro/skills1.4k—~1.8kAutomated safety check: NotesMIT
Minimal Code Fixcobusgreyling/loop-engineering11k1 repos~345Automated safety check: NotesMIT
Failure Diagnosis LoopTotoro-jam/battle-tested-patterns344—~319Automated safety check: PassMIT
Hypothesis-Driven DebuggingLichAmnesia/lich-skills234—~2.5kAutomated safety check: PassMIT
Systematic Debuggingcbrock84/headcount2k—~657Automated safety check: PassMIT

Similar skills

  • Root Cause Debugging

    jsmastery-pro/skills

    Runs a reproduce, localize, hypothesize, test, fix and verify loop to find a bug's root cause, applies the minimal fix and hands off a regression test.

    1.4k GitHub stars~1.8k tokensUpdated 1 mo ago
    DevelopmentAuto-check: notes
  • Minimal Code Fix

    cobusgreyling/loop-engineering

    Makes the smallest code change that fixes one well-scoped problem, such as a CI failure, review comment or typo, without refactoring anything unrelated.

    11k GitHub starsUsed in 1 repo~345 tokens
    DevelopmentAuto-check: notes
  • Failure Diagnosis Loop

    Totoro-jam/battle-tested-patterns

    Walks the agent through a fixed loop for failing tests and build errors: reproduce, isolate, hypothesize, instrument, fix, verify, then add a regression test.

    344 GitHub stars~319 tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Hypothesis-Driven Debugging

    LichAmnesia/lich-skills

    Replaces trial-and-error fixing with an observe, hypothesize, experiment and conclude loop kept in DEBUG.md, where no fix is allowed before evidence supports a cause.

    234 GitHub stars~2.5k tokensUpdated 4 mo ago
    DevelopmentAuto-check passed
  • Systematic Debugging

    cbrock84/headcount

    Finds the root cause of a bug, test failure, or unexpected behavior before proposing any fix.

    2k GitHub stars~657 tokensUpdated 20 days ago
    DevelopmentAuto-check passed
  • Test Guided Bug Detector

    ArabelaTso/Skills-4-SE

    Analyze failing tests to detect functional bugs in code. An agent skill from ArabelaTso/Skills-4-SE.

    253 GitHub stars~2.8k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed

More from christopherarter/superpowers-reasonix

All 11 skills in this repo
  • Superpowers Test Driven Development

    christopherarter/superpowers-reasonix

    Writing or fixing any code?. An agent skill from christopherarter/superpowers-reasonix.

    102 GitHub stars~1.9k tokensUpdated 1 mo ago
    Auto-check passed
  • Superpowers Writing Skills

    christopherarter/superpowers-reasonix

    Creating, editing, or testing a Reasonix skill?. An agent skill from christopherarter/superpowers-reasonix.

    102 GitHub stars~2.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Superpowers Brainstorming

    christopherarter/superpowers-reasonix

    Building a feature or starting from an idea?. An agent skill from christopherarter/superpowers-reasonix.

    102 GitHub stars~1.7k tokensUpdated 1 mo ago
    Auto-check passed
  • Superpowers Finishing A Development Branch

    christopherarter/superpowers-reasonix

    Branch finished, tests green?. An agent skill from christopherarter/superpowers-reasonix.

    102 GitHub stars~1.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Superpowers Receiving Code Review

    christopherarter/superpowers-reasonix

    Got review feedback?. An agent skill from christopherarter/superpowers-reasonix.

    102 GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Superpowers Using Git Worktrees

    christopherarter/superpowers-reasonix

    Feature work needing an isolated workspace, or executing a plan?

    102 GitHub stars~1.4k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Superpowers Systematic Debugging

What does Superpowers Systematic Debugging do?

Any bug, failing or flaky test, or surprise behavior?. An agent skill from christopherarter/superpowers-reasonix. Superpowers Systematic Debugging is an agent skill from christopherarter/superpowers-reasonix. Any bug, failing or flaky test, or surprise behavior?

When should I use Superpowers Systematic Debugging?

Superpowers Systematic Debugging fits situations like: tasks that involve Debugging; tasks that involve Failing and flaky tests; tasks that involve Root cause analysis.

How do I install Superpowers Systematic Debugging in Claude Code?

Run `npx skills add christopherarter/superpowers-reasonix --skill superpowers-systematic-debugging -a claude-code`. Or copy the skill folder (skills/superpowers-systematic-debugging in christopherarter/superpowers-reasonix) into .claude/skills/superpowers-systematic-debugging in your project. Claude Code loads it when a task matches its description.

How do I install Superpowers Systematic Debugging in Codex?

Run `npx skills add christopherarter/superpowers-reasonix --skill superpowers-systematic-debugging -a codex`. Or copy the skill folder (skills/superpowers-systematic-debugging in christopherarter/superpowers-reasonix) into .agents/skills/superpowers-systematic-debugging in your project. Codex loads it when a task matches its description.

Can I use Superpowers Systematic Debugging in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add christopherarter/superpowers-reasonix --skill superpowers-systematic-debugging -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/superpowers-systematic-debugging, .gemini/skills/superpowers-systematic-debugging, .github/skills/superpowers-systematic-debugging and .opencode/skills/superpowers-systematic-debugging in your project.

What does Superpowers Systematic Debugging need to run?

Going by SKILL.md and its folder, Superpowers Systematic Debugging needs a shell for the scripts in its folder and the command-line tools its instructions call (git). Our summary lists: A Bash shell.

Does Superpowers Systematic Debugging access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Superpowers Systematic Debugging safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Superpowers Systematic Debugging use?

Superpowers Systematic Debugging is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Superpowers Systematic Debugging use?

About 2k tokens (SKILL.md is roughly 8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.2k tokens, read only when the agent opens those files.

What are the alternatives to Superpowers Systematic Debugging?

Skills that share tags, products or a category with Superpowers Systematic Debugging: Root Cause Debugging (jsmastery-pro/skills, 1.4k stars), Minimal Code Fix (cobusgreyling/loop-engineering, 11k stars), Failure Diagnosis Loop (Totoro-jam/battle-tested-patterns, 344 stars) and Hypothesis-Driven Debugging (LichAmnesia/lich-skills, 234 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Superpowers Systematic Debugging?

christopherarter (a GitHub user) maintains it in christopherarter/superpowers-reasonix, which has 102 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on August 20, 2026.

Source: christopherarter/superpowers-reasonix on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.