SKILL.md
2.05 KB
name: feature-review description: 功能循环第 5 步。AI 自审 REQ 的 diff,approve 则回调 module-start;request-changes 则自修复 + 重 verify,循环上限 5 轮。 user-invocable: false
allowed-tools: Read Write Edit Skill Agent Bash(git add *) Bash(git commit *)
所有输出必须使用中文。
feature-review
委托 superpower-code-reviewer agent 对当前 REQ 引入的代码改动做 AI 自审,渲染审阅报告。approve 回模块主循环;request-changes 则自修复 must-fix 并重新 verify,最多 5 轮。
执行步骤
- 派发
Agent(subagent_type=superpower-code-reviewer),把本 REQ 引入的代码 diff 与规格作为输入。 - 按
${CLAUDE_SKILL_DIR}/templates/feature-review-template.md渲染审阅报告,写入docs/superpowers/reviews/<YYYY-MM-DD>-<REQ-id>.md。verdict取approve或request-changes。 - 按
verdict分派:
approve
-
Edit docs/08-模块任务管理.md § 二,把本模块下- [ ] <REQ-id> ...改为- [x] <REQ-id> ...(仅功能级可视化;模块完成仍以里程碑:字段 + 本地git tag -l为准,不依赖此勾选) - 输出
feature-review: <REQ> round <N> 通过,调用Skill(module-start)
request-changes(round < 5)
- 逐项编辑
must_fix[]指向的代码文件 - 按
feature-tdd/templates/commit-message-template.md格式 commit:fix(<module_id>): 修复 review round <N> must-fix <REQ-id> - 调用
Skill(feature-verify)重新验证;verify 通过后会再次链回本 skill,round<N+1>重审
request-changes(round == 5)
- 停止并打印摘要,升级给用户手工介入;不再自动修复,不回调 module-start
参考
${CLAUDE_SKILL_DIR}/templates/feature-review-template.md- 委托:
superpower-code-reviewer(本插件agents/superpower-code-reviewer.md) - Fix commit 格式与
feature-tdd/templates/commit-message-template.md一致 - 上游:
feature-verify;下游:module-start(approve)/feature-verify(request-changes)