agentleFS
EclipterEclipter/agents/skills/sdlc/diagnose/SKILL.md

diagnose

Skill1 starsChanged 6 days agoMITView on GitHub

Find the root cause of an issue by isolating it step by step, and explain it in plain words. Changes nothing.

193 other projects use a version of this.

Adopted by

Most recently taken up by

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.
  • victorgarciaesgiSkill

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

  • GoogleSkill

    to-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

  • GoogleSkill

    to-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

  • simo97Skill

    edit-article

    The user will invoke this skill to help them edit an article.

    Also in 17 projects that use this

  • simo97Skill

    write-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

  • AnasX7Skill

    setup-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

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 9 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 174 edited versions we read keep these.

  • 9

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

    Read-only: Do not fix, refactor, or commit anything.

    line 14
  2. Distinctive:

    Evidence over guesses: Every step of the chain from symptom to cause is backed by something observed: a log line, a command output, a …

    line 16
  3. Distinctive:

    Do not decide for the user: If narrowing further needs something only the user can do or allow (physical access, credentials, a destructive …

    line 18
  4. Distinctive:

    Write down exactly what happens, what was expected, where, and since when.

    line 25
  5. Distinctive:

    Check what changed recently: git log, git status, updates, config, environment.

    line 27
  6. Distinctive:

    When several suspects remain that can be checked independently, run one subagent per suspect in parallel, each with the symptom, its …

    line 36
  7. Distinctive:

    Keep a short trail of each check and what it showed.

    line 37
  8. Distinctive:

    When possible, prove it: toggle the cause and watch the symptom appear and disappear.

    line 42
  9. Distinctive:

    Remove all temporary probes.

    line 44

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

One run, one cause: collect evidence, narrow the issue down until nothing is left to narrow, and explain the cause so the user understands it without prior technical knowledge.

The argument after the command is the symptom: an error message, a failing command, a log path, a screen, or a description. Without an argument, take the issue from the conversation.

Principles

  • Read-only. Do not fix, refactor, or commit anything. Temporary probes (extra logging, a scratch script, a reproduction) are fine; remove them before the report.
  • Isolate till the end. Stop only when the causal chain is complete or available access is demonstrably exhausted. A failed diagnostic attempt is not a stopping condition: retry transient failures, use other available tools or access paths, and investigate any narrower question needed to explain the original symptom in the same task. "Processor error" is not a cause; "the physical processor fails under load, most likely due to its age; it needs to be replaced" is.
  • Evidence over guesses. Every step of the chain from symptom to cause is backed by something observed: a log line, a command output, a reproduction, a code path. Mark anything not proven as a hypothesis, with how likely it is.
  • Use all access you have. Logs, system tools, the code, git history, configs, the running app, the browser, Computer Use. Run read-only diagnostics yourself instead of asking the user to.
  • Do not decide for the user. If narrowing further needs something only the user can do or allow (physical access, credentials, a destructive test, a reboot), ask the user, with concrete options and the one you recommend first.
  • Use subagents where it pays off, following the subagents skill. Delegate: independent hypotheses or layers checked in parallel, wide searches through big logs/code/history, and comparing against a working case. Keep in the main thread: the chain of reasoning, anything that depends on the previous step's result, and the final conclusion. Do not delegate trivial checks that take one command. Subagents only collect evidence (read-only, same rules as above); you verify their key findings yourself before putting them in the report.

Workflow

1. Pin the symptom

  • Write down exactly what happens, what was expected, where, and since when.
  • Reproduce it. If it cannot be reproduced, collect what is left of it: logs, crash reports, history, timestamps.
  • Check what changed recently: git log, git status, updates, config, environment.

2. Narrow it down

Repeat until the cause is concrete:

  • List the layers the symptom passes through (hardware, OS, network, service, app, module, function, data).
  • Pick the check that splits the remaining suspects in half, run it, and drop what it rules out.
  • Compare with a working case when one exists: another machine, an older commit (git bisect), other input, a clean config.
  • When several suspects remain that can be checked independently, run one subagent per suspect in parallel, each with the symptom, its suspect, and what evidence to return.
  • Keep a short trail of each check and what it showed.

3. Confirm

  • Show that the cause explains every observed symptom, not just the main one.
  • When possible, prove it: toggle the cause and watch the symptom appear and disappear.
  • Audit every unresolved finding. Resolve it with available read-only checks, or establish a concrete blocker. "Not checked" is acceptable only when access, missing historical evidence, or an explicit authorization boundary prevents the check. A timeout or finding a likely cause does not justify leaving it unresolved.
  • Remove all temporary probes.

4. Report

  • 🎯 Cause: — as concrete as the evidence allows, with how sure you are.
  • 🛠 What to do: — the fix or replacement, in plain words. If you don't know how to resolve it, say so honestly.
  • ❌ Not checked: — what could not be checked, what failed, which alternatives were tried, and exactly what is needed to continue. Include remaining hypotheses. Do not offer to perform already-authorized diagnostics later.

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.