agentleFS
curvedinfcurvedinf/dev-skills/skills/activated/diagnose-and-repair/SKILL.md

diagnose-and-repair

Skill7 starsChanged 7 days agoMITView on GitHub

Debug, reproduce, regression, crash, failing test, repair. Establish a reported failure mechanism and verify a correction; investigation-only requests stop at findings.

The file

Files
SKILL.md

Diagnose and repair

Establish the mechanism before choosing the repair. An investigation-only request ends with findings.

For ongoing work, read and update scratch records in agents/scratch/: reproductions, rejected explanations, repair attempts, and unresolved evidence.

  1. Establish expected behavior and reproduce the reported symptom in its relevant context. Retain the failing result and candidate identity; distinguish a product defect from a broken fixture, environment, or expectation.
  2. Form a falsifiable hypothesis and seek discriminating evidence. Trace the affected boundaries and compare working cases. Minimize order-dependent reproductions without erasing the causal sequence.
  3. Derive a scoped correction from the demonstrated mechanism. Change one causal concern at a time; avoid bundling speculative fixes or unrelated cleanup.
  4. Re-run the original reproduction and relevant adjacent checks. Preserve its meaningful inputs and acceptance strength. If an expectation itself was wrong, justify that correction separately.
  5. Report the mechanism, correction, retained evidence, and remaining uncertainty. A failed repair reopens diagnosis; do not stack speculative fixes.

Prefer deterministic regression coverage. For intermittent defects, retain the failing observations and compare under equivalent conditions; one quiet run does not prove absence. If reproduction or testing is unavailable, distinguish static evidence and unverified repairs from demonstrated fixes. Stop speculative repair and name the missing evidence.

Illustrative hypothesis: “Resuming after acknowledgment loss submits the completed item again; querying its stored request ID before retry should expose the duplicate.”

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.