# /debugging-wizard: Find root causes by testing one hypothesis at a time

Source: https://trendhub.net/skills/jeffallan-claude-skills/debugging-wizard
Skill folder: https://github.com/Jeffallan/claude-skills/tree/main/plugin/skills/debugging-wizard
Pack: Jeffallan's Claude Skills (https://trendhub.net/skills/jeffallan-claude-skills)
Works with: Claude Code (plugin marketplace)

Debugging Wizard gives the agent a fixed method for bugs: reproduce, isolate, hypothesise and test, fix, then prevent. It must collect full error output, change one thing at a time and add a regression test, and its report states the root cause, the evidence, the fix and the safeguard. Part of its reference set is adapted from Jesse Vincent's Superpowers.

## When to use it

- An error or crash keeps returning after quick fixes.
- You need a stack trace or log trail turned into a confirmed cause.
- A regression appeared and you want to bisect to the commit that caused it.

## How it works

1. **Reproduce**: Establishes steps that trigger the issue consistently before anything else.
2. **Isolate**: Narrows the problem to the smallest failing case, using tools such as pdb, the Node inspector, delve or git bisect.
3. **Hypothesize and test**: Forms testable theories and checks them one at a time rather than changing several things together.
4. **Fix and prevent**: Applies and verifies the fix, adds a regression test and strips debug statements before committing.

## What it steers the agent away from

- Guessing at a cause without testing it.
- Making several changes at once.
- Leaving console.log or debugger statements behind.

## What it can touch

Runs your code under debuggers and git bisect, edits code and adds tests.

## Pairs well with

- `/code-reviewer`
- `/monitoring-expert`
- `/test-master`

## Questions

### What does the final report include?

The root cause, the evidence that proves it, the code fix and the test or safeguard against a repeat.

### Is it tied to one language?

No. It lists debugger commands for Python, Node.js and Go as well as git bisect.
