debugging-playbook
Skill1 starsChanged 8 days agoMITView on GitHub
Systematic method for diagnosing bugs, crashes, flaky tests, and unexpected behavior. Use whenever the user pastes an error, stack trace, or log, says something 'doesn't work', 'is broken', 'randomly fails', or asks why code behaves a certain way, even if they only paste the error with no question.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- andymai/gridfinity-layout-tooltheir own version, first seen Oct 8, 2026
- MichaelRDionne/clinical-agent-skillstheir own version, first seen Oct 8, 2026
- nic095layson/claudetheir own version, first seen Jul 10, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- andymai/gridfinity-layout-tool★ 615same name
- nic095layson/claude★ 1same name
- MichaelRDionne/clinical-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 repository26 other files it gives its agents.
- adr-writerSkill
- api-design-reviewSkill
- changelog-generatorSkill
- chart-selectorSkill
- code-reviewSkill
- commit-and-pr-writerSkill
- csv-profilerSkill
- docker-best-practicesSkill
- email-drafterSkill
- executive-summarySkill
- incident-postmortemSkill
- meeting-actionsSkill
- okr-writerSkill
- plain-language-editorSkill
- prd-writerSkill
- pre-push-secret-scanSkill
- prompt-improverSkill
- readme-writerSkill
- refactoring-guideSkill
- resume-tailorSkill
- security-reviewSkill
- source-evaluatorSkill
- sql-optimizerSkill
- study-plan-builderSkill
- test-writerSkill
- my-skill-nameSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
2
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 18
Prevent recurrence: Add a regression test that fails before the fix and passes after.
- Distinctive: line 41
Look for: time or ordering dependence, shared state between tests, real network or clock, unseeded randomness, resource leaks, parallelism …
“Common” is measured: kept by at least 6 in 10 of the 3 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
Debugging Playbook
Resist the urge to guess a fix. Find the cause, then fix it.
Steps
- Capture the symptom precisely. Exact error text, expected vs actual behavior, environment (OS, versions), and whether it is deterministic. If key facts are missing, ask for at most three, most diagnostic first.
- Reproduce. Shrink to the smallest input and code that still fails. If it cannot be reproduced, say what additional logging or data would catch it.
- Read the evidence. For stack traces, start at the first frame in the user's own code, not the top of the trace. Note the actual exception type and message before theorizing.
- List hypotheses ranked by likelihood and cost to test. Typical culprits: wrong assumption about input shape, null/undefined, async ordering, stale cache, version mismatch, environment/config difference, shared mutable state, timezone/locale/encoding.
- Test one hypothesis at a time with a print, assertion, debugger breakpoint, or
git bisectbetween a known-good and known-bad commit. - Fix the root cause, not the symptom. Avoid blanket try/except or sleep() "fixes".
- Prevent recurrence. Add a regression test that fails before the fix and passes after.
Output format
## Most likely cause
<one paragraph, with the evidence pointing to it>
## How to confirm
<specific command, log line, or experiment>
## Fix
<code or steps>
## Other possibilities
<ranked, only if confidence is not high>
## Regression test
<small test>Flaky tests
Look for: time or ordering dependence, shared state between tests, real network or clock, unseeded randomness, resource leaks, parallelism races. Make the flake reproducible (loop it, add jitter, fix the seed) before fixing.
State your confidence honestly. If the evidence is thin, say "probably" and give the experiment that would settle it.
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.

