agentleFS
harshadmadayeharshadmadaye/OPM/skills/verification-before-completion/SKILL.md

verification-before-completion

Skill4 starsChanged 57 days agoMITView on GitHub

Requires running verification commands and reading their actual output before any claim that work is complete, fixed, or passing. Use when about to say done, tests pass, or bug fixed; before committing, a PR, or trusting a subagent's report; or when asked to run the full quality gate (build, types, lint, tests, secrets, diff).

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

Adopted by

Most recently taken up by

Used with

Projects with it also use chinese-git-workflow, chinese-code-review 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-git-workflow

    适配国内 Git 平台和团队习惯的工作流规范——Gitee、Coding、极狐 GitLab 全覆盖

    Also in 9 projects that use this

  • Leodorareluctant259Skill

    chinese-code-review

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

    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

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

  • 1

    Common

    Most of the 179 edited versions we read keep these.

  • 2

    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. Common:

    If you have not run the verification command in this message, you cannot claim it passes.

    line 22
  2. Very specific:

    Full gate: before a PR, a release, or a phase close (or when asked for the full verification loop), read references/full-loop.md and run …

    line 43
  3. Distinctive:

    When the evidence is in, report it, not just the conclusion:

    line 138
  4. Distinctive:

    If any line fails, the work is not done.

    line 148

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

Violating the letter of this rule is violating the spirit of this rule.

Announce at start: "Using opm:verification-before-completion before claiming this is done."

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.

The Gate Function

BEFORE claiming any status or expressing satisfaction:

1. IDENTIFY: What command proves this claim?
2. RUN: Execute the FULL command (fresh, complete)
3. READ: Full output, check exit code, count failures
4. VERIFY: Does output confirm the claim?
   - If NO: State actual status with evidence
   - If YES: State claim WITH evidence
5. ONLY THEN: Make the claim

Skip any step = lying, not verifying

Quick Gate or Full Gate

  • Quick gate: the Gate Function above, for any done claim.
  • Full gate: before a PR, a release, or a phase close (or when asked for the full verification loop), read references/full-loop.md and run all six gates: build, types, lint, tests, secrets, diff review.

Claim -> Required Evidence

ClaimRequiresNot Sufficient
Tests passTest command output: 0 failuresPrevious run, "should pass"
Linter cleanLinter output: 0 errorsPartial check, extrapolation
Type check cleanType checker output: 0 errorsEditor shows no squiggles
Build succeedsBuild command: exit 0Linter passing, logs look good
Bug fixedTest of original symptom: passesCode changed, assumed fixed
Regression test worksRed-green cycle verifiedTest passes once
Fast / smooth / battery-friendlyMeasured on physical-device or prod-like, env statedA simulator or unit run: report NOT JUDGEABLE
Subagent completedgit diff / git log shows the changesAgent reports "success"
Requirements metLine-by-line checklist against spec/planTests passing
Plan task completeTask's own test steps run, output readImplementer said DONE
No silent failuresError paths exercised or reviewed (silent-failure-hunter subagent for large diffs)"I handled errors"
Safe to shipsecurity-reviewer subagent or /security-review on the diff"Nothing sensitive touched"

Red Flags - STOP

  • Using "should", "probably", "seems to"
  • Expressing satisfaction before verification ("Great!", "Perfect!", "Done!")
  • About to commit, push, or open a PR without verification
  • Trusting a subagent's success report without checking the diff
  • Relying on partial verification (one test file, one platform)
  • Thinking "just this once"
  • Tired and wanting the work to be over
  • ANY wording implying success without having run verification

Rationalization Prevention

ExcuseReality
"Should work now"RUN the verification.
"I'm confident"Confidence is not evidence.
"Just this once"No exceptions.
"Linter passed"Linter is not the compiler, and neither is the test suite.
"Agent said success"Verify independently: read the diff, run the tests.
"I ran it earlier"Earlier is before the last edit. Run it again.
"I'm tired"Exhaustion is not an excuse.
"Partial check is enough"Partial proves nothing about the rest.
"Different words so the rule doesn't apply"Spirit over letter.
"The reviewer approved it"Review is not execution. Run the command.

Key Patterns

Tests:

OK:  [Run test command] [See: 34/34 pass] "All tests pass"
BAD: "Should pass now" / "Looks correct"

Regression tests (TDD red-green, see opm:tdd-workflow):

OK:  Write -> Run (pass) -> Revert fix -> Run (MUST FAIL) -> Restore -> Run (pass)
BAD: "I've written a regression test" (without red-green verification)

Build:

OK:  [Run build] [See: exit 0] "Build passes"
BAD: "Linter passed" (linter does not check compilation)

Requirements:

OK:  Re-read plan/spec -> Create checklist -> Verify each item -> Report gaps or completion
BAD: "Tests pass, phase complete"

Subagent delegation:

OK:  Agent reports success -> Check git diff -> Run the task's tests -> Report actual state
BAD: Trust the agent's report

When To Apply

ALWAYS before:

  • ANY variation of a success or completion claim
  • ANY expression of satisfaction
  • ANY positive statement about the state of the work
  • Committing, PR creation, task completion
  • Moving to the next task in opm:executing-plans
  • Delegating to, or accepting results from, subagents

The rule applies to:

  • Exact phrases
  • Paraphrases and synonyms
  • Implications of success
  • ANY communication suggesting completion or correctness

Reporting Format

When the evidence is in, report it, not just the conclusion:

Verification:
- `npm test` -> 112 passed, 0 failed (exit 0)
- `npm run lint` -> 0 errors, 0 warnings
- `npm run build` -> exit 0
- Spec checklist: 7/7 requirements have a passing test

If any line fails, the work is not done. Say so, with the failing output, and keep going.

<!-- Adapted from obra/superpowers (MIT) -->

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.