debug-mode
Skill3 starsChanged 2 months agoMITView on GitHub
Diagnose or debug a broken, failing, flaky, slow, or production-only bug with a red feedback loop and runtime evidence. Use when the user says diagnose/debug or reports something broken.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- doraemonkeys/claude-code-debug-modetheir own version, first seen Sep 2, 2026
- vanenshi/skillstheir own version, first seen Aug 5, 2026
- duniecdawid/ultra-claudetheir own version, first seen Jul 16, 2026
- strantalis/agent-skillstheir own version, first seen Jan 5, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- doraemonkeys/claude-code-debug-mode★ 116same name
- vanenshi/skills★ 2same name
- duniecdawid/ultra-claude★ 0same name
- strantalis/agent-skills★ 0same name
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 repository8 other files it gives its agents.
- art-directorSkill
- ask-peerSkill
- cyber-auditSkill
- orchestrateSkill
- pairSkill
- review-itSkill
- ship-itSkill
- test-auditSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
1
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 48
Fix: When a seam exercises the real bug pattern, turn the minimized repro into a regression test first.
- Very specific: line 55
Write structured events through the app's own logger or a local file: hypothesis_id, event, a request or session id that ties one user …
- Very specific: line 75
If no fix was applied, say that under Fix Applied and name the missing evidence.
“Common” is measured: kept by at least 6 in 10 of the 4 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 Mode
Fix only a proven cause; a plausible fix that passes once proves nothing. Already inside a debug-mode run → continue the loop.
Respect the user's verb: diagnose ends before Fix and applies no fix;
remove every temporary log before its report.
debug, or a bug report with no verb, runs through Fix.
Workflow
- Understand. Done when symptoms, affected surface, expected behavior, actual behavior, and a reproduction path are known.
- Red loop. Build one command that drives the bug's code path and asserts its exact symptom: a failing test, a curl script, a CLI run on a fixture, a headless-browser script, a replayed trace. Make it tight: deterministic, fast, runnable unattended, asserting the symptom rather than "didn't crash". For a flaky bug, raise the reproduction rate (loop the trigger, add stress) until it is debuggable. For slow code, the loop is a baseline measurement (timing harness, profiler, query plan, production traces) that goes red above a stated threshold. When no command is practical (auth-walled, user-specific, production-only), say so and rely on instrumentation in steps 5-6. Done when the command has run red on this bug, or its absence is stated.
- Minimize. With a loop, shrink the repro one cut at a time (inputs, callers, config, data, steps), rerunning the loop after each cut. Done when every remaining part matters: removing any one turns the loop green. Without a loop, go straight to step 4.
- Hypothesize. Done when 2-3 ranked hypotheses each name the observation that would confirm or reject it.
- Instrument. For slow code, profile the minimized repro or bisect
between known-good and known-bad states (
git bisect runwith the loop). Otherwise add temporary logs. Done when the observations distinguish the hypotheses without leaking secrets or changing the behavior; if they change it, observe from a less invasive point. - Reproduce. Done when the bug has been triggered and the evidence collected, through the loop when one exists. If the flow is auth-walled or user-specific, ask the user to reproduce and wait.
- Analyze. Done when evidence confirms one hypothesis or rejects every current one explicitly. When it rejects them all, write new hypotheses from the evidence and return to step 5.
- Fix. When a seam exercises the real bug pattern, turn the minimized repro into a regression test first. Done when the smallest evidence-backed fix is applied, the loop (when one exists) has gone green on the original scenario, and every temporary log is removed.
Logs
- Write structured events through the app's own logger or a local file:
hypothesis_id,event, a request or session id that ties one user action together, the observed values, and a timestamp. - Tag every temporary log with one unique prefix (e.g.
[DEBUG-a4f2]), so removal is a single grep.
Report Format
End with this shape:
## Symptoms
## Hypotheses Tested
## Evidence Collected
## Confirmed Root Cause
## Fix Applied
## Instrumentation Removed
## Residual RiskIf no fix was applied, say that under Fix Applied and name the missing evidence.
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.

