agentleFS
daidaibunnydaidaibunny/agent-skills/diagnose/SKILL.md

diagnose

Skill2 starsChanged 7 months agoNo licenceView on GitHub

Disciplined diagnosis loop for hard bugs and performance regressions. Reproduce → minimise → hypothesise → instrument → fix → regression-test. Use when user says "diagnose this" / "debug this", reports a bug, says something is broken/throwing/failing, or describes a performance regression.

126 other projects use a version of this, 25 of them edited; 13 of 25 edited versions we compared changed its rules.

How people change it

13 of 25 edited versions changed its rules, and some changes recur.

Of the 25 edited versions we compared: 12 keep every rule, 13 made changes of their own.

Rules people drop

  1. Do not proceed to Phase 2 until you have a loop you believe in.dropped by 6 of 13
  2. Do not proceed until you reproduce the bug.dropped by 5 of 13
  3. When exploring the codebase, use the project's domain glossary to get a clear mental model of the relevant modules, and check ADRs in the area you're touching.dropped by 3 of 13
  4. Property / fuzz loop. If the bug is "sometimes wrong output", run 1000 random inputs and look for the failure mode.dropped by 3 of 13
  5. Write the regression test before the fix — but only if there is a correct seam for it.dropped by 3 of 13
  6. Run the loop. Watch the bug appear.dropped by 3 of 13
  7. Bisection harness. If the bug appeared between two known states (commit, dataset, version), automate "boot at state X, check, repeat" so you can git bisect run it.dropped by 3 of 13
  8. If a correct seam exists:dropped by 2 of 13

Rules people add

  1. If you catch yourself reading code to build a theory before this command exists, stop — jumping straight to a hypothesis is the exact failure this skill prevents. No red-capable command, no Phase 2.added by 4 of 13
  2. If the redacted output is not enough to diagnose the bug, say so and ask the user (in Portuguese).added by 3 of 13
  3. Run the loop. Watch it go red as the bug appears. Confirm:added by 3 of 13
  4. A rule we can't quote: its licence doesn't allow itadded by 2 of 13
  5. A rule we can't quote: its licence doesn't allow itadded by 2 of 13

We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 71 edited versions we read keep these.

  • 13

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

No licence file, so all rights are reserved — read it at the source. We count its rules but don't quote them. Read them on GitHub.

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

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.