agentleFS
sebastienrousseausebastienrousseau/agtmls/skills/verification-before-completion/SKILL.md

verification-before-completion

Skill1 starsChanged 3 months agoApache-2.0View on GitHub

The gate between doing work and claiming it is done. Load before saying finished, fixed, working, or ready, before marking a task complete, and before reporting an outcome to a human. Converts each claim into the observation that would justify it, and names the rationalizations that let unverified work ship. Not the project's own evidence bar or test taxonomy.

  • Commits and pushes

189 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use chinese-code-review, chinese-commit-conventions and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Leodorareluctant259Skill

    chinese-code-review

    中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈

    Also in 8 projects that use this

  • Leodorareluctant259Skill

    chinese-commit-conventions

    中文 Git 提交规范 — 适配国内团队的 commit message 规范和 changelog 自动化

    Also in 8 projects that use this

  • obraSkill

    diagnosing-superpowers

    Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.

    Also in 20 projects that use this

  • jh941213Skill

    docs-ci

    문서 CI(링크·OpenAPI lint·breaking 게이트·mermaid 검증)나 문서 드리프트 감지(docs.yaml 신선도 검사)를 설치하거나 돌릴 때 사용. 문서 내용 작성은 docs-architecture·docs-interfaces·docs-manuals.

    Also in 3 projects that use this

  • jh941213Skill

    docs-interfaces

    API·이벤트 인터페이스 문서(OpenAPI·swagger·AsyncAPI 명세, 엔드포인트 레퍼런스, API 구성도·시퀀스, API CHANGELOG)를 만들거나 코드와 맞출 때 사용. 시스템 구성도는 docs-architecture, API 설계 원칙은 api-design-principles.

    Also in 3 projects that use this

  • +3 more from Leodorareluctant259
  • +4 more from jh941213

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 177 edited versions we read keep these.

  • 7

    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:

    Run this before every completion claim.

    line 41
  2. Distinctive:

    Write the claim as one sentence, in the form a reader will act on.

    line 46
  3. Distinctive:

    Ask literally: *did I run this, after my last edit?* If the answer is "I ran something like it earlier", the answer is no.

    line 80
  4. Distinctive:

    Do not loop: If a check fails twice for reasons outside the change (no network, a missing service, a flaky harness), report the claim …

    line 106
  5. Distinctive:

    Never act just to verify: Do not deploy, push, send or delete to prove a claim.

    line 109
  6. Distinctive:

    Downgrade instead of over-running: When the evidence would cost more than the claim is worth, make the narrower claim and name the gap.

    line 111
  7. Distinctive:

    "Green on my machine.": Not the full gate. Partial runs hide cross-module breakage.

    line 124

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

Verification before completion

Trigger. You are about to write done, fixed, working, should work, ready, that's it, all set, or to mark a task complete — or a human asked whether something is finished.

Reference material (the full claim→evidence table, the rationalization catalogue with counter-moves, and worked pass/fail transcripts): see reference.md in this directory. This file is the gate and the loop.

The rule

A claim you have not observed is a guess. Report it as one, or go and observe it.

This is not about being slow or hedging. It is about the difference between I ran it and saw X and it should do X. The first is a report. The second is a prediction wearing a report's clothes, and it is the single most common way agent work goes wrong: not a bad edit, but a correct-looking edit reported as verified when nobody looked.

The loop

Run this before every completion claim. It is four questions, not four commands: often the answer to step 2 is one observation you already have.

1. What exactly am I claiming?

Write the claim as one sentence, in the form a reader will act on. Vague claims cannot be verified, so sharpen first:

VagueSharp
"the tests pass""pytest tests/ exited 0 with 214 passed, 0 failed"
"I fixed the bug""the reported input now returns 3 instead of raising"
"it builds""cargo build --all-features exited 0 with no warnings"
"the API works""GET /health returned 200 with {\"ok\":true}"

2. What observation would justify it?

For each claim, name the artifact that proves it — a command's exit code and output, a file's content, a screenshot, a log line. If you cannot name one, the claim is not verifiable as stated: go back to step 1.

The mapping is mechanical. The full table is in reference.md; the load-bearing rows:

