verify

A command that runs a project's main quality checks in sequence: build, type checking, linting, tests, security scanning, and Git status checks. Linting checks code style and common mistakes; Git tracks file changes.

In plain words
What is it for?
Use it for final checks after development, before a pull request is merged, before a release, or when locating problems across the build and test process.
Why use it?
It gathers the checks needed before committing, merging, or releasing code, reducing the chance that one check is forgotten. A failure helps show which stage needs attention.

Command

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.

agentmods
npx agentmods add commands/xiaobei930/cc-best/verify
Clone the repo
git clone --depth 1 https://github.com/xiaobei930/cc-best
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,300 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00016 $0.01300
Opus 5 $0.00008 $0.00650
Sonnet 5 $0.00003 $0.00260
Haiku 4.5 $0.00002 $0.00130

Measured 2d ago against content hash 05637d3dceb8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

verify 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 2d 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.

commands/verify.md · 175 lines

How it starts

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

/verify - 综合验证命令

一键执行完整验证流程,确保代码质量。适用于提交前、合并前、发布前的最终检查。

设计理念: 将多个验证步骤整合为一个命令,避免遗漏检查项。

使用场景

场景 触发时机
提交前 /cc-best:dev 完成后,/cc-best:commit
合并前 PR 准备合并到主分支前
发布前 版本发布前的最终检查
问题排查 快速定位哪个环节有问题

验证流程

📋 详细验证流程(6 Phase 步骤、各语言命令、通过标准)参见预加载的 skills/security/verify-checklist.md

按顺序执行 6 个 Phase:构建检查 → 类型检查 → Lint 检查 → 测试套件 → 安全扫描 → Git 状态检查。

与其他命令的关系

/cc-best:dev (开发完成)
    ↓
/cc-best:verify (综合验证)  ←── 本命令
    ↓
    ├─ PASS → /cc-best:qa (功能验收) → /cc-best:commit
    └─ FAIL → 修复问题 → 重新 /cc-best:verify

自定义配置

项目可在 package.jsonpyproject.toml 中配置验证命令:

// package.json
{
  "scripts": {
    "verify:build": "npm run build",
    "verify:type": "tsc --noEmit",
    "verify:lint": "eslint .",
    "verify:test": "vitest run",
    "verify:security": "npm audit"
  }
}

如果存在 verify:* 脚本,优先使用项目自定义命令。


输出规范

遵循 rules/output-style.md,采用结构化报告格式。

📋 详细报告格式模板、状态定义参见预加载的 skills/security/verify-checklist.md

验证通过输出

══════════════════════════════════
     VERIFICATION: PASS ✅
══════════════════════════════════

Phase 1 Build:    [PASS]
Phase 2 Type:     [PASS]
Phase 3 Lint:     [PASS] (2 warnings)
Phase 4 Test:     [PASS] 42/42
Phase 5 Security: [PASS]
Phase 6 Git:      [INFO] 3 files modified

➡️ 下一步: /cc-best:commit 提交代码

验证失败输出

══════════════════════════════════
     VERIFICATION: FAIL ❌
══════════════════════════════════

Phase 1 Build:    [PASS]
Phase 2 Type:     [FAIL] 3 errors
Phase 3 Lint:     [SKIP]
Phase 4 Test:     [SKIP]
Phase 5 Security: [SKIP]

<details>
<summary>错误详情</summary>

src/user.ts:42 - Type 'string' is not assignable to 'number'
...

</details>

➡️ 下一步: 修复类型错误后重新 /cc-best:verify

验证失败后操作

  1. 更新 progress.md — 在当前任务下记录验证失败信息(失败 Phase + 错误摘要 + 修复方向)
  2. 回到 Dev 修复 — 输出指引回 /cc-best:dev(或 /cc-best:dev --bugfix,如果是 QA 返工轮次中的验证)
  3. 安全问题优先 — Phase 5 Security 失败标记为 P0,优先修复

Read the full file on GitHub · 175 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. 2d ago First seen · 175 lines · 16 tokens per session scan A 05637d3dceb8

Subscribe to this mod's changes

verify is a command published in the GitHub repository xiaobei930/cc-best (50 stars, last pushed 2mo ago), licensed MIT. It adds 16 tokens to every session and 1,300 once invoked, about $0.0001 per session on Opus 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-30.