agentleFS
jsvillalbatjsvillalbat/sevito-skills/skills/verify-before-done/SKILL.md

verify-before-done

Skill0 starsChanged 3 months agoMITView on GitHub

Stops the agent from declaring a task "done", "fixed", or "working" on its own unverified say-so. Forces evidence — an actual test run, a reproduced failure that now passes, or an independent fresh-context review — before reporting completion. Use before ending any turn that claims a bug is fixed, a feature works, tests pass, or an implementation is finished.

11 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 4

    Distinctive

    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:

    Name the claim: Before finishing, state precisely what you're claiming is true ("the login form now rejects invalid emails", "the flaky …

    line 26
  2. Distinctive:

    If your environment supports launching a separate agent/subagent with its own context (e.g.

    line 43
  3. Distinctive:

    Report the evidence, not the verdict: Don't just say "done" — say what you ran and what it showed.

    line 51
  4. Distinctive:

    No test infrastructure exists: Don't invent confidence you don't have.

    line 80

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

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Verify Before Done

Self-reported success is the most expensive lie in agentic coding: an agent that grades its own homework will, on a long enough timeline, tell you something works when it doesn't. This skill replaces "I believe this is done" with "here is the evidence this is done."

When to use this

  • You're about to write "fixed", "done", "working", "tests pass", "should work now", or similar, at the end of a turn.
  • You implemented something and are tempted to report success based on reading the code rather than running it.
  • A user asks you to verify, double-check, or confirm that something works.

Instructions

  1. Name the claim. Before finishing, state precisely what you're claiming is true ("the login form now rejects invalid emails", "the flaky test no longer flakes"). A vague claim ("I fixed it") can't be verified — a specific one can.
  2. Get evidence, not confidence. Climb this ladder as far as the task allows — don't stop at a lower rung when a higher one is available. See references/evidence-ladder.md for the full breakdown with examples.
    • Rung 0 — Unverified assumption: "this should work." Never report this as done.
    • Rung 1 — Static read: re-read the diff and reasoned it's correct. Weak on its own.
    • Rung 2 — Automated check: ran the test suite / linter / type-checker and it's green.
    • Rung 3 — Reproduced the scenario: reproduced the original failure, applied the fix, reproduced again, and it's now gone — captured real output, not paraphrased.
    • Rung 4 — Independent review: a fresh reviewer (different context, ideally a separate agent) checked the result against the original ask and didn't just rubber-stamp the implementer's own summary.
  3. When you can spawn an independent reviewer, do it for anything non-trivial. If your environment supports launching a separate agent/subagent with its own context (e.g. Claude Code's Agent tool, a forked session, a second CLI session), hand it the original request and the diff — not your summary of what you did — and ask it to check independently, read-only. See references/independent-review.md for a ready-to-use prompt template and for what to do when no such capability exists (a "cold read": step away, re-read the diff as a skeptical stranger, actively try to break it).
  4. Report the evidence, not the verdict. Don't just say "done" — say what you ran and what it showed. Compare:
    • Weak: "Fixed the bug."
    • Strong: "Reproduced the crash with pytest tests/test_login.py::test_bad_email (failed before), applied the fix, re-ran it — now passes. Full suite: 142/142."
  5. If you can't verify, say so explicitly. "I made this change but couldn't run the test suite (no test runner in this environment) — here's what I'd check" is honest and useful. "Done" when you didn't actually check is the failure mode this skill exists to prevent.
  6. Match verification weight to the change. A one-line typo fix doesn't need an independent reviewer; a multi-file refactor or anything touching auth, payments, or data migrations should reach Rung 3 or 4 before you call it done. See references/evidence-ladder.md for calibration guidance.

Examples

Weak report (what this skill prevents):

I updated the validation regex. The email field should now reject invalid addresses. Done!

Strong report (what this skill produces):

Reproduced the original bug: test@ was accepted (test failed as expected). Updated the regex in validators.py:42. Re-ran the test — now fails on test@ as expected and still accepts user@example.com. Full validation suite: 18/18 passing.

Edge cases

  • No test infrastructure exists. Don't invent confidence you don't have. Manually exercise the code path if possible (run the script, hit the endpoint, render the component) and report exactly what you observed.
  • The task is genuinely trivial (fixing a typo, renaming a variable with no callers). A quick static read is proportionate — don't manufacture ceremony. State plainly that verification was lightweight and why.
  • Verification itself is flaky or slow. Say so and report what you did verify, rather than silently skipping the step or claiming a false pass.
  • You're the one who wrote the code. You're the worst-positioned person to judge it objectively — this is exactly why Rung 4 (independent review) exists. Prefer it whenever the capability is available.

Reference files

  • references/evidence-ladder.md — the five verification tiers in depth, with worked examples and guidance on how much evidence a given change warrants.
  • references/independent-review.md — how to get a genuinely independent check: a prompt template for spawning a fresh reviewer agent, and a "cold read" protocol for when no sub-agent capability exists.

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.