debug
Skill2 starsChanged 3 months agoMITView on GitHub
Systematic debugging when a failure's cause is unknown: reproduce first, isolate, fix the root cause once, prove it with a regression test. Use when a bug, crash, failing test or wrong output has no obvious cause, when a fix attempt did not work, or before claiming a stubborn bug fixed. For production incidents: stabilize first per `maintain`, then run this loop.
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.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architectSkill
- beginSkill
- calibrateSkill
- checkpointSkill
- code-reviewSkill
- complySkill
- critical-thinkingSkill
- deliverSkill
- design-guardSkill
- designSkill
- handoverSkill
- ingestSkill
- maintainSkill
- scope-guardSkill
- scopeSkill
- skill-authorSkill
- specSkill
- stackSkill
- verifySkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 127 edited versions we read keep these.
1
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 38
When the stack file's header declares a hosted platform, steps 2 and 3 keep their intent and change their instrument.
“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
debug: from symptom to proven root cause
A fix you never saw fail is a guess (verify). This loop turns an unknown failure into a
proven fix at the lowest cost. Production incident? Stabilize first per maintain (rollback
beats diagnosis under fire), then run this loop calmly.
The loop
- Read the actual error. The message, the stack, the failing line. Capture expected vs actual behavior verbatim before touching anything: the error usually says more than the first theory about it.
- Reproduce before fixing. A failing automated test at the nearest seam is the goal; a minimal script is the fallback. Shrink the repro until removing anything makes the bug disappear. What you cannot reproduce you cannot fix, only disturb.
- Check what changed. Most bugs live in the newest diff: recent commits, dependency
bumps, config or environment changes.
git bisectbeats rereading the whole system. - Hypothesize, test one change at a time. Rank hypotheses by likelihood and cost of testing; each experiment changes exactly one thing and names its predicted outcome before running. Two simultaneous changes make the result unreadable. Read the evidence at arm's length: a failing suite or a log enters the context as its failures and counts (tail, grep, or a subagent), never whole, or the third experiment runs in a context the first two filled. Expect horses, not zebras: the common cause outranks the exotic one until evidence says otherwise.
- Fix the root cause, once. The fix goes where the cause lives, not where the symptom showed (decision ladder: understand, then fix the cause once). A symptom patch that leaves the cause in place is not progress, and per debug hygiene a change that demonstrably fixed nothing gets reverted, not left in.
- Prove and clean. The repro test passes and stays as the regression test; every debug shim (prints, sleeps, forced branches, commented-out calls) is removed; the full gate chain runs green.
On a platform stack
When the stack file's header declares a hosted platform, steps 2 and 3 keep their intent and change their instrument; the rest of the loop is unchanged. Reproduce in a real dev environment, against the platform's own record of the failure - run history, execution logs, the audit trail - and with its test tooling where the platform has any. For what changed, the platform keeps its own history: solution layers and version history, the audit log of who edited what, and the vendor's release notes for the change nobody in the project made. That is the bisect equivalent, and it reaches one thing bisect cannot - an edit made directly in the platform editor that never became a commit.
Record
A non-obvious cause is lesson material: one gotcha line in STATE.md's log, so the next
session skips the dead end. For production incidents, the ten-line post-mortem belongs to
maintain. ⚓
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.

