diff --git a/assets/agents/dev-lifecycle.md b/assets/agents/dev-lifecycle.md index ea7c0aa..c13957b 100644 --- a/assets/agents/dev-lifecycle.md +++ b/assets/agents/dev-lifecycle.md @@ -39,7 +39,7 @@ color: '#00bcd4' - 开发文档 → `docs/dev/{api,db,guides}/` ### 子 agent 约束 -- 禁止在 `/tmp/` 下创建或调试文件 +- 禁止在 `/tmp/` 下创建或调试文件,临时产物统一放在 `docs/dev/handoff/` 目录 - 文档产出必须遵循目录规范 --- diff --git a/assets/agents/team/reviewer.md b/assets/agents/team/reviewer.md index 8c13c91..8278f4f 100644 --- a/assets/agents/team/reviewer.md +++ b/assets/agents/team/reviewer.md @@ -47,8 +47,8 @@ gh pr view --json title,body,files ``` ### 4. 审查结论 -- Critical/High 存在 → `--request-changes`,**不可调 goal({op:"complete"})** -- 无 Critical/High → `--approve`,然后调 `goal({op:"complete"})` 完成验证 +- Critical/High 存在 → 先将审查报告写入 `docs/dev/handoff/review-report.md`,然后 `gh pr review --request-changes --body-file docs/dev/handoff/review-report.md`,**不可调 goal({op:"complete"})** +- 无 Critical/High → 写入 `docs/dev/handoff/review-report.md` 后 `gh pr review --approve --body-file docs/dev/handoff/review-report.md`,然后调 `goal({op:"complete"})` 完成验证 ## 原则 - 不修改代码 diff --git a/assets/skills/flow-code/SKILL.md b/assets/skills/flow-code/SKILL.md index 26b29af..e5adaa8 100644 --- a/assets/skills/flow-code/SKILL.md +++ b/assets/skills/flow-code/SKILL.md @@ -20,7 +20,9 @@ git checkout -b feat/ # 实现代码 + 单元测试 npm test git commit -m "feat(): " -gh pr create --title "<title>" --body "Closes #<issue-num>" +mkdir -p docs/dev/handoff +echo "Closes #<issue-num>" > docs/dev/handoff/pr-body.md +gh pr create --title "<title>" --body-file docs/dev/handoff/pr-body.md ``` ### 4. 更新开发文档 diff --git a/assets/skills/flow-design/SKILL.md b/assets/skills/flow-design/SKILL.md index 7d45675..1bcd71f 100644 --- a/assets/skills/flow-design/SKILL.md +++ b/assets/skills/flow-design/SKILL.md @@ -31,8 +31,19 @@ ADR 至少记录: ### 4. 附到 GitHub Issue ```bash -gh issue comment <issue-number> \ - --body "## 技术方案\n\n...(摘要)\n\n## ADR\n\n...(ADR 列表)\n\n完整文档:docs/dev/specs/<title>.md" +mkdir -p docs/dev/handoff +cat > docs/dev/handoff/design-comment.md << 'EOF' +## 技术方案 + +...(摘要) + +## ADR + +...(ADR 列表) + +完整文档:docs/dev/specs/<title>.md +EOF +gh issue comment <issue-number> --body-file docs/dev/handoff/design-comment.md ``` ## Output diff --git a/assets/skills/flow-requirements/SKILL.md b/assets/skills/flow-requirements/SKILL.md index 3a2a2d7..f307dd5 100644 --- a/assets/skills/flow-requirements/SKILL.md +++ b/assets/skills/flow-requirements/SKILL.md @@ -26,11 +26,12 @@ - 避免重复讨论 ### 4. 创建 Parent GitHub Issue -``` +```bash +mkdir -p tmp gh issue create \ --title "<PRD Title>" \ --label "enhancement" \ - --body "$(cat docs/prd/<title>.md)" + --body-file docs/prd/<title>.md ``` ## Output diff --git a/assets/skills/flow-tasks/SKILL.md b/assets/skills/flow-tasks/SKILL.md index 137b083..eded627 100644 --- a/assets/skills/flow-tasks/SKILL.md +++ b/assets/skills/flow-tasks/SKILL.md @@ -36,11 +36,19 @@ labels: ["backend"] ### 3. 创建 Sub Issues ```bash +mkdir -p docs/dev/handoff +cat > docs/dev/handoff/task-issue-body.md << 'EOF' +## 依赖 +前置任务: <列表> + +## 描述 +... +EOF gh issue create \ --title "<task-name>" \ --label "task" \ --parent <parent-number> \ - --body "## 依赖\n前置任务: <列表>\n\n## 描述\n..." + --body-file docs/dev/handoff/task-issue-body.md ``` ## Output