--- name: erp-feature-verify description: 功能循环第 4 步。将本功能的测试派发到子会话执行,用模板渲染验证证据。无证据不得声称完成。 user-invocable: false allowed-tools: Skill Read Write Agent --- **所有输出必须使用中文。** # erp-feature-verify ## 执行步骤 1. 从计划文件或项目标准命令中确定功能的测试目标(Maven profile / pnpm script / pytest path)。 2. **派发子会话**(通过 `Agent`,general-purpose),prompt 类似: ``` 任务:运行功能测试目标并报告结果。不要修改任何代码。步骤: 1. 执行:(例如 mvn -pl user-module test -Dtest=REQ*) 2. 仅返回结构化 JSON:{"command":"","exit_code":,"passed":,"failed":,"failed_list":["", ...],"stdout_excerpt":"<最后 30 行或最相关的失败摘录>"} 不要输出任何描述性文字。 ``` 3. 解析 JSON;用 `Read` 读取 `${CLAUDE_SKILL_DIR}/templates/feature-verify-evidence-template.md`,填充槽位(包括 `subagent_id` 和 `conclusion`)。 4. 如果 `exit_code != 0` 或 `failed > 0` → 打印填充后的证据到会话并**停止**,不进入审阅。 5. 通过 → 打印证据,交接给 `erp-feature-review`。 ## 护栏 - 不要将原始测试 stdout 粘贴到主会话(超过 30 行的 `stdout_excerpt`)。 - 证据必须从模板渲染,不能自由编写。 ## 衔接 立即调用 `Skill(erp-feature-review)` 进入下一步。 ## 参考 - `${CLAUDE_SKILL_DIR}/templates/feature-verify-evidence-template.md` - 原则参考:`superpowers:verification-before-completion`(本插件未镜像;仅作为"证据先于断言"原则参考,不做运行时 invoke — 本 skill 已把子会话派发 + 模板渲染证据流程直接写死)