@fitlab-ai/agent-infra 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/License.txt +21 -0
- package/README.md +170 -0
- package/README.zh-CN.md +170 -0
- package/bin/cli.js +65 -0
- package/lib/defaults.json +45 -0
- package/lib/init.js +203 -0
- package/lib/log.js +27 -0
- package/lib/paths.js +48 -0
- package/lib/prompt.js +70 -0
- package/lib/render.js +99 -0
- package/lib/update.js +161 -0
- package/lib/version.js +7 -0
- package/package.json +48 -0
- package/templates/.agent-workspace/README.md +26 -0
- package/templates/.agent-workspace/README.zh-CN.md +26 -0
- package/templates/.agents/QUICKSTART.md +166 -0
- package/templates/.agents/QUICKSTART.zh-CN.md +166 -0
- package/templates/.agents/README.md +134 -0
- package/templates/.agents/README.zh-CN.md +134 -0
- package/templates/.agents/skills/analyze-task/SKILL.md +169 -0
- package/templates/.agents/skills/analyze-task/SKILL.zh-CN.md +169 -0
- package/templates/.agents/skills/block-task/SKILL.md +164 -0
- package/templates/.agents/skills/block-task/SKILL.zh-CN.md +163 -0
- package/templates/.agents/skills/check-task/SKILL.md +122 -0
- package/templates/.agents/skills/check-task/SKILL.zh-CN.md +122 -0
- package/templates/.agents/skills/close-codescan/SKILL.md +122 -0
- package/templates/.agents/skills/close-codescan/SKILL.zh-CN.md +122 -0
- package/templates/.agents/skills/close-dependabot/SKILL.md +130 -0
- package/templates/.agents/skills/close-dependabot/SKILL.zh-CN.md +130 -0
- package/templates/.agents/skills/commit/SKILL.md +218 -0
- package/templates/.agents/skills/commit/SKILL.zh-CN.md +217 -0
- package/templates/.agents/skills/complete-task/SKILL.md +139 -0
- package/templates/.agents/skills/complete-task/SKILL.zh-CN.md +137 -0
- package/templates/.agents/skills/create-pr/SKILL.md +126 -0
- package/templates/.agents/skills/create-pr/SKILL.zh-CN.md +125 -0
- package/templates/.agents/skills/create-release-note/SKILL.md +167 -0
- package/templates/.agents/skills/create-release-note/SKILL.zh-CN.md +166 -0
- package/templates/.agents/skills/create-task/SKILL.md +143 -0
- package/templates/.agents/skills/create-task/SKILL.zh-CN.md +143 -0
- package/templates/.agents/skills/implement-task/SKILL.md +229 -0
- package/templates/.agents/skills/implement-task/SKILL.zh-CN.md +227 -0
- package/templates/.agents/skills/import-codescan/SKILL.md +103 -0
- package/templates/.agents/skills/import-codescan/SKILL.zh-CN.md +103 -0
- package/templates/.agents/skills/import-dependabot/SKILL.md +107 -0
- package/templates/.agents/skills/import-dependabot/SKILL.zh-CN.md +107 -0
- package/templates/.agents/skills/import-issue/SKILL.md +119 -0
- package/templates/.agents/skills/import-issue/SKILL.zh-CN.md +119 -0
- package/templates/.agents/skills/init-labels/SKILL.md +74 -0
- package/templates/.agents/skills/init-labels/SKILL.zh-CN.md +74 -0
- package/templates/.agents/skills/init-labels/scripts/init-labels.sh +111 -0
- package/templates/.agents/skills/init-milestones/SKILL.md +74 -0
- package/templates/.agents/skills/init-milestones/SKILL.zh-CN.md +74 -0
- package/templates/.agents/skills/init-milestones/scripts/init-milestones.sh +169 -0
- package/templates/.agents/skills/plan-task/SKILL.md +225 -0
- package/templates/.agents/skills/plan-task/SKILL.zh-CN.md +225 -0
- package/templates/.agents/skills/refine-task/SKILL.md +200 -0
- package/templates/.agents/skills/refine-task/SKILL.zh-CN.md +200 -0
- package/templates/.agents/skills/refine-title/SKILL.md +84 -0
- package/templates/.agents/skills/refine-title/SKILL.zh-CN.md +83 -0
- package/templates/.agents/skills/release/SKILL.md +142 -0
- package/templates/.agents/skills/release/SKILL.zh-CN.md +141 -0
- package/templates/.agents/skills/release/scripts/manage-milestones.sh +80 -0
- package/templates/.agents/skills/review-task/SKILL.md +276 -0
- package/templates/.agents/skills/review-task/SKILL.zh-CN.md +276 -0
- package/templates/.agents/skills/sync-issue/SKILL.md +569 -0
- package/templates/.agents/skills/sync-issue/SKILL.zh-CN.md +569 -0
- package/templates/.agents/skills/sync-pr/SKILL.md +142 -0
- package/templates/.agents/skills/sync-pr/SKILL.zh-CN.md +142 -0
- package/templates/.agents/skills/test/SKILL.md +61 -0
- package/templates/.agents/skills/test/SKILL.zh-CN.md +61 -0
- package/templates/.agents/skills/test-integration/SKILL.md +70 -0
- package/templates/.agents/skills/test-integration/SKILL.zh-CN.md +69 -0
- package/templates/.agents/skills/update-agent-infra/SKILL.md +136 -0
- package/templates/.agents/skills/update-agent-infra/SKILL.zh-CN.md +124 -0
- package/templates/.agents/skills/update-agent-infra/scripts/package.json +3 -0
- package/templates/.agents/skills/update-agent-infra/scripts/sync-templates.js +469 -0
- package/templates/.agents/skills/upgrade-dependency/SKILL.md +88 -0
- package/templates/.agents/skills/upgrade-dependency/SKILL.zh-CN.md +87 -0
- package/templates/.agents/templates/handoff.md +60 -0
- package/templates/.agents/templates/handoff.zh-CN.md +60 -0
- package/templates/.agents/templates/review-report.md +67 -0
- package/templates/.agents/templates/review-report.zh-CN.md +67 -0
- package/templates/.agents/templates/task.md +65 -0
- package/templates/.agents/templates/task.zh-CN.md +65 -0
- package/templates/.agents/workflows/bug-fix.yaml +149 -0
- package/templates/.agents/workflows/bug-fix.zh-CN.yaml +149 -0
- package/templates/.agents/workflows/code-review.yaml +60 -0
- package/templates/.agents/workflows/code-review.zh-CN.yaml +60 -0
- package/templates/.agents/workflows/feature-development.yaml +150 -0
- package/templates/.agents/workflows/feature-development.zh-CN.yaml +150 -0
- package/templates/.agents/workflows/refactoring.yaml +154 -0
- package/templates/.agents/workflows/refactoring.zh-CN.yaml +154 -0
- package/templates/.claude/CLAUDE.md +163 -0
- package/templates/.claude/CLAUDE.zh-CN.md +163 -0
- package/templates/.claude/commands/analyze-task.md +8 -0
- package/templates/.claude/commands/analyze-task.zh-CN.md +8 -0
- package/templates/.claude/commands/block-task.md +8 -0
- package/templates/.claude/commands/block-task.zh-CN.md +8 -0
- package/templates/.claude/commands/check-task.md +8 -0
- package/templates/.claude/commands/check-task.zh-CN.md +8 -0
- package/templates/.claude/commands/close-codescan.md +8 -0
- package/templates/.claude/commands/close-codescan.zh-CN.md +8 -0
- package/templates/.claude/commands/close-dependabot.md +8 -0
- package/templates/.claude/commands/close-dependabot.zh-CN.md +8 -0
- package/templates/.claude/commands/commit.md +7 -0
- package/templates/.claude/commands/commit.zh-CN.md +7 -0
- package/templates/.claude/commands/complete-task.md +8 -0
- package/templates/.claude/commands/complete-task.zh-CN.md +8 -0
- package/templates/.claude/commands/create-pr.md +8 -0
- package/templates/.claude/commands/create-pr.zh-CN.md +8 -0
- package/templates/.claude/commands/create-release-note.md +8 -0
- package/templates/.claude/commands/create-release-note.zh-CN.md +8 -0
- package/templates/.claude/commands/create-task.md +8 -0
- package/templates/.claude/commands/create-task.zh-CN.md +8 -0
- package/templates/.claude/commands/implement-task.md +8 -0
- package/templates/.claude/commands/implement-task.zh-CN.md +8 -0
- package/templates/.claude/commands/import-codescan.md +8 -0
- package/templates/.claude/commands/import-codescan.zh-CN.md +8 -0
- package/templates/.claude/commands/import-dependabot.md +8 -0
- package/templates/.claude/commands/import-dependabot.zh-CN.md +8 -0
- package/templates/.claude/commands/import-issue.md +8 -0
- package/templates/.claude/commands/import-issue.zh-CN.md +8 -0
- package/templates/.claude/commands/init-labels.md +7 -0
- package/templates/.claude/commands/init-labels.zh-CN.md +7 -0
- package/templates/.claude/commands/init-milestones.md +8 -0
- package/templates/.claude/commands/init-milestones.zh-CN.md +8 -0
- package/templates/.claude/commands/plan-task.md +8 -0
- package/templates/.claude/commands/plan-task.zh-CN.md +8 -0
- package/templates/.claude/commands/refine-task.md +8 -0
- package/templates/.claude/commands/refine-task.zh-CN.md +8 -0
- package/templates/.claude/commands/refine-title.md +8 -0
- package/templates/.claude/commands/refine-title.zh-CN.md +8 -0
- package/templates/.claude/commands/release.md +8 -0
- package/templates/.claude/commands/release.zh-CN.md +8 -0
- package/templates/.claude/commands/review-task.md +8 -0
- package/templates/.claude/commands/review-task.zh-CN.md +8 -0
- package/templates/.claude/commands/sync-issue.md +8 -0
- package/templates/.claude/commands/sync-issue.zh-CN.md +8 -0
- package/templates/.claude/commands/sync-pr.md +8 -0
- package/templates/.claude/commands/sync-pr.zh-CN.md +8 -0
- package/templates/.claude/commands/test-integration.md +7 -0
- package/templates/.claude/commands/test-integration.zh-CN.md +7 -0
- package/templates/.claude/commands/test.md +7 -0
- package/templates/.claude/commands/test.zh-CN.md +7 -0
- package/templates/.claude/commands/update-agent-infra.md +7 -0
- package/templates/.claude/commands/update-agent-infra.zh-CN.md +7 -0
- package/templates/.claude/commands/upgrade-dependency.md +8 -0
- package/templates/.claude/commands/upgrade-dependency.zh-CN.md +8 -0
- package/templates/.claude/project-rules.md +65 -0
- package/templates/.claude/project-rules.zh-CN.md +65 -0
- package/templates/.claude/settings.json +20 -0
- package/templates/.codex/README.md +38 -0
- package/templates/.codex/README.zh-CN.md +37 -0
- package/templates/.editorconfig +15 -0
- package/templates/.gemini/commands/_project_/analyze-task.toml +8 -0
- package/templates/.gemini/commands/_project_/analyze-task.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/block-task.toml +8 -0
- package/templates/.gemini/commands/_project_/block-task.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/check-task.toml +8 -0
- package/templates/.gemini/commands/_project_/check-task.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/close-codescan.toml +8 -0
- package/templates/.gemini/commands/_project_/close-codescan.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/close-dependabot.toml +8 -0
- package/templates/.gemini/commands/_project_/close-dependabot.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/commit.toml +6 -0
- package/templates/.gemini/commands/_project_/commit.zh-CN.toml +6 -0
- package/templates/.gemini/commands/_project_/complete-task.toml +8 -0
- package/templates/.gemini/commands/_project_/complete-task.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/create-pr.toml +8 -0
- package/templates/.gemini/commands/_project_/create-pr.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/create-release-note.toml +8 -0
- package/templates/.gemini/commands/_project_/create-release-note.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/create-task.toml +8 -0
- package/templates/.gemini/commands/_project_/create-task.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/implement-task.toml +8 -0
- package/templates/.gemini/commands/_project_/implement-task.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/import-codescan.toml +8 -0
- package/templates/.gemini/commands/_project_/import-codescan.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/import-dependabot.toml +8 -0
- package/templates/.gemini/commands/_project_/import-dependabot.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/import-issue.toml +8 -0
- package/templates/.gemini/commands/_project_/import-issue.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/init-labels.toml +8 -0
- package/templates/.gemini/commands/_project_/init-labels.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/init-milestones.toml +10 -0
- package/templates/.gemini/commands/_project_/init-milestones.zh-CN.toml +10 -0
- package/templates/.gemini/commands/_project_/plan-task.toml +8 -0
- package/templates/.gemini/commands/_project_/plan-task.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/refine-task.toml +8 -0
- package/templates/.gemini/commands/_project_/refine-task.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/refine-title.toml +8 -0
- package/templates/.gemini/commands/_project_/refine-title.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/release.toml +8 -0
- package/templates/.gemini/commands/_project_/release.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/review-task.toml +8 -0
- package/templates/.gemini/commands/_project_/review-task.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/sync-issue.toml +8 -0
- package/templates/.gemini/commands/_project_/sync-issue.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/sync-pr.toml +8 -0
- package/templates/.gemini/commands/_project_/sync-pr.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/test-integration.toml +6 -0
- package/templates/.gemini/commands/_project_/test-integration.zh-CN.toml +6 -0
- package/templates/.gemini/commands/_project_/test.toml +6 -0
- package/templates/.gemini/commands/_project_/test.zh-CN.toml +6 -0
- package/templates/.gemini/commands/_project_/update-agent-infra.toml +6 -0
- package/templates/.gemini/commands/_project_/update-agent-infra.zh-CN.toml +6 -0
- package/templates/.gemini/commands/_project_/upgrade-dependency.toml +8 -0
- package/templates/.gemini/commands/_project_/upgrade-dependency.zh-CN.toml +8 -0
- package/templates/.gemini/settings.json +3 -0
- package/templates/.github/ISSUE_TEMPLATE/01_bug_report.yml +149 -0
- package/templates/.github/ISSUE_TEMPLATE/02_question.yml +101 -0
- package/templates/.github/ISSUE_TEMPLATE/03_feature_request.yml +131 -0
- package/templates/.github/ISSUE_TEMPLATE/04_documentation.yml +165 -0
- package/templates/.github/ISSUE_TEMPLATE/05_other.yml +147 -0
- package/templates/.github/ISSUE_TEMPLATE/config.yml +11 -0
- package/templates/.github/PULL_REQUEST_TEMPLATE.md +123 -0
- package/templates/.github/dependabot.yml +17 -0
- package/templates/.github/hooks/check-utf8-encoding.sh +25 -0
- package/templates/.github/release.yml +27 -0
- package/templates/.github/workflows/pr-title-check.yml +42 -0
- package/templates/.mailmap +4 -0
- package/templates/.opencode/COMMAND_STYLE_GUIDE.md +232 -0
- package/templates/.opencode/COMMAND_STYLE_GUIDE.zh-CN.md +232 -0
- package/templates/.opencode/README.md +76 -0
- package/templates/.opencode/README.zh-CN.md +77 -0
- package/templates/.opencode/commands/analyze-task.md +11 -0
- package/templates/.opencode/commands/analyze-task.zh-CN.md +11 -0
- package/templates/.opencode/commands/block-task.md +11 -0
- package/templates/.opencode/commands/block-task.zh-CN.md +11 -0
- package/templates/.opencode/commands/check-task.md +11 -0
- package/templates/.opencode/commands/check-task.zh-CN.md +11 -0
- package/templates/.opencode/commands/close-codescan.md +11 -0
- package/templates/.opencode/commands/close-codescan.zh-CN.md +11 -0
- package/templates/.opencode/commands/close-dependabot.md +11 -0
- package/templates/.opencode/commands/close-dependabot.zh-CN.md +11 -0
- package/templates/.opencode/commands/commit.md +9 -0
- package/templates/.opencode/commands/commit.zh-CN.md +9 -0
- package/templates/.opencode/commands/complete-task.md +11 -0
- package/templates/.opencode/commands/complete-task.zh-CN.md +11 -0
- package/templates/.opencode/commands/create-pr.md +11 -0
- package/templates/.opencode/commands/create-pr.zh-CN.md +11 -0
- package/templates/.opencode/commands/create-release-note.md +11 -0
- package/templates/.opencode/commands/create-release-note.zh-CN.md +11 -0
- package/templates/.opencode/commands/create-task.md +11 -0
- package/templates/.opencode/commands/create-task.zh-CN.md +11 -0
- package/templates/.opencode/commands/implement-task.md +11 -0
- package/templates/.opencode/commands/implement-task.zh-CN.md +11 -0
- package/templates/.opencode/commands/import-codescan.md +11 -0
- package/templates/.opencode/commands/import-codescan.zh-CN.md +11 -0
- package/templates/.opencode/commands/import-dependabot.md +11 -0
- package/templates/.opencode/commands/import-dependabot.zh-CN.md +11 -0
- package/templates/.opencode/commands/import-issue.md +11 -0
- package/templates/.opencode/commands/import-issue.zh-CN.md +11 -0
- package/templates/.opencode/commands/init-labels.md +9 -0
- package/templates/.opencode/commands/init-labels.zh-CN.md +9 -0
- package/templates/.opencode/commands/init-milestones.md +11 -0
- package/templates/.opencode/commands/init-milestones.zh-CN.md +11 -0
- package/templates/.opencode/commands/plan-task.md +11 -0
- package/templates/.opencode/commands/plan-task.zh-CN.md +11 -0
- package/templates/.opencode/commands/refine-task.md +11 -0
- package/templates/.opencode/commands/refine-task.zh-CN.md +11 -0
- package/templates/.opencode/commands/refine-title.md +11 -0
- package/templates/.opencode/commands/refine-title.zh-CN.md +11 -0
- package/templates/.opencode/commands/release.md +11 -0
- package/templates/.opencode/commands/release.zh-CN.md +11 -0
- package/templates/.opencode/commands/review-task.md +11 -0
- package/templates/.opencode/commands/review-task.zh-CN.md +11 -0
- package/templates/.opencode/commands/sync-issue.md +11 -0
- package/templates/.opencode/commands/sync-issue.zh-CN.md +11 -0
- package/templates/.opencode/commands/sync-pr.md +11 -0
- package/templates/.opencode/commands/sync-pr.zh-CN.md +11 -0
- package/templates/.opencode/commands/test-integration.md +9 -0
- package/templates/.opencode/commands/test-integration.zh-CN.md +9 -0
- package/templates/.opencode/commands/test.md +9 -0
- package/templates/.opencode/commands/test.zh-CN.md +9 -0
- package/templates/.opencode/commands/update-agent-infra.md +9 -0
- package/templates/.opencode/commands/update-agent-infra.zh-CN.md +9 -0
- package/templates/.opencode/commands/upgrade-dependency.md +11 -0
- package/templates/.opencode/commands/upgrade-dependency.zh-CN.md +11 -0
- package/templates/AGENTS.md +91 -0
- package/templates/AGENTS.zh-CN.md +91 -0
- package/templates/CONTRIBUTING.md +126 -0
- package/templates/CONTRIBUTING.zh-CN.md +124 -0
- package/templates/SECURITY.md +131 -0
- package/templates/SECURITY.zh-CN.md +131 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# 交接文档
|
|
2
|
+
|
|
3
|
+
## 元数据
|
|
4
|
+
|
|
5
|
+
- **任务 ID**:task-XXX
|
|
6
|
+
- **交出方**:[AI 工具名称,例如 claude]
|
|
7
|
+
- **接收方**:[AI 工具名称,例如 codex]
|
|
8
|
+
- **已完成阶段**:[例如 analysis]
|
|
9
|
+
- **下一阶段**:[例如 design]
|
|
10
|
+
- **日期**:YYYY-MM-DD
|
|
11
|
+
|
|
12
|
+
## 已完成工作摘要
|
|
13
|
+
|
|
14
|
+
[简要总结在已完成阶段所取得的成果。]
|
|
15
|
+
|
|
16
|
+
## 当前状态
|
|
17
|
+
|
|
18
|
+
### 已修改的文件
|
|
19
|
+
|
|
20
|
+
- `path/to/file1` - 修改内容及原因
|
|
21
|
+
- `path/to/file2` - 修改内容及原因
|
|
22
|
+
|
|
23
|
+
### 分支状态
|
|
24
|
+
|
|
25
|
+
- **分支**:`feature/xxx`
|
|
26
|
+
- **提交数**:[已提交次数]
|
|
27
|
+
- **测试**:[通过 / 失败 / 尚未编写]
|
|
28
|
+
|
|
29
|
+
### 关键决策
|
|
30
|
+
|
|
31
|
+
1. [决策 1 及其理由]
|
|
32
|
+
2. [决策 2 及其理由]
|
|
33
|
+
|
|
34
|
+
## 后续步骤
|
|
35
|
+
|
|
36
|
+
[接收方 AI 接下来应该做什么。请具体说明。]
|
|
37
|
+
|
|
38
|
+
1. [ ] 步骤 1
|
|
39
|
+
2. [ ] 步骤 2
|
|
40
|
+
3. [ ] 步骤 3
|
|
41
|
+
|
|
42
|
+
## 重要上下文
|
|
43
|
+
|
|
44
|
+
[接收方 AI 需要了解的、代码中不明显的信息。]
|
|
45
|
+
|
|
46
|
+
### 约束条件
|
|
47
|
+
|
|
48
|
+
- [约束 1]
|
|
49
|
+
- [约束 2]
|
|
50
|
+
|
|
51
|
+
### 风险和关注点
|
|
52
|
+
|
|
53
|
+
- [风险 1]
|
|
54
|
+
- [风险 2]
|
|
55
|
+
|
|
56
|
+
## 参考资料
|
|
57
|
+
|
|
58
|
+
- 任务文件:`.agent-workspace/active/task-XXX.md`
|
|
59
|
+
- 相关文档:[链接或文件路径]
|
|
60
|
+
- 相关 Issue:#XXX
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Code Review Report
|
|
2
|
+
|
|
3
|
+
## Metadata
|
|
4
|
+
|
|
5
|
+
- **Task ID**: task-XXX
|
|
6
|
+
- **PR**: #XXX
|
|
7
|
+
- **Branch**: `feature/xxx`
|
|
8
|
+
- **Reviewer**: [AI tool name or human]
|
|
9
|
+
- **Date**: YYYY-MM-DD
|
|
10
|
+
- **Verdict**: [approve | request-changes | comment]
|
|
11
|
+
|
|
12
|
+
## Summary
|
|
13
|
+
|
|
14
|
+
[Brief summary of what was reviewed and the overall assessment.]
|
|
15
|
+
|
|
16
|
+
## Files Reviewed
|
|
17
|
+
|
|
18
|
+
| File | Status | Notes |
|
|
19
|
+
|------|--------|-------|
|
|
20
|
+
| `path/to/file1` | OK | - |
|
|
21
|
+
| `path/to/file2` | Issues | See findings below |
|
|
22
|
+
|
|
23
|
+
## Findings
|
|
24
|
+
|
|
25
|
+
### Critical
|
|
26
|
+
|
|
27
|
+
Issues that must be fixed before merging.
|
|
28
|
+
|
|
29
|
+
- [ ] **[File:Line]** - Description of the critical issue.
|
|
30
|
+
|
|
31
|
+
### Major
|
|
32
|
+
|
|
33
|
+
Significant issues that should be addressed.
|
|
34
|
+
|
|
35
|
+
- [ ] **[File:Line]** - Description of the major issue.
|
|
36
|
+
|
|
37
|
+
### Minor
|
|
38
|
+
|
|
39
|
+
Style, naming, or minor improvements.
|
|
40
|
+
|
|
41
|
+
- [ ] **[File:Line]** - Description of the minor issue.
|
|
42
|
+
|
|
43
|
+
### Suggestions
|
|
44
|
+
|
|
45
|
+
Optional improvements for consideration.
|
|
46
|
+
|
|
47
|
+
- [ ] **[File:Line]** - Suggestion description.
|
|
48
|
+
|
|
49
|
+
## Test Coverage
|
|
50
|
+
|
|
51
|
+
- [ ] New code has adequate test coverage
|
|
52
|
+
- [ ] Existing tests still pass
|
|
53
|
+
- [ ] Edge cases are covered
|
|
54
|
+
- [ ] Error handling is tested
|
|
55
|
+
|
|
56
|
+
## Checklist
|
|
57
|
+
|
|
58
|
+
- [ ] Code follows project conventions
|
|
59
|
+
- [ ] No security vulnerabilities introduced
|
|
60
|
+
- [ ] No performance regressions
|
|
61
|
+
- [ ] Documentation updated where needed
|
|
62
|
+
- [ ] Commit messages follow conventions
|
|
63
|
+
- [ ] No unnecessary files included
|
|
64
|
+
|
|
65
|
+
## Additional Notes
|
|
66
|
+
|
|
67
|
+
[Any other observations or recommendations.]
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# 代码审查报告
|
|
2
|
+
|
|
3
|
+
## 元数据
|
|
4
|
+
|
|
5
|
+
- **任务 ID**:task-XXX
|
|
6
|
+
- **PR**:#XXX
|
|
7
|
+
- **分支**:`feature/xxx`
|
|
8
|
+
- **审查者**:[AI 工具名称或人员]
|
|
9
|
+
- **日期**:YYYY-MM-DD
|
|
10
|
+
- **结论**:[approve | request-changes | comment]
|
|
11
|
+
|
|
12
|
+
## 摘要
|
|
13
|
+
|
|
14
|
+
[简要总结审查内容和整体评估。]
|
|
15
|
+
|
|
16
|
+
## 审查文件
|
|
17
|
+
|
|
18
|
+
| 文件 | 状态 | 备注 |
|
|
19
|
+
|------|------|------|
|
|
20
|
+
| `path/to/file1` | 通过 | - |
|
|
21
|
+
| `path/to/file2` | 有问题 | 见下方发现 |
|
|
22
|
+
|
|
23
|
+
## 发现
|
|
24
|
+
|
|
25
|
+
### 严重问题
|
|
26
|
+
|
|
27
|
+
合并前必须修复的问题。
|
|
28
|
+
|
|
29
|
+
- [ ] **[文件:行号]** - 严重问题描述。
|
|
30
|
+
|
|
31
|
+
### 重要问题
|
|
32
|
+
|
|
33
|
+
应该处理的重要问题。
|
|
34
|
+
|
|
35
|
+
- [ ] **[文件:行号]** - 重要问题描述。
|
|
36
|
+
|
|
37
|
+
### 次要问题
|
|
38
|
+
|
|
39
|
+
代码风格、命名或细微改进。
|
|
40
|
+
|
|
41
|
+
- [ ] **[文件:行号]** - 次要问题描述。
|
|
42
|
+
|
|
43
|
+
### 建议
|
|
44
|
+
|
|
45
|
+
可选的改进建议供参考。
|
|
46
|
+
|
|
47
|
+
- [ ] **[文件:行号]** - 建议描述。
|
|
48
|
+
|
|
49
|
+
## 测试覆盖
|
|
50
|
+
|
|
51
|
+
- [ ] 新代码有足够的测试覆盖
|
|
52
|
+
- [ ] 现有测试仍然通过
|
|
53
|
+
- [ ] 边界情况已覆盖
|
|
54
|
+
- [ ] 错误处理已测试
|
|
55
|
+
|
|
56
|
+
## 检查清单
|
|
57
|
+
|
|
58
|
+
- [ ] 代码遵循项目规范
|
|
59
|
+
- [ ] 未引入安全漏洞
|
|
60
|
+
- [ ] 无性能回归
|
|
61
|
+
- [ ] 文档已按需更新
|
|
62
|
+
- [ ] 提交信息遵循规范
|
|
63
|
+
- [ ] 未包含不必要的文件
|
|
64
|
+
|
|
65
|
+
## 补充说明
|
|
66
|
+
|
|
67
|
+
[其他观察或建议。]
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: task-XXX
|
|
3
|
+
type: feature # feature | bugfix | refactor | docs | review
|
|
4
|
+
workflow: feature-development # feature-development | bug-fix | code-review | refactoring
|
|
5
|
+
status: open # open | in-progress | review | blocked | completed
|
|
6
|
+
created_at: YYYY-MM-DD
|
|
7
|
+
updated_at: YYYY-MM-DD
|
|
8
|
+
current_step: analysis # analysis | design | implementation | review | fix | commit
|
|
9
|
+
assigned_to: "" # claude | codex | gemini | opencode | human
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Task: [Title]
|
|
13
|
+
|
|
14
|
+
## Description
|
|
15
|
+
|
|
16
|
+
[Describe the task clearly and concisely.]
|
|
17
|
+
|
|
18
|
+
## Context
|
|
19
|
+
|
|
20
|
+
- **Related Issue**: #XXX
|
|
21
|
+
- **Related PR**: #XXX
|
|
22
|
+
- **Branch**: `feature/xxx`
|
|
23
|
+
|
|
24
|
+
## Requirements
|
|
25
|
+
|
|
26
|
+
- [ ] Requirement 1
|
|
27
|
+
- [ ] Requirement 2
|
|
28
|
+
- [ ] Requirement 3
|
|
29
|
+
|
|
30
|
+
## Analysis
|
|
31
|
+
|
|
32
|
+
[Findings from the analysis phase. Which files are affected? What is the scope?]
|
|
33
|
+
|
|
34
|
+
### Affected Files
|
|
35
|
+
|
|
36
|
+
- `path/to/file1` - Description of changes
|
|
37
|
+
- `path/to/file2` - Description of changes
|
|
38
|
+
|
|
39
|
+
## Design
|
|
40
|
+
|
|
41
|
+
[Technical approach. Interfaces, data flow, architecture decisions.]
|
|
42
|
+
|
|
43
|
+
## Implementation Notes
|
|
44
|
+
|
|
45
|
+
[Notes from the implementation phase. Decisions made, trade-offs, deviations from design.]
|
|
46
|
+
|
|
47
|
+
## Review Feedback
|
|
48
|
+
|
|
49
|
+
[Feedback from the review phase. Issues found, suggestions.]
|
|
50
|
+
|
|
51
|
+
- [ ] Issue 1
|
|
52
|
+
- [ ] Issue 2
|
|
53
|
+
|
|
54
|
+
## Activity Log
|
|
55
|
+
|
|
56
|
+
<!-- Append a new entry for each workflow step. Do NOT overwrite previous entries. -->
|
|
57
|
+
<!-- Format: - {yyyy-MM-dd HH:mm} — **{step}** by {agent} — {brief summary} -->
|
|
58
|
+
|
|
59
|
+
## Completion Checklist
|
|
60
|
+
|
|
61
|
+
- [ ] All requirements met
|
|
62
|
+
- [ ] Tests written and passing
|
|
63
|
+
- [ ] Code reviewed
|
|
64
|
+
- [ ] Documentation updated (if applicable)
|
|
65
|
+
- [ ] PR created
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: task-XXX
|
|
3
|
+
type: feature # feature | bugfix | refactor | docs | review
|
|
4
|
+
workflow: feature-development # feature-development | bug-fix | code-review | refactoring
|
|
5
|
+
status: open # open | in-progress | review | blocked | completed
|
|
6
|
+
created_at: YYYY-MM-DD
|
|
7
|
+
updated_at: YYYY-MM-DD
|
|
8
|
+
current_step: analysis # analysis | design | implementation | review | fix | commit
|
|
9
|
+
assigned_to: "" # claude | codex | gemini | opencode | human
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# 任务:[标题]
|
|
13
|
+
|
|
14
|
+
## 描述
|
|
15
|
+
|
|
16
|
+
[清晰简洁地描述任务。]
|
|
17
|
+
|
|
18
|
+
## 上下文
|
|
19
|
+
|
|
20
|
+
- **关联 Issue**:#XXX
|
|
21
|
+
- **关联 PR**:#XXX
|
|
22
|
+
- **分支**:`feature/xxx`
|
|
23
|
+
|
|
24
|
+
## 需求
|
|
25
|
+
|
|
26
|
+
- [ ] 需求 1
|
|
27
|
+
- [ ] 需求 2
|
|
28
|
+
- [ ] 需求 3
|
|
29
|
+
|
|
30
|
+
## 分析
|
|
31
|
+
|
|
32
|
+
[分析阶段的发现。哪些文件受影响?范围是什么?]
|
|
33
|
+
|
|
34
|
+
### 受影响的文件
|
|
35
|
+
|
|
36
|
+
- `path/to/file1` - 变更描述
|
|
37
|
+
- `path/to/file2` - 变更描述
|
|
38
|
+
|
|
39
|
+
## 设计
|
|
40
|
+
|
|
41
|
+
[技术方案。接口、数据流、架构决策。]
|
|
42
|
+
|
|
43
|
+
## 实现备注
|
|
44
|
+
|
|
45
|
+
[实现阶段的备注。做出的决策、权衡、与设计的偏差。]
|
|
46
|
+
|
|
47
|
+
## 审查反馈
|
|
48
|
+
|
|
49
|
+
[审查阶段的反馈。发现的问题、建议。]
|
|
50
|
+
|
|
51
|
+
- [ ] 问题 1
|
|
52
|
+
- [ ] 问题 2
|
|
53
|
+
|
|
54
|
+
## 活动日志
|
|
55
|
+
|
|
56
|
+
<!-- 每个工作流步骤追加一条新记录,不要覆盖之前的记录。 -->
|
|
57
|
+
<!-- 格式:- {yyyy-MM-dd HH:mm} — **{步骤}** by {执行者} — {简要说明} -->
|
|
58
|
+
|
|
59
|
+
## 完成检查清单
|
|
60
|
+
|
|
61
|
+
- [ ] 所有需求已满足
|
|
62
|
+
- [ ] 测试已编写并通过
|
|
63
|
+
- [ ] 代码已审查
|
|
64
|
+
- [ ] 文档已更新(如适用)
|
|
65
|
+
- [ ] PR 已创建
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# 缺陷修复工作流
|
|
2
|
+
# 修复缺陷时使用此工作流。
|
|
3
|
+
|
|
4
|
+
name: bug-fix
|
|
5
|
+
description: 诊断和修复缺陷的工作流。
|
|
6
|
+
|
|
7
|
+
steps:
|
|
8
|
+
- name: analysis
|
|
9
|
+
description: 复现缺陷,识别根本原因,确定修复范围。
|
|
10
|
+
recommended_agents:
|
|
11
|
+
- claude
|
|
12
|
+
- gemini
|
|
13
|
+
tasks:
|
|
14
|
+
- 理解缺陷报告和预期行为
|
|
15
|
+
- 复现缺陷(如果可能)
|
|
16
|
+
- 追踪代码路径以识别根本原因
|
|
17
|
+
- 确定受影响的文件和组件
|
|
18
|
+
- 将发现记录在任务文件中
|
|
19
|
+
inputs:
|
|
20
|
+
- 缺陷报告或 Issue 描述
|
|
21
|
+
- 复现步骤
|
|
22
|
+
- 项目代码库
|
|
23
|
+
artifact_versioning:
|
|
24
|
+
outputs:
|
|
25
|
+
- name: analysis
|
|
26
|
+
pattern: "analysis.md | analysis-r{N}.md"
|
|
27
|
+
rule: "扫描现有分析产物;首轮创建 analysis.md,后续修订创建 analysis-r{N}.md(N = 当前最高轮次 + 1)"
|
|
28
|
+
outputs:
|
|
29
|
+
- 根因分析
|
|
30
|
+
- 受影响文件列表
|
|
31
|
+
- 更新后的任务文件(分析部分)
|
|
32
|
+
|
|
33
|
+
- name: design
|
|
34
|
+
description: 规划修复方案并考虑边界情况。
|
|
35
|
+
recommended_agents:
|
|
36
|
+
- claude
|
|
37
|
+
tasks:
|
|
38
|
+
- 确定修复缺陷的最佳方案
|
|
39
|
+
- 识别修复的潜在副作用
|
|
40
|
+
- 规划验证修复的测试用例
|
|
41
|
+
- 在任务文件中记录修复方案
|
|
42
|
+
inputs:
|
|
43
|
+
- 上一步的根因分析
|
|
44
|
+
- 项目架构
|
|
45
|
+
artifact_versioning:
|
|
46
|
+
inputs:
|
|
47
|
+
- name: analysis
|
|
48
|
+
pattern: "analysis.md | analysis-r{N}.md"
|
|
49
|
+
rule: "读取最高轮次的分析产物作为设计输入"
|
|
50
|
+
outputs:
|
|
51
|
+
- name: plan
|
|
52
|
+
pattern: "plan.md | plan-r{N}.md"
|
|
53
|
+
rule: "扫描现有方案产物;首轮创建 plan.md,后续修订创建 plan-r{N}.md(N = 当前最高轮次 + 1)"
|
|
54
|
+
outputs:
|
|
55
|
+
- 任务文件中记录的修复方案
|
|
56
|
+
- 待添加的测试用例列表
|
|
57
|
+
|
|
58
|
+
- name: implementation
|
|
59
|
+
description: 实现缺陷修复并添加回归测试。
|
|
60
|
+
recommended_agents:
|
|
61
|
+
- codex
|
|
62
|
+
- cursor
|
|
63
|
+
tasks:
|
|
64
|
+
- 创建缺陷修复分支
|
|
65
|
+
- 实现修复
|
|
66
|
+
- 添加在没有修复时会失败的回归测试
|
|
67
|
+
- 验证现有测试仍然通过
|
|
68
|
+
- 确保代码遵循项目规范
|
|
69
|
+
inputs:
|
|
70
|
+
- 上一步的修复方案
|
|
71
|
+
- 项目编码标准
|
|
72
|
+
artifact_versioning:
|
|
73
|
+
outputs:
|
|
74
|
+
- name: implementation
|
|
75
|
+
pattern: "implementation.md | implementation-r{N}.md"
|
|
76
|
+
rule: "扫描现有实现产物;首轮创建 implementation.md,后续重实现创建 implementation-r{N}.md(N = 当前最高轮次 + 1)"
|
|
77
|
+
outputs:
|
|
78
|
+
- 包含实现的缺陷修复分支
|
|
79
|
+
- 回归测试文件
|
|
80
|
+
- 更新后的任务文件(实现备注)
|
|
81
|
+
|
|
82
|
+
- name: review
|
|
83
|
+
description: 验证修复是否正确和完整。
|
|
84
|
+
recommended_agents:
|
|
85
|
+
- claude
|
|
86
|
+
tasks:
|
|
87
|
+
- 验证修复是否解决了根本原因
|
|
88
|
+
- 检查回归测试是否充分
|
|
89
|
+
- 确保未引入新问题
|
|
90
|
+
- 验证修复不会破坏现有功能
|
|
91
|
+
- 创建审查报告
|
|
92
|
+
inputs:
|
|
93
|
+
- 缺陷修复分支
|
|
94
|
+
- 根因分析
|
|
95
|
+
artifact_versioning:
|
|
96
|
+
inputs:
|
|
97
|
+
- name: implementation
|
|
98
|
+
pattern: "implementation.md | implementation-r{N}.md"
|
|
99
|
+
rule: "读取最高轮次的实现产物作为审查输入"
|
|
100
|
+
outputs:
|
|
101
|
+
- name: review
|
|
102
|
+
pattern: "review.md | review-r{N}.md"
|
|
103
|
+
rule: "扫描现有审查产物;首轮创建 review.md,后续轮次创建 review-r{N}.md(N = 当前最高轮次 + 1)"
|
|
104
|
+
outputs:
|
|
105
|
+
- 审查报告
|
|
106
|
+
- 问题列表(如有)
|
|
107
|
+
|
|
108
|
+
- name: fix
|
|
109
|
+
description: 处理审查中发现的问题。
|
|
110
|
+
recommended_agents:
|
|
111
|
+
- codex
|
|
112
|
+
- cursor
|
|
113
|
+
tasks:
|
|
114
|
+
- 修复审查中识别的问题
|
|
115
|
+
- 根据需要更新测试
|
|
116
|
+
- 验证所有测试通过
|
|
117
|
+
inputs:
|
|
118
|
+
- 审查报告
|
|
119
|
+
- 缺陷修复分支
|
|
120
|
+
artifact_versioning:
|
|
121
|
+
inputs:
|
|
122
|
+
- name: review
|
|
123
|
+
pattern: "review.md | review-r{N}.md"
|
|
124
|
+
rule: "读取最高轮次的审查产物,并校验其与 task.md Activity Log 中最近一条 Code Review 记录一致"
|
|
125
|
+
outputs:
|
|
126
|
+
- name: refinement
|
|
127
|
+
pattern: "refinement.md | refinement-r{N}.md"
|
|
128
|
+
rule: "扫描现有修复产物;首轮创建 refinement.md,后续轮次创建 refinement-r{N}.md(N = 当前最高轮次 + 1)"
|
|
129
|
+
outputs:
|
|
130
|
+
- 包含修复的更新分支
|
|
131
|
+
- 更新后的任务文件
|
|
132
|
+
|
|
133
|
+
- name: commit
|
|
134
|
+
description: 最终确认缺陷修复并创建拉取请求。
|
|
135
|
+
recommended_agents:
|
|
136
|
+
- claude
|
|
137
|
+
- human
|
|
138
|
+
tasks:
|
|
139
|
+
- 确保所有测试通过
|
|
140
|
+
- 编写引用缺陷/Issue 的提交信息
|
|
141
|
+
- 创建包含缺陷修复描述的拉取请求
|
|
142
|
+
- 将 PR 关联到缺陷报告 Issue
|
|
143
|
+
- 将任务移至已完成
|
|
144
|
+
inputs:
|
|
145
|
+
- 最终缺陷修复分支
|
|
146
|
+
- 任务文件
|
|
147
|
+
outputs:
|
|
148
|
+
- 拉取请求
|
|
149
|
+
- 已完成的任务文件(位于 .agent-workspace/completed/)
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# 缺陷修复工作流
|
|
2
|
+
# 修复缺陷时使用此工作流。
|
|
3
|
+
|
|
4
|
+
name: bug-fix
|
|
5
|
+
description: 诊断和修复缺陷的工作流。
|
|
6
|
+
|
|
7
|
+
steps:
|
|
8
|
+
- name: analysis
|
|
9
|
+
description: 复现缺陷,识别根本原因,确定修复范围。
|
|
10
|
+
recommended_agents:
|
|
11
|
+
- claude
|
|
12
|
+
- gemini
|
|
13
|
+
tasks:
|
|
14
|
+
- 理解缺陷报告和预期行为
|
|
15
|
+
- 复现缺陷(如果可能)
|
|
16
|
+
- 追踪代码路径以识别根本原因
|
|
17
|
+
- 确定受影响的文件和组件
|
|
18
|
+
- 将发现记录在任务文件中
|
|
19
|
+
inputs:
|
|
20
|
+
- 缺陷报告或 Issue 描述
|
|
21
|
+
- 复现步骤
|
|
22
|
+
- 项目代码库
|
|
23
|
+
artifact_versioning:
|
|
24
|
+
outputs:
|
|
25
|
+
- name: analysis
|
|
26
|
+
pattern: "analysis.md | analysis-r{N}.md"
|
|
27
|
+
rule: "扫描现有分析产物;首轮创建 analysis.md,后续修订创建 analysis-r{N}.md(N = 当前最高轮次 + 1)"
|
|
28
|
+
outputs:
|
|
29
|
+
- 根因分析
|
|
30
|
+
- 受影响文件列表
|
|
31
|
+
- 更新后的任务文件(分析部分)
|
|
32
|
+
|
|
33
|
+
- name: design
|
|
34
|
+
description: 规划修复方案并考虑边界情况。
|
|
35
|
+
recommended_agents:
|
|
36
|
+
- claude
|
|
37
|
+
tasks:
|
|
38
|
+
- 确定修复缺陷的最佳方案
|
|
39
|
+
- 识别修复的潜在副作用
|
|
40
|
+
- 规划验证修复的测试用例
|
|
41
|
+
- 在任务文件中记录修复方案
|
|
42
|
+
inputs:
|
|
43
|
+
- 上一步的根因分析
|
|
44
|
+
- 项目架构
|
|
45
|
+
artifact_versioning:
|
|
46
|
+
inputs:
|
|
47
|
+
- name: analysis
|
|
48
|
+
pattern: "analysis.md | analysis-r{N}.md"
|
|
49
|
+
rule: "读取最高轮次的分析产物作为设计输入"
|
|
50
|
+
outputs:
|
|
51
|
+
- name: plan
|
|
52
|
+
pattern: "plan.md | plan-r{N}.md"
|
|
53
|
+
rule: "扫描现有方案产物;首轮创建 plan.md,后续修订创建 plan-r{N}.md(N = 当前最高轮次 + 1)"
|
|
54
|
+
outputs:
|
|
55
|
+
- 任务文件中记录的修复方案
|
|
56
|
+
- 待添加的测试用例列表
|
|
57
|
+
|
|
58
|
+
- name: implementation
|
|
59
|
+
description: 实现缺陷修复并添加回归测试。
|
|
60
|
+
recommended_agents:
|
|
61
|
+
- codex
|
|
62
|
+
- cursor
|
|
63
|
+
tasks:
|
|
64
|
+
- 创建缺陷修复分支
|
|
65
|
+
- 实现修复
|
|
66
|
+
- 添加在没有修复时会失败的回归测试
|
|
67
|
+
- 验证现有测试仍然通过
|
|
68
|
+
- 确保代码遵循项目规范
|
|
69
|
+
inputs:
|
|
70
|
+
- 上一步的修复方案
|
|
71
|
+
- 项目编码标准
|
|
72
|
+
artifact_versioning:
|
|
73
|
+
outputs:
|
|
74
|
+
- name: implementation
|
|
75
|
+
pattern: "implementation.md | implementation-r{N}.md"
|
|
76
|
+
rule: "扫描现有实现产物;首轮创建 implementation.md,后续重实现创建 implementation-r{N}.md(N = 当前最高轮次 + 1)"
|
|
77
|
+
outputs:
|
|
78
|
+
- 包含实现的缺陷修复分支
|
|
79
|
+
- 回归测试文件
|
|
80
|
+
- 更新后的任务文件(实现备注)
|
|
81
|
+
|
|
82
|
+
- name: review
|
|
83
|
+
description: 验证修复是否正确和完整。
|
|
84
|
+
recommended_agents:
|
|
85
|
+
- claude
|
|
86
|
+
tasks:
|
|
87
|
+
- 验证修复是否解决了根本原因
|
|
88
|
+
- 检查回归测试是否充分
|
|
89
|
+
- 确保未引入新问题
|
|
90
|
+
- 验证修复不会破坏现有功能
|
|
91
|
+
- 创建审查报告
|
|
92
|
+
inputs:
|
|
93
|
+
- 缺陷修复分支
|
|
94
|
+
- 根因分析
|
|
95
|
+
artifact_versioning:
|
|
96
|
+
inputs:
|
|
97
|
+
- name: implementation
|
|
98
|
+
pattern: "implementation.md | implementation-r{N}.md"
|
|
99
|
+
rule: "读取最高轮次的实现产物作为审查输入"
|
|
100
|
+
outputs:
|
|
101
|
+
- name: review
|
|
102
|
+
pattern: "review.md | review-r{N}.md"
|
|
103
|
+
rule: "扫描现有审查产物;首轮创建 review.md,后续轮次创建 review-r{N}.md(N = 当前最高轮次 + 1)"
|
|
104
|
+
outputs:
|
|
105
|
+
- 审查报告
|
|
106
|
+
- 问题列表(如有)
|
|
107
|
+
|
|
108
|
+
- name: fix
|
|
109
|
+
description: 处理审查中发现的问题。
|
|
110
|
+
recommended_agents:
|
|
111
|
+
- codex
|
|
112
|
+
- cursor
|
|
113
|
+
tasks:
|
|
114
|
+
- 修复审查中识别的问题
|
|
115
|
+
- 根据需要更新测试
|
|
116
|
+
- 验证所有测试通过
|
|
117
|
+
inputs:
|
|
118
|
+
- 审查报告
|
|
119
|
+
- 缺陷修复分支
|
|
120
|
+
artifact_versioning:
|
|
121
|
+
inputs:
|
|
122
|
+
- name: review
|
|
123
|
+
pattern: "review.md | review-r{N}.md"
|
|
124
|
+
rule: "读取最高轮次的审查产物,并校验其与 task.md Activity Log 中最近一条 Code Review 记录一致"
|
|
125
|
+
outputs:
|
|
126
|
+
- name: refinement
|
|
127
|
+
pattern: "refinement.md | refinement-r{N}.md"
|
|
128
|
+
rule: "扫描现有修复产物;首轮创建 refinement.md,后续轮次创建 refinement-r{N}.md(N = 当前最高轮次 + 1)"
|
|
129
|
+
outputs:
|
|
130
|
+
- 包含修复的更新分支
|
|
131
|
+
- 更新后的任务文件
|
|
132
|
+
|
|
133
|
+
- name: commit
|
|
134
|
+
description: 最终确认缺陷修复并创建拉取请求。
|
|
135
|
+
recommended_agents:
|
|
136
|
+
- claude
|
|
137
|
+
- human
|
|
138
|
+
tasks:
|
|
139
|
+
- 确保所有测试通过
|
|
140
|
+
- 编写引用缺陷/Issue 的提交信息
|
|
141
|
+
- 创建包含缺陷修复描述的拉取请求
|
|
142
|
+
- 将 PR 关联到缺陷报告 Issue
|
|
143
|
+
- 将任务移至已完成
|
|
144
|
+
inputs:
|
|
145
|
+
- 最终缺陷修复分支
|
|
146
|
+
- 任务文件
|
|
147
|
+
outputs:
|
|
148
|
+
- 拉取请求
|
|
149
|
+
- 已完成的任务文件(位于 .agent-workspace/completed/)
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Code Review Workflow
|
|
2
|
+
# Use this workflow for reviewing pull requests or code changes.
|
|
3
|
+
|
|
4
|
+
name: code-review
|
|
5
|
+
description: Workflow for thorough code review of pull requests or branches.
|
|
6
|
+
|
|
7
|
+
steps:
|
|
8
|
+
- name: analysis
|
|
9
|
+
description: Load context and understand the scope of changes.
|
|
10
|
+
recommended_agents:
|
|
11
|
+
- claude
|
|
12
|
+
- gemini
|
|
13
|
+
tasks:
|
|
14
|
+
- Read the PR description and linked issues
|
|
15
|
+
- Review the diff to understand what changed
|
|
16
|
+
- Identify the intent and scope of the changes
|
|
17
|
+
- Load relevant project conventions and standards
|
|
18
|
+
inputs:
|
|
19
|
+
- Pull request or branch to review
|
|
20
|
+
- Project conventions
|
|
21
|
+
outputs:
|
|
22
|
+
- Understanding of change scope
|
|
23
|
+
- List of files to review
|
|
24
|
+
|
|
25
|
+
- name: review
|
|
26
|
+
description: Perform a thorough code review.
|
|
27
|
+
recommended_agents:
|
|
28
|
+
- claude
|
|
29
|
+
tasks:
|
|
30
|
+
- Check code correctness and logic
|
|
31
|
+
- Verify adherence to project coding standards
|
|
32
|
+
- Check for security vulnerabilities
|
|
33
|
+
- Assess performance implications
|
|
34
|
+
- Verify test coverage and test quality
|
|
35
|
+
- Check documentation updates
|
|
36
|
+
- Look for edge cases and error handling
|
|
37
|
+
- Review commit messages
|
|
38
|
+
inputs:
|
|
39
|
+
- Code changes (diff)
|
|
40
|
+
- Project conventions
|
|
41
|
+
- Existing test suite
|
|
42
|
+
outputs:
|
|
43
|
+
- Review report with categorized findings
|
|
44
|
+
- Approval or change request
|
|
45
|
+
|
|
46
|
+
- name: report
|
|
47
|
+
description: Document and communicate review findings.
|
|
48
|
+
recommended_agents:
|
|
49
|
+
- claude
|
|
50
|
+
tasks:
|
|
51
|
+
- Create a review report from the template
|
|
52
|
+
- Categorize findings by severity (critical, major, minor, suggestion)
|
|
53
|
+
- Provide actionable feedback with specific file and line references
|
|
54
|
+
- Summarize overall assessment
|
|
55
|
+
inputs:
|
|
56
|
+
- Review findings from previous step
|
|
57
|
+
- Review report template
|
|
58
|
+
outputs:
|
|
59
|
+
- Completed review report
|
|
60
|
+
- PR comments (if applicable)
|