verify-gate Skill
仅凭证据说话的验证门,运行项目真实的测试套件、覆盖率、linter、类型检查器和安全扫描,报告每条命令及其退出码,只有全部检查退出码为 0 才返回 VERIFY PASS。在宣告任务完成前、提交或发起 PR 前、智能体声称"所有测试通过"之后,或任何你需要代码确实可用的证据而非口头断言时使用。
安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。
技能指令原文(SKILL.md)
Verify gate: measure substance, not claims
Trust no completion claim, including your own. A check counts only if you ran it in this session
and saw its exit code.
Procedure
- Find the project's own checks first. The CI definition is the source of truth: read
.github/workflows/*.yml, .gitlab-ci.yml, Makefile, package.json scripts, tox.ini,
noxfile.py or the equivalent and mirror those commands exactly. Fall back to the per-stack
defaults in references/stack-commands.md only for checks the project does not define.
- Pick the five check families: tests, coverage, lint, types, security (static analysis plus
a secret scan). Not every stack has all five; record a missing family as `N/A (no tool for this
stack)`, never as PASS.
- Run each check as its own command and capture its exit code. Do not chain with
&&: one
failure would hide the others.
- Never install packages, edit configuration, lower thresholds or add ignore rules to make a
check pass. A tool that is not installed is SKIPPED (not installed); tell the user the exact
install command and let them decide.
- Coverage: use the project's configured threshold. If none is configured, report the number
and do not invent a threshold.
- Secret scan: if
gitleaksortrufflehogis installed, run it. Otherwise search tracked
files for credential shapes (private key blocks, cloud access key ids, tokens or passwords
assigned to literals) and report matches as file:line without echoing the secret itself.
- Do not fix anything during verification. Verifying and repairing are separate steps. If the
user asks for fixes, make them, then re-run the whole gate from step 3.
- Write the report with
assets/VERIFY-template.md: one row per check (command, exit code,
result) and the last ~20 lines of real output for every failure.
Verdict
VERIFY: PASS: every applicable check ran and exited 0.VERIFY: FAIL: at least one check exited non-zero. List them.VERIFY: INCOMPLETE: nothing failed, but at least one check was skipped. This is not a pass.
Quote command output verbatim. Never summarise a check you did not run, and never report a
verdict from memory of an earlier run after the code changed.