agentleFS
pedropacheco95pedropacheco95/cortex/skills/verification-before-completion/SKILL.md

verification-before-completion

Skill2 starsChanged 25 days agoMITView on GitHub

Evidence gate before claiming work done, fixed, or passing.

191 other projects use a version of this.

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

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

  • 0

    Common

    Most of the 180 edited versions we read keep these.

  • 5

    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 claiming any work is done, fixed, passing, building, or complete.

    line 10
  2. Distinctive:

    NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE

    line 20
  3. Distinctive:

    Run this before the claim leaves your mouth — not after, not "at the end".

    line 30
  4. Distinctive:

    Name the claim: Write the sentence you are about to say.

    line 32
  5. Distinctive:

    Check freshness: Do you hold that evidence, from this turn, from after your last edit?

    line 36

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

When to use

Run this before claiming any work is done, fixed, passing, building, or complete. It is the evidence gate: name the claim, look up what evidence that kind of claim requires, and check that you hold that evidence from the current turn — not from before your last edit. Use it when you are about to say "tests pass", "the bug is fixed", "it builds", "the schema validates", "I didn't touch that file", or any status report a human would act on. Works in any project, under any build process — it requires no spec tree and no Cortex module. If you are about to write a completion summary, you are in scope.

The Iron Law

NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE

Violating the letter of this law is violating the spirit. If you find yourself constructing a reading under which this does not apply to your case, that construction is the violation.

"Fresh" means: produced in the current turn, after your most recent change. Evidence from before the last edit describes a state that no longer exists.

The gate

Run this before the claim leaves your mouth — not after, not "at the end".

  1. Name the claim. Write the sentence you are about to say. "All tests pass." "The bug is fixed." "Nothing else changed."
  2. Look it up in the claim→evidence table below. If your claim is not listed, find the nearest row; the principle generalises.
  3. Check freshness. Do you hold that evidence, from this turn, from after your last edit? Not "did I run it earlier" — this turn, after the change.
  4. If yes: make the claim and cite the evidence — the command and the part of its output that supports the claim.
  5. If no: obtain the evidence before speaking. Run the command. Then go to 3.
  6. If it cannot be obtained (no such test exists, the environment is unavailable, the check needs credentials you do not have): narrow the claim to what you did verify and state plainly what you did not. Never make the unqualified claim anyway.

Claim → required evidence

ClaimEvidence that discharges it
"The tests pass"The test command run this turn, after the last edit, with its output cited (pass counts, or the failing list being empty). Not a subset run when the claim is about the suite.
"The bug is fixed"The specific failing case re-run this turn and now passing. A green suite that never contained the failing case is not evidence.
"It builds" / "it compiles"The build command run this turn, exit status seen.
"The spec / schema is valid"cortex validate run this turn, its output read, violations enumerated or absent.
"I didn't change X"The diff inspected this turn (git diff, git status) and X absent from it. Memory of intent is not evidence of effect.
"It works" / "it's done"Too vague to verify — decompose it into the claims above and discharge each. If it cannot be decomposed, it cannot be claimed.
"The file/config is correct"The file read back this turn, in its final state, after the last write.

For a claim not in the table, ask: what observation would be different if this claim were false? Make that observation.

What "citing evidence" means

Not "I ran the tests and they pass." Rather: the command you ran, and the result line.

Ran pnpm test: 1195 passed, 9 skipped, 0 failed, 84 files.

The citation is what makes the claim checkable by the person reading it. A claim without one asks them to trust you; a claim with one lets them verify in two seconds.

Rationalization table

These are the thoughts that actually defeat this gate. When you notice one, you are at the moment the gate exists for.

Thought/ExcuseReality
"This change is too trivial to re-verify."Trivial changes are exactly where untested assumptions hide — a typo'd path, an inverted condition. The re-run costs seconds; the false claim costs the user's trust in every other claim you made.
"The tests passed earlier."Earlier was before your edit. You hold evidence about a state that no longer exists. That is not weaker evidence; it is evidence about something else.
"It obviously works — I can see the code is right."Reading your own code checks your intent, not the system's behaviour. Every shipped bug was obviously right to whoever wrote it.
"The user is waiting; I'll verify after I report."Then you will report something you have not checked, and the verification becomes a formality performed on a claim already believed. Report a minute later and be right.
"I'll do one verification pass at the end."The end is where verification gets cut for time or context. Verify at the boundary you are crossing now, while the evidence is cheap to get.
"The test command is slow / expensive."Then run the narrow case and narrow the claim to match it. Cost is a reason to shrink the claim, never a reason to widen it past the evidence.
"It failed for an unrelated reason, so it basically passes.""Basically passes" is a claim about a run you have not seen succeed. Either the failure is unrelated — prove it and say so explicitly — or it is yours.

Worked example

You have just fixed a null-guard in src/schema/checks/devspec.ts and are about to write: "Fixed — the validator no longer crashes on specs with no frontmatter, and the suite is green."

Two claims, so two lookups.

  • "no longer crashes on specs with no frontmatter" → row 2. Required: the failing case re-run. You have not run it since the edit; you inferred it from the code. Go get it: run the validator against the fixture with empty frontmatter, this turn.
  • "the suite is green" → row 1. Required: the test command this turn. You ran pnpm test before making the fix. That is stale. Re-run it.

Now suppose the re-run shows 1194 passed and 1 failure in an unrelated file. The last rationalization row applies: you do not get to say "green". You say what is true —

Ran the empty-frontmatter fixture: passes (previously threw). Ran pnpm test: 1194 passed, 1 failed — tests/spec/loops/test-runner.test.ts, which was already failing on main and does not touch the validator.

That report is longer and it is correct, which is the whole trade.

Cortex 4.0 store

Which store (Cortex 4.0 transition). If cortex/cortex.json exists, this project uses the 4.0 store: read cortex/ in place of the .cortex/ paths in this skill. Start from cortex/MAP.md. Rules are in cortex/world/rules/ (they apply by match.paths, not governs), decisions in cortex/world/decisions/, terms in cortex/world/terms/, working preferences in cortex/world/agreements/working-preferences.md, and open pitfalls (the former open bugs) in cortex/code/<area>/ with status: open. There is no insight layer in 4.0: where this skill would query insight, read the file and grep cortex/code/<area>/ and cortex/world/terms/. Check the store with cortex store validate. While .cortex/ also exists and the migration is not accepted (migration.accepted is null in cortex/cortex.json), read cortex/ but write nothing to either store beyond what this skill's 3.x instructions already allow. After acceptance, write nothing to .cortex/; file a durable fact with the cortex-remember skill. Without cortex/cortex.json, use the .cortex/ paths as written.

Scope

This skill is process-agnostic. It requires no spec tree, no .specflow/, and no Cortex module — it works in a bare repository. Where a project does record its verification commands (a Cortex project may name them in .cortex/compass/), read them and use the project's own commands instead of guessing; that is enrichment, never a precondition.

Nothing here blocks the human. This is an agent-facing discipline: it constrains what you assert, not what the user may do.

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.