agentleFS
everywan-deveverywan-dev/claude-code-engineering/skills/verify-before-saying-done/SKILL.md

verify-before-saying-done

Skill2 starsChanged 3 months agoApache-2.0View on GitHub

Use when about to report something as done, working or fixed. Turns "it looks right" into a check that could have failed.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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:

    Before the words "done", "fixed", "working" or "deployed" leave you, you have to be able to answer one question:

    line 10
  2. Distinctive:

    If there is no answer, you have a reading, not a verification.

    line 16
  3. Distinctive:

    4. Run it and keep the raw output: Not your summary of it. The count, the status line, the response body, the screenshot.

    line 47
  4. Distinctive:

    6. Report what you did not check: Always a line, even when empty.

    line 56

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Verify before saying done

A check that cannot fail is not a check.

Before the words "done", "fixed", "working" or "deployed" leave you, you have to be able to answer one question:

What did I run that, if this were broken, would have returned something different?

If there is no answer, you have a reading, not a verification. Say so instead.

When to use this

  • You are about to close a task, comment on a ticket, or answer "is it up?"
  • You changed a config, restarted a service, edited a file inside a container
  • You fixed something visual
  • Someone asks you to confirm a state you have not observed since you changed it

The procedure

1. Write the claim as one sentence. Not "the deploy went fine" — "the API returns the new schema version on all four nodes". A vague claim cannot be falsified, which is why vague claims are the ones that survive.

2. Name the failure mode you are ruling out. "If this were broken, what exactly would be wrong?" The answer picks your instrument. Ruling out "the service did not pick up the config" needs the process's own view of its config, not the file on disk.

3. Pick an instrument that observes the claim, not a neighbour of it. Most false verifications are a measurement of something adjacent:

You measuredYou claimedThe gap
The file parsesThe service loaded itLoading can be rejected after parsing
The file on disk changedThe process reads the changeDifferent inode, different file
The port answersThe application worksAnything can answer a port
It works in stagingIt works in productionDifferent components, different risk
The CSS says redThe user sees redSomething else wins the cascade

4. Run it and keep the raw output. Not your summary of it. The count, the status line, the response body, the screenshot. Summaries are where the optimism gets in.

5. Prove the check is live. Break something on purpose — point it at a hostname that does not exist, at a node that is down — and confirm it goes red. A green result from a check you never saw go red tells you nothing about the system, only about the check.

6. Report what you did not check. Always a line, even when empty. "Verified on nodes 1–3, node 4 unreachable" is worth more than a clean claim covering four.

Real cases

"The config is valid." A reverse proxy was handed a syntactically valid file containing a duplicated route. It refused the file, kept the previous configuration in memory, and logged nothing anyone was watching. Every request kept working. The failure surfaced days later at the next restart, when the old configuration finally left memory — with nobody near a keyboard who connected the two events.

Validating the file proved the file was valid. It never proved the process was using it. Those are two different claims and only one of them was true.

"The site returns 200." A service was down for four days and no one noticed. The login page was static and cached, so the health check kept getting 200 from a page that no longer needed the backend to exist. The check could not have failed — which is exactly why it never did.

The fix was to check something only a working backend can produce: a real query, an authenticated call, a value that changes.

"The file on disk has the change." An in-place edit rewrote the file by creating a new inode. The running process still held the old one open and went on reading it. Disk and process disagreed, and only the disk was inspected.

Compare the disk against what the process sees — its open file handles, its own config dump, its behaviour. Not against your memory of the edit.

"It works in the test environment." The test environment did not contain the legacy component that made the change dangerous in production. It was not that the test passed by luck: the test was structurally incapable of detecting the risk. Absence of the failing component is not absence of the failure.

"It looks fine." Three consecutive fixes to a logo failed, because each one was written by reading CSS and reasoning about it. The fourth worked, because someone rendered the page and looked at the resulting DOM. The cascade had a winner nobody predicted from reading.

Traps

🔴 A green check you have never seen go red is decoration. Break it once, deliberately, before you trust a single green result from it.

🔴 "The service is running" is not "the service works." It can be in a restart loop and still be reported as running. Read the status detail and the log, not the one-word state.

⚠️ Never verify a fleet through the load-balanced name. Resolve to each address in turn. A round-robin will cheerfully hand you the one healthy node every time you ask.

⚠️ Your own cache lies to you. If you are looking at a browser, a CDN, or any client-side store, you may be looking at yesterday. Force the fetch or version the asset.

⚠️ Re-reading your own change is not verification. You will read what you intended to write. Observe the effect somewhere else in the system.

What a verified claim looks like

**Claim:** the workers pick up jobs from the new queue.
**Failure mode ruled out:** workers still bound to the old queue name.
**Check:** enqueued one job, read the consumer's own log line for it.
**Raw output:** <pasted>
**Control:** enqueued to the old queue — nothing consumed it. Check is live.
**Not verified:** behaviour under a queue restart.

The last line is mandatory. It can be empty; it is never omitted. It is the whole difference between "it works" and "I could not check that it works".

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.