Agent Skill
Verification before completion
obra's Superpowers skill that stops the agent claiming work is done, fixed or passing until it has run the checks and read the output. Evidence first.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkInstall
Commands are pinned to commit 22f0b46, the version we read, wherever the install method supports it.
npx skills
npx skills add obra/superpowers@22f0b463e7a5e579904dd6211a520321035526f7 --skill verification-before-completion -a claude-codeCopies the skill into .claude/skills/ in this project, pinned to the reviewed commit.
Plugin marketplace
/plugin install superpowers@claude-plugins-officialRun inside Claude Code. Installs the whole superpowers plugin from its default branch, not the pinned commit; the official marketplace is available by default.
Upload
git clone https://github.com/obra/superpowers.git
cd superpowers && git checkout 22f0b463e7a5e579904dd6211a520321035526f7
cd skills && zip -r ~/verification-before-completion.zip verification-before-completionThen in Claude open Customize > Skills, choose + > Upload a skill and pick the zip. Code execution must be enabled in Settings > Capabilities.
npx skills
npx skills add obra/superpowers@22f0b463e7a5e579904dd6211a520321035526f7 --skill verification-before-completion -a codexInstalls to .agents/skills/, which Codex scans from the working directory up to the repo root.
npx skills
npx skills add obra/superpowers@22f0b463e7a5e579904dd6211a520321035526f7 --skill verification-before-completion -a cursorInstalls to .agents/skills/, one of the folders Cursor reads skills from.
gh skill
gh skill install obra/superpowers skills/verification-before-completion --pin 22f0b463e7a5e579904dd6211a520321035526f7 --agent github-copilotNeeds GitHub CLI 2.90.0 or later. Use --scope user to install for every repository.
npx skills
npx skills add obra/superpowers@22f0b463e7a5e579904dd6211a520321035526f7 --skill verification-before-completionPinned to the commit we reviewed. The CLI asks which agents to install for; add -g to install for your user instead of this project.
What it does
A short skill aimed at one failure: an agent saying “all tests pass” without having run them. It defines a gate (identify the command that proves the claim, run it, read the full output, then state the result), lists red-flag phrases such as “should work” and “looks correct”, and covers the excuses agents use to skip the step.
When to use it
Always, in any agent that writes code. It costs little to keep installed and catches the most common way agent work goes wrong: a confident report of success that nobody checked. It is especially useful in long sessions and in unattended runs where you only read the final message.
The red-flag phrases are a useful list for humans too. If an agent’s summary says “should work” or “looks correct”, ask what it ran.
When to skip it
Pure conversation or writing tasks, where there is no command that proves a claim. Otherwise there is little reason to leave it out.
Try it
Fix the failing date parsing test. Before you tell me it's done, run
the full test suite and paste the summary line.
What it can touch
- Bundles scripts
- No
- Pre-approved tools
- None declared
- Needs
- Nothing beyond the agent
- Client-specific fields
- None, spec fields only
- Files
- At commit
22f0b46the SKILL.md is 121 lines long and it is the only file in the folder.
Its instructions steer what your agent does, and it may have changed since the commit we read. How to check a skill.
Instructions only, about 120 lines. Cheap to keep installed.
Alternatives
Test-driven development and systematic debugging from the same set. Finishing a development branch runs the tests once more before merging or opening a PR.
SKILL.md
The file exactly as published at the reviewed commit, reproduced under its MIT licence.
---
name: verification-before-completion
description: Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
---
# Verification Before Completion
## Overview
**Core principle:** Evidence before claims, always.
**Violating the letter of this rule is violating the spirit of this rule.**
## 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.
## The Gate Function
```
BEFORE claiming any status or expressing satisfaction:
1. IDENTIFY: What command proves this claim?
2. RUN: Execute the FULL command (fresh, complete)
3. READ: Full output, check exit code, count failures
4. VERIFY: Does output confirm the claim?
- If NO: State actual status with evidence
- If YES: State claim WITH evidence
5. ONLY THEN: Make the claim
Skip any step = lying, not verifying
```
## 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 |
| Regression test works | Red-green cycle verified | Test passes once |
| Agent completed | VCS diff shows changes | Agent reports "success" |
| Requirements met | Line-by-line checklist | Tests passing |
## 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
- Thinking "just this once"
- Tired and wanting work over
- **ANY wording implying success without having run verification**
## Rationalization Prevention
| Excuse | Reality |
|--------|---------|
| "Should work now" | RUN the verification |
| "I'm confident" | Confidence ≠ evidence |
| "Just this once" | No exceptions |
| "Linter passed" | Linter ≠ compiler |
| "Agent said success" | Verify independently |
| "I'm tired" | Exhaustion ≠ excuse |
| "Partial check is enough" | Partial proves nothing |
| "Different words so rule doesn't apply" | Spirit over letter |
## Key Patterns
**Tests:**
```
✅ [Run test command] [See: 34/34 pass] "All tests pass"
❌ "Should pass now" / "Looks correct"
```
**Regression tests (TDD Red-Green):**
```
✅ Write → Run (pass) → Revert fix → Run (MUST FAIL) → Restore → Run (pass)
❌ "I've written a regression test" (without red-green verification)
```
**Build:**
```
✅ [Run build] [See: exit 0] "Build passes"
❌ "Linter passed" (linter doesn't check compilation)
```
**Requirements:**
```
✅ Re-read plan → Create checklist → Verify each → Report gaps or completion
❌ "Tests pass, phase complete"
```
**Agent delegation:**
```
✅ Agent reports success → Check VCS diff → Verify changes → Report actual state
❌ Trust agent report
```
## When To Apply
**ALWAYS before:**
- ANY variation of success/completion claims
- ANY expression of satisfaction
- ANY positive statement about work state
- Committing, PR creation, task completion
- Moving to next task
- Delegating to agents
**Rule applies to:**
- Exact phrases
- Paraphrases and synonyms
- Implications of success
- ANY communication suggesting completion/correctnessRelated skills
Test-driven development
Enforces red-green-refactor: write a failing test, watch it fail, write the least code to pass, then clean up. Part of obra's Superpowers set.
Systematic debugging
obra's root-cause-first debugging process from Superpowers: investigate, compare against working code, test one hypothesis at a time, and only then fix.
Brainstorming
Makes the agent hold a design conversation before building anything: what is known, what to ask, a play-back of the idea and a short written design.
Guides and recipes that use Verification before completion
- Hand a GitHub issue to a background coding agent and review the PR
Write a brief it can finish, set up its environment, hand it to Copilot, Codex or Jules, then review and iterate once.
- Migrate a JavaScript project to TypeScript with a coding agent
allowJs first, convert files leaves first in worktree batches, then raise strictness one flag at a time.
- Schedule a recurring task for a coding agent
Schedule Claude Code tasks and Codex runs: write a self-contained prompt, cut connectors and network to the minimum, test with Run now, and know how to stop it.
- Test-driven development with a coding agent
Agree the seams, write one failing test, lock the tests with a hook while the agent makes it pass, then prove the test can fail.
- Translate app strings with AI and keep them consistent
A glossary per language, protected placeholders, plural and length checks in code, then human review.
- Triage production errors with an agent
AI error triage with a coding agent: read errors over a read-only Sentry MCP connection, write a triage note, reproduce in a failing test, then fix behind it.
- Audit and upgrade risky dependencies with an agent
Audit project dependencies with Trail of Bits' supply-chain-risk-auditor skill, group upgrades by risk, update one batch on a branch and prove tests pass.
- Debug a bug with an AI agent: reproduce it, then fix it
Write the bug report, have the agent reproduce it as a failing test, find the root cause, apply a small fix and prove it.
- Write code documentation from the source with an AI agent
A cited fact sheet first, docstrings with runnable examples, then proof that only docs changed and every example runs.
- Upgrade a dependency with an AI coding agent, without surprises
Get an impact list from the migration guide, bump on a branch, let the agent fix with guardrails, then compare old and new output.
- Fix a failing CI run with a coding agent
It reads the GitHub Actions logs, explains the cause and fixes it, with stop rules so it never loops or weakens tests.
- Fix flaky E2E tests with the Playwright healer, safely
Prove the flake, run Playwright's healer agent on a branch, check each change for red flags, keep a heal log and merge by hand.
- Spec-driven feature build: plan, approve, implement, verify
Written spec, approved plan, small tested tasks and a final check against the spec, not vibes.
- How to test and evaluate Agent Skills
Check a skill triggers when it should, stays quiet when it shouldn't and beats the baseline, using a small eval set you can rerun.
- Skill recipe: a framework migration
A worked Agent Skill recipe for framework and API upgrades: codemods, before/after replacements, banned legacy patterns and verification checks.