Agent skill
verification-loop
验证闭环提醒。当代码修改完成、Story完成、准备PR时自动激活。确保每次变更都经过验证,效率提升2-3倍。
Install this agent skill to your Project
npx add-skill https://github.com/pure-maple/cc-mmo-plugin/tree/main/skills/verification-loop
SKILL.md
验证闭环
核心理念
"没有验证闭环,AI输出永远不可靠。" —— Boris Cherny (Claude Code之父)
拥有反馈回路后,最终产出质量可提升2-3倍。
验证层级
Level 1: 即时验证(每次代码变更后)
# TypeScript项目
pnpm lint
pnpm typecheck
# Python项目
ruff check .
mypy .
触发时机:PostToolUse Hook自动执行
Level 2: 阶段验证(Story/任务完成后)
# 单元测试
pnpm test
# 集成测试
pnpm test:integration
触发方式:
- 手动调用
/mmo:verify - 或让Claude使用后台agent验证
Level 3: 交付验证(PR前)
- 使用
revieweragent(独立SESSION,客观视角) - 运行E2E测试
- 检查CI状态
# E2E测试
pnpm test:e2e
# 或使用Playwright
npx playwright test
验证失败处理
┌─────────────────────────────────────┐
│ 验证失败? │
└─────────────────────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ 1. 不继续下一阶段 │
│ 2. 记录失败原因 │
│ 3. 分析根因 │
│ 4. 修复问题 │
│ 5. 重新验证 │
└─────────────────────────────────────┘
│
▼
┌──────┴──────┐
│ 通过? │
└──────┬──────┘
│
Yes ───┴─── No(循环)
│
▼
继续下一阶段
与BMAD集成
| BMAD工作流 | 验证检查点 |
|---|---|
| dev-story | 每个subtask完成后 |
| code-review | PR前必须通过 |
| sprint-status | 检查所有Story验证状态 |
Stop Hook提醒
会话结束时自动提醒:
"✅ 会话结束。建议运行
/mmo:verify进行验证。"
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
session-advisor
多模型协作的SESSION管理顾问。当调用Codex或Gemini前,自动提供SESSION复用/新开建议。当用户讨论多模型协作、SESSION管理、上下文隔离时使用。
codex-delegation
Codex任务委派专家。当需要后端逻辑、算法实现、复杂调试、架构分析时自动激活。帮助构建正确的Codex调用并确保安全主权。
gemini-delegation
Gemini任务委派专家。当需要前端UI/UX、样式设计、React/Vue组件、CSS优化时自动激活。帮助构建正确的Gemini调用。
handoff
Compact the current conversation into a handoff document for another agent to pick up.
setup-pre-commit
Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.
obsidian-vault
Search, create, and manage notes in the Obsidian vault with wikilinks and index notes. Use when user wants to find, create, or organize notes in Obsidian.
Didn't find tool you were looking for?