Agent skill
verification
验证回路,质量保障核心
Install this agent skill to your Project
npx add-skill https://github.com/WenJunDuan/Rlues/tree/main/vibeCoding/old version/claude/config-agent_v7.4/.claude/skills/verification
SKILL.md
Verification Skill
这是质量提升2-3倍的核心原则 — Boris Cherny 如果AI不能验证自己的工作,质量就不稳定。
验证流程
Execute → Verify → Pass? → Done
↓ No
Analyze → Fix → Retry (max 3)
↓ Fail
[VERIFICATION_FAILED] → 寸止
验证类型
1. 功能验证
- 代码修改是否生效?
- 功能是否按预期工作?
- 边界情况是否处理?
2. 测试验证
- 单元测试通过?
- 集成测试通过?
- 无回归?
3. 构建验证
- 编译成功?
- 无类型错误?
- 无Lint警告?
自我修复循环
async function executeWithVerification(task) {
for (let attempt = 1; attempt <= 3; attempt++) {
const result = await execute(task);
if (await verify(result)) {
return result; // 成功
}
if (attempt === 3) {
// 请求人工介入
await 寸止.escalate({
hook: "VERIFICATION_FAILED",
attempts: 3
});
}
task = await fix(task, analyze(result));
}
}
验证日志
记录到 project_document/.ai_state/active_context.md:
## 📝 验证日志
### [日期] T-001
- **状态**: ✅ 通过
- **测试**: 5/5 通过
- **证据**: [截图/日志]
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-teams
Path D 并行编排 — 子代理分工 + Agent Teams 协作。需要 CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
tdd
Path 分级 TDD 策略
context7
E 阶段按需拉取库文档 — 用 ctx7 获取准确 API 信息
knowledge
跨会话经验管理 — 在 .ai_state 内沉淀和复用项目经验
code-quality
Rev 阶段 Plugin 编排顺序
verification
V 阶段 Path 分级验证清单
Didn't find tool you were looking for?