agentleFS
myths-labsmyths-labs/muse/skills/core/verification-before-completion/SKILL.md

verification-before-completion

Skill35 starsChanged 8 months agoMITView on GitHub

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. Upgraded with AC-first workflow, pre-flight fast-fail, and structured Judge verdicts (inspired by opslane/verify).

190 other projects use a version of this, 139 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

6 rules. 1 is common, 5 are distinctive, and 0 are very specific to this project.

  • 1

    Common

    Most of the 177 edited versions we read keep these.

  • 5

    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. Common:

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

    line 22
  2. Distinctive:

    Use observable behavior not implementation details ("User sees X" not "Code calls Y")

    line 50
  3. Distinctive:

    Run tests with the feature enabled — not just "tests pass"

    line 106
  4. Distinctive:

    Run typechecks and investigate errors — don't dismiss as "unrelated"

    line 107
  5. Distinctive:

    NEVER mark PASS without evidence

    line 189
  6. Distinctive:

    No shortcuts for verification.

    line 272

“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

Verification Before Completion

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.

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.


Phase 0: AC-First Workflow (写代码前)

💡 Inspired by opslane/verify: "You can't trust what an agent produces unless you told it what 'done' looks like before it started."

Before writing any code, define Acceptance Criteria:

## Acceptance Criteria

### AC-1: [Feature/behavior name]
- [Observable outcome 1]
- [Observable outcome 2]

### AC-2: [Edge case / error handling]
- [What user sees]
- [What system does]

