Systematic Debugging
A root-cause-first debugging process for agents: reproduce the problem, gather evidence and test a hypothesis before any fix is attempted, so bugs stop being patched by guessing.
Install:
Install the Superpowers plugin for Claude Code (see the obra/superpowers repo README for the current marketplace install steps), which bundles this skill.
Source: https://github.com/obra/superpowers/tree/main/skills/systematic-debugging
Repository: https://github.com/obra/superpowers
Updated 27 November 2026.
Used in: AI Automation Services for Local Businesses · Micro-SaaS with AI Coding Tools
What it does
- Four-phase process: investigate, analyse patterns, hypothesise, implement
- Requires a reproduction before any fix is proposed
- Pushes evidence gathering over code reading alone
- Guards against repeated failed fixes by re-checking assumptions
- Part of the widely used Superpowers plugin for Claude Code
Use it for
- Debug a flaky test that fails intermittently
- Trace a production error to its actual root cause
- Stop an agent from cycling through random fixes
What it does
Systematic Debugging exists because agents, left alone, debug the way impatient humans do: see a symptom, guess a cause, change code, repeat. This skill imposes a process instead. First reproduce the problem reliably and gather evidence about what is actually happening. Then analyse — compare against working examples and find the pattern. Only then form a single hypothesis, test it with the smallest possible change, and implement the fix at the root cause rather than at the symptom. If fixes keep failing, the process sends the agent back to its assumptions instead of letting it stack patches.
How to install and use
The skill ships as part of the Superpowers plugin: install the plugin following the README in the obra/superpowers repository, and the skill becomes available in Claude Code. It engages on debugging tasks — a failing test, a reported bug, unexpected behaviour. You do not invoke the phases manually; the value is that the agent follows them instead of jumping to edits, and reports evidence as it goes.
Example use
Ask: ‘This test passes locally but fails in CI about half the time — find out why.’ A systematic pass reproduces the flakiness, compares the environments, and tests a hypothesis about ordering or shared state before touching code — instead of the usual outcome, a timing delay added on a hunch that makes the failure rarer and the cause permanent.
Good to know
Process has a cost: for a typo-level bug with an obvious cause, the full cycle is ceremony. The skill earns its keep on the bugs that resist the first two guesses — which are precisely the ones where guessing gets expensive. If an agent reports a fix, ask what evidence confirmed the hypothesis; this skill makes that a fair question.
Debugging pairs naturally with Test-Driven Development — the failing test you write during diagnosis becomes the regression test afterwards. The agent-specific version of these loops, including when an agent argues with its own fix, is in Debugging agent loops.
Requirements
You need an agent that supports the Agent Skills standard — Claude Code is the target tool listed for this skill — plus the install command shown at the top of this page: Install the Superpowers plugin for Claude Code (see the obra/superpowers repo README for the current marketplace install steps), which bundles this skill.. The skill itself is a folder of instruction files (a SKILL.md, and in some cases bundled scripts or reference files) that the agent loads when a task matches its description. Nothing in the skill replaces the underlying tool it guides: where the skill covers an API, a document format or a platform, you still need your own access and accounts for that platform.
Safety notes
Installs as local instruction files — a SKILL.md plus any bundled scripts or assets — that your agent reads and follows locally. Review the SKILL.md and any scripts in the skill folder before first use; no third-party security scan was run and no scan result is claimed.
In practice: read the SKILL.md before the first run, skim any bundled scripts for network calls or file writes outside the project, and run the skill first on a copy of a real file rather than the original. A skill’s instructions are followed by your agent with your permissions, so the review standard is the same one you would apply to a script a stranger handed you. What was verified for this entry: Verified via the GitHub API on 2026-11-27: the skill exists in obra/superpowers’s skills directory. Description rewritten in our own words; popularity/install counts deliberately not reproduced.
Before you rely on it
Run the example task from the section above on a small, real job and compare the output with doing the same job unaided. Keep the skill if it removes steps or errors you actually make; remove it if it only adds ceremony. Skills cost a description line of context on every session until they trigger, so a directory of unused skills is not free — it is a small, permanent tax on every conversation.
Safety notes
Verified via the GitHub API on 2026-11-27: the skill exists in obra/superpowers's skills directory. Description rewritten in our own words; popularity/install counts deliberately not reproduced.
Installs as local instruction files — a SKILL.md plus any bundled scripts or assets — that your agent reads and follows locally. Review the SKILL.md and any scripts in the skill folder before first use; no third-party security scan was run and no scan result is claimed.