agentleFS
89jobrien89jobrien/godmode/skills/systematic-debugging/SKILL.md

godmode:systematic-debugging

Skill1 starsChanged 56 days agoMITView on GitHub

Use when encountering any bug, test failure, panic, unexpected behavior, flaky test, or performance regression — before proposing any fix. Triggers on error output, failing tests, "why is X not working", "this is broken", "this is flaky", "this got slower", or any symptom description.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Rule zero: No fix without a root cause.

    line 14
  2. Distinctive:

    Rule zero-prime: No hypothesis without a loop.

    line 17
  3. Distinctive:

    Read the file named in a row before doing the work in that phase.

    line 24
  4. Distinctive:

    If 3 sequential fix attempts all fail, stop.

    line 38
  5. Very specific:

    Use unwrap() to "fix" an error — propagate it properly

    line 48

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

Systematic Debugging

Rule zero: No fix without a root cause. Symptom patches that mask underlying problems are not fixes.

Rule zero-prime: No hypothesis without a loop. If you cannot trigger the bug on demand, you cannot test any theory about it.

Skip phases only when you can state the justification out loud.

Phases

Read the file named in a row before doing the work in that phase. These files are not loaded automatically.

FileRead before
references/phase-0-feedback-loop.mdstarting any debugging task, or building the loop that reproduces the bug
references/phase-0-loop-iteration-and-fallbacks.mdtuning a slow feedback loop, reproducing a non-deterministic bug, or when no loop can be built
references/phase-1-2-reproduce-locate.mdconfirming a bug reproduces (Phase 1), or tracing it to a root cause (Phase 2)
references/phase-3-4-hypotheses-instrument.mdranking hypotheses (Phase 3), or adding probes or measuring a performance regression (Phase 4)
references/phase-5-6-fix-cleanup.mdwriting the regression test and fix (Phase 5), or closing out a debugging task (Phase 6)
references/rust-specific-checklist.mddebugging a panic, borrow or lifetime error, async failure, cross-crate failure, or flaky Rust test

3-Failure Rule

If 3 sequential fix attempts all fail, stop. The architecture likely has a deeper problem. Surface it to the user rather than continuing to patch.

Never

  • Apply a fix before identifying root cause
  • Form a hypothesis before you have a loop that triggers the bug
  • Log without a [DEBUG- tag
  • Stack multiple fixes in one commit
  • Suppress compiler warnings to make a test pass
  • Use unwrap() to "fix" an error — propagate it properly

Additional Resources

  • references/rust-debug-checklist.md — environment checks, backtrace commands, async/lifetime failure patterns
  • references/feedback-loops.md — concrete loop recipes per bug class, plus the perf and bisection harnesses
  • helpers/repro-template.md — bug reproduction record to fill in during Phase 1
  • helpers/debug-session.nu — scripted Phase 1 capture (git diff + taskit test run)

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.