agentleFS
lsy041015lsy041015/orchestra/skills/verification-before-completion/SKILL.md

verification-before-completion

Skill2 starsChanged 2 months agoMITView on GitHub

Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires traceable verification evidence before success claims

190 other projects use a version of this, 1 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

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

  • 0

    Common

    Most of the 177 edited versions we read keep these.

  • 4

    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:

    Do not claim that work is complete, fixed, or passing until the current result has a verification record that another person can inspect.

    line 14
  2. Very specific:

    Run the affected check again when evidence is missing or summary-only, the code/dependency/environment/external state changed or is …

    line 31
  3. Distinctive:

    Before a completion or success claim:

    line 42
  4. Distinctive:

    If the evidence does not support the claim, report the actual status and the missing or failed check.

    line 52
  5. Distinctive:

    Keep the report short and inspectable.

    line 57

“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

Overview

Core principle: Evidence before claims, always.

The Evidence Rule

Do not claim that work is complete, fixed, or passing until the current result has a verification record that another person can inspect. A result may be reused when the main session confirms all of these conditions:

  • the same code state is under test, including staged and unstaged changes and relevant untracked or newly created files;
  • the command and verification scope are the same;
  • relevant dependencies, configuration, runtime, hardware, and external state are unchanged or known to be equivalent; and
  • the actual log and exit code are available, rather than only a success summary.

A Git SHA alone does not prove that an uncommitted change set or new file is unchanged. Outside Git, record the needed file version or content evidence. The main session checks the worker's evidence against the actual change set before reusing it.

Run the affected check again when evidence is missing or summary-only, the code/dependency/environment/external state changed or is uncertain, the requested scope is broader than the recorded scope, or the final integration state has not been checked. Do not rerun a full suite for every progress message when the evidence still satisfies this rule, and do not create an unbounded retry loop. After a failure, diagnose its cause and run the covering check after the fix; at the fix-round limit (two failed fixes with the same root cause, or three fix rounds on one task), stop and make a main-agent ruling.

The Gate Function

Before a completion or success claim:

  1. Identify the command or existing evidence that proves the claim.
  2. Compare its code, staged/unstaged/untracked state, environment, and scope with the current result.
  3. Run or reuse the evidence under the rule above. If running, execute the complete command needed for the claim.
  4. Read the output, exit code, and failure count or equivalent result.
  5. Report the evidence and only then state the supported claim.

If the evidence does not support the claim, report the actual status and the missing or failed check.

Verification record

Keep the report short and inspectable. At minimum record:

command: <exact command>
cwd: <working directory>
state: <commit plus staged/unstaged/untracked or file/content state>
environment: <relevant runtime, dependency, configuration, hardware, or external state>
exit: <numeric exit code>
log: <path or bounded result excerpt>

Store long logs in a file and report the failure cause, key result, and path in the conversation. A worker's PASS sentence is not evidence until these fields and the relevant state have been checked.

Common failures

ClaimRequired evidenceNot sufficient
Tests passThe required test command's output and exit codeA previous run without matching-state evidence or “should pass”
Linter is cleanThe applicable linter output and exit codeA partial check or extrapolation
Build succeedsThe build command's output and exit codeA linter result
Bug is fixedThe original symptom and covering regression checkCode changed with no behavior check
Regression check worksMeaningful RED and GREEN observationsA test file that ran once
Worker completedActual diff and verification recordThe worker's report alone
Requirements are metA requirement-by-requirement inspectionTests alone

TDD and requirement checks

For behavior changes, preserve a meaningful RED/GREEN record: the check fails for the original behavior, the smallest implementation makes it pass, and the covering check still passes for the final state. Use systematic debugging for unexpected failures rather than guessing.

Re-read the approved requirements and inspect each acceptance condition before reporting completion. Record gaps, environment limits, and unresolved failures explicitly. Apply the same evidence rule to review, plan execution, and integration decisions; do not silently convert a summary into proof.

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.