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
- blas1n/claude-skillsedited, first seen Oct 4, 2026
- HMBSbige/skillstheir own version, first seen Oct 3, 2026
- iliaal/ai-skillstheir own version, first seen Oct 3, 2026
- LayneChai/superpowers-dshedited, first seen Oct 3, 2026
- mnzralee/claude-multi-agent-architecturetheir own version, first seen Oct 3, 2026
- HanksChen0110/skillsedited, first seen Oct 3, 2026
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.
obraSkilldiagnosing-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
MorningStar0709Skillchinese-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-netSkillchinese-code-review
中文 review 沟通参考——话术模板、分级标注(必须修复/建议修改/仅供参考)、国内团队常见反模式应对。仅在用户显式 /chinese-code-review 时调用,不要根据上下文自动触发。
Also in 3 projects that use this
shibit-netSkillchinese-commit-conventions
中文 commit 与 changelog 配置参考——Conventional Commits 中文适配、commitlint/husky/commitizen 中文模板、conventional-changelog 中文配置。仅在用户显式 /chinese-commit-conventions 时调用,不要根据上下文自动触发。
Also in 3 projects that use this
c-reichertSkillfinishing-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
MicrosoftSkilltesting-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
Other versions190 projects use a version of this.
Word for word · 0
None found.
Edited · 135
- obra/superpowers★ 314k35% same
- openai/plugins★ 7.3k35% same
- pedronauck/skills★ 63335% same
- coco-research/coco★ 43732% same
- Ibrahim-3d/orchestrator-supaconductor★ 38032% same
- totvs/engpro-advpl-tlpp-skills★ 13833% same
- Houseofmvps/ultraship★ 12333% same
- LayneChai/superpowers-dsh★ 10235% same
- coctostan/pi-superpowers★ 7033% same
- roundpilot/superpowers-antigravity★ 7029% same
125 more not listed
Wrote their own version · 55
- jnMetaCode/superpowers-zh★ 8.3ksame name
- GanyuanRan/Aegis★ 1.3ksame name
- Archive228/loopkit★ 756same name
- KbWen/agentic-os★ 206same name
- TheGoat395/Codex-Skills★ 125same name
- shibit-net/xuanji-community★ 93same name
- withzombies/hyperpowers★ 80same name
- tranhieutt/software_development_department★ 72same name
- ivyfan-toowell/IvyClaw★ 61same name
- drvoss/everything-copilot-cli★ 47same name
45 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository128 other files it gives its agents.
- AGENTS.mdAGENTS.md
- guidance/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- guidance/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- blast-radius-checkSkill
- brainstormingSkill
- branch-flow-gateSkill
- branch-sync-gateSkill
- codebase-reconSkill
- codeowners-drift-auditSkill
- code-review-batterySkill
- cognitive-complexity-refactoringSkill
- debateSkill
- debug-conductorSkill
- dispatching-parallel-agentsSkill
- domain-buildSkill
- evidence-adjudicatorSkill
- executing-plansSkill
- external-cli-auditSkill
- feature-developmentSkill
- field-rename-verificationSkill
- finishing-a-development-branchSkill
- git-branch-conventionsSkill
- gitlab-cliSkill
- hotfix-charterSkill
- implementation-trackerSkill
- infra-config-investigatorSkill
- investigation-stateSkill
- kernel-splitSkill
- llm-behavior-investigatorSkill
- llm-skill-reviewSkill
- merge-authorization-gateSkill
- micro-harsh-reviewSkill
- output-verificationSkill
- pre-commit-gateSkill
- progressive-code-review-gateSkill
- progressive-harsh-reviewSkill
- providing-code-reviewSkill
- pr-triage-gateSkill
- push-authorization-gateSkill
- receiving-code-reviewSkill
- reproduction-experiment-investigatorSkill
- requesting-code-reviewSkill
- requirements-validation-pmSkill
- requirements-validationSkill
- scope-tripwireSkill
- session-handoffSkill
- skills-hierarchy-tuningSkill
- sp-bughuntSkill
- state-consistency-investigatorSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- timeline-trace-investigatorSkill
- token-estimationSkill
- unified-commit-gateSkill
- using-git-worktreesSkill
- using-superpowersSkill
- experimental-self-promptingSkill
- The first 60 shown.
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
- Distinctive: line 34
Before creating or merging a PR — even if you don't use the word "done"
- Distinctive: line 35
Before closing a ticket or marking a task complete
- Distinctive: line 36
After fixing a bug — verify the fix AND verify no regressions
- Common: line 64
If you haven't run the verification command in this message, you cannot claim it passes.
- Distinctive: line 246
No shortcuts: Run the command. Read the output.
“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.
Files
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 Type | Action |
| Bulk edit, audit, or refactoring | Invoke exhaustive-audit-validation FIRST, then return here |
| Single fix, feature, or bug fix | Continue directly with this skill |
The Iron Law
NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCEIf 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 results | Stop. Verify evidence first. |
| About to describe what you built or changed | Stop. This IS the trigger. |
| About to share an MR/PR/commit link | Stop. Sentinel must exist for HEAD. |
| About to write a "here's what I did" summary | Stop. Battery must have passed. |
| About to commit or push code changes | Stop. Battery must have passed. |
| About to claim a bug is fixed | Stop. Show test output proving it. |
| About to claim tests pass | Stop. Show the actual test output. |
| Finishing a multi-step task | Stop. Run TODO maintenance first. |
| ANY response that presents results — even without "done" language | STOP. 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 verifyingLoose-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:
- Unacted observations — "I noticed X", "the URL looks wrong" — without fixing it
- Deferred items — "I'll fix this later", "I'll do this later", "let me skip this for now"
- Technical debt introduced — TODO / FIXME / HACK comments written in code
- Open loose ends — single command handles count + note inspection:
The pre-commit hook also runs this automatically at every commit.~/.codex/superpowers-plus/tools/loose-ends.sh check # Exit 0 = clean. Non-zero = items listed with justification visibility.
Classify each item shown:
| Label | Action |
resolved | Already addressed — proceed |
deferred | Confirm a note/reason line is visible in the output; if missing, escalate to human — no retrofit path exists — proceed once confirmed |
must-address | FIX 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 state | Action |
NO CLEARANCE | Proceed to Step 1 (dispatch battery). |
| Sentinel SHA ≠ HEAD SHA | Proceed to Step 1 (battery is stale — changes were made after last review). |
Sentinel valid for HEAD but WORKTREE_DIRTY | Proceed 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_CLEAN | Evidence confirmed. Skip Step 1. Note the clearance and proceed to Step 5 (Housekeeping). |
| Malformed | Delete .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.
| Condition | Action |
Made code changes (any .ts, .js, .py, .sh, etc.) | Dispatch sub-agent-code-reviewer with diff context |
| Documentation-only changes | Skip 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 issues | Fix issues, re-dispatch reviewer |
| Reviewer approved | Proceed 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 independentlyThe 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
| Claim | Requires | Not Sufficient |
| Tests pass | Test command output: 0 failures | Previous run, "should pass" |
| Linter clean | Linter output: 0 errors | Partial check, extrapolation |
| Build succeeds | Build command: exit 0 | Linter passing, logs look good |
| Bug fixed | Test original symptom: passes | Code changed, assumed fixed |
| PR created | API response showing PR exists | git push succeeded |
| Shipped | PR merged confirmation | PR 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
| Excuse | Reality |
| "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
| Date | Violation | Impact |
| 2026-03-13 | Said "Shipped! 🚀" after git push before verifying PR created | Trust erosion, required post-hoc verification |
| 2026-03-23 | Claimed "Fixed" without dispatching code reviewer | State leak caught only after user forced review |
| 2026-04-02a | Presented work as "ready to commit and push" without running code review battery | Human caught the gap; unreviewed code nearly shipped |
| 2026-04-02b | Committed, pushed branch, shared MR link + summary — no battery run | Wrong 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.
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
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.

