agentleFS
HesstasticHesstastic/fable-agent-orchestration/skills/investigate-before-fix/SKILL.md

investigate-before-fix

Skill0 starsChanged 5 months agoApache-2.0View on GitHub

Confirm a diagnosis against current code before building its fix. On a delicate, hot-path, security, or recovery change, a refutation — the diagnosed cause was wrong, so nothing ships — is a valid and valuable outcome. Use before committing to a fix, even outside a full slice.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    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:

    Check the premise the fix depends on.

    line 14

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Investigate Before Fix

A fix for a cause you have not confirmed is a guess. Confirm first.

Procedure

  1. Reproduce the cause at current HEAD, not from a remembered summary or a stale note.
  2. Map every reader and writer of the state the fix would touch; enumerate the interleavings the fix would create.
  3. Check the premise the fix depends on. If the fix assumes a value, field, or path exists, verify it does before designing against it.
  4. Decide:
    • Confirmed: build the narrow fix.
    • Refuted: the diagnosis was wrong. Report the finding and ship no change. This is a result, not a failure.
    • Cannot prove safe: HOLD and write the tradeoff for a human.

Why

The most expensive changes are correct fixes to the wrong problem, and plausible fixes built on an unchecked premise. A refutation that costs one investigation is far cheaper than a merge that has to be reverted — and the premise a fix quietly assumes is exactly the thing an investigation exists to catch.

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.