### AC-3: [Integration / compatibility]
- [Works with X]
- [Doesn't break Y]

AC Writing Rules:

  • Each AC must be independently verifiable (pass or fail, no "partially")
  • Use observable behavior not implementation details ("User sees X" not "Code calls Y")
  • Include negative cases (what happens when things go wrong)
  • For frontend: specify exact text, navigation, visual state
  • For backend: specify status codes, response shape, error messages
  • For mobile: specify platform behavior, i18n, haptics

When to write ACs:

  • ✅ Before ANY new feature (even "simple" ones)
  • ✅ Before bug fixes (AC = "original symptom no longer occurs" + "no regression")
  • ✅ Before refactors (AC = "all existing behavior preserved")
  • ❌ NOT needed for: config changes, docs-only, status file updates

Phase 1: Pre-Flight Check (零成本快速失败)

💡 Pure checks, no LLM tokens. Fail fast before spending effort.

Before starting work, verify preconditions:

PRE-FLIGHT CHECKLIST (30 seconds, zero tokens):
□ Dev server running? (or can it start?)
□ Target files exist and are accessible?
□ Dependencies installed? (node_modules, Pods, etc.)
□ Auth/session valid? (Supabase, App Store Connect, etc.)
□ Branch correct? (not accidentally on main when should be feature)
□ Previous build clean? (no leftover errors)

If any pre-flight fails → FIX IT FIRST, don't start the feature.

This prevents the classic failure: spending 30 minutes coding, then discovering the dev server was down the whole time.


Phase 2: 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

What Real Verification Looks Like (v3.0)

From Anthropic's internal coordinator architecture: "Verification means proving the code works, not confirming it exists. A verifier that rubber-stamps weak work undermines everything."

  • Run tests with the feature enabled — not just "tests pass"
  • Run typechecks and investigate errors — don't dismiss as "unrelated"
  • Be skeptical — if something looks off, dig in
  • Test independently — prove the change works, don't rubber-stamp
  • Use fresh eyes — spawn separate verifiers who didn't write the code
  • Run the actual user flow — not just unit tests, the real thing
❌ Rubber-stamp verification✅ Real verification
"Tests pass""Tests pass WITH the feature enabled, including edge case X"
"Build succeeds""Build succeeds AND runtime behavior matches AC"
"No errors in console""Triggered error path intentionally, correct error shown"
"Code looks right""Ran curl/browser, saw expected response body"
"Agent said it works""I verified independently with fresh context"

Phase 2.5: Deep QA Loop (反弄虚作假·无限循环)

⚠️ 教训: Agent 多次声称 "QA 100% 通过",实际只检查了页面是否加载(HTTP 200)和 API 状态码。 前端通了但核心功能(TTS/支付/WebSocket)没有真正验证。这不是 QA,这是弄虚作假。

什么不算 QA(严禁用以下方式声称 QA 通过)

浅层检查为什么不算
页面返回 HTTP 200只证明页面加载,不证明功能正常
API 返回正确状态码只证明路由存在,不证明业务逻辑正确
next build / expo prebuild exit 0只证明编译通过,不证明运行时行为正确
dev server 控制台无报错不触发 ≠ 没有 bug
"看起来没有错误"不看 ≠ 没有
"视觉检查通过"没看截图只看代码 ≠ 视觉通过

什么才算深度 QA(必须全部做到)

  • ✅ 每个用户交互流程实际走一遍(点击按钮、提交表单、触发动画、完整聊天往返)
  • ✅ 每个 API 调用验证请求体+响应内容(不只是状态码,检查返回的数据是否正确)
  • ✅ 每个状态变化验证 UI 是否正确更新(loading→success→idle、错误提示显示消失)
  • ✅ 每个集成点端到端验证(前端→API→数据库→返回→UI更新 全链路)
  • ✅ 错误路径必须测试(无网络、无权限、空数据、非法输入、超时)
  • ✅ 需要登录的功能用真实认证状态测试(不能跳过说"需要手动测试")
  • ✅ 媒体功能(TTS/语音/视频)必须实际触发并确认输出(不能只检查 API 是否返回)

QA 循环规则

深度 QA → 发现问题 → 修复 → 深度 QA → 发现问题 → 修复 → 深度 QA → ...
→ 全部 100% 零问题 → 才能说"完成"
  • ❌ 1 个 FAIL → 不允许说"完成"
  • ❌ "需要手动测试" → 能自动化就自动化,不能就用浏览器工具/curl 实际测试
  • ❌ "非 blocker" → 用户可感知的问题都是 blocker
  • 违反本规则 = 与「假功能」同级 = 最严重 bug

Phase 3: Judge Verdict (结构化判决)

💡 Inspired by opslane/verify's Judge pattern: separate execution from judgment.

After verification, produce a structured verdict for each AC:

## Verification Report

| AC | Verdict | Evidence |
|----|---------|----------|
| AC-1: Login redirect | ✅ PASS | `curl -s -o /dev/null -w "%{http_code}" → 302` |
| AC-2: Error message | ✅ PASS | Screenshot shows "Invalid email or password" |
| AC-3: Rate limiting | ❌ FAIL | 6th attempt still allowed (expected: blocked) |
| AC-4: i18n | 🟡 NEEDS-REVIEW | Translation exists but quality unverified |

**Overall: 2/4 PASS, 1 FAIL, 1 NEEDS-REVIEW**
**Verdict: NOT READY — AC-3 must be fixed before completion**

Three verdict types:

  • ✅ PASS — Evidence confirms AC is met
  • ❌ FAIL — Evidence shows AC is NOT met (must fix)
  • 🟡 NEEDS-REVIEW — Cannot be automatically verified (needs human check)

Rules:

  • NEVER mark PASS without evidence
  • FAIL requires specific description of what went wrong
  • NEEDS-REVIEW is for visual/UX/copy that can't be command-verified
  • Overall verdict = FAIL if ANY AC is FAIL

Common Verification Methods

What to verifyMethodNot 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
Regression testRed-green cycle verifiedTest passes once
Agent completedVCS diff shows changesAgent reports "success"
Requirements metLine-by-line AC checklistTests passing
API endpointcurl with expected status/body"Code looks right"
UI behaviorBrowser screenshot/recording"Component renders"
i18n completeGrep all locale files for key"Added to en.json"
Mobile buildnpx expo prebuild exit 0"No errors in editor"

Red Flags — STOP Immediately

  • Using "should", "probably", "seems to"
  • Expressing satisfaction before verification ("Great!", "Perfect!", "Done!")
  • About to commit/push/PR without verdict report
  • Trusting agent success reports
  • Relying on partial verification
  • Thinking "just this once"
  • ANY wording implying success without having run verification
  • Skipping AC writing because task "seems simple"
  • Mentally marking AC as PASS without running the check

Rationalization Prevention

ExcuseReality
"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
"Too simple for ACs"Simple tasks have simple ACs — write them anyway
"ACs slow me down"Rework from false completion is slower
"Partial check is enough"Partial proves nothing

Quick Reference: Full Workflow

┌─────────────────────────────────────────┐
│ 1. DEFINE ACs (before coding)           │
│    What does "done" look like?          │
├─────────────────────────────────────────┤
│ 2. PRE-FLIGHT (before coding)           │
│    Dev server? Files? Deps? Branch?     │
├─────────────────────────────────────────┤
│ 3. EXECUTE (write code)                 │
│    Build the feature / fix the bug      │
├─────────────────────────────────────────┤
│ 4. GATE (after coding)                  │
│    Run verification commands            │
├─────────────────────────────────────────┤
│ 5. JUDGE (before claiming done)         │
│    Produce verdict per AC               │
│    ALL PASS → claim completion          │
│    ANY FAIL → fix and re-verify         │
│    ANY NEEDS-REVIEW → flag for human    │
└─────────────────────────────────────────┘

When To Apply

ALWAYS before:

  • ANY variation of success/completion claims
  • ANY expression of satisfaction
  • Committing, PR creation, task completion
  • Moving to next task
  • Delegating to agents

The Bottom Line:

No shortcuts for verification. Define ACs. Run pre-flight. Execute. Verify. Judge. THEN claim the result.

This is 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.