agentleFS
UlisesCmUlisesCm/navori-owl/.claude/skills/verify-before-done/SKILL.md

verify-before-done

Skill1 starsChanged 37 days agoMITView on GitHub

Use when about to declare a task done — the Iron Law of task closure: no success claim without fresh evidence from the command that backs it. Applies to implementer, reviewer, publisher and any response that declares "done".

14 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use plan-first.

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.
  • cathyzhang0905Skill

    plan-first

    Force agent to declare structured plan before tool execution. Activated by Cockpit's UserPromptSubmit hook for plan-worthy tasks.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 4

    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:

    No run THIS TURN, no claim.

    line 18
  2. Distinctive:

    BEFORE claiming "done / ready / approved": IDENTIFY the proving command → RUN it this turn → READ output, exit code, failures → VERIFY it …

    line 22
  3. Distinctive:

    Only the same command, run over the comparable base and the change, demonstrates a state: runs disagree → introduced.

    line 45
  4. Distinctive:

    Never git stash to measure it — it empties the shared tree.

    line 47

“Common” is measured: kept by at least 6 in 10 of the 13 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
<!-- navori:managed id="verify-before-done-base" hash="8a467680" version="0.12.3" source="@navori/core" fmkeys="name,description,metadata" -->

Verify Before Done

The Iron Law

NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE

No run THIS TURN, no claim. "Should work" and "previous run was green" are inference.

Gate function

BEFORE claiming "done / ready / approved": IDENTIFY the proving command → RUN it this turn → READ output, exit code, failures → VERIFY it confirms the claim (NO → declare the real state; YES → claim it WITH evidence).

Table: claim → required output → not sufficient

ClaimRequired outputNot sufficient
ruff check . / ruff check . && uv run pytest -m 'not docker' greenFull command run this turn, exit 0"ran it before"
Gate answered PASS (cached <date> … sha256 <hash>)Report it as cached, with date and log hash: a time shortcut, never review evidenceClaiming it as a fresh run
Zero new errors vs baselineClassify per Failure attribution below, demonstrated over mainDiff location alone
UI validated in the browser (only if asked)Observed state via the repo's browser tool"looks fine in code"
Bug fixedReproduce the original symptom and see it NOT happen"code changed, assumed fixed"
PR creatablePre-flight THIS TURN: not on the protected base branch, gh auth status, receipt "status":"ok" (prefer navori receipt check …; if the installed CLI lacks it, use the repository-built CLI); declared-inline change, your own run. No clean working tree required"the branch has commits, we can create it"
Tests / type-check cleanSuite / tsc --noEmit run fresh, exit 0"should still be green"
A shell edit landed (sed -i, a > redirect)Re-read the changed spanThe exit code (sed -i exits 0 on no match)
Suites, builds or coverage in the same checkoutOne at a time: parallel runs fight over dist and shared artifacts. Worktrees with their own dist may run togetherParallel runs
Active dist lockIdentify the owner, wait. Only a verified-dead owner's lock may be reclaimedDeleting the lock, killing another session's process
Full gate redFix with focal tests; rerun the full gate once the fix set is stable. Mandatory before sign/shipRerunning after every edit
Gate outlives Bash timeout, main sessionrun_in_background, wait on completion or Monitor; TaskStop unneeded tasks firstPolling (pgrep, ps | grep)
Gate outlives Bash timeout, subagentIts && steps one by one, foregroundBackgrounding — a subagent is never re-woken

Failure attribution

A failure is introduced (demonstrated), pre-existing (demonstrated), or origin not determined. Location relative to git diff --name-only main only orients; it never proves origin.

Only the same command, run over the comparable base and the change, demonstrates a state: runs disagree → introduced; agree → pre-existing; no comparable run → origin not determined.

Never git stash to measure it — it empties the shared tree. Never exempts a red gate.

Red flags (STOP)

  • About to write "done"/"ready"/"should work", or git commit/APPROVED, without a fresh ruff check . run and a full diff read.
  • Trusting a subagent's report without verifying its load-bearing claims (cited file:lines plus the diff it touched) — scope defined in .claude/agents/orchestrator.md § Anti-broken-telephone, never a full re-read of a validated diff.

Rationalization prevention

ExcuseReality
"Confident" / "passed 10 min ago" / "trivial" / "the subagent said done"None exempts verification. Re-run.

When invoked

implementer before done -> impl_<feature>.md; reviewer before APPROVED; publisher in pre-flight; any agent before "done".

Closing

State the claim, the fresh evidence, and any sub-claim you COULD NOT verify.

<!-- /navori:managed id="verify-before-done-base" -->

Project-specific checks

<!-- user: add here claims specific to your repo and their required evidence. Suggestions: - DB migrations: command to validate the state (e.g. your ORM's migration status). - Critical areas: auth, permissions, payments, data integrity → specific checks per area. - Repo scripts that count as "valid evidence" (e.g. `pnpm e2e:smoke`). - Commands forbidden as evidence (e.g. "the Vercel preview" if it's not a real repro). - Recurring bug patterns of the repo where inference has historically failed. -->

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.