debug
Skill3 starsChanged 2 months agoMITView on GitHub
Use when hitting a bug, a test or CI failure, unexpected behavior, or when about to claim something is fixed and the root cause is not yet proven with evidence.
190 other projects use a version of this.
Adopted by
Most recently taken up by
- sentimony/skillstheir own version, first seen Nov 29, 2026
- ByronFinn/dev-skillstheir own version, first seen Nov 29, 2026
- Rune-kit/runetheir own version, first seen Nov 29, 2026
- Bazza1982/HASHItheir own version, first seen Nov 29, 2026
- alexcollins/skillstheir own version, first seen Nov 29, 2026
- Sagargupta16/craftsmanshiptheir own version, first seen Nov 29, 2026
Used with
Projects with it also use update-nanoclaw, add-atomic-chat-tool and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillupdate-nanoclaw
Efficiently bring upstream NanoClaw updates into a customized install, with preview, selective cherry-pick, and low token usage.
Also in 9 projects that use this
MicrosoftSkilladd-atomic-chat-tool
Add Atomic Chat MCP server so the container agent can call local models served by the Atomic Chat desktop app via its OpenAI-compatible API.
Also in 8 projects that use this
- +10 more from microsoft
Other versions190 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 190
- Yeachan-Heo/oh-my-claude-sisyphus★ 41ksame name
- Yeachan-Heo/oh-my-claudecode★ 41ksame name
- anthropics/knowledge-work-plugins★ 37ksame name
- nanocoai/nanoclaw★ 31ksame name
- gavrielc/nanoclaw★ 31ksame name
- qwibitai/nanoclaw★ 31ksame name
- openai/symphony★ 27ksame name
- FalkorDB/FalkorDB★ 11ksame name
- NVIDIA/TensorRT-Model-Optimizer★ 5.7ksame name
- NVIDIA/Model-Optimizer★ 5.7ksame name
180 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- commit-and-pushSkill
- exploreSkill
- grillSkill
- issueSkill
- reviewSkill
- solidSkill
- tddSkill
- test-designSkill
- using-creedSkill
- write-planSkill
- write-specSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 9 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 176 edited versions we read keep these.
9
Distinctive
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 22
Before claiming "done" / "passing" / "fixed"
- Distinctive: line 39
Read the full error / stack / logs (don't skim)
- Distinctive: line 41
Check recent changes (git diff, commits, config, env)
- Distinctive: line 45
Create todos for these steps.
- Distinctive: line 57
If wrong → new hypothesis (don't stack random changes)
- Very specific: line 68
Before saying fixed/passing/done/complete:
- Distinctive: line 71
RUN it fresh (full command)
- Distinctive: line 72
READ exit code and failures
- Distinctive: line 73
ONLY THEN claim, with the evidence
- Distinctive: line 98
Commit/PR of a fix without fresh test/symptom proof
“Common” is measured: kept by at least 6 in 10 of the 176 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.
Files
Debug
Output language: answer and write artifacts in the user's own language (match their messages, not the repo's history).
Overview
Fuses systematic root-cause debugging with verification-before-completion.
Core principle: evidence before fixes; evidence before "fixed" claims.
Announce: "Using debug to …"
When to Use
- Any bug, flaky test, build/CI failure, unexpected behavior, performance mystery
- Especially under time pressure ("just one quick fix")
- Before claiming "done" / "passing" / "fixed"
When NOT to use: pure greenfield feature with no failure (use grill / write-spec / write-plan / tdd).
The Iron Law
1. NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST.
2. NO "FIXED" / "PASSING" / "DONE" CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE IN THIS TURN.Violating the letter is violating the spirit.
Workflow (phases — do in order)
Phase 1 — Investigate (no fix yet)
- Read the full error / stack / logs (don't skim)
- Reproduce consistently — if you can't, gather data, don't guess
- Check recent changes (
git diff, commits, config, env) - Multi-component systems: instrument boundaries (in → out) to see where it breaks
- Trace bad values backward to the source; plan to fix at source
Create todos for these steps; do not edit production logic until Phase 1 has a stated root cause.
Phase 2 — Pattern
- Find a working similar path in-repo
- Diff working vs broken; list every difference
- Note dependencies / assumptions
Phase 3 — Hypothesis
- One hypothesis: "X is root cause because Y"
- Design the smallest test/probe that would falsify it
- If wrong → new hypothesis (don't stack random changes)
Phase 4 — Fix via TDD
- tdd + test-design: write a failing regression that locks the bug
- Watch RED for the right reason
- Minimal fix → GREEN
- Verify (below) before any success language
Phase 5 — Verify before claims (mandatory)
Before saying fixed/passing/done/complete:
- IDENTIFY the command that proves the claim
- RUN it fresh (full command)
- READ exit code and failures
- ONLY THEN claim, with the evidence
| Claim | Requires |
| Tests pass | Test run output, 0 failures |
| Bug fixed | Original symptom re-tested + regression green |
| Build OK | Build exit 0 |
| Requirements met | Checklist against plan/spec |
Red-green proof for the regression: fail without fix → pass with fix (mentally or actually revert-check when feasible).
Rationalization Table
| Excuse | Reality |
| "Obvious one-liner" | Still need cause + regression test. |
| "Should work now" | RUN verification. |
| "I'm confident / tired" | Confidence ≠ evidence. |
| "Logged something, good enough" | Boundary evidence must show where. |
| "Fix first, understand later" | That's how you get two bugs. |
Red Flags — STOP
- Proposing a fix before stating root cause
- "Should", "probably", "seems" success wording
- Commit/PR of a fix without fresh test/symptom proof
- Shotgun changes across unrelated files
- Skipping the failing regression test
Checklist
- Root cause stated with evidence
- Failing regression (tdd) observed RED then GREEN
- Fresh verification command run this turn
- Claim includes that evidence
- No unrelated drive-by edits
Hand-off
Transition gate — before the fix ships, ask the user (one AskUserQuestion; never auto-advance):
A) Recommended: Proceed → review (then commit-and-push)
B) Review first — run **review** on the fix (`references/code.md`; upstream = the failing repro), then return to this gate
C) Adjust — back into debug for the un-locked edge, then return to this gate
D) Something else (I will type it)- Structure was the cause → solid
- Ship the fix → review + commit-and-push
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.

