agentleFS
augments-labsaugments-labs/sdlc-skills/skills/testing/verification-before-completion/SKILL.md

verification-before-completion

Skill1 starsChanged 4 months agoMITView on GitHub

Runs the checks and reads their output before any claim that work is done. Use when work is about to be called complete, fixed, passing, done, or satisfactory, before any commit or PR, when evidence may be stale, partial, or bound to another state, or before saying that should do it, it's working now, or all set, even if no formal claim is made.

190 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use diagnosing-superpowers, chinese-git-workflow and 9 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

  • 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

  • MorningStar0709Skill

    workflow-runner

    Run an agency-orchestrator style YAML workflow inside the current Trae conversation by simulating or coordinating multiple roles. Use when the user provides a `.yaml` or `.yml` workflow, asks for multi-role collaboration, says things like “用多个角色一起评审这个 PRD”“多角色协作”“先生成工作流再执行”“让产品经理、架构师、QA 一起看一下”, or wants roles such as product manager, architect, reviewer, or QA to work together. Supports layered execution, role prompting, variable interpolation, document-backed inputs, and parallel steps only when the current environment has a clear subagent mapping. Do not use for ordinary implementation plans, simple code changes, or tasks already covered by `writing-plans`, `executing-plans`, `subagent-driven-development`, or single-purpose review/debug skills.

    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

9 rules. 0 are common, 7 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 177 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read the raw output, not the exit code, and record the run in its row.

    line 53
  2. Distinctive:

    Write the claim the rows support and nothing wider: what passed, on which state identity, what is pending.

    line 74
  3. Very specific:

    REQUIRED — return the ledger; this skill routes nowhere: Every unmet gate goes back with it, to the pending step of whatever asked.

    line 80
  4. Distinctive:

    Run no commit, push, PR, or merge from this skill.

    line 84
  5. Distinctive:

    Never report done while any requested item lacks a disposition.

    line 94
  6. Distinctive:

    Never claim a test passes without seeing it pass for the recorded state.

    line 95
  7. Distinctive:

    Never claim a bug fixed without a reproduction that failed before and passes after, with exact restoration/control evidence.

    line 96
  8. Distinctive:

    Never turn a worker's “success” report into evidence.

    line 98
  9. Distinctive:

    Never mutate a candidate with the bookkeeping meant to prove that candidate.

    line 100

“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

When to use

  • Never skip, including before the next task of a plan. The gate set comes from Step 1.3, not the size of the change: a one-line fix still runs the smallest gate that can fail.
  • An integrated UI adds visual-ui-verification to that set.

Available scripts

  • scripts/state-identity.sh — the capture and re-check of Steps 1.4 and 2.5.

Step 1: Bind the claim

  1. List every item the request asked for, including any added mid-conversation, each with a disposition: delivered, pending, blocked, or declined with a reason.
  2. Task-green claim with one required gate → a one-row inline ledger: claim, gate, state identity, raw result. Integration, release, or more than one gate → open assets/evidence-ledger.md before the first gate runs, filling each field (append-only, outside the candidate); Claim names the transition.
  3. One Results row per gate the task, plan, or assurance cadence requires here; missing, planned, blocked, or unreasoned → claim pending before anything runs. A named human acceptor → read references/manual-acceptance.md before its row.
  4. Capture the source state; add --committed when the candidate is a commit:

    before=$(bash scripts/state-identity.sh --quiet)
  5. Fill State for what the script cannot see.

Step 2: Run the gates

  1. Reuse a row only while the ledger's Invalidation list leaves it valid here, and record why. Run the rest fresh.
  2. Timeout, mid-run failure, or a backgrounded gate: wait or poll its exact process or task ID until it exits and its effects stop, record the result at a path naming this attempt, bind the row to it, reject late output and any log from before this attempt or another run. Repeated failure under unchanged conditions → diagnose or return pending, never rerun until a sample passes.
  3. Unwanted mutation: restore and rerun, or record it as pending.
  4. Read the raw output, not the exit code, and record the run in its row; redact only the copy shown to the user. An assertion that could not have failed for this code: say so, and do not cite the green. Repairing such a gate belongs to verification-strategy.
  5. Re-check with the flags used at capture:

    bash scripts/state-identity.sh --compare "$before"

    1, or 5 for content outside the commit → the source moved: identify the writer or normalization and recapture from Step 1.4, never committing here. 2–4 → no identity. Any nonzero leaves the claim pending. Zero → reconcile the other State inputs yourself.

Step 3: Claim and return

  1. Fill Inventory reconciliation: a required gate that did not run, or ran on another state, turns aggregate green red.
  2. Return the ledger without touching the candidate, failures and inconclusive rows intact.
  3. Write the claim the rows support and nothing wider: what passed, on which state identity, what is pending. A required row failed or unrun → not complete.
  4. A checkpoint commit reuses content-check rows only when --compare "$before" --committed exits 0. Commit, CI, and review gates bind to their own revision.
  5. REQUIRED — return the ledger; this skill routes nowhere. Every unmet gate goes back with it, to the pending step of whatever asked; never invoke that caller recursively. using-sdlc-skills' done rule routes what follows; only release-readiness decides release.
  6. Run no commit, push, PR, or merge from this skill.

Gotchas

  • A reused row binds to the state it ran on: a partial commit leaves reviewed files uncommitted while the digest still matches, and only --committed proves otherwise.

Hard stops

  • Never report done while any requested item lacks a disposition.
  • Never claim a test passes without seeing it pass for the recorded state.
  • Never claim a bug fixed without a reproduction that failed before and passes after, with exact restoration/control evidence.
  • Never turn a worker's “success” report into evidence; inspect its diff/state and raw output.
  • Never mutate a candidate with the bookkeeping meant to prove that candidate.
  • A never-falsified gate is suspect. Read references/hollow-verification.md before citing its green.
  • A gate silenced is not a gate passed. Suppressing a finding, lowering a strictness setting, or excluding a path changes what ran, not what is true — and the claim that gate supported is now unproven.
  • A flaky green is unexplained nondeterminism; route it through debugging.
  • Verified is not reviewed. A candidate at a completion or integration boundary requires requesting-code-review; task-local gate status is not that boundary unless its plan says so.

When tempted to skip

ThoughtReality
"It should work"Run the gate and make it a fact.
"I ran it earlier"Earlier state or evidence age may not support this transition.

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.