agentleFS
timmo001timmo001/skills/diagnose/SKILL.md

diagnose

Skill1 starsChanged 56 days agoApache-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.

126 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects 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.
  • Hollis36Skill

    zoom-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 38 projects that use this

  • ninehillsSkill

    to-issues

    Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet vertical slices.

    Also in 34 projects that use this

  • Hollis36Skill

    to-prd

    Turn the current conversation context into a PRD and publish it to the project issue tracker. Use when user wants to create a PRD from the current context.

    Also in 38 projects that use this

  • kayamanSkill

    edit-article

    Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.

    Also in 11 projects that use this

  • kayamanSkill

    request-refactor-plan

    Guides creating a detailed refactor plan with tiny commits via user interview, then files it as a GitHub issue. Use when user wants to plan a refactor, create a refactoring RFC, or break a refactor into safe incremental steps.

    Also in 9 projects that use this

  • AnasX7Skill

    scaffold-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 13 projects that use this

  • +2 more from kayaman

The file

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. 0 are common, 17 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 114 edited versions we read keep these.

  • 17

    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
  1. Distinctive:

    Use this skill for debugging work where ad-hoc inspection is likely to miss the cause.

    line 17
  2. Distinctive:

    Prefer passing credentials through environment variables rather than command arguments.

    line 22
  3. Distinctive:

    If redaction removes evidence needed to diagnose the bug, ask the user for a safe way to inspect it.

    line 24
  4. Distinctive:

    Read the reported symptom, relevant code, logs, and existing checks.

    line 42
  5. Distinctive:

    If reproduction is unavailable, state the limitation and continue with source and recorded evidence where useful.

    line 46
  6. Distinctive:

    If the issue is flaky, use the evidence to choose which condition to probe next.

    line 49
  7. Distinctive:

    Use this shape: "If <X> is the cause, then <changing Y> will make the bug disappear or <changing Z> will make it worse."

    line 53
  8. Distinctive:

    Prefer debuggers, targeted logs, or focused measurements over broad logging.

    line 56
  9. Distinctive:

    Prefer the smallest verification that proves the real failure path is fixed.

    line 61
  10. Distinctive:

    If no good test seam exists, use another practical verification rather than forcing one or proposing architecture changes for an optional …

    line 63
  11. Distinctive:

    Verify the fix and clean up.

    line 64
  12. Distinctive:

    Remove temporary instrumentation and throwaway harnesses unless they remain intentionally useful.

    line 66
  13. Distinctive:

    Start with narrow local reads and searches before broad exploration.

    line 71
  14. Distinctive:

    Use Chrome DevTools tools only for browser-specific bugs.

    line 72
  15. Distinctive:

    Use tests, CLI commands, curl, small repro scripts, or harnesses to create deterministic loops.

    line 73
  16. Very specific:

    Do not trim normal command output with head or tail.

    line 74
  17. Distinctive:

    If project glossary, ADRs, or local architecture docs exist, use them to avoid misreading terms or constraints.

    line 75
  18. Distinctive:

    Ask one targeted question only when a missing detail blocks diagnosis.

    line 76

“Common” is measured: kept by at least 6 in 10 of the 114 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. Fix with lightweight verification.
    • Prefer the smallest verification that proves the real failure path is fixed.
    • 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.
  6. 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.

Tool Guidance

  • Start with narrow local reads and searches before broad exploration.
  • Use Chrome DevTools tools only for browser-specific bugs.
  • Use tests, CLI commands, curl, small repro scripts, or harnesses to create deterministic loops.
  • Do not trim normal command output with head or tail. If a repro command is genuinely huge, capture output to a file and inspect targeted sections with Grep or Read offsets 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 testing and 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.