debug
Skill0 starsChanged 2 months agoMITView on GitHub
Run /debug when something fails or behaves wrong: a failing test, a bug report, a /verify failure. Reproduces first, fixes the cause minimally, leaves a regression test. No features, no refactors.
144 other projects use a version of this.
Adopted by
Most recently taken up by
- AllThingsSmitty/proven-skillstheir own version, first seen Oct 6, 2026
- prathish-ks/isthmustheir own version, first seen Oct 6, 2026
- muon-m2/magento2-toolstheir own version, first seen Oct 4, 2026
- andeeplus/aplustheir own version, first seen Oct 4, 2026
- nanocoai/nanoclawtheir own version, first seen Oct 4, 2026
- agentic-community/mcp-gateway-registrytheir own version, first seen Oct 4, 2026
Used with
Projects with it also use add-ollama-tool, 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-ollama-tool
Add Ollama MCP server so the container agent can call local models and optionally manage the Ollama model library.
Also in 6 projects that use this
MicrosoftSkilladd-slack
Add Slack channel integration via Chat SDK.
Also in 6 projects that use this
sskarzSkilladd-telegram-swarm
Add Agent Swarm (Teams) support to Telegram. Each subagent gets its own bot identity in the group. Requires Telegram channel to be set up first (use /add-telegram). Triggers on "agent swarm", "agent teams telegram", "telegram swarm", "bot pool".
Also in 5 projects that use this
- +9 more from microsoft
Other versions144 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 144
- Yeachan-Heo/oh-my-claudecode★ 40ksame name
- nanocoai/nanoclaw★ 31ksame name
- openai/symphony★ 28ksame name
- anthropics/knowledge-work-plugins★ 26ksame name
- NVIDIA/Model-Optimizer★ 5.2ksame name
- parcadei/Continuous-Claude-v3★ 3.9ksame name
- jsmastery-pro/skills★ 1.4ksame name
- agentic-community/mcp-gateway-registry★ 956same name
- suboss87/FDEOps★ 950same name
- kdlbs/kandev★ 899same name
134 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.
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 15 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 127 edited versions we read keep these.
15
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Never skip reproduce. Never skip verify.
- Distinctive: line 31
Never fixes the symptom when the cause is reachable: If the cause is out of scope or would take a redesign, say that explicitly, make the …
- Distinctive: line 34
Never refactors: Not the function, not the file, not the "while I am here".
- Distinctive: line 36
Never changes a test to make it pass: If a test is genuinely wrong, that is a finding to raise, not a line to edit quietly.
- Distinctive: line 51
Before reading any code. This is the step people skip, and skipping it is why debugging takes all afternoon.
- Distinctive: line 56
Run it and see it fail with your own eyes.
- Distinctive: line 57
Write down what "failing" looks like precisely, because that is the thing you will check against at the end.
- Distinctive: line 63
Cannot reproduce?: Stop. Report what you tried, what you observed instead, and exactly what you need: the version, the data, the …
- Distinctive: line 71
Read the stack trace properly, including the frames that are not yours.
- Distinctive: line 76
Check the obvious environmental causes before the clever ones: a stale build, a missing migration, a cached dependency, an environment …
- Distinctive: line 79
Read the code around the failure.
- Very specific: line 102
If the correct behavior is genuinely ambiguous, that is a decision, not a bug.
- Distinctive: line 104
If the cause is in a spec's design rather than the code, say so.
- Distinctive: line 109
Run the exact thing from Step 1.
- Distinctive: line 118
Write a test that fails before the fix and passes after.
- Distinctive: line 123
If a test is genuinely impossible here (a timing bug, an external service), say so and say what would need to change to make it testable.
- Very specific: line 126
Follow develop/test-guide.md for style, and AGENTS.md for where tests live.
“Common” is measured: kept by at least 6 in 10 of the 127 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
What this skill does
Finds why something is broken, fixes that, and nothing else.
Debugging goes wrong in two predictable ways. The first is fixing the symptom: the error stops appearing, the cause is still there, and it comes back somewhere less convenient. The second is the fix that grows: while in the file, three other things get tidied, and now the change cannot be reviewed or reverted.
This skill is a loop with a hard edge around it.
The loop
reproduce → localize → hypothesise → test the hypothesis → fix → verify → regression testNever skip reproduce. Never skip verify.
What this skill refuses to do
- Never fixes what it has not reproduced. A fix for a bug you have not seen is a guess wearing a commit message. If it cannot be reproduced, say so and go no further; the report is what you learned and what you still need.
- Never fixes the symptom when the cause is reachable. If the cause is out of scope or would take a redesign, say that explicitly, make the smallest safe containment, and put the real cause in the report. Never let a symptom fix pass as a resolution.
- Never refactors. Not the function, not the file, not the "while I am here". A bug fix diff should be small enough to review in a minute. Improvements go in the report.
- Never changes a test to make it pass. If a test is genuinely wrong, that is a finding to raise, not a line to edit quietly. A weakened assertion converts a real signal into a false one permanently.
- Never fixes a second bug silently. Found another one? Name it in the report, and ask whether to fix it now or enroll it on the scope. One bug, one fix, one diff.
- Never claims fixed without re-running the reproduction. "Should be fixed" is not a result.
- Never invents a business rule to resolve ambiguity about what the correct behavior
is. Ask. See
develop/SKILL.md. - Never runs a command the boundary blocks. Hands it over. See
_shared/boundaries.md.
Execution
Step 1: Reproduce it
Before reading any code. This is the step people skip, and skipping it is why debugging takes all afternoon.
- Get the exact failure: the error, the stack trace, the wrong output, the screenshot.
- Find the smallest reliable way to trigger it: a test, a request, a sequence of clicks.
- Run it and see it fail with your own eyes.
- Write down what "failing" looks like precisely, because that is the thing you will check against at the end.
Intermittent? Run it enough times to know the rate. A bug that reproduces one time in five is a concurrency, ordering or state leak problem, and that is already a strong clue.
Cannot reproduce? Stop. Report what you tried, what you observed instead, and exactly what you need: the version, the data, the environment, the steps. Do not start changing code to see what happens.
Step 2: Localize by evidence
Narrow where the fault is, without guessing.
- Read the stack trace properly, including the frames that are not yours.
- Find the boundary: where is the data still right, and where is it first wrong? Print, log or breakpoint on both sides of the suspect region and move the boundary inward.
git logandgit diffthe region. Did this ever work?git bisectif the answer is yes and the range is unclear. Knowing the commit that broke it usually ends the search.- Check the obvious environmental causes before the clever ones: a stale build, a missing migration, a cached dependency, an environment variable, the wrong branch.
Read the code around the failure. Do not read the whole codebase; you have a boundary now.
Step 3: One hypothesis at a time
State it before testing it, in a form that can be wrong:
I think the total is wrong because the discount is applied before tax rather than after. If that is right, an order with no discount will be correct and one with a discount will be off by exactly the tax on the discount.
Then test that prediction. A hypothesis that cannot fail is not a hypothesis.
Change one thing at a time. Changing three and seeing the error disappear tells you nothing about which one mattered, and usually leaves two unnecessary changes in the diff.
After three failed hypotheses, stop and reconsider. The assumption that is wrong is usually one you have not questioned: that the code being run is the code you are reading, that the data is what you think, that the failure is where the error message says.
Step 4: Fix the cause, minimally
- Fix where the fault is, not where it surfaced.
- The smallest change that removes the cause. Nothing else in the diff.
- If the correct behavior is genuinely ambiguous, that is a decision, not a bug. Ask, or
route to
/architectif it is load bearing. - If the cause is in a spec's design rather than the code, say so. The fix is a decision, and patching around it makes the code and the spec disagree.
Step 5: Verify against the original reproduction
Run the exact thing from Step 1. It must now pass.
Then run the surrounding tests and the build. A fix that breaks something else is not done.
State both results plainly. If the reproduction still fails, the fix is wrong: say so rather than adjusting what you are checking.
Step 6: Leave a regression test
Write a test that fails before the fix and passes after. This is the only kind of test whose value is certain, because the failure has already happened once.
Name it for what broke: applies discount after tax, not test bug 402.
If a test is genuinely impossible here (a timing bug, an external service), say so and say what would need to change to make it testable.
Follow develop/test-guide.md for style, and AGENTS.md for where tests live.
Step 7: Report
## /debug · <the symptom, one line>
**Cause: <the actual cause, one line>.** Fixed in <file>:<line>.
Reproduced by: <the smallest reliable trigger>
Why it happened: <the mechanism, two lines at most>
Fix: <what changed, and why this is the cause and not the symptom>
Verified: reproduction now passes · <N> tests pass · build <passes | fails>
Regression test: <name and path> (or why one is not possible)
Also found: <other bugs or real problems, not fixed> (omit if none)
Not fixed: <anything left, and why> (omit if none)Why it happened is the most valuable line for the next person, including you in three
months. Write the mechanism, not the fix.
When it is not a bug
Sometimes the code is doing what it was told and the instruction is wrong. Say which:
- The spec is wrong →
/architectrevisits the decision. Do not patch the code to contradict its own spec. - The requirement was never decided → this is the gate, not a bug. Ask.
- It works as designed and the design is surprising → not a bug. Report it as a finding and let the engineer decide whether to change the design.
Reporting "this is not a bug" with evidence is a good outcome. Fixing something that was not broken is not.
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.

