debugging-wizard — Claude Code skill: debugging and installation
Investigates errors, stack traces, and logs to locate failure points. Use it for crashes, exceptions, regressions, or code that behaves unexpectedly.
npx skills add Jeffallan/claude-skills --skill debugging-wizard -a claude-codeWhat debugging-wizard does
debugging-wizard takes an investigation from reproducing a failure through validating the fix. It parses error messages, follows execution through stack traces, and correlates log entries to locate the failure point.
The skill works in stages: establish repeatable steps, reduce the case, test one hypothesis at a time, change the code, then add a regression safeguard. Its output covers the root cause, supporting evidence, the fix, and a test or other prevention measure.
Reference files cover debuggers, common bug patterns, strategies, and quick fixes. They include pdb, the Node.js inspector, git bisect, and dlv. Requiring reproduction first is a useful constraint, because the skill avoids guessing at a cause without a test.
What it helps with
- reproduce a crash with repeatable steps
- reduce a bug to its smallest failing case
- connect stack-trace frames with log entries
- locate the commit that introduced a regression
- add a regression test after a fix
Example prompts for the agent
- Investigate this exception and identify the root cause from the stack trace.
- Reproduce this failure, test one hypothesis at a time, and propose a fix.
- Use `git bisect` to investigate this regression and add a test to prevent it.
How to install debugging-wizard
1Skills CLI (Vercel)
npx skills add Jeffallan/claude-skills --skill debugging-wizard -a claude-code2Manually: put the files in place
~/.claude/skills/debugging-wizard/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/debugging-wizard/
1Skills CLI (Vercel)
npx skills add Jeffallan/claude-skills --skill debugging-wizard -a codex2Manually: put the files in place
.agents/skills/debugging-wizard/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add Jeffallan/claude-skills --skill debugging-wizard -a cursor2Manually: put the files in place
.cursor/skills/debugging-wizard/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Jeffallan/claude-skills debugging-wizard2Manually: put the files in place
.github/skills/debugging-wizard/SKILL.md1Skills CLI (Vercel)
npx skills add Jeffallan/claude-skills --skill debugging-wizard -a gemini-cli2Platform CLI
gemini skills install https://github.com/Jeffallan/claude-skills --path skills/debugging-wizardManually: put the files in place
.devin/skills/debugging-wizard/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add Jeffallan/claude-skills --skill debugging-wizard -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set61
The whole set →Similar
Questions about debugging-wizard
How do I install debugging-wizard in Claude Code?
Run npx skills add Jeffallan/claude-skills --skill debugging-wizard -a claude-code, then run npx skills add Jeffallan/claude-skills --skill debugging-wizard -a claude-code again. The skill file is at ~/.claude/skills/debugging-wizard/SKILL.md.
What does debugging-wizard do?
The skill investigates failures through reproduction, stack-trace analysis, and log correlation. It asks for one hypothesis to be tested at a time and calls for a regression safeguard after the fix.
Which debugging tools does debugging-wizard cover?
Its reference materials cover pdb for Python, the Node.js inspector, git bisect for regressions, and dlv for Go. The relevant reference is loaded according to the debugging context.
Source text
SKILL.md · MIT
--- name: debugging-wizard description: Parses error messages, traces execution flow through stack traces, correlates log entries to identify failure points, and applies systematic hypothesis-driven methodology to isolate and resolve bugs. Use when investigating errors, analyzing stack traces, finding root causes of unexpected behavior, troubleshooting crashes, or performing log analysis, error investigation, or root cause analysis. license: MIT metadata: author: https://github.com/Jeffallan company: https://synergetic.solutions version: "1.1.0" domain: quality triggers: debug, error, bug, exception, traceback, stack trace, troubleshoot, not working, crash, fix issue role: specialist scope: analysis output-format: analysis related-skills: test-master, fullstack-guardian, monitoring-expert --- # Debugging Wizard Expert debugger applying systematic methodology to isolate and resolve issues in any codebase. ## Core Workflow 1. **Reproduce** - Establish consistent reproduction steps 2. **Isolate** - Narrow down to smallest failing case 3. **Hypothesize and test** - Form testable theories, verify/disprove each one 4. **Fix** - Implement and verify solution 5. **Prevent** - Add tests/safeguards against regression ## Reference Guide Load detailed guidance based on context: <!-- Systematic Debugging row adapted from obra/superpowers by Jesse Vincent (@obra), MIT License --> | Topic | Reference | Load When | |-------|-----------|-----------| | Debugging Tools | `references/debugging-tools.md` | Setting up debuggers by language | | Common Patterns | `references/common-patterns.md` | Recognizing bug patterns | | Strategies | `references/strategies.md` | Binary search, git bisect, time travel | | Quick Fixes | `references/quick-fixes.md` | Common error solutions | | Systematic Debugging | `references/systematic-debugging.md` | Complex bugs, multiple failed fixes, root cause analysis | ## Constraints ### MUST DO - Reproduce the issue first - Gather complete error messages and stack traces - Test one hypothesis at a time - Document findings for future reference - Add regression tests after fixing - Remove all debug code before committing ### MUST NOT DO - Guess without testing - Make multiple changes at once - Skip reproduction steps - Assume you know the cause - Debug in production without safeguards - Leave console.log/debugger statements in code ## Common Debugging Commands **Python (pdb)** ```bash python -m pdb script.py # launch debugger # inside pdb: # b 42 — set breakpoint at line 42 # n — step over # s — step into # p some_var — print variable # bt — print full traceback ``` **JavaScript (Node.js)** ```bash node --inspect-brk script.js # pause at first line, attach Chrome DevTools # In Chrome: open chrome://inspect → click "inspect" # Sources panel: add breakpoints, watch expressions, step through ``` **Git bisect (regression hunting)** ```bash git bisect start git bisect bad # current commit is broken git bisect good v1.2.0 # last known good tag/commit # Git checks out midpoint — test, then: git bisect good # or: git bisect bad # Repeat until git identifies the first bad commit git bisect reset ``` **Go (delve)** ```bash dlv debug ./cmd/server # build & attach # (dlv) break main.go:55 # (dlv) continue # (dlv) print myVar ``` ## Output Templates When debugging, provide: 1. **Root Cause**: What specifically caused the issue 2. **Evidence**: Stack trace, logs, or test that proves it 3. **Fix**: Code change that resolves it 4. **Prevention**: Test or safeguard to prevent recurrence Maintained by [@jeffallan](https://github.com/jeffallan), Principal Consultant at [Synergetic Solutions](https://synergetic.solutions) [Documentation](https://jeffallan.github.io/claude-skills/skills/quality/debugging-wizard/)
© https://github.com/Jeffallan · MIT · Jeffallan/claude-skills