agentleFS
Archive228Archive228/loopkit/skills/verification-before-completion/SKILL.md

verification-before-completion

Skill756 starsChanged 5 months agoMITView on GitHub

Use before claiming work is complete, fixed, or passing — before committing, opening a PR, or handing off. Requires running the verification command in THIS turn and reading its output before any success claim.

190 other projects use a version of this, 120 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use diagnosing-superpowers, chinese-git-workflow 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.
  • 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 6 projects that use this

  • MorningStar0709Skill

    chinese-git-workflow

    Configure Git for domestic platforms and manage branching strategies suitable for Chinese teams. Use when the user asks to configure remotes, set up SSH, or manage Git workflows for Gitee, Coding, Jihu GitLab, or CNB, including requests like "配置国内 Git", "设置 Gitee 远程仓库", "推荐适合小团队的 Git 流程".

    Also in 4 projects that use this

  • shibit-netSkill

    chinese-code-review

    中文 review 沟通参考——话术模板、分级标注(必须修复/建议修改/仅供参考)、国内团队常见反模式应对。仅在用户显式 /chinese-code-review 时调用,不要根据上下文自动触发。

    Also in 3 projects that use this

  • shibit-netSkill

    chinese-commit-conventions

    中文 commit 与 changelog 配置参考——Conventional Commits 中文适配、commitlint/husky/commitizen 中文模板、conventional-changelog 中文配置。仅在用户显式 /chinese-commit-conventions 时调用,不要根据上下文自动触发。

    Also in 3 projects that use this

  • c-reichertSkill

    finishing-a-branch

    Use when implementation is complete and all tests pass — guides branch completion by presenting structured options for merge, PR, or cleanup.

    Also in 3 projects that use this

  • MicrosoftSkill

    testing-anti-patterns

    Use when writing or changing tests, adding mocks, or tempted to add test-only methods to production code - prevents testing mock behavior, production pollution with test-only methods, and mocking without understanding dependencies

    Also in 4 projects that use this

  • +1 more from shibit-net

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 9 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 177 edited versions we read keep these.

  • 9

    Distinctive

    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 have not run the verification command in this message, you cannot claim it passes.

    line 16
  2. Distinctive:

    Before writing "done" / "fixed" / "green" / "ready to merge" — even in your own head:

    line 20
  3. Very specific:

    Run the test command. See 34/34 pass.

    line 65
  4. Distinctive:

    Never: "should pass now".

    line 66
  5. Distinctive:

    Write test → run (pass) → revert fix → run (MUST FAIL) → restore fix → run (pass).

    line 69
  6. Distinctive:

    Never: "I've added a regression test" without the red-green cycle.

    line 70
  7. Distinctive:

    Run the build. See exit 0.

    line 73
  8. Distinctive:

    Never: "linter passed, build should too".

    line 74
  9. Distinctive:

    Never: paste the agent's report and treat it as truth.

    line 78
  10. Distinctive:

    Run the command. Read the output.

    line 96

“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

Claiming work done without fresh verification is dishonesty, not efficiency. adversarial-verify is the what; this skill is the when — the gate you pass through right before any completion claim.

The Iron Law

NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE

If you have not run the verification command in this message, you cannot claim it passes. Not "should", not "probably", not "based on the diff".

The gate function

Before writing "done" / "fixed" / "green" / "ready to merge" — even in your own head:

  1. Identify — what exact command proves this claim?
  2. Run — execute it fresh, complete, in this turn.
  3. Read — full output, check exit code, count failures.
  4. Verify — does the output actually confirm the claim?
  5. Only then — make the claim, with the evidence attached.

Skip any step = you are lying to the user, not verifying.

Common false claims → what they actually need

ClaimRequiresNot sufficient
Tests passFresh test run, exit 0, 0 failures"should pass", previous run, "logic looks right"
Linter cleanLinter output, 0 errorsPartial check, extrapolating from unrelated files
Build succeedsBuild command, exit 0Linter passing, editor squiggles gone
Bug fixedReproduce original symptom, watch it not happenCode changed, "assumed" fixed
Regression test worksRed → green cycle verified (revert fix, watch test fail, restore, watch pass)Test passes once
Agent/subagent completedRead the VCS diff, verify claimed changes existAgent's own "success" report
Spec satisfiedLine-by-line checklist against the plan"Tests pass, phase complete"

Red flags — you are about to claim without verifying

  • Words like "should", "probably", "seems to", "looks good"
  • Satisfaction language ("Great!", "Perfect!", "Done!") before running the command
  • About to commit / push / open PR without a verification block in this turn
  • Trusting a subagent's own success report
  • "Just this once" thinking, or "I'm tired, close enough"
  • Partial verification (linter passed, so build must)

Rationalization prevention

ExcuseReality
"Should work now"RUN it.
"I'm confident"Confidence ≠ evidence.
"Linter passed"Linter ≠ compiler ≠ tests.
"The agent said success"Read the diff yourself.
"Partial check is enough"Partial proves nothing about the whole.
"Different words, so rule doesn't apply"Spirit over letter.

Patterns

Tests

  • Run the test command. See 34/34 pass. Then say "all tests pass".
  • Never: "should pass now".

Regression tests (real red-green)

  • Write test → run (pass) → revert fix → run (MUST FAIL) → restore fix → run (pass).
  • Never: "I've added a regression test" without the red-green cycle.

Build

  • Run the build. See exit 0. Then say "build passes".
  • Never: "linter passed, build should too".

Agent delegation

  • Subagent reports success → check the VCS diff → verify the claimed change is actually there → report actual state.
  • Never: paste the agent's report and treat it as truth.

When this fires

Always, before:

  • Any variation of success / completion / fixed / passing / green
  • Committing, opening a PR, marking a task done, handing off
  • Moving to the next task
  • Any positive statement about the work's state

Pair with

  • adversarial-verify — the 11 shortcuts agents take to fake "done"; run through the list, then run through this gate.
  • clean-commits — clean commits require verified content.
  • The verifier subagent — dispatch it; then verify its report against the diff (per the "Agent delegation" pattern above).

The bottom line

Run the command. Read the output. THEN claim the result. Non-negotiable.

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.