diagnose
Skill2 starsChanged todayApache-2.0View on GitHub
Investigate bugs using source, observed failures, and proportionate verification. Use for regressions, intermittent failures, incorrect behaviour, or performance problems whose cause needs investigation.
We split this skill into the rules it gives an agent
19 rules. 0 are common, 17 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 166 edited versions we read keep these.
17
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 9
Use this skill for debugging work where ad-hoc inspection is likely to miss the cause.
- Distinctive: line 14
Prefer passing credentials through environment variables rather than command arguments.
- Distinctive: line 16
If redaction removes evidence needed to diagnose the bug, ask the user for a safe way to inspect it.
- Distinctive: line 34
Read the reported symptom, relevant code, logs, and existing checks.
- Distinctive: line 38
If reproduction is unavailable, state the limitation and continue with source and recorded evidence where useful.
- Distinctive: line 41
If the issue is flaky, use the evidence to choose which condition to probe next.
- Distinctive: line 45
Use this shape: "If <X> is the cause, then <changing Y> will make the bug disappear or <changing Z> will make it worse."
- Distinctive: line 48
Prefer debuggers, targeted logs, or focused measurements over broad logging.
- Distinctive: line 53
Prefer the smallest verification that proves the real failure path is fixed.
- Distinctive: line 54
If you deliberately mutate code or a fixture to check that verification detects the failure, compare it with a pristine copy before …
- Distinctive: line 56
If no good test seam exists, use another practical verification rather than forcing one or proposing architecture changes for an optional …
- Distinctive: line 57
Verify the fix and clean up.
- Distinctive: line 59
Remove temporary instrumentation and throwaway harnesses unless they remain intentionally useful.
- Very specific: line 61
If the failure was a failing systemd unit, crash, out-of-memory kill, or logged error on a machine triage collects from, apply …
- Distinctive: line 65
Start with narrow local reads and searches before broad exploration.
- Distinctive: line 67
Use tests, CLI commands, curl, small repro scripts, or harnesses to create deterministic loops.
- Very specific: line 68
Do not trim normal command output with head or tail.
- Distinctive: line 69
If project glossary, ADRs, or local architecture docs exist, use them to avoid misreading terms or constraints.
- Distinctive: line 70
Ask one targeted question only when a missing detail blocks diagnosis.
“Common” is measured: kept by at least 6 in 10 of the 166 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
Use this skill for debugging work where ad-hoc inspection is likely to miss the cause.
Redaction
- Redact secrets from commands, output, logs, traces, and captured artefacts shown to the agent.
- Prefer passing credentials through environment variables rather than command arguments.
- Quote only the signal-bearing lines from authenticated artefacts.
- If redaction removes evidence needed to diagnose the bug, ask the user for a safe way to inspect it.
When to Use
- Bug reports and behavioural regressions
- Failing or flaky tests
- Intermittent errors or wrong output
- Performance regressions that need measurement before a fix
When NOT to Use
- Broad codebase exploration with no concrete failure mode
- Pure refactors or cleanup work
- Type, lint, or formatting errors that already have a direct fix path
Workflow
- Establish the failure from available evidence.
- Read the reported symptom, relevant code, logs, and existing checks. Code inspection can establish a useful hypothesis before a runnable reproducer exists.
- Choose the smallest practical verification: an existing test, CLI invocation, HTTP request, captured trace, or authorised UI check. No particular tool is the default.
- Build a temporary reproducer only when it resolves uncertainty that existing evidence cannot. Do not add a permanent test or a new harness just to begin diagnosis.
- For intermittent failures, use targeted instrumentation or bounded repeated attempts when they are likely to distinguish causes. Avoid arbitrary repetition counts.
- If reproduction is unavailable, state the limitation and continue with source and recorded evidence where useful. Ask for access or a human-only action only when it blocks progress; hitl-loop.template.sh is available for repeatable human-driven checks.
- Reproduce and minimise the reported problem when practical.
- Confirm any reproducer matches the user's actual failure, not a nearby symptom.
- If the issue is flaky, use the evidence to choose which condition to probe next.
- Shrink the repro one input, caller, config value, data item, or step at a time. Keep only elements that are load-bearing for the failure.
- Rank hypotheses.
- Name the plausible causes supported by the evidence when the cause is not obvious; do not fill a quota.
- Use this shape: "If
<X>is the cause, then<changing Y>will make the bug disappear or<changing Z>will make it worse." - Share the ranked list when user or domain context is likely to change the order materially.
- Instrument narrowly.
- Prefer debuggers, targeted logs, or focused measurements over broad logging.
- Map each probe to one hypothesis prediction and change one variable at a time.
- For performance regressions, establish a baseline measurement first. Prefer profilers, timing harnesses, query plans, and bisection over logs.
- Tag temporary debug logs with a unique prefix so they are easy to remove.
- Fix with lightweight verification.
- Prefer the smallest verification that proves the real failure path is fixed.
- If you deliberately mutate code or a fixture to check that verification detects the failure, compare it with a pristine copy before trusting the failing result.
- Apply
testing: add regression coverage when it catches a meaningful failure that existing checks miss. Explain the benefit; an ordinary case can qualify without being a rare edge case. - If no good test seam exists, use another practical verification rather than forcing one or proposing architecture changes for an optional test.
- Verify the fix and clean up.
- Re-run the original check when available. Otherwise state what source or recorded evidence supports the fix and what remains unverified.
- Remove temporary instrumentation and throwaway harnesses unless they remain intentionally useful.
- State the hypothesis that turned out to be correct in the final explanation, commit message, or PR text where relevant.
- If the failure was a failing systemd unit, crash, out-of-memory kill, or logged error on a machine triage collects from, apply
triage-resolveto close its triage issues.
Tool Guidance
- Start with narrow local reads and searches before broad exploration.
- For browser-specific bugs, apply
browser-accessbefore using Chrome DevTools or any other browser tool. - Use tests, CLI commands, curl, small repro scripts, or harnesses to create deterministic loops.
- Do not trim normal command output with
headortail. If a repro command is genuinely huge, capture output to a file and inspect targeted sections withGreporReadoffsets instead of re-running. - If project glossary, ADRs, or local architecture docs exist, use them to avoid misreading terms or constraints.
- Ask one targeted question only when a missing detail blocks diagnosis.
Done Checklist
- The original failure is reproduced or the missing repro constraint is stated clearly.
- The fix is checked against the original failure where possible, with any verification limits stated.
- Any added regression coverage meets
testingand names the meaningful failure or important behaviour it protects, or the explicit requirement. - Temporary debug instrumentation is removed.
- Any remaining uncertainty or follow-up risk is called out explicitly.
Other versions183 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 183
- github/awesome-copilot★ 41ksame name
- epicenter-md/epicenter★ 4.8ksame name
- EpicenterHQ/epicenter★ 4.8ksame name
- CherryHQ/cherry-studio-app★ 4ksame name
- pedrohcgs/claude-code-my-workflow★ 1.6ksame name
- formancehq/ledger★ 1.4ksame name
- getagentseal/founder-playbook★ 745same name
- victorgarciaesgi/regle★ 508same name
- amazingloft999-droid/mattpocock-skills★ 422same name
- openvetta/open-vetta★ 302same name
173 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.
Used alongsideProjects with it also use zoom-out, to-issues 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 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 52 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 54 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 43 projects that use this
simo97Skilledit-article
The user will invoke this skill to help them edit an article.
Also in 16 projects that use this
AnasX7Skillscaffold-exercises
Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.
Also in 20 projects that use this
- +4 more from simo97
- +1 more from google
In this repository56 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agentic-workflowsSkill
- asking-questionsSkill
- broSkill
- browser-accessSkill
- change-review-handoffSkill
- changeset-scopeSkill
- check-skill-updatesSkill
- chillSkill
- ci-loopSkill
- cleanup-unnecessary-variablesSkill
- code-reviewSkill
- decision-modelsSkill
- effect-principlesSkill
- evidence-firstSkill
- gh-stackSkill
- git-contextSkill
- github-development-rulesetsSkill
- github-repository-setupSkill
- grillingSkill
- handoffSkill
- herdr-workflowsSkill
- home-assistant-frontendSkill
- home-assistant-lit-renderingSkill
- human-step-guideSkill
- import-external-skillSkill
- inbox-reportingSkill
- issue-loopSkill
- lit-renderingSkill
- maintain-docsSkill
- npm-jsr-first-publishSkill
- opencode-effectSkill
- pitchfork-dev-serversSkill
- pkexec-rootSkill
- planSkill
- release-oxlint-rulesSkill
- remote-change-diffSkill
- remove-single-use-functionsSkill
- researchSkill
- retroSkill
- review-stagesSkill
- review-steeringSkill
- safe-process-signalsSkill
- session-coordinationSkill
- shared-workflowsSkill
- show-meSkill
- skill-prefixesSkill
- staged-implementationSkill
- task-focusSkill
- task-runnersSkill
- testingSkill
- to-questionnaireSkill
- types-enforce-tsSkill
- wranglerSkill
- writing-dot-skillsSkill
- writing-styleSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

