systematic-debugging

systematic-debugging is a skill for Claude Code from brunob54/superpowers-orchestrator. It costs 101 tokens per session (1,682 once invoked), scanned A, original, MIT.

A method for investigating bugs, failed tests, errors, warnings, unexpected behavior, and performance regressions before changing code.

In plain words
What is it for?
Use it whenever software is broken or behaving unexpectedly, including when tests fail, pages are blank, or performance gets worse.
Why use it?
It prevents fixes based on guesses by requiring a reproducible problem, a tested hypothesis, and evidence of the underlying cause.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the superpowers-orchestrator plugin — 32 skills, 2 agents, 5 hooks shipped together

Good fit Use it whenever software is broken or behaving unexpectedly, including when tests fail, pages are blank, or performance gets worse.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/brunob54/superpowers-orchestrator/systematic-debugging
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add brunob54/superpowers-orchestrator --skill systematic-debugging
Clone the repo
git clone --depth 1 https://github.com/brunob54/superpowers-orchestrator

Made for: Claude Code.

Or install superpowers-orchestrator, the plugin that ships this one along with the rest of its 32 skills, 2 agents, 5 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for systematic-debugging

README.md
[![agentmods](https://agentmods.dev/badge/skills/brunob54/superpowers-orchestrator/systematic-debugging/github.svg)](https://agentmods.dev/skills/brunob54/superpowers-orchestrator/systematic-debugging)
Your own site
<a href="https://agentmods.dev/skills/brunob54/superpowers-orchestrator/systematic-debugging"><img src="https://agentmods.dev/badge/skills/brunob54/superpowers-orchestrator/systematic-debugging/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for systematic-debugging

Your own site · 80×15
<a href="https://agentmods.dev/skills/brunob54/superpowers-orchestrator/systematic-debugging"><img src="https://agentmods.dev/badge/skills/brunob54/superpowers-orchestrator/systematic-debugging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,682 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00101 $0.01682
Opus 5.5 $0.00040 $0.00673
Sonnet 5.5 $0.00020 $0.00336
Haiku 4.5 $0.00010 $0.00168

Measured 13d ago against content hash 10807dd6e27b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

systematic-debugging scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (condition-based-waiting-example.ts, find-polluter.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/systematic-debugging/SKILL.md · 144 lines

How it starts

The opening of the file, as written. The whole thing — 144 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Systematic Debugging

Do root-cause investigation before proposing fixes.

Iron Law

No fix without evidence for root cause.

This is non-negotiable. Every fix must trace back to a proven root cause. A fix applied without understanding why it works is not a fix — it is a mask.

Four Phases

Phase 0: Check Known Issues

  • If known-issues.md exists at the project root, search it for the error message, error code, or failing test name.
  • If a match is found, try the documented solution first. If it resolves the issue, stop — no further investigation needed.
  • If no match or the documented solution doesn't work, proceed to Phase 1.

Phase 1: Investigate

  • Read the full error output — not just the last line.
  • Reproduce the bug reliably. If you cannot reproduce, you cannot fix. For tests that fail only in certain orderings (test pollution), run find-polluter.sh from this skill's directory to identify which test is corrupting shared state.
  • Check recent changes — what changed since it last worked?
    • If context-snapshot.json exists at the project root: run git rev-parse HEAD and compare to git_hash in the file.
      • Hashes match (fresh): the changed_files and recent_commits fields answer this for the committed changes.
      • Hashes differ (stale): the snapshot is from a previous commit; do not use it. Run the two commands of the next line.
    • If absent: run git log --oneline -10 and git diff HEAD~1..HEAD --name-only.
  • Add instrumentation (logging, breakpoints) at component boundaries.
  • Multi-component systems: When the system has multiple components (CI → build → signing, API → service → database), add diagnostic logging at EACH component boundary before proposing fixes:
    For EACH component boundary:
      - Log what data enters the component
      - Log what data exits the component
      - Verify environment/config propagation
      - Check state at each layer
    
    Run once to gather evidence showing WHERE it breaks
    THEN analyze evidence to identify the failing component
    THEN investigate that specific component
    
    Example (multi-layer system):
    # Layer 1: Workflow
    echo "=== Secrets available in workflow: ==="
    echo "IDENTITY: $([ -n "${IDENTITY:+x}" ] && echo SET || echo UNSET)"
    
    # Layer 2: Build script
    echo "=== Env vars in build script: ==="
    [ -n "${IDENTITY:+x}" ] && echo "IDENTITY in environment" || echo "IDENTITY not in environment"
    
    # Layer 3: Signing script
    echo "=== Keychain state: ==="
    security list-keychains
    security find-identity -v
    
    # Layer 4: Actual signing
    codesign --sign "$IDENTITY" --verbose=4 "$APP"
    
    This reveals which layer fails (e.g., secrets → workflow OK, workflow → build FAILS).
  • Trace data/control flow backward from the error to its source.

Read the full file on GitHub · 144 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago Changed 10807dd6e27b
  2. 29d ago Changed · +2 lines 137a72a48fee
  3. 2mo ago First seen · 142 lines · 101 tokens per session scan A 48965bdc73f1

Subscribe to this mod's changes

systematic-debugging is a skill published in the GitHub repository brunob54/superpowers-orchestrator (3 stars, last pushed yesterday), licensed MIT. It adds 101 tokens to every session and 1,682 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.