ClaimRequired observation
Behaviour changedThe new behaviour executed, and evidence it differed before
Bug fixedA test that fails on the pre-fix tree and passes now
Tests passThe runner's own summary line, from this working tree
Nothing else brokeThe full suite, not the file you touched
Performance improvedA measurement with a stated baseline and variance
Config/deploy worksThe system started and served, not that YAML parsed

3. Did I actually observe it — in this state of the tree?

The trap is stale evidence: a green run from three edits ago, a test seen passing before the last refactor, output from a different branch. Evidence expires the moment the tree changes.

Ask literally: did I run this, after my last edit? If the answer is "I ran something like it earlier", the answer is no.

4. What did I not check?

Name it explicitly in the report. An honest gap is information; a silent gap is a defect you handed to someone else. See Reporting below.

Size the check to the risk

Checking more than the claim needs is its own failure. It burns time and tokens, and a heavy verification ritual on every step is a documented way skills make agents worse. The rule governs what you claim, not how much you run:

  • Claim what the risk calls for. A typo or comment fix needs "the text now reads X": one look, not "nothing else broke". A change inside one function needs its targeted test, failing first if it fixes a bug. Claim "nothing else broke", and run the full suite for it, when the change reaches shared code, or before a merge or release; that is usually the project's own gate.
  • Irreversible or outward-facing work gets the most. Releases, migrations, deletions and security fixes: the full gate, then read the result back from where it landed.
  • One observation per claim. Once you have it for this tree, stop. Do not re-run an unchanged check to feel sure.
  • Do not loop. If a check fails twice for reasons outside the change (no network, a missing service, a flaky harness), report the claim unverified with the command to run, instead of retrying.
  • Never act just to verify. Do not deploy, push, send or delete to prove a claim. Ask, or report it unverified.
  • Downgrade instead of over-running. When the evidence would cost more than the claim is worth, make the narrower claim and name the gap.

Red flags — none of these is verification

Each of these has been mistaken for evidence. None of them is:

  • "It compiles" / "it typechecks." Necessary, never sufficient. The compiler proves shape, not behaviour.
  • "It looks right." Reading a diff is not running it. You are checking your own intent against itself.
  • "The test passes." Did you see it fail first? A test that never failed proves the harness runs, not that the behaviour is pinned.
  • "Green on my machine." Not the full gate. Partial runs hide cross-module breakage.
  • "The linter is wrong here." Maybe. Justify a specific, inline suppression, never a blanket one.
  • A delta inside noise. A 3% benchmark change with 8% run-to-run variance is not an improvement. State the variance or make no claim.
  • The tool reported success. Tools report their success. git push succeeding says nothing about CI.

Rationalizations to reject

These are the sentences that talk you past the gate. Each has a counter-move; the full catalogue with worked examples is in reference.md.

RationalizationCounter-move
"This edge case won't happen"Test it, or write down why it cannot occur
"I'll verify in a follow-up"Same turn, or it did not happen
"It's a trivial change"Then its check is small too: one direct look at the result, not the full gate. But still one
"The user is waiting"A wrong answer costs them more than 30 seconds
"It worked last time"Different tree, different answer
"Close enough"Prove the equivalence or state the difference
"I can't run it here"Then say so, and label the claim unverified

That last row is the important one. Being unable to verify is an acceptable outcome. Claiming verification you do not have is not.

Reporting

State what you did, what you observed, and what you skipped. Three shapes:

Verified. Say it plainly, with the observation. No hedging — hedging a verified result is its own failure mode.

Fixed. pytest tests/test_parser.py now passes (14 passed); it failed with KeyError: 'root' before the change. Full suite: 214 passed, 0 failed.

Partly verified. Lead with what holds, then the gap.

The parser change works — the failing input now returns 3, confirmed by the new test. I have not run the integration suite; it needs a live database I can't reach from here.

Unverified. Say so first, before the description.

Unverified: I could not run this. The change follows the pattern in handlers/auth.py:88 and should make the timeout configurable, but I have not executed it. Run make test-integration to confirm.

When not to use

  • The project defines its own evidence bar, gates, or test taxonomy — follow that first; this skill is the general habit underneath it.
  • Pure discussion, brainstorming, or exploration with no completion claim.
  • You are debugging and do not yet have a fix to verify — that is systematic-debugging.

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.