debug
Skill3 starsChanged 18 days agoApache-2.0View on GitHub
Use when facing a bug, failing test, error message, crash, flaky or slow behavior, or anything that works differently than expected, before proposing or making any fix.
192 other projects use a version of this.
Adopted by
Most recently taken up by
- jskswamy/skillstheir own version, first seen Nov 8, 2026
- Firzus/agent-skillstheir own version, first seen Nov 8, 2026
- domengabrovsek/agent-configtheir own version, first seen Nov 8, 2026
- domengabrovsek/claudetheir own version, first seen Nov 8, 2026
- microsoft/veronatheir own version, first seen Nov 8, 2026
- nisarth/claude-skills-storetheir own version, first seen Nov 8, 2026
Used with
Projects with it also use add-discord, add-slack 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.
MicrosoftSkilladd-discord
Add Discord bot channel integration via Chat SDK.
Also in 11 projects that use this
MicrosoftSkilladd-slack
Add Slack channel integration via Chat SDK.
Also in 11 projects that use this
- +10 more from microsoft
Other versions192 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 192
- Yeachan-Heo/oh-my-claude-sisyphus★ 41ksame name
- Yeachan-Heo/oh-my-claudecode★ 41ksame name
- anthropics/knowledge-work-plugins★ 35ksame name
- gavrielc/nanoclaw★ 31ksame name
- nanocoai/nanoclaw★ 31ksame name
- qwibitai/nanoclaw★ 31ksame name
- openai/symphony★ 27ksame name
- FalkorDB/FalkorDB★ 10ksame name
- NVIDIA/TensorRT-Model-Optimizer★ 5.6ksame name
- NVIDIA/Model-Optimizer★ 5.6ksame name
182 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 repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- clarifySkill
- code-reviewSkill
- designSkill
- exam-prepSkill
- fresh-eyesSkill
- music-studioSkill
- nutshellSkill
- planSkill
- repo-mapSkill
- shipSkill
- simplifySkill
- specSkill
- tddSkill
- verifySkill
- writing-skillsSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 175 edited versions we read keep these.
6
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
- Distinctive: line 14
Iron law: No hypothesis before you have a command that goes red on this bug.
- Distinctive: line 39
No loop possible?: Stop. List what you tried and ask for access to an environment that reproduces it, a redacted artifact (log, HAR, dump), …
- Distinctive: line 43
Remove inputs, config, data, and steps one at a time, re-running each time, until every remaining piece is needed to stay red.
- Distinctive: line 46
Write each as a prediction: "If X is the cause, changing Y makes the bug disappear."
- Distinctive: line 47
Check what changed recently: git log, dependency bumps, config, data.
- Distinctive: line 51
Prefer a debugger or REPL.
“Common” is measured: kept by at least 6 in 10 of the 175 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
Systematic debugging
Iron law: No hypothesis before you have a command that goes red on this bug. No fix before a confirmed root cause.
Reading code to build a theory before you can reproduce the bug is the failure this skill exists to prevent.
Phase 1 — Build the feedback loop (most of the work)
Get one command you have actually run that:
- goes red on the user's exact symptom (their error, their wrong output), not merely "runs";
- gives the same verdict every run (flaky bugs: a pinned, high failure rate);
- finishes in seconds and runs unattended.
Ways to get one, roughly in this order:
- A failing test at the seam that reaches the bug (unit, integration, e2e)
- A CLI run on a fixture input, diffed against known-good output
- A curl / HTTP script against a running dev server
- A headless-browser script asserting on DOM, console, or network
- Replaying a captured request, payload, or log through the code path
- A throwaway harness that calls the failing path directly with stubs
- A random-input loop for "sometimes wrong" bugs
git bisect run <check>when it worked at some earlier commit- Old-vs-new (or config A vs B) on the same input, diffing outputs
Then tighten it: cut setup time, assert on the specific symptom, pin time, random seeds, and network.
Flaky bugs: loop the trigger 100×, in parallel, under load, until the failure rate is high enough to debug against.
No loop possible? Stop. List what you tried and ask for access to an environment that reproduces it, a redacted artifact (log, HAR, dump), or permission for temporary instrumentation.
Phase 2 — Reproduce and minimise
- Confirm the loop shows the user's failure, not a different one nearby. Wrong bug, wrong fix.
- Remove inputs, config, data, and steps one at a time, re-running each time, until every remaining piece is needed to stay red.
Phase 3 — Hypothesise: 3–5, ranked
- Write each as a prediction: "If X is the cause, changing Y makes the bug disappear."
- Check what changed recently:
git log, dependency bumps, config, data. - Show the ranked list to the user; they may rule some out instantly. Do not wait if they are away.
Phase 4 — Test one variable at a time
- Prefer a debugger or REPL; otherwise targeted logs at the boundary that separates two hypotheses. Never "log everything".
- Tag every temporary log with one prefix, e.g.
[DEBUG-7f3a], so cleanup is a single grep. - Performance bugs: measure a baseline first (timer, profiler, query plan), then bisect. Logs are the wrong tool.
Phase 5 — Fix with a regression test
- Turn the minimised repro into a failing test at a seam that exercises the real call pattern. If no honest seam exists, say so: that is a design finding (
design), not something to paper over with a shallow test. - Watch it fail. If you forced the red by editing code or a fixture, diff against a clean copy to prove the edit landed.
- Fix at the source, not where the symptom shows.
- Watch it pass, then re-run the Phase 1 loop on the original, unminimised scenario.
Stop rule
Three failed fixes → stop. Your model of the system is wrong. Re-read the code, question the design, and report what you know so far.
Rules
- Redact secrets in every command and output you show:
<REDACTED>. - Change one thing per experiment; revert experiments that disproved their hypothesis.
Rationalizations to reject
| Excuse | Answer |
| "I can see the bug from reading the code" | Then the loop takes a minute to write, and it proves you right. |
| "Add a try/catch so it stops crashing" | That hides the bug. Find why it throws. |
| "It's flaky, just retry" | Flakiness has a cause: timing, shared state, ordering. Raise the failure rate and find it. |
| "Several changes at once will be faster" | Then you will not know which one mattered. |
Done when
- Root cause stated in one sentence, and written into the commit message
- The Phase 1 loop no longer reproduces the original scenario
- Regression test passes, or the missing seam is reported
grepfor the debug tag finds nothing; throwaway files removed
Related: tdd, verify, design.
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.

