Skill v1.0.0
currentAutomated scan100/100version: "1.0.0" name: verification-before-completion description: Explicit verification gate before declaring any task done. Use before closing any issue, PR, or agent task. Prevents the common failure mode of "it works in my head" — forces concrete evidence of success. From obra/superpowers. id: verification-before-completion runtime: shared canonical_path: ~/.claude/skills/verification-before-completion/SKILL.md updated: 2026-05-18 tags: [verification, quality, completion, testing, acceptance] source: obra/superpowers (MIT)
Verification Before Completion
Never declare done without concrete evidence. This is the gate before closing any task.
The Verification Loop
Implement→ Define success criteria (if not already defined)→ Test against success criteria→ If fail: diagnose → fix → re-test→ If pass: document evidence → close task
Step 1: Define Success Criteria
Before verifying, state exactly what "done" means:
Task: "Add input validation to the API endpoint"Success criteria:- [ ] Empty string returns 400 with message "Field required"- [ ] String > 500 chars returns 400 with message "Too long"- [ ] Valid input returns 200 and processes normally- [ ] Existing passing tests still pass
If success criteria aren't defined yet — define them now, not after.
Step 2: Concrete Evidence Required
| Task type | Required evidence | |
|---|---|---|
| Code change | Tests pass + manual check of happy path | |
| Bug fix | Reproduce the bug → apply fix → confirm bug is gone | |
| Refactor | All existing tests pass, no behavior change | |
| New feature | All acceptance criteria checked and passed | |
| Security fix | Vulnerability confirmed gone, no regression |
"I think it works" is not evidence. "Test output shows X" is evidence.
Step 3: When Tests Fail
Test fails→ Read the error message completely (don't skim)→ Identify root cause (not just symptoms)→ Fix root cause (not symptoms)→ Re-run full test suite (not just the failing test)→ Repeat until all pass
Rule: never comment out a failing test. Fix the code or the test — never hide the failure.
Step 4: Document and Close
When all criteria are met:
Verification complete:- [x] Input validation returns 400 on empty string (confirmed via curl)- [x] Input validation returns 400 on long string (confirmed via test)- [x] All 47 existing tests pass (CI green)- [x] Manual smoke test: POST /api/endpoint with valid data → 200 ✓
Broken Work Protocol (GSD Pattern)
If verification fails and you can't quickly fix it:
- Generate a fix plan — don't debug manually
- Document what broke and what you tried
- Escalate with evidence: "Test X fails. Root cause appears to be Y. Proposed fix: Z."
Don't spend >30 minutes debugging without a written diagnosis.
Anti-Patterns
- Declaring done because "the logic looks right"
- Running only the happy path and ignoring edge cases
- Marking tests as skipped/ignored to make suite pass
- Closing a task without running tests at all
- "I'll verify after the PR is merged" — verify before, not after