‹ 首页

verification-gate

@mahsumaktas · 收录于 1 周前 · 上游提交 4 个月前

Verification gate before claiming task completion. No completion claim without fresh evidence.

适合你,如果你需要在提交工作成果前自动验证证据有效性。

/ 通过 npx 安装 校验哈希
npx oh-my-skill add mahsumaktas/agent-evolution-kit/verification-gate
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- mahsumaktas/agent-evolution-kit/verification-gate
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify mahsumaktas/agent-evolution-kit/verification-gate
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
1GitHub stars
~1.1K上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 c599c87 · 表述以原文为准
它做什么

安装后,Claude 在声称任务完成前,必须先运行验证命令(如测试、构建)并展示最新证据,否则不能声称完成。

什么时候触发

在做出任何成功声明、满意度表达、提交代码或进入下一任务前触发。

装好后可以这样说
Claude 会执行测试命令并输出结果。
Claude 会启动审查子代理并生成报告。
Claude 会运行测试并对比结果。
技能原文 SKILL.md作者撰写 · MIT · c599c87

Verification Gate

Overview

Claiming work is done without verification is not efficiency -- it is dishonesty.

Core principle: Evidence first, claims second. Always.

Violating the letter of this rule violates its spirit.

Iron Rule
NO COMPLETION CLAIM WITHOUT FRESH VERIFICATION EVIDENCE

If you did not run the verification command in this message, you cannot claim it passes.

3 Stages
Stage 1: Evidence Collection
BEFORE ANY status claim or satisfaction expression:

1. IDENTIFY: What command proves this claim?
2. RUN: Execute the FULL command (fresh, complete)
3. READ: Read the full output, check exit code, count failures
4. VERIFY: Does the output support the claim?
   - NO: State the real status with evidence
   - YES: State the claim with evidence
5. ONLY THEN: Make the claim

Skip any step = not verification, but fabrication

Common verification requirements:

| Claim | Required Evidence | NOT Sufficient | |-------|-------------------|----------------| | Tests pass | Test command output: 0 failures | Previous run, "should pass" | | Linter clean | Linter output: 0 errors | Partial check, guessing | | Build succeeds | Build command: exit 0 | Linter passes, logs look fine | | Bug fixed | Test original symptom: passes | Code changed, assumed fixed | | Regression test works | Red-green cycle verified | Test passes once | | Subagent completed | VCS diff shows changes | Subagent said "success" | | Requirements met | Line-by-line checklist | Tests pass |

Stage 2: Code Review

When all tasks are complete, run an independent review:

[Spawn a reviewer subagent]:

task="Code Review -- [feature/change name]

## What Was Done
[Summary]

## Requirements
[From plan/spec]

## Changed Files
[List]

## Task
1. Read the changed files
2. Compare requirements line by line
3. Security check (OWASP Top 10)
4. Clean code check
5. Test quality check

Report:
- Strengths
- Issues (Critical / Important / Minor)
- Verdict: Approved / Changes required"

Review result:

  • Critical issue --> Fix IMMEDIATELY
  • Important issue --> Fix before proceeding
  • Minor issue --> Note it, fix later
  • Reviewer is wrong --> Object with technical justification
Stage 3: Completion

After review passes, present options:

  1. Merge -- Merge into the main branch
  2. PR -- Create a pull request
  3. Keep -- Keep the branch, merge later
  4. Delete -- Delete the branch (if it did not work out)

Steps for each option:

  • Merge: git checkout main && git merge <branch>
  • PR: gh pr create --title "..." --body "..."
  • Keep: Inform the user of the branch name
  • Delete: git branch -d <branch> (get confirmation)
Red Flags -- STOP

If you catch yourself thinking or saying:

  • "It probably works" --> VERIFY
  • "I am sure" --> Certainty is not evidence
  • "The agent said it succeeded" --> Verify independently
  • "Great!", "Perfect!", "Done!", "All set!" --> No satisfaction expressions BEFORE verification
  • "Should pass", "probably", "looks like" --> RUN the verification command
  • "Just this once" --> No exceptions
  • "Linter passed" --> Linter is not a compiler
  • "I am tired" --> Fatigue is not an excuse
  • "Partial check is enough" --> Partial proves nothing
Common Rationalizations

| Excuse | Reality | |--------|---------| | "It works now" | RUN the verification | | "I am sure" | Confidence is not evidence | | "Just this once" | No exceptions | | "Linter passed" | Linter is not a compiler | | "Agent said success" | Verify independently | | "I am tired" | Fatigue is not an excuse | | "Partial check is enough" | Partial proves nothing | | "Different words, rule does not apply" | Spirit overrides letter |

Verification Patterns

Tests:

CORRECT: [Run test command] [See: 34/34 passed] "All tests pass"
WRONG:   "Should pass now" / "Looks correct"

Regression tests (TDD Red-Green):

CORRECT: Write --> Run (passes) --> Revert fix --> Run (MUST FAIL) --> Restore --> Run (passes)
WRONG:   "I wrote a regression test" (without red-green verification)

Build:

CORRECT: [Run build] [See: exit 0] "Build passes"
WRONG:   "Linter passed" (linter does not check compilation)

Requirements:

CORRECT: Re-read plan --> Create checklist --> Verify each --> Report gaps or completion
WRONG:   "Tests pass, phase complete"

Subagent delegation:

CORRECT: Subagent said success --> Check VCS diff --> Verify changes --> Report real status
WRONG:   Trust the subagent report
When to Apply

ALWAYS, BEFORE any of these:

  • Any form of success/completion claim
  • Satisfaction expressions
  • Any positive statement about work status
  • Commit, PR creation, task completion
  • Moving to the next task
  • Delegating to subagents
Integration

Related skills:

  • tdd-workflow -- For regression test verification
  • subagent-execution -- Pass through this gate after every task
  • systematic-debugging -- When verification fails
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。