Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/agents/dev-lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ color: '#00bcd4'
- 开发文档 → `docs/dev/{api,db,guides}/`

### 子 agent 约束
- 禁止在 `/tmp/` 下创建或调试文件
- 禁止在 `/tmp/` 下创建或调试文件,临时产物统一放在 `docs/dev/handoff/` 目录
- 文档产出必须遵循目录规范

---
Expand Down
4 changes: 2 additions & 2 deletions assets/agents/team/reviewer.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ gh pr view <pr-number> --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 <pr-number> --request-changes --body-file docs/dev/handoff/review-report.md`,**不可调 goal({op:"complete"})**
- 无 Critical/High → 写入 `docs/dev/handoff/review-report.md` 后 `gh pr review <pr-number> --approve --body-file docs/dev/handoff/review-report.md`,然后调 `goal({op:"complete"})` 完成验证

## 原则
- 不修改代码
Expand Down
4 changes: 3 additions & 1 deletion assets/skills/flow-code/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ git checkout -b feat/<task-slug>
# 实现代码 + 单元测试
npm test
git commit -m "feat(<scope>): <title>"
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. 更新开发文档
Expand Down
15 changes: 13 additions & 2 deletions assets/skills/flow-design/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions assets/skills/flow-requirements/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 9 additions & 1 deletion assets/skills/flow-tasks/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading