agentleFS
bordenetbordenet/superpowers-plus/skills/engineering/verification-before-completion/skill.md

verification-before-completion

Skill8 starsChanged 7 months agoMITView on GitHub

Use before claiming any work is complete, fixed, or passing — and before writing any response that presents results to a human. Requires evidence before assertions. If code was changed, check battery sentinel (or dispatch battery) before the completion claim. See AUTO-FIRE section in skill body for self-assessment trigger conditions.

  • Commits and pushes

190 other projects use a version of this, 135 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. 1 is common, 4 are distinctive, and 0 are very specific to this project.

  • 1

    Common

    Most of the 177 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:

    Before creating or merging a PR — even if you don't use the word "done"

    line 34
  2. Distinctive:

    Before closing a ticket or marking a task complete

    line 35
  3. Distinctive:

    After fixing a bug — verify the fix AND verify no regressions

    line 36
  4. Common:

    If you haven't run the verification command in this message, you cannot claim it passes.

    line 64
  5. Distinctive:

    No shortcuts: Run the command. Read the output.

    line 246

“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

Wrong skill? Pre-commit/push gate → unified-commit-gate. Branch done workflow → finishing-a-development-branch. Reviewing someone's PR → providing-code-review. Presenting a non-code artifact → progressive-harsh-review.

Verification Before Completion

When to Use

  • BEFORE FORMING the response — not after you notice you said "done"
  • Any time you are about to write a response that describes what you built or found
  • Before creating or merging a PR — even if you don't use the word "done"
  • Before closing a ticket or marking a task complete
  • After fixing a bug — verify the fix AND verify no regressions
  • At session end for any multi-step or TODO-backed work

The trigger is your INTENT, not your words. The moment you are composing a message to the human that presents results — that is the moment to run this skill. Not after you've written it.

Overview

Claiming work is complete without verification is dishonesty, not efficiency.

Core principle: Evidence before claims, always.

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

Completion-Gate Coordination

BEFORE running this skill's gate function, check:

Task TypeAction
Bulk edit, audit, or refactoringInvoke exhaustive-audit-validation FIRST, then return here
Single fix, feature, or bug fixContinue directly with this skill

The Iron Law

NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE

If you haven't run the verification command in this message, you cannot claim it passes.

⚠️ AUTO-FIRE TRIGGERS — INTENT STATES, NOT OUTPUT PHRASES

This skill fires on WHAT YOU ARE ABOUT TO DO, not on what you say.

"Even if there's only a 1% chance you are about to present results — fire this skill."

Internal state (INTENT)Required action before writing
About to write any response describing implementation resultsStop. Verify evidence first.
About to describe what you built or changedStop. This IS the trigger.
About to share an MR/PR/commit linkStop. Sentinel must exist for HEAD.
About to write a "here's what I did" summaryStop. Battery must have passed.
About to commit or push code changesStop. Battery must have passed.
About to claim a bug is fixedStop. Show test output proving it.
About to claim tests passStop. Show the actual test output.
Finishing a multi-step taskStop. Run TODO maintenance first.
ANY response that presents results — even without "done" languageSTOP. This IS the trigger.

The output phrase is NOT the trigger. An agent can share an MR link and write a completion summary without using "done", "shipped", or "fixed". That is the exact failure mode this skill exists to prevent.

The trigger is the INTENT TO PRESENT — the moment you begin composing a response to the human that describes results. That moment fires this skill.

The Gate Function

BEFORE forming any response that presents results to the human:

0. INTENT CHECK: Am I about to write a response presenting results?
   - YES → continue. NO → this skill doesn't apply yet.
   (Most common false negative: "I'm just sharing a link" — that IS presenting results.)

1. LOOSE-ENDS RETROSPECTIVE: See "Loose-Ends Retrospective" section below.
   - Scan session for unacted observations and deferred items.
   - Block on any must-address items before proceeding.

2. IDENTIFY: What command proves this claim?
   **Note — output-verification pre-satisfies this:** If `output-verification` has already run in this same response step (it fires first, order=0), Steps 2–4 (IDENTIFY, RUN, READ) are already satisfied for artifact-description claims. Continue from Step 5 (VERIFY) for those claims. Still run Steps 2–4 for any non-artifact claims (e.g., "tests pass," "PR created").
3. RUN: Execute the FULL command (fresh, complete)
4. READ: Full output, check exit code, count failures
5. VERIFY: Does output confirm the claim?
   - If NO: State actual status with evidence
   - If YES: State claim WITH evidence
6. CODE REVIEW GATE: If you made code changes, see "Code Review Gate" below.
   Run Step 0 of Code Review Gate BEFORE deciding whether to dispatch.
7. HOUSEKEEPING: If the work spanned multiple steps or used TODO.md, run:
   `~/.codex/superpowers-plus/tools/todo-maintenance.sh`
   Read the summary and resolve any stale-plan/archive surprises before proceeding.
8. ONLY THEN: Write the response

Skip any step = lying, not verifying

Loose-Ends Retrospective

Purpose: Catch observations noted but not acted on — primary source of shipped bugs and broken links. Defense-in-depth, not a perfect audit.

The Retrospective (run at Step 1)

Scan for:

  1. Unacted observations — "I noticed X", "the URL looks wrong" — without fixing it
  2. Deferred items — "I'll fix this later", "I'll do this later", "let me skip this for now"
  3. Technical debt introduced — TODO / FIXME / HACK comments written in code
  4. Open loose ends — single command handles count + note inspection:
    ~/.codex/superpowers-plus/tools/loose-ends.sh check
    # Exit 0 = clean. Non-zero = items listed with justification visibility.
    The pre-commit hook also runs this automatically at every commit.

Classify each item shown:

LabelAction
resolvedAlready addressed — proceed
deferredConfirm a note/reason line is visible in the output; if missing, escalate to human — no retrofit path exists — proceed once confirmed
must-addressFIX IT NOW — do not claim completion until resolved

Any must-address item → STOP → fix → restart gate from Step 1.

Code Review Gate

If you made code changes, you MUST verify battery evidence before claiming completion.

Step 0 — Sentinel short-circuit (run FIRST, before dispatching anything)

SENTINEL="$(git rev-parse --show-toplevel 2>/dev/null || echo .)/.code-review-cleared"
cat "$SENTINEL" 2>/dev/null || echo "NO CLEARANCE"
echo "HEAD: $(git rev-parse HEAD 2>/dev/null)"
# Check for uncommitted/staged changes (unreviewed code not yet in HEAD)
git diff --quiet && git diff --cached --quiet && echo "WORKTREE_CLEAN" || echo "WORKTREE_DIRTY"
Sentinel stateAction
NO CLEARANCEProceed to Step 1 (dispatch battery).
Sentinel SHA ≠ HEAD SHAProceed to Step 1 (battery is stale — changes were made after last review).
Sentinel valid for HEAD but WORKTREE_DIRTYProceed to Step 1 (staged/unstaged changes exist that were not reviewed — sentinel covers HEAD, not the current diff).
v1|SHA|PASS|... or PASS_WITH_NITS, SHA matches HEAD, AND WORKTREE_CLEANEvidence confirmed. Skip Step 1. Note the clearance and proceed to Step 5 (Housekeeping).
MalformedDelete .code-review-cleared, proceed to Step 1.

One-per-unit rule (agent self-enforcement): Battery fires at most once per coherent unit of work. If Step 0 confirms evidence, do NOT re-dispatch. This prevents double-dispatch when requesting-code-review and verification-before-completion both apply to the same moment. Note: this rule is expressed in skill prose (agent-layer), not in the runtime. The mechanical enforcement is at the git-hook layer (pre-commit Gate 0, pre-push Gate 1). Both layers are complementary.

Step 1 — Dispatch (only if Step 0 found no valid sentinel)

Self-review is not review. The implementer cannot objectively evaluate their own work.

ConditionAction
Made code changes (any .ts, .js, .py, .sh, etc.)Dispatch sub-agent-code-reviewer with diff context
Documentation-only changesSkip code review (still verify links/content)
Config-only changes (env, yaml, toml, json)Treat as code — dispatch code review (push gate enforces sentinel for these types)
Reviewer found issuesFix issues, re-dispatch reviewer
Reviewer approvedProceed to Step 5 (Housekeeping)

Dispatch template:

Provide the reviewer with:
1. What was implemented (1-2 sentences)
2. Files changed (list with purpose)
3. The actual diff or file contents to review
4. Specific review questions (verifiable, not "is this good?")
5. Request to run tests independently

The reviewer loads providing-code-review automatically. You do not need to tell them how to review.

Why: The 2026-03-23 incident — implementer ran 1,636 tests, self-reviewed, claimed "Fixed". Reviewer found a state leak immediately. Self-review is not review.

Common Failures

ClaimRequiresNot Sufficient
Tests passTest command output: 0 failuresPrevious run, "should pass"
Linter cleanLinter output: 0 errorsPartial check, extrapolation
Build succeedsBuild command: exit 0Linter passing, logs look good
Bug fixedTest original symptom: passesCode changed, assumed fixed
PR createdAPI response showing PR existsgit push succeeded
ShippedPR merged confirmationPR created

Red Flags - STOP

  • Using "should", "probably", "seems to"
  • Expressing satisfaction before verification ("Great!", "Perfect!", "Done!", "🚀", etc.)
  • About to commit/push/PR without verification
  • Trusting agent success reports
  • Relying on partial verification
  • Saying "Shipped!" after git push but before verifying PR was created
  • Finishing a multi-step session without running TODO maintenance

Rationalization Prevention

ExcuseReality
"Should work now"RUN the verification
"I'm confident"Confidence ≠ evidence
"Just this once"No exceptions
"Push succeeded"Push ≠ PR created
"Agent said success"Verify independently
"Different words so rule doesn't apply"Spirit over letter

Key Patterns

PR: ✅ [API returns: state=open, number=17] vs ❌ "Shipped!" after git push

Tests: ✅ [34/34 pass] vs ❌ "Should pass now"

Build: ✅ [exit 0] vs ❌ "Linter passed"

Incident History

DateViolationImpact
2026-03-13Said "Shipped! 🚀" after git push before verifying PR createdTrust erosion, required post-hoc verification
2026-03-23Claimed "Fixed" without dispatching code reviewerState leak caught only after user forced review
2026-04-02aPresented work as "ready to commit and push" without running code review batteryHuman caught the gap; unreviewed code nearly shipped
2026-04-02bCommitted, pushed branch, shared MR link + summary — no battery runWrong approach shipped to MR. Battery (when forced) found safety regression. Skills had explicit incident history from same session yet gate still failed. Transition from "implementation" to "reporting" was not recognized as trigger. Fix: sentinel file gate in pre-push hook + explicit "writing a summary" trigger.

The Bottom Line

No shortcuts. Run the command. Read the output. THEN claim the result. Non-negotiable.

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.