diagnose
Skill119 starsChanged 6 months agoMITView on GitHub
Investigate unexpected behavior and mysterious bugs. Use when the cause of a problem is unknown and the user needs to understand WHY something is happening — symptoms like: sudden unexplained changes in metrics or behavior, works locally but not in staging/production, inconsistent or intermittent failures, correct code producing wrong results, operations succeeding but having no effect, environment-specific failures, duplicate executions, stale data, or any \"why did this change?\" or \"why is this happening?\" situation. Covers infrastructure anomalies (cache hit rates dropping, latency spikes, queue behavior shifts) as well as code bugs. The key signal is confusion about root cause, not a request to implement a known fix. Do NOT use for feature requests, known fixes, planning, or documentation tasks.
193 other projects use a version of this.
Adopted by
Most recently taken up by
- GravionLabs/skillstheir own version, first seen Nov 15, 2026
- matasarei/mac-bottlertheir own version, first seen Nov 15, 2026
- ekirton/Pouletheir own version, first seen Nov 15, 2026
- fx-studio/fx-sdlc-labtheir own version, first seen Nov 15, 2026
- agent-services-at/pluginstheir own version, first seen Nov 8, 2026
- skillberry-ai/cap-evolvetheir 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 · 0
None found.
Edited · 0
None found.
Wrote their own version · 193
- 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★ 299same name
183 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 repository22 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agent-browserSkill
- askSkill
- cookSkill
- create-docSkill
- discussSkill
- docs-seekerSkill
- fixSkill
- frontend-designSkill
- give-planSkill
- media-processorSkill
- optimus-primeSkill
- prime-syncSkill
- review-codeSkill
- self-evolveSkill
- skill-creatorSkill
- testSkill
- backend-fastapi-pythonSkill
- dockerSkill
- frontend-developmentSkill
- humanizerSkill
- monorepoSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 8 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 175 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Check conversation context and skip completed steps.
- Distinctive: line 14
Read the bug report, errors, logs, and surrounding code carefully
- Distinctive: line 31
Start with the cheapest source of truth that can kill hypotheses:
- Distinctive: line 37
Only add new instrumentation when existing evidence is insufficient.
- Very specific: line 38
If you need runtime probes, read diagnose/references/runtime-debugging.md
- Very specific: line 39
Use #region agent log / #endregion markers for any instrumentation you add
- Distinctive: line 42
If runtime probes require starting the local debug server, ask the user before launching it
- Distinctive: line 46
Use existing logs, traces, failing tests, or artifacts before asking for a fresh reproduction
- Distinctive: line 47
When reproduction is needed, ask the user to trigger the bug — tie each request to the hypothesis it tests
- Distinctive: line 49
If ambiguity remains, refine hypotheses and add narrower probes — but stop and report when another round is unlikely to produce new …
- Very specific: line 82
NO fixing — investigation and diagnosis only.
- Very specific: line 84
If you add #region agent log blocks, leave them in place for /fix to verify the repair and call them out in the final report
“Common” is measured: kept by at least 6 in 10 of the 175 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
Think harder.
Process
Check conversation context and skip completed steps.
1. Understand the symptom
- Read the bug report, errors, logs, and surrounding code carefully
- Clarify reproduction steps, expected behavior, and environment when they are unclear
- Separate confirmed facts from working assumptions. List them explicitly:
Fact (confirmed):the server returns 200Assumption (unconfirmed):the client receives the full HTML body Misidentifying an assumption as a fact is the most common source of wasted investigation.
2. Build hypotheses
- Form 2-4 plausible root-cause hypotheses that are mechanistically distinct — different failure layers (e.g., server render vs. client hydration vs. network layer), not variations of the same idea
- Rank them by likelihood
For each hypothesis, state both sides:
Confirm if:[what observation would prove this is the cause]Eliminate if:[what observation would rule this out]
A hypothesis you can't falsify in both directions is too vague to test.
3. Choose the lightest evidence method
Start with the cheapest source of truth that can kill hypotheses:
- existing logs, traces, stack traces, metrics, and error output
- static code inspection around the suspected path
- config, environment, deploy, cache, queue, and permissions state that could explain the symptom
- targeted reproduction in the relevant environment
Only add new instrumentation when existing evidence is insufficient.
- If you need runtime probes, read
diagnose/references/runtime-debugging.md - Use
#region agent log/#endregionmarkers for any instrumentation you add - Tag each log point with the relevant
hypothesisId - Log only the minimum fields needed to discriminate between hypotheses; never log secrets, tokens, passwords, cookies, or full sensitive payloads
- If runtime probes require starting the local debug server, ask the user before launching it
- For browser/UI bugs, combine with the
agent-browserskill when reproduction or inspection needs it
4. Gather evidence and iterate
- Use existing logs, traces, failing tests, or artifacts before asking for a fresh reproduction
- When reproduction is needed, ask the user to trigger the bug — tie each request to the hypothesis it tests
- Correlate each finding with the hypothesis it supports or eliminates; narrow based on evidence, not confidence
- If ambiguity remains, refine hypotheses and add narrower probes — but stop and report when another round is unlikely to produce new discriminating evidence
5. Report the diagnosis
Output structured diagnosis:
## Diagnosis: [Issue Title]
### Symptoms
- [What was observed]
### Evidence
- [Finding] — `file:line` or runtime source — hypothesis X
- ...
### Root Cause
[Confirmed or most likely cause, with evidence]
### Hypotheses Tested
| # | Hypothesis | Confirm if | Eliminate if | Result |
|---|-----------|-----------|-------------|--------|
| A | ... | [what observation would prove this] | [what observation would rule this out] | Confirmed/Eliminated/Inconclusive |
### Recommended Next Steps
- [What to do next — usually hand off to `/fix` with this diagnosis]
### Active Instrumentation
- [List files with `#region agent log` blocks still in place, or `None`]Constraints
- NO fixing — investigation and diagnosis only. "Recommended Next Steps" hands off to
/fixwith the diagnosis; it does not prescribe specific parameter values, code snippets, or step-by-step implementation instructions. - Evidence over assumptions — if the code looks wrong but runtime evidence says otherwise, trust the runtime
- If you add
#region agent logblocks, leave them in place for/fixto verify the repair and call them out in the final report
Bug
<bug>$ARGUMENTS</bug>
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.

