/superpowers:verification-before-completionfrom superpowers
Enforces verification before any completion claim: run test/lint/build commands, read output, then assert. Prevents false success declarations in commits, PRs, and task handoffs.
Ships in superpowers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
未经验证就声称工作完成是不诚实,而不是效率。
核心原则: 证据先于声明,永远。
违反此规则的字面意思就是违反此规则的精神。
没有新鲜的验证证据就没有完成声明 (NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE)
如果你没有在此消息中运行验证命令,你不能声称它通过。
在声称任何状态或表达满意之前:
1. 识别: 什么命令证明此声明?
2. 运行: 执行完整命令 (fresh, complete)
3. 阅读: 完整输出,检查退出代码,计算失败
4. 验证: 输出是否确认声明?
- 如果 NO: 带着证据陈述实际状态
- 如果 YES: 带着证据陈述声明
5. 仅在此时: 做出声明
跳过任何步骤 = 撒谎,不是验证
| 声明 | 需要 | 不足以 |
|---|---|---|
| Tests pass | Test command output: 0 failures | 之前的运行, "should pass" |
| Linter clean | Linter output: 0 errors | 部分检查, 推断 |
| Build succeeds | Build command: exit 0 | Linter passing, logs look good |
| Bug fixed | Test original symptom: passes | 代码已更改, 假定已修复 |
| Regression test works | Red-green cycle verified | Test passes once |
| Agent completed | VCS diff shows changes | Agent 报告 "success" |
| Requirements met | Line-by-line checklist | Tests passing |
| 借口 | 现实 |
|---|---|
| "现在应该能用了" | 运行验证 |
| "我很自信" | 自信 ≠ 证据 |
| "就这一次" | 无例外 |
| "Linter 通过了" | Linter ≠ 编译器 |
| "Agent 说成功了" | 独立验证 |
| "我累了" | 疲惫 ≠ 借口 |
| "部分检查足够了" | 部分证明不了什么 |
| "措辞不同所以规则不适用" | 精神高于字面 |
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
来自 24 个失败记忆:
总是 (ALWAYS) 在之前:
规则适用于:
验证没有捷径。
运行命令。阅读输出。然后声称结果。
这是不可谈判的。
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
14 skills in this plugin
/finishing-a-development-branch当实现完成、所有测试通过、且你需要决定如何集成工作时使用 - 通过为合并、PR 或清理呈现结构化选项来指导开发工作的完成npx claudepluginhub aaione/superpowers-zh --plugin superpowers