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.
In this repository78 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- godmode:agent-governanceSkill
- godmode:agent-improvement-loopSkill
- agents-skill-saveSkill
- baml-add-typesSkill
- godmode:brainstormSkill
- godmode:capSkill
- godmode:changelogSkill
- godmode:ci-fixSkill
- godmode:code-reviewSkill
- godmode:context-mapSkill
- godmode:cross-issueSkill
- godmode:crs-discoverSkill
- godmode:crs-hook-testingSkill
- godmode:crs-installSkill
- godmode:crs-ledger-applySkill
- godmode:crs-ledger-diffSkill
- godmode:crs-propose-rulesSkill
- godmode:crs-validateSkill
- godmode:dead-codeSkill
- godmode:decomposeSkill
- godmode:dep-auditSkill
- godmode:dep-bumpSkill
- godmode:designSkill
- devloop-session-primerSkill
- godmode:dialecticSkill
- godmode:doc-maintainerSkill
- godmode:doc-reviewSkill
- godmode:doc-syncSkill
- godmode:doc-writerSkill
- doob-db-inspectorSkill
- doob-release-managerSkill
- godmode:doublecheckSkill
- dual-forge-pr-mergeSkill
- gh-bulk-issuesSkill
- godmode:health-scoreSkill
- godmode:ingestSkill
- godmode:introspectionSkill
- godmode:issue-triageSkill
- godmode:memory-bankingSkill
- godmode:mergeSkill
- godmode:mini-context-graphSkill
- godmode:mistake-trackerSkill
- godmode:moaSkill
- notfiles-release-workflowSkill
- godmode:observability-as-infrastructureSkill
- godmode:parallel-agentsSkill
- godmode:pattern-learnerSkill
- planning-with-cruxSkill
- godmode:pr-authorSkill
- godmode:receiving-reviewSkill
- godmode:refactoringSkill
- godmode:release-notesSkill
- release-readiness-checkSkill
- remote-upstream-triageSkill
- repo-gap-backlogSkill
- godmode:rust-conventionsSkill
- rustqualSkill
- rustqual-workspaceSkill
- rust-release-workflow-authorSkill
- The first 60 shown.
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
- Distinctive: line 14
Rule zero: No fix without a root cause.
- Distinctive: line 17
Rule zero-prime: No hypothesis without a loop.
- Distinctive: line 24
Read the file named in a row before doing the work in that phase.
- Distinctive: line 38
If 3 sequential fix attempts all fail, stop.
- Very specific: line 48
Use unwrap() to "fix" an error — propagate it properly
≈ “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.
Files
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.
| File | Read before |
references/phase-0-feedback-loop.md | starting any debugging task, or building the loop that reproduces the bug |
references/phase-0-loop-iteration-and-fallbacks.md | tuning a slow feedback loop, reproducing a non-deterministic bug, or when no loop can be built |
references/phase-1-2-reproduce-locate.md | confirming a bug reproduces (Phase 1), or tracing it to a root cause (Phase 2) |
references/phase-3-4-hypotheses-instrument.md | ranking hypotheses (Phase 3), or adding probes or measuring a performance regression (Phase 4) |
references/phase-5-6-fix-cleanup.md | writing the regression test and fix (Phase 5), or closing out a debugging task (Phase 6) |
references/rust-specific-checklist.md | debugging 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 patternsreferences/feedback-loops.md— concrete loop recipes per bug class, plus the perf and bisection harnesseshelpers/repro-template.md— bug reproduction record to fill in during Phase 1helpers/debug-session.nu— scripted Phase 1 capture (git diff +taskit test run)
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
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.

