/cc-best:verifyfrom cc-best
Executes a 6-phase validation pipeline — build, type check, lint, test, security audit, and git status. Supports per-project custom verify scripts.
Ships in cc-best. Installing the plugin adds it to Claude Code.
一键执行完整验证流程,确保代码质量。适用于提交前、合并前、发布前的最终检查。
设计理念: 将多个验证步骤整合为一个命令,避免遗漏检查项。
| 场景 | 触发时机 |
|---|---|
| 提交前 | /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.json 或 pyproject.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
开始验证前,确认:
验证完成后:
何时使用:
调用方式:
使用 Task 工具调用 security-reviewer agent:
- subagent_type: "cc-best:security-reviewer"
- prompt: "对 [文件/模块] 进行深度安全审查,检查 OWASP Top 10 漏洞"
与 Phase 5 的关系:
| 检查方式 | 特点 |
|---|---|
| Phase 5 自动扫描 | 快速、依赖工具(npm audit 等)、覆盖依赖漏洞 |
| security-reviewer agent | 深度、AI 分析、覆盖代码逻辑漏洞 |
推荐工作流:
/cc-best:verify Phase 5 (自动安全扫描)
↓
发现问题 or 敏感代码?
↓
security-reviewer (深度审查) ←── Agent 补充检查
↓
修复建议 + 风险评估
↓
/cc-best:commit
Skill vs Agent 选择:
| 需求 | 选择 |
|---|---|
| 需要安全检查清单参考 | security skill |
| 需要自动扫描代码安全 | security-reviewer agent |
记住: 验证是发布前的最后防线——安全审查不通过,宁可延期也不要带着隐患上线。
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
44 commands in this plugin
/cc-ralph/cc-ralph - CC-Best Ralph Loop 集成CC-Best Ralph Loop 集成,长时间自主循环Claude Code refuses to install this plugin
.claude-plugin/plugin.json: userConfig.hookProfile.description: Invalid input: expected string, received undefined
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
Other plugins' commands for the same job