diagnose
Skill0 starsChanged 6 days agoMITView on GitHub
Finds a bug's cause from a command that shows the failure, then fixes it there.
193 other projects use a version of this.
Adopted by
Most recently taken up by
- agent-services-at/pluginstheir own version, first seen Nov 8, 2026
- Eclipter/agentstheir own version, first seen Nov 8, 2026
- venhdev/skillstheir own version, first seen Nov 8, 2026
- ishandutta2007/Awesome-Claude-Skillstheir own version, first seen Nov 8, 2026
- DeevsDeevs/agent-systemtheir own version, first seen Nov 8, 2026
- pedrohcgs/claude-code-my-workflowtheir own version, first seen Nov 8, 2026
Used with
Projects with it also use zoom-out, to-prd 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.
victorgarciaesgiSkillzoom-out
Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.
Also in 61 projects that use this
GoogleSkillto-prd
Turn the current conversation into a PRD and publish it to the project issue tracker — no interview, just synthesis of what you've already discussed.
Also in 56 projects that use this
GoogleSkillto-issues
Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet vertical slices.
Also in 53 projects that use this
simo97Skilledit-article
The user will invoke this skill to help them edit an article.
Also in 17 projects that use this
simo97Skillwrite-a-skill
Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.
Also in 44 projects that use this
AnasX7Skillsetup-pre-commit
Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.
Also in 27 projects that use this
- +4 more from simo97
Other versions193 projects use a version of this.
Word for word · 1
- jpc4729/setup★ 0100% same
Edited · 0
None found.
Wrote their own version · 192
- github/awesome-copilot★ 41ksame name
- epicenter-md/epicenter★ 4.8ksame name
- EpicenterHQ/epicenter★ 4.8ksame name
- CherryHQ/cherry-studio-app★ 4.1ksame name
- pedrohcgs/claude-code-my-workflow★ 1.7ksame name
- formancehq/ledger★ 1.5ksame name
- getagentseal/founder-playbook★ 745same name
- victorgarciaesgi/regle★ 508same name
- amazingloft999-droid/mattpocock-skills★ 422same name
- openvetta/open-vetta★ 302same name
182 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 repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- codex/AGENTS.mdAGENTS.md
- grok/AGENTS.mdAGENTS.md
- opencode/AGENTS.mdAGENTS.md
- src/AGENTS.mdAGENTS.md
- claude/CLAUDE.mdCLAUDE.md
- context-doctorSkill
- handoffSkill
- intentSkill
- paper-useSkill
- retroSkill
- skills-claudeSkill
- ui-principlesSkill
- verify-setupSkill
- wayfinderSkill
- agent-browserSkill
- grillingSkill
- ponytail-auditSkill
- ponytail-debtSkill
- ponytail-reviewSkill
- ponytailSkill
- security-auditSkill
- thermo-nuclear-code-quality-reviewSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 173 edited versions we read keep these.
1
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 17
No command reproduces it → force it: build the trigger input, tighten the conditions (timing, size, concurrency) or add tagged logs until …
- Very specific: line 22
Test. Do the cheapest disproving run first, one change at a time.
“Common” is measured: kept by at least 6 in 10 of the 173 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
Diagnose
Find the cause of the bug the user names, fix it there, and prove the fix with the command that showed the failure. If you catch yourself reading code for a theory before that command exists, stop and build the command. With no argument, take the failure this conversation last showed; when there is none, ask for the symptom and how to see it.
The loop
- Reproduce. Get one command that goes red on the user's exact symptom, not on a nearby failure: a test, a script, a request or a CLI call. Run it and keep its failing output. Prefer the narrowest command, and seconds over minutes. No command reproduces it → force it: build the trigger input, tighten the conditions (timing, size, concurrency) or add tagged logs until it fires. Still nothing → stop. Report what you tried, and ask for the input, data, access or environment that would. Flaky → run it in a loop until it fails, and record the failure rate. Fails only after a restart or on one machine → suspect state before code: caches, build output, lock files, config, an old process or version.
- Shrink. Remove half of the inputs, steps and config at a time while the command stays red, and one at a time when few remain, until every part left is load-bearing: removing any one turns it green.
- Hypothesize. Write 3-5 causes, most likely first. For each, name the run whose result would disprove it. A cause with no such run is a guess: sharpen it or drop it. A cause the user names is one of them and gets its own disproving run. Show the list to the user, then start testing without waiting.
- Test. Do the cheapest disproving run first, one change at a time. Tag each debug log with one unique prefix, such as
[DEBUG-a4f2]. For a slow path, measure a baseline first; logs do not show time. A change that "might help" is a hypothesis, not a fix. When a run disproves it, revert it. - Fix the cause, not the symptom: a guard that hides the crash is not a fix. Search for the same pattern and fix each place it occurs.
- Prove. Run the step 1 command again; it must go green. Add it as a regression test where the repo keeps tests of that kind, at a place that runs the real bug path (the same callers and chain). When no such place exists, report that as a finding; when the repo keeps no such tests, say why there is none.
- Clean up. Remove every tagged log (search for the prefix), every scratch file and every reverted experiment.
Report
- Cause: one sentence, with
path:lineand the run that proves it. - The step 1 command, with its output before and after the fix.
- Each disproved hypothesis and the run that disproved it, one line each.
- Each other place you fixed, and each place you found and left, with the reason.
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.

