verification-gate

verification-gate is a skill for Claude Code from kopp0510/claude-dd. It costs 66 tokens per session (1,717 once invoked), scanned A, original, MIT.

A completion checklist that requires fresh command output or other direct evidence before an agent says work is finished.

In plain words
What is it for?
Use it to verify tests, builds, linting, type checks, bug fixes, features, regressions, and work reported by another agent.
Why use it?
It prevents unsupported claims that tests passed, a bug is fixed, or a feature works when the relevant verification was not actually run after the changes.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions subagents; mentions Claude Code.

Good fit Use it to verify tests, builds, linting, type checks, bug fixes, features, regressions, and work reported by another agent.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kopp0510/claude-dd/verification-gate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kopp0510/claude-dd --skill verification-gate
Clone the repo
git clone --depth 1 https://github.com/kopp0510/claude-dd

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for verification-gate

README.md
[![agentmods](https://agentmods.dev/badge/skills/kopp0510/claude-dd/verification-gate/github.svg)](https://agentmods.dev/skills/kopp0510/claude-dd/verification-gate)
Your own site
<a href="https://agentmods.dev/skills/kopp0510/claude-dd/verification-gate"><img src="https://agentmods.dev/badge/skills/kopp0510/claude-dd/verification-gate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for verification-gate

Your own site · 80×15
<a href="https://agentmods.dev/skills/kopp0510/claude-dd/verification-gate"><img src="https://agentmods.dev/badge/skills/kopp0510/claude-dd/verification-gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,717 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00066 $0.01717
Opus 5.5 $0.00026 $0.00687
Sonnet 5.5 $0.00013 $0.00343
Haiku 4.5 $0.00007 $0.00172

Measured 1mo ago against content hash 0772651dc849, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

verification-gate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/verification-gate/SKILL.md · 84 lines

How it starts

The opening of the file, as written. The whole thing — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Verification Gate — 完成前驗證閘門

借鑑 obra/superpowers 的 verification-before-completion 概念;「假紅」那條紅旗借鑑 michael-denyer/pstack-claude 的 tdd。

鐵律

執行命令 → 讀取輸出 → 然後才能宣稱結果。 沒有新鮮證據就不能宣稱完成。

「新鮮」= 本次工作中、最後一次修改之後實際執行並觀察到的結果。 「之前跑過」「應該可以」「改動很小」都不算。

驗證流程

  1. 識別驗證項目 — 依宣稱類型對照:

    宣稱 必要驗證
    測試通過 執行測試指令,讀完整輸出(通過/失敗/跳過數,不只看 exit code)
    建置成功 執行 build,確認零錯誤、輸出檔案存在
    bug 已修復 重現原始問題步驟,確認不再發生
    功能已實作 端對端執行該功能(真實 API / 瀏覽器,同 8 步迴圈步驟 5)
    沒有迴歸 執行完整相關測試套件,確認無新增失敗
    lint / 型別正確 執行 linter / type checker,確認零錯誤
    subagent 回報完成 讀 subagent 改的檔案 + 親自重跑它聲稱通過的驗證
  2. 執行並讀取 — 等命令完成,逐行讀輸出,記錄警告與異常

  3. 裁決 — 全過 → 附證據宣稱完成;任何失敗 → 停止、修復、從頭重驗

  4. 宣稱完成(附證據) — 報告格式:項目 / 命令 / 結果 / 證據摘要,逐列列出

修 bug 時的迴歸驗證模式:git stash -u && <測試>(看到失敗,而且是被測的東西跑到了、給了錯的結果,不是 import 或測試資料出錯,見下方紅旗)→ git stash pop && <測試>(看到通過)。

-u 不可省:裸 git stash 不收未追蹤的新檔,修復若是「新增一個檔案」就整個沒被藏起來, 第一步照樣通過 —— 得到的是假的 PASS。更糟的是堆疊裡本來就有舊 stash 時:git stash pop 會把不相干的那筆彈回工作目錄,整條鏈 exit 0 全綠,還順手污染了工作目錄(實測)。 真正讓整條鏈靜靜變綠的是這一半:git stash -u 在沒東西可存時 exit 0 (只印「沒有要儲存的本機修改」),所以 && 不會斷,後面的 pop 把舊 stash 彈出來也 exit 0。 反過來,堆疊空的時候 pop 才會 exit 1(「未發現貯存條目。」)—— 那種失敗是大聲的。 另:這個模式只在修復還沒 commit 時成立 —— 8 步迴圈步驟 2 已經 commit 之後, stash 無物可存,要改用 git stash 以外的方式(例如 git revert --no-commit 或在暫存 worktree 比對)。

紅旗 — 看到即停下補驗證

  • 「應該」「大概」「我覺得」等不確定語氣出現在完成宣稱裡
  • 宣稱完成但沒有貼出任何命令輸出
  • 引用修改前的測試結果
  • 「手動驗證過了」但沒說步驟
  • 未經確認就採信 subagent 的回報
  • ⚠️ 寫下「0 紅 / 沒有差異 / 全綠」而沒有先驗實驗本身 —— 本技能的鐵律管「有沒有跑並讀輸出」, 這一條管那次執行有效嗎:變異真的生效了嗎、測試總數對得上嗎、實驗到達那個狀態了嗎。 判準見全域 CLAUDE.md §3.9(「0 紅的第一個嫌疑人永遠是實驗本身」)
  • ⚠️ 看到紅就當成「測試抓得到」 —— 上一條管假綠,這一條管假紅:import 路徑寫錯、拼錯字、 測試資料沒建好也都會紅。要讀紅的內容:被測的東西真的跑到了、給了錯的結果才算(連斷言沒過都可能是資料沒建好、拿空結果去比常數); 錯的值不必是你預期的那一個(舊碼可能掉進第三種狀態)。 判準見全域 CLAUDE.md §3.5
  • ⚠️ 斷言「有以 X 呼叫」就當成驗過了 —— 那證明的是我傳對了,不是它吃得下。 承重的那一支被 mock 掉時,整條路可以全綠而從沒被執行(見全域 §3.5)

合理化防範

藉口 現實
「這只是重構,不影響行為」 重構是最常引入 bug 的操作之一
「型別系統已經保證了」 型別不能保證運行時行為
「改動太小」 小改動也能破壞系統
「我很確定」 確定程度不能替代證據
「時間不夠 / 測試太慢」 debug 花的時間更多;至少跑相關子集
「本地跑得好好的」 環境差異存在,CI 也要過

Read the full file on GitHub · 84 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +4 lines 0772651dc849
  2. 1mo ago Changed · +5 lines e621d1ed729d
  3. 2mo ago Changed · +9 lines 3f283b4799b5
  4. 3mo ago Changed 79fa244cbec8
  5. 3mo ago First seen · 66 lines · 66 tokens per session scan A ba1114212fa4

Subscribe to this mod's changes

verification-gate is a skill published in the GitHub repository kopp0510/claude-dd (12 stars, last pushed 4d ago), licensed MIT. It adds 66 tokens to every session and 1,717 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

verification-gate compared with skills from other repositories

verification-gate next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
verification-gatekopp0510/claude-ddSkill124d agoMITA66Claude Code
autoreviewopenclaw/clawhubSkill9.6ktodayMITA17Claude Code, Codex
omh-code-reviewrlaope/oh-my-hermesSkill6.4kyesterdayMITA18Claude Code
agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skillsSkill2.2k13d agoMITA115Claude Code, Codex
asplos-writing-stylebrycewang-stanford/Awesome-Journal-SkillsSkill1.5k3d agoMITA65Claude Code
revdiff-planumputun/revdiffSkill9773d agoMITA84Claude Code
re0-mergeLilMGenius/paperthinSkill1.5ktodayMITA51Claude Code, Codex