debug
Skill4 starsChanged 8 months agoMITView on GitHub
Use when facing a bug, test failure, or unexpected behavior that isn't immediately obvious
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 repository24 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- auto-runSkill
- benchmarkSkill
- claudemd-auditSkill
- deep-planSkill
- design-shotgunSkill
- dispatchSkill
- finish-taskSkill
- humanizerSkill
- milestone-reviewSkill
- multi-reviewSkill
- orientSkill
- plan-design-reviewSkill
- plan-eng-reviewSkill
- product-reviewSkill
- qaSkill
- reconcile-summarySkill
- retroSkill
- specSkill
- start-taskSkill
- summarize-sessionSkill
- verifySkill
- writing-skillsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. 0 are common, 18 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 127 edited versions we read keep these.
18
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 9
Iron Law: NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST.
- Distinctive: line 15
If you can't reproduce it, you can't fix it
- Distinctive: line 20
Before forming hypotheses, collect facts:
- Distinctive: line 22
Read the actual code path from input to failure point.
- Very specific: line 23
Check recent changes: git log --oneline -10 -- <file>
- Distinctive: line 24
Add temporary logging or assertions at key points to trace data flow
- Distinctive: line 26
If a stack trace exists, trace backward through the call chain to the origin
- Distinctive: line 40
If the bug matches a known pattern, state which one and focus investigation there.
- Distinctive: line 46
Test one variable at a time
- Distinctive: line 47
If your prediction is wrong, update your mental model — don't just try the next thing
- Distinctive: line 56
Keep asking why until you reach something you can fix directly.
- Distinctive: line 62
Keep the diff minimal — only change what's needed to fix the bug
- Distinctive: line 63
Run the original failing test to confirm the fix
- Distinctive: line 64
Run the full test suite to check for regressions
- Distinctive: line 68
If 3 hypotheses have failed, STOP.
- Distinctive: line 72
Use AskUserQuestion to escalate: describe what you've tried, what you've ruled out, and where you're stuck
- Distinctive: line 79
If you catch yourself thinking any of these, STOP:
- Distinctive: line 98
After resolution, output a structured report:
- Distinctive: line 119
If the root cause was non-obvious, save debugging insights to auto-memory.
“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
Systematic Debugging
Iron Law: NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST.
Phase 1: Reproduce & Isolate
- Reproduce the failure reliably before anything else
- Isolate the smallest failing case
- If you can't reproduce it, you can't fix it
- Record the exact command, input, and output that demonstrates the failure
Phase 2: Gather Evidence
Before forming hypotheses, collect facts:
- Read the actual code path from input to failure point. Don't guess from memory.
- Check recent changes:
git log --oneline -10 -- <file> - Add temporary logging or assertions at key points to trace data flow
- Collect the full error message, stack trace, and relevant log output
- If a stack trace exists, trace backward through the call chain to the origin
Known bug patterns — check these first:
| Pattern | Signature |
| Race condition | Intermittent failure, timing-dependent, works in debugger |
| Nil/null propagation | undefined is not a function, NoMethodError, NoneType |
| State corruption | Works first time, fails on second; stale data after mutation |
| Integration failure | Works in isolation, fails with real dependency (DB, API, queue) |
| Configuration drift | Works locally, fails in CI/staging; env var mismatch |
| Stale cache | Old behavior persists after code change; hard refresh fixes it |
| Off-by-one / boundary | Fails at 0, 1, max, or empty input; pagination edge cases |
If the bug matches a known pattern, state which one and focus investigation there.
Phase 3: Hypothesize & Test
- Form a specific hypothesis: "The root cause is X because evidence Y"
- Predict the outcome BEFORE running each test
- Test one variable at a time
- If your prediction is wrong, update your mental model — don't just try the next thing
"5 Whys" drill-down — when the cause isn't obvious, ask why iteratively:
- Why did the request fail? → The handler returned null
- Why did it return null? → The query returned no rows
- Why did the query return no rows? → The ID was from a different tenant
- Why was the ID from a different tenant? → The session wasn't scoped to tenant
- Why wasn't the session scoped? → Root cause: middleware ordering
Keep asking why until you reach something you can fix directly.
Phase 4: Fix & Verify
- Write a regression test that fails without the fix and passes with it. This is not optional.
- Fix the root cause, not the symptom
- Keep the diff minimal — only change what's needed to fix the bug
- Run the original failing test to confirm the fix
- Run the full test suite to check for regressions
Three-Strikes Rule
If 3 hypotheses have failed, STOP. You are likely wrong about the root cause.
- Go back to Phase 2 and re-read the code path from scratch
- Question your assumptions about the architecture
- Use AskUserQuestion to escalate: describe what you've tried, what you've ruled out, and where you're stuck
- Optionally WebSearch for the error message or pattern — someone may have hit this before
Escalation is not failure. Bad work is worse than no work. Stop guessing.
Red Flags
If you catch yourself thinking any of these, STOP:
- "Let me just try..." — You're guessing, not tracing.
- "Maybe if I..." — Form a hypothesis and predict the outcome first.
- "This might work..." — Why would it work? What's your evidence?
- "It's probably this..." — Probably based on what? State the evidence.
Anti-Rationalization Table
| Excuse | Reality |
| "Let me try a quick fix first" | Quick fixes without root cause analysis create new bugs. |
| "I know what the problem is" | Then state your hypothesis and predict the test outcome. |
| "It works now after my change" | Correlation is not causation. Verify your fix addresses the root cause. |
| "The test is flaky, not my code" | Reproduce it 3 times. If it fails 2/3, it's your code. |
| "I'll add better error handling" | Error handling hides bugs. Fix the cause, not the symptom. |
Debug Report
After resolution, output a structured report:
═══════════════════════════════════════════
DEBUG REPORT
═══════════════════════════════════════════
Status: DONE / DONE_WITH_CONCERNS / BLOCKED
Symptom: [what was observed]
Root Cause: [what was actually wrong]
Pattern: [known pattern match, if any]
Fix: [what was changed and why]
Regression Test: [test name and what it verifies]
Evidence: [how you confirmed the fix addresses the root cause]
Hypotheses Tested: N (list failed ones if >1)
═══════════════════════════════════════════- DONE — Root cause identified, fix applied, regression test passes, full suite green
- DONE_WITH_CONCERNS — Fixed, but related issues discovered. Note them for follow-up.
- BLOCKED — Cannot resolve. Document what was tried and what's needed to proceed.
If the root cause was non-obvious, save debugging insights to auto-memory.
Evolved from obra/superpowers systematic-debugging skill with patterns from garrytan/gstack and community best practices.
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.

