agentleFS
fonderiejsfonderiejs/fonderie/.claude/skills/harden-on-escape/SKILL.md

harden-on-escape

Skill4 starsChanged 2 months agoMITView on GitHub

Use the moment you discover something you already reported as working was not — a shipped bug, a green check that proved nothing, a claim you have to retract, or a gate that passed the very thing it exists to catch. Turns each escape into a gate or a written guideline instead of a memory. Triggers on "that shipped broken", "I was wrong about", "the gate didn't catch it", "it passed locally but", "correction:", or noticing the same class of mistake twice.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is 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.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If you cannot state it as a rule, you have not understood it yet.

    line 26
  2. Very specific:

    Write the gate if the class is mechanically checkable.

    line 39

≈ “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

When something escapes, harden — do not just fix

A defect that reached further than it should have is evidence about the process, not just the code. Fixing the instance and moving on guarantees the next one of its kind escapes the same way.

The practice is cheap and has a fixed shape.

1. Fix the instance

Get the thing working. This is the part that feels like the whole job and is the least durable.

2. Name the class

State the escape as a rule, not as an anecdote. "I grepped dist and it matched index.js" is an anecdote. "Presence in a bundle is not an export" is a class — it covers types, side-effect-only imports, and tree-shaken code you will hit later.

If you cannot state it as a rule, you have not understood it yet.

3. Prefer a gate over a guideline

Ranked by how well each survives:

survives
a gate in CIalways
a testwhile the file runs
a skill or docwhile someone reads it
rememberingnot at all

Write the gate if the class is mechanically checkable. check:hook-parity exists because "the hook shipped to one package" was checkable; the skills exist for the classes that are not.

Verify the new gate fails against the state that actually shipped. A gate written after the fix, never run against the bug, is a guess — and you have just demonstrated that you write checks which cannot fail.

4. Amend the nearest skill; do not start a new one

Skills decay by proliferation. One skill per class, not per incident:

  • misleading green results → verify-honestly
  • release / CI gate mechanics → shipping-fonderie
  • backend route not reaching every client → endpoint-to-clients

A new skill is right only when the class has no home. If you are adding the fourth bullet to an existing list, that is the system working.

5. Say what changed, plainly

The correction goes in the commit and to the person who was told otherwise — in one or two sentences, without ceremony. "I reported X verified; it was not, because Y. Fixed, and Z now catches it." Then continue.

Why this is also the answer to "what is next"

The escape list is the priority list. Each one names a place where confidence outran evidence, and the next defect is far likelier there than somewhere you have never been wrong. When you are unsure what to harden, look at what most recently fooled you.

One caution: escapes cluster around verification, not implementation. The pattern is rarely "I wrote bad code" — it is "I believed a check that could not fail." Harden the check.

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.