agentleFS
belentani7belentani7/claude-skills-pack/skills/debugging-wizard/SKILL.md

debugging-wizard

Skill0 starsChanged 3 months agoMITView on GitHub

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.

15 other projects use a version of this, 15 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. 7 are common, 0 are distinctive, and 0 are very specific to this project.

  • 7

    Common

    Most of the 15 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Common:

    Prevent: - Add tests/safeguards against regression

    line 27
  2. Common:

    Prevention: Test or safeguard to prevent recurrence

    line 61
  3. Common:

    Test one hypothesis at a time

    line 68
  4. Common:

    Document findings for future reference

    line 69
  5. Common:

    Add regression tests after fixing

    line 70
  6. Common:

    Remove all debug code before committing

    line 71
  7. Common:

    Leave console.log/debugger statements in code

    line 78

“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

Common Debugging Commands

Python (pdb)

python -m pdb script.py
# b 42  — set breakpoint at line 42
# n     — step over
# s     — step into
# p var — print variable
# bt    — print full traceback

JavaScript (Node.js)

node --inspect-brk script.js
# In Chrome: open chrome://inspect

Git bisect (regression hunting)

git bisect start
git bisect bad
git bisect good v1.2.0
# Test, then: git bisect good / git bisect bad
git bisect reset

Output Templates

  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

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
  • Leave console.log/debugger statements in code

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.