Systematic Debugging

Forces root-cause investigation across four phases before any fix when tests fail or behavior looks wrong.

By Jesse Vincent

Creator, superpowers

304k stars27.1k forks

About

Forces root-cause investigation across four phases before any fix when tests fail or behavior looks wrong.

What it tells your AI to do

Read code and logsRun diagnostic commands the user allowsPropose fixes only after root cause

Source

@obra on GitHubhttps://github.com/obra/superpowers/tree/main/skills/systematic-debugging

Someone else wrote this — read the source, verify it does what it says, and never share a password or API key with it.

Try it

Debug this failure using systematic debugging. Complete root-cause investigation before proposing any fix; show reproduction steps and evidence.

Read the source

A skill is instructions your AI follows. Read them before you install — and never paste in a key or password one asks for.

SKILL.md
name
Systematic Debugging
description
Forces root-cause investigation across four phases before any fix when tests fail or behavior looks wrong.
Read the full instructions (19 lines)

# Systematic Debugging

Iron law: no fixes without root-cause investigation first.

## When to use
Test failures, production bugs, unexpected behavior, performance issues, build or integration failures — especially under time pressure.

## Four phases
1. Root cause investigation — read errors fully, reproduce, gather evidence, form a hypothesis.
2. Pattern analysis — compare working vs broken paths; find the smallest failing case.
3. Hypothesis and test — change one variable; confirm the cause.
4. Implementation — fix the cause, add regression coverage, verify.

Skip no phase. Symptom patches that leave the cause intact are failures.


Adapted from @obra's approach: https://github.com/obra/superpowers/tree/main/skills/systematic-debugging

Comments

No comments yet — be the first.

More like this

Development

Frontend Design

Use Claude Code to create production-ready interfaces that look professional, not AI-generated. React, Tailwind, and clean design automatically.

Development

Web App Testing

Use Claude Code to test web applications and find bugs before users do. Automated browser testing with plain English commands.

Development

MCP Server Builder

Use Claude Code to build MCP servers that connect Claude to your APIs, databases, and tools. Working server with auth and error handling in minutes.