@fitlab-ai/agent-infra 0.4.0 → 0.4.1
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/README.md +1 -3
- package/README.zh-CN.md +1 -3
- package/lib/defaults.json +2 -0
- package/lib/init.js +1 -6
- package/lib/update.js +0 -55
- package/package.json +1 -1
- package/templates/.agents/QUICKSTART.md +10 -0
- package/templates/.agents/QUICKSTART.zh-CN.md +10 -0
- package/templates/.agents/README.md +18 -11
- package/templates/.agents/README.zh-CN.md +18 -11
- package/templates/.agents/skills/analyze-task/SKILL.md +1 -4
- package/templates/.agents/skills/analyze-task/SKILL.zh-CN.md +1 -3
- package/templates/.agents/skills/block-task/SKILL.md +1 -5
- package/templates/.agents/skills/block-task/SKILL.zh-CN.md +1 -4
- package/templates/.agents/skills/check-task/SKILL.md +1 -5
- package/templates/.agents/skills/check-task/SKILL.zh-CN.md +1 -3
- package/templates/.agents/skills/close-codescan/SKILL.md +1 -4
- package/templates/.agents/skills/close-codescan/SKILL.zh-CN.md +1 -3
- package/templates/.agents/skills/close-dependabot/SKILL.md +1 -4
- package/templates/.agents/skills/close-dependabot/SKILL.zh-CN.md +1 -3
- package/templates/.agents/skills/commit/SKILL.md +26 -198
- package/templates/.agents/skills/commit/SKILL.zh-CN.md +26 -197
- package/templates/.agents/skills/commit/reference/commit-message.md +60 -0
- package/templates/.agents/skills/commit/reference/commit-message.zh-CN.md +60 -0
- package/templates/.agents/skills/commit/reference/copyright-check.md +39 -0
- package/templates/.agents/skills/commit/reference/copyright-check.zh-CN.md +39 -0
- package/templates/.agents/skills/commit/reference/task-status-update.md +88 -0
- package/templates/.agents/skills/commit/reference/task-status-update.zh-CN.md +88 -0
- package/templates/.agents/skills/complete-task/SKILL.md +1 -6
- package/templates/.agents/skills/complete-task/SKILL.zh-CN.md +1 -4
- package/templates/.agents/skills/create-issue/SKILL.md +32 -251
- package/templates/.agents/skills/create-issue/SKILL.zh-CN.md +33 -252
- package/templates/.agents/skills/create-issue/reference/label-and-type.md +77 -0
- package/templates/.agents/skills/create-issue/reference/label-and-type.zh-CN.md +77 -0
- package/templates/.agents/skills/create-issue/reference/template-matching.md +45 -0
- package/templates/.agents/skills/create-issue/reference/template-matching.zh-CN.md +45 -0
- package/templates/.agents/skills/create-pr/SKILL.md +33 -224
- package/templates/.agents/skills/create-pr/SKILL.zh-CN.md +32 -222
- package/templates/.agents/skills/create-pr/reference/branch-strategy.md +29 -0
- package/templates/.agents/skills/create-pr/reference/branch-strategy.zh-CN.md +29 -0
- package/templates/.agents/skills/create-pr/reference/pr-body-template.md +86 -0
- package/templates/.agents/skills/create-pr/reference/pr-body-template.zh-CN.md +86 -0
- package/templates/.agents/skills/create-release-note/SKILL.md +10 -13
- package/templates/.agents/skills/create-release-note/SKILL.zh-CN.md +10 -12
- package/templates/.agents/skills/create-task/SKILL.md +1 -4
- package/templates/.agents/skills/create-task/SKILL.zh-CN.md +1 -3
- package/templates/.agents/skills/implement-task/SKILL.md +46 -176
- package/templates/.agents/skills/implement-task/SKILL.zh-CN.md +42 -170
- package/templates/.agents/skills/implement-task/reference/implementation-rules.md +58 -0
- package/templates/.agents/skills/implement-task/reference/implementation-rules.zh-CN.md +58 -0
- package/templates/.agents/skills/implement-task/reference/report-template.md +63 -0
- package/templates/.agents/skills/implement-task/reference/report-template.zh-CN.md +63 -0
- package/templates/.agents/skills/import-codescan/SKILL.md +1 -4
- package/templates/.agents/skills/import-codescan/SKILL.zh-CN.md +1 -3
- package/templates/.agents/skills/import-dependabot/SKILL.md +1 -4
- package/templates/.agents/skills/import-dependabot/SKILL.zh-CN.md +1 -3
- package/templates/.agents/skills/import-issue/SKILL.md +1 -3
- package/templates/.agents/skills/import-issue/SKILL.zh-CN.md +1 -3
- package/templates/.agents/skills/init-labels/SKILL.md +1 -4
- package/templates/.agents/skills/init-labels/SKILL.zh-CN.md +1 -4
- package/templates/.agents/skills/init-milestones/SKILL.md +1 -3
- package/templates/.agents/skills/init-milestones/SKILL.zh-CN.md +1 -3
- package/templates/.agents/skills/plan-task/SKILL.md +1 -5
- package/templates/.agents/skills/plan-task/SKILL.zh-CN.md +1 -3
- package/templates/.agents/skills/refine-task/SKILL.md +38 -162
- package/templates/.agents/skills/refine-task/SKILL.zh-CN.md +36 -158
- package/templates/.agents/skills/refine-task/reference/fix-workflow.md +76 -0
- package/templates/.agents/skills/refine-task/reference/fix-workflow.zh-CN.md +76 -0
- package/templates/.agents/skills/refine-task/reference/report-template.md +38 -0
- package/templates/.agents/skills/refine-task/reference/report-template.zh-CN.md +38 -0
- package/templates/.agents/skills/refine-title/SKILL.md +1 -4
- package/templates/.agents/skills/refine-title/SKILL.zh-CN.md +1 -3
- package/templates/.agents/skills/release/SKILL.md +10 -12
- package/templates/.agents/skills/release/SKILL.zh-CN.md +10 -11
- package/templates/.agents/skills/review-task/SKILL.md +37 -239
- package/templates/.agents/skills/review-task/SKILL.zh-CN.md +37 -238
- package/templates/.agents/skills/review-task/reference/output-templates.md +72 -0
- package/templates/.agents/skills/review-task/reference/output-templates.zh-CN.md +72 -0
- package/templates/.agents/skills/review-task/reference/report-template.md +63 -0
- package/templates/.agents/skills/review-task/reference/report-template.zh-CN.md +63 -0
- package/templates/.agents/skills/review-task/reference/review-criteria.md +24 -0
- package/templates/.agents/skills/review-task/reference/review-criteria.zh-CN.md +24 -0
- package/templates/.agents/skills/sync-issue/SKILL.md +29 -487
- package/templates/.agents/skills/sync-issue/SKILL.zh-CN.md +30 -487
- package/templates/.agents/skills/sync-issue/reference/comment-publish.md +88 -0
- package/templates/.agents/skills/sync-issue/reference/comment-publish.zh-CN.md +88 -0
- package/templates/.agents/skills/sync-issue/reference/delivery-detection.md +42 -0
- package/templates/.agents/skills/sync-issue/reference/delivery-detection.zh-CN.md +42 -0
- package/templates/.agents/skills/sync-issue/reference/label-sync.md +63 -0
- package/templates/.agents/skills/sync-issue/reference/label-sync.zh-CN.md +63 -0
- package/templates/.agents/skills/sync-issue/reference/milestone-sync.md +37 -0
- package/templates/.agents/skills/sync-issue/reference/milestone-sync.zh-CN.md +37 -0
- package/templates/.agents/skills/sync-pr/SKILL.md +25 -287
- package/templates/.agents/skills/sync-pr/SKILL.zh-CN.md +29 -291
- package/templates/.agents/skills/sync-pr/reference/comment-publish.md +82 -0
- package/templates/.agents/skills/sync-pr/reference/comment-publish.zh-CN.md +82 -0
- package/templates/.agents/skills/sync-pr/reference/delivery-detection.md +54 -0
- package/templates/.agents/skills/sync-pr/reference/delivery-detection.zh-CN.md +54 -0
- package/templates/.agents/skills/test/SKILL.md +1 -3
- package/templates/.agents/skills/test/SKILL.zh-CN.md +1 -3
- package/templates/.agents/skills/test-integration/SKILL.md +1 -4
- package/templates/.agents/skills/test-integration/SKILL.zh-CN.md +1 -3
- package/templates/.agents/skills/update-agent-infra/SKILL.md +2 -6
- package/templates/.agents/skills/update-agent-infra/SKILL.zh-CN.md +2 -4
- package/templates/.agents/skills/update-agent-infra/scripts/sync-templates.js +42 -46
- package/templates/.agents/skills/upgrade-dependency/SKILL.md +1 -4
- package/templates/.agents/skills/upgrade-dependency/SKILL.zh-CN.md +1 -3
- package/templates/.claude/CLAUDE.md +13 -51
- package/templates/.claude/CLAUDE.zh-CN.md +13 -51
- package/templates/.claude/commands/analyze-task.md +1 -1
- package/templates/.claude/commands/analyze-task.zh-CN.md +1 -1
- package/templates/.claude/commands/block-task.md +2 -1
- package/templates/.claude/commands/block-task.zh-CN.md +2 -1
- package/templates/.claude/commands/check-task.md +2 -1
- package/templates/.claude/commands/check-task.zh-CN.md +2 -1
- package/templates/.claude/commands/close-codescan.md +2 -1
- package/templates/.claude/commands/close-codescan.zh-CN.md +2 -1
- package/templates/.claude/commands/close-dependabot.md +2 -1
- package/templates/.claude/commands/close-dependabot.zh-CN.md +2 -1
- package/templates/.claude/commands/commit.md +1 -1
- package/templates/.claude/commands/commit.zh-CN.md +1 -1
- package/templates/.claude/commands/complete-task.md +1 -1
- package/templates/.claude/commands/complete-task.zh-CN.md +1 -1
- package/templates/.claude/commands/create-issue.md +1 -1
- package/templates/.claude/commands/create-issue.zh-CN.md +1 -1
- package/templates/.claude/commands/create-pr.md +1 -1
- package/templates/.claude/commands/create-pr.zh-CN.md +1 -1
- package/templates/.claude/commands/create-release-note.md +2 -1
- package/templates/.claude/commands/create-release-note.zh-CN.md +2 -1
- package/templates/.claude/commands/create-task.md +1 -1
- package/templates/.claude/commands/create-task.zh-CN.md +1 -1
- package/templates/.claude/commands/implement-task.md +1 -1
- package/templates/.claude/commands/implement-task.zh-CN.md +1 -1
- package/templates/.claude/commands/import-codescan.md +1 -0
- package/templates/.claude/commands/import-codescan.zh-CN.md +2 -1
- package/templates/.claude/commands/import-dependabot.md +1 -0
- package/templates/.claude/commands/import-dependabot.zh-CN.md +2 -1
- package/templates/.claude/commands/import-issue.md +1 -1
- package/templates/.claude/commands/import-issue.zh-CN.md +1 -1
- package/templates/.claude/commands/init-labels.md +1 -0
- package/templates/.claude/commands/init-labels.zh-CN.md +2 -1
- package/templates/.claude/commands/init-milestones.md +2 -1
- package/templates/.claude/commands/init-milestones.zh-CN.md +2 -1
- package/templates/.claude/commands/plan-task.md +1 -1
- package/templates/.claude/commands/plan-task.zh-CN.md +1 -1
- package/templates/.claude/commands/refine-task.zh-CN.md +1 -1
- package/templates/.claude/commands/refine-title.md +2 -1
- package/templates/.claude/commands/refine-title.zh-CN.md +2 -1
- package/templates/.claude/commands/release.md +2 -1
- package/templates/.claude/commands/release.zh-CN.md +2 -1
- package/templates/.claude/commands/review-task.md +1 -1
- package/templates/.claude/commands/review-task.zh-CN.md +1 -1
- package/templates/.claude/commands/sync-issue.md +1 -1
- package/templates/.claude/commands/sync-issue.zh-CN.md +1 -1
- package/templates/.claude/commands/sync-pr.md +1 -1
- package/templates/.claude/commands/sync-pr.zh-CN.md +1 -1
- package/templates/.claude/commands/test-integration.md +2 -1
- package/templates/.claude/commands/test-integration.zh-CN.md +2 -1
- package/templates/.claude/commands/test.md +1 -1
- package/templates/.claude/commands/test.zh-CN.md +1 -1
- package/templates/.claude/commands/update-agent-infra.md +2 -1
- package/templates/.claude/commands/update-agent-infra.zh-CN.md +2 -1
- package/templates/.claude/commands/upgrade-dependency.md +2 -1
- package/templates/.claude/commands/upgrade-dependency.zh-CN.md +2 -1
- package/templates/.gemini/commands/_project_/analyze-task.toml +1 -1
- package/templates/.gemini/commands/_project_/analyze-task.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/block-task.toml +1 -1
- package/templates/.gemini/commands/_project_/block-task.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/check-task.toml +1 -1
- package/templates/.gemini/commands/_project_/check-task.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/close-codescan.toml +1 -1
- package/templates/.gemini/commands/_project_/close-codescan.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/close-dependabot.toml +1 -1
- package/templates/.gemini/commands/_project_/close-dependabot.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/commit.toml +1 -1
- package/templates/.gemini/commands/_project_/commit.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/complete-task.toml +1 -1
- package/templates/.gemini/commands/_project_/complete-task.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/create-issue.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/create-pr.toml +1 -1
- package/templates/.gemini/commands/_project_/create-pr.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/create-release-note.toml +1 -1
- package/templates/.gemini/commands/_project_/create-release-note.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/create-task.toml +1 -1
- package/templates/.gemini/commands/_project_/create-task.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/implement-task.toml +1 -1
- package/templates/.gemini/commands/_project_/implement-task.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/import-codescan.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/import-dependabot.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/import-issue.toml +1 -1
- package/templates/.gemini/commands/_project_/import-issue.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/init-labels.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/init-milestones.toml +1 -1
- package/templates/.gemini/commands/_project_/init-milestones.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/plan-task.toml +1 -1
- package/templates/.gemini/commands/_project_/plan-task.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/refine-task.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/refine-title.toml +1 -1
- package/templates/.gemini/commands/_project_/refine-title.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/release.toml +1 -1
- package/templates/.gemini/commands/_project_/release.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/review-task.toml +1 -1
- package/templates/.gemini/commands/_project_/review-task.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/sync-issue.toml +1 -1
- package/templates/.gemini/commands/_project_/sync-issue.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/sync-pr.toml +1 -1
- package/templates/.gemini/commands/_project_/sync-pr.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/test-integration.toml +1 -1
- package/templates/.gemini/commands/_project_/test-integration.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/test.toml +1 -1
- package/templates/.gemini/commands/_project_/test.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/update-agent-infra.toml +1 -1
- package/templates/.gemini/commands/_project_/update-agent-infra.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/upgrade-dependency.toml +1 -1
- package/templates/.gemini/commands/_project_/upgrade-dependency.zh-CN.toml +1 -1
- package/templates/.github/hooks/check-version-format.sh +29 -0
- package/templates/.github/hooks/pre-commit +8 -0
- package/templates/.opencode/commands/analyze-task.md +1 -1
- package/templates/.opencode/commands/analyze-task.zh-CN.md +1 -1
- package/templates/.opencode/commands/block-task.md +1 -1
- package/templates/.opencode/commands/block-task.zh-CN.md +1 -1
- package/templates/.opencode/commands/check-task.md +1 -1
- package/templates/.opencode/commands/check-task.zh-CN.md +1 -1
- package/templates/.opencode/commands/close-codescan.md +1 -1
- package/templates/.opencode/commands/close-codescan.zh-CN.md +1 -1
- package/templates/.opencode/commands/close-dependabot.md +1 -1
- package/templates/.opencode/commands/close-dependabot.zh-CN.md +1 -1
- package/templates/.opencode/commands/commit.md +1 -1
- package/templates/.opencode/commands/commit.zh-CN.md +1 -1
- package/templates/.opencode/commands/complete-task.md +1 -1
- package/templates/.opencode/commands/complete-task.zh-CN.md +1 -1
- package/templates/.opencode/commands/create-issue.zh-CN.md +1 -1
- package/templates/.opencode/commands/create-pr.md +1 -1
- package/templates/.opencode/commands/create-pr.zh-CN.md +1 -1
- package/templates/.opencode/commands/create-release-note.md +1 -1
- package/templates/.opencode/commands/create-release-note.zh-CN.md +1 -1
- package/templates/.opencode/commands/create-task.md +1 -1
- package/templates/.opencode/commands/create-task.zh-CN.md +1 -1
- package/templates/.opencode/commands/implement-task.md +1 -1
- package/templates/.opencode/commands/implement-task.zh-CN.md +1 -1
- package/templates/.opencode/commands/import-codescan.zh-CN.md +1 -1
- package/templates/.opencode/commands/import-dependabot.zh-CN.md +1 -1
- package/templates/.opencode/commands/import-issue.md +1 -1
- package/templates/.opencode/commands/import-issue.zh-CN.md +1 -1
- package/templates/.opencode/commands/init-labels.zh-CN.md +1 -1
- package/templates/.opencode/commands/init-milestones.md +1 -1
- package/templates/.opencode/commands/init-milestones.zh-CN.md +1 -1
- package/templates/.opencode/commands/plan-task.md +1 -1
- package/templates/.opencode/commands/plan-task.zh-CN.md +1 -1
- package/templates/.opencode/commands/refine-task.zh-CN.md +1 -1
- package/templates/.opencode/commands/refine-title.md +1 -1
- package/templates/.opencode/commands/refine-title.zh-CN.md +1 -1
- package/templates/.opencode/commands/release.md +1 -1
- package/templates/.opencode/commands/release.zh-CN.md +1 -1
- package/templates/.opencode/commands/review-task.md +1 -1
- package/templates/.opencode/commands/review-task.zh-CN.md +1 -1
- package/templates/.opencode/commands/sync-issue.md +1 -1
- package/templates/.opencode/commands/sync-issue.zh-CN.md +1 -1
- package/templates/.opencode/commands/sync-pr.md +1 -1
- package/templates/.opencode/commands/sync-pr.zh-CN.md +1 -1
- package/templates/.opencode/commands/test-integration.md +1 -1
- package/templates/.opencode/commands/test-integration.zh-CN.md +1 -1
- package/templates/.opencode/commands/test.md +1 -1
- package/templates/.opencode/commands/test.zh-CN.md +1 -1
- package/templates/.opencode/commands/update-agent-infra.md +1 -1
- package/templates/.opencode/commands/update-agent-infra.zh-CN.md +1 -1
- package/templates/.opencode/commands/upgrade-dependency.md +1 -1
- package/templates/.opencode/commands/upgrade-dependency.zh-CN.md +1 -1
- package/templates/AGENTS.md +10 -2
- package/templates/AGENTS.zh-CN.md +10 -2
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Review Output Templates
|
|
2
|
+
|
|
3
|
+
Read this file before presenting the final review result to the user.
|
|
4
|
+
|
|
5
|
+
## Choose Exactly One Output Branch
|
|
6
|
+
|
|
7
|
+
Apply these rules in order:
|
|
8
|
+
1. if `Blocker = 0` and `Major = 0` and `Minor = 0`, use Branch A
|
|
9
|
+
2. if `Blocker = 0` and (`Major > 0` or `Minor > 0`), use Branch B
|
|
10
|
+
3. if `Blocker > 0` and the work can be repaired in a focused refinement pass, use Branch C
|
|
11
|
+
4. if the task requires major redesign, broad reimplementation, or a restart, use Branch D
|
|
12
|
+
|
|
13
|
+
Prohibitions:
|
|
14
|
+
- never skip the branch-selection step
|
|
15
|
+
- never mix text from different branches
|
|
16
|
+
- if `Blocker > 0`, never output an approval template
|
|
17
|
+
- always include every TUI command format in the selected branch
|
|
18
|
+
|
|
19
|
+
### Branch A: Approved with No Findings
|
|
20
|
+
|
|
21
|
+
```text
|
|
22
|
+
Task {task-id} review completed. Verdict: approved.
|
|
23
|
+
- Blockers: 0 | Major: 0 | Minor: 0
|
|
24
|
+
|
|
25
|
+
Next step - commit the code:
|
|
26
|
+
- Claude Code / OpenCode: /commit
|
|
27
|
+
- Gemini CLI: /agent-infra:commit
|
|
28
|
+
- Codex CLI: $commit
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Branch B: Approved with Findings
|
|
32
|
+
|
|
33
|
+
```text
|
|
34
|
+
Task {task-id} review completed. Verdict: approved.
|
|
35
|
+
- Blockers: 0 | Major: {n} | Minor: {n}
|
|
36
|
+
- Review report: .agents/workspace/active/{task-id}/{review-artifact}
|
|
37
|
+
|
|
38
|
+
Next step - refine before commit (recommended):
|
|
39
|
+
- Claude Code / OpenCode: /refine-task {task-id}
|
|
40
|
+
- Gemini CLI: /agent-infra:refine-task {task-id}
|
|
41
|
+
- Codex CLI: $refine-task {task-id}
|
|
42
|
+
|
|
43
|
+
Or commit directly (skip refinement):
|
|
44
|
+
- Claude Code / OpenCode: /commit
|
|
45
|
+
- Gemini CLI: /agent-infra:commit
|
|
46
|
+
- Codex CLI: $commit
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Branch C: Changes Requested
|
|
50
|
+
|
|
51
|
+
```text
|
|
52
|
+
Task {task-id} review completed. Verdict: changes requested.
|
|
53
|
+
- Blockers: {n} | Major: {n} | Minor: {n}
|
|
54
|
+
- Review report: .agents/workspace/active/{task-id}/{review-artifact}
|
|
55
|
+
|
|
56
|
+
Next step - fix the findings:
|
|
57
|
+
- Claude Code / OpenCode: /refine-task {task-id}
|
|
58
|
+
- Gemini CLI: /agent-infra:refine-task {task-id}
|
|
59
|
+
- Codex CLI: $refine-task {task-id}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Branch D: Rejected
|
|
63
|
+
|
|
64
|
+
```text
|
|
65
|
+
Task {task-id} review completed. Verdict: rejected, major rework required.
|
|
66
|
+
- Review report: .agents/workspace/active/{task-id}/{review-artifact}
|
|
67
|
+
|
|
68
|
+
Next step - re-implement:
|
|
69
|
+
- Claude Code / OpenCode: /implement-task {task-id}
|
|
70
|
+
- Gemini CLI: /agent-infra:implement-task {task-id}
|
|
71
|
+
- Codex CLI: $implement-task {task-id}
|
|
72
|
+
```
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# 审查输出模板
|
|
2
|
+
|
|
3
|
+
在向用户汇报最终审查结论之前先读取本文件。
|
|
4
|
+
|
|
5
|
+
## 选择唯一输出场景
|
|
6
|
+
|
|
7
|
+
按以下顺序判断:
|
|
8
|
+
1. 如果 `Blocker = 0` 且 `Major = 0` 且 `Minor = 0`,使用场景 A
|
|
9
|
+
2. 如果 `Blocker = 0` 且(`Major > 0` 或 `Minor > 0`),使用场景 B
|
|
10
|
+
3. 如果 `Blocker > 0`,且问题可以通过一次聚焦修复解决,使用场景 C
|
|
11
|
+
4. 如果任务需要重大重构、大范围重写或整体重来,使用场景 D
|
|
12
|
+
|
|
13
|
+
禁止规则:
|
|
14
|
+
- 不要跳过场景判断步骤
|
|
15
|
+
- 不要混用不同场景的文案
|
|
16
|
+
- 只要 `Blocker > 0`,就绝对不能输出通过模板
|
|
17
|
+
- 所选场景中必须包含所有 TUI 命令格式
|
|
18
|
+
|
|
19
|
+
### 场景 A:通过且无问题
|
|
20
|
+
|
|
21
|
+
```text
|
|
22
|
+
任务 {task-id} 代码审查完成。结论:通过。
|
|
23
|
+
- 阻塞项:0 | 主要问题:0 | 次要问题:0
|
|
24
|
+
|
|
25
|
+
下一步 - 提交代码:
|
|
26
|
+
- Claude Code / OpenCode:/commit
|
|
27
|
+
- Gemini CLI:/agent-infra:commit
|
|
28
|
+
- Codex CLI:$commit
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### 场景 B:通过但有问题
|
|
32
|
+
|
|
33
|
+
```text
|
|
34
|
+
任务 {task-id} 代码审查完成。结论:通过。
|
|
35
|
+
- 阻塞项:0 | 主要问题:{n} | 次要问题:{n}
|
|
36
|
+
- 审查报告:.agents/workspace/active/{task-id}/{review-artifact}
|
|
37
|
+
|
|
38
|
+
下一步 - 修复问题后提交(推荐):
|
|
39
|
+
- Claude Code / OpenCode:/refine-task {task-id}
|
|
40
|
+
- Gemini CLI:/agent-infra:refine-task {task-id}
|
|
41
|
+
- Codex CLI:$refine-task {task-id}
|
|
42
|
+
|
|
43
|
+
或直接提交(跳过修复):
|
|
44
|
+
- Claude Code / OpenCode:/commit
|
|
45
|
+
- Gemini CLI:/agent-infra:commit
|
|
46
|
+
- Codex CLI:$commit
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### 场景 C:需要修改
|
|
50
|
+
|
|
51
|
+
```text
|
|
52
|
+
任务 {task-id} 代码审查完成。结论:需要修改。
|
|
53
|
+
- 阻塞项:{n} | 主要问题:{n} | 次要问题:{n}
|
|
54
|
+
- 审查报告:.agents/workspace/active/{task-id}/{review-artifact}
|
|
55
|
+
|
|
56
|
+
下一步 - 修复问题:
|
|
57
|
+
- Claude Code / OpenCode:/refine-task {task-id}
|
|
58
|
+
- Gemini CLI:/agent-infra:refine-task {task-id}
|
|
59
|
+
- Codex CLI:$refine-task {task-id}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### 场景 D:拒绝
|
|
63
|
+
|
|
64
|
+
```text
|
|
65
|
+
任务 {task-id} 代码审查完成。结论:拒绝,需要重大返工。
|
|
66
|
+
- 审查报告:.agents/workspace/active/{task-id}/{review-artifact}
|
|
67
|
+
|
|
68
|
+
下一步 - 重新实现:
|
|
69
|
+
- Claude Code / OpenCode:/implement-task {task-id}
|
|
70
|
+
- Gemini CLI:/agent-infra:implement-task {task-id}
|
|
71
|
+
- Codex CLI:$implement-task {task-id}
|
|
72
|
+
```
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Review Report Template
|
|
2
|
+
|
|
3
|
+
Use this template when writing `review.md` or `review-r{N}.md`.
|
|
4
|
+
|
|
5
|
+
## Output Template
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
# Code Review Report
|
|
9
|
+
|
|
10
|
+
- **Review Round**: Round {review-round}
|
|
11
|
+
- **Artifact File**: `{review-artifact}`
|
|
12
|
+
- **Implementation Input**:
|
|
13
|
+
- `{implementation-artifact}`
|
|
14
|
+
- `{refinement-artifact}` (if present)
|
|
15
|
+
|
|
16
|
+
## Review Summary
|
|
17
|
+
|
|
18
|
+
- **Reviewer**: {reviewer-name}
|
|
19
|
+
- **Review Time**: {timestamp}
|
|
20
|
+
- **Scope**: {file-count and major modules}
|
|
21
|
+
- **Overall Verdict**: {Approved / Changes Requested / Rejected}
|
|
22
|
+
|
|
23
|
+
## Findings
|
|
24
|
+
|
|
25
|
+
### Blockers (must fix)
|
|
26
|
+
|
|
27
|
+
#### 1. {Issue title}
|
|
28
|
+
**File**: `{file-path}:{line-number}`
|
|
29
|
+
**Description**: {details}
|
|
30
|
+
**Suggested Fix**: {fix suggestion}
|
|
31
|
+
|
|
32
|
+
### Major Issues (should fix)
|
|
33
|
+
|
|
34
|
+
#### 1. {Issue title}
|
|
35
|
+
**File**: `{file-path}:{line-number}`
|
|
36
|
+
**Description**: {details}
|
|
37
|
+
**Suggested Fix**: {fix suggestion}
|
|
38
|
+
|
|
39
|
+
### Minor Issues (optional improvements)
|
|
40
|
+
|
|
41
|
+
#### 1. {Improvement point}
|
|
42
|
+
**File**: `{file-path}:{line-number}`
|
|
43
|
+
**Suggestion**: {improvement suggestion}
|
|
44
|
+
|
|
45
|
+
## Highlights
|
|
46
|
+
|
|
47
|
+
- {what went well}
|
|
48
|
+
|
|
49
|
+
## Alignment with Plan
|
|
50
|
+
|
|
51
|
+
- [ ] Implementation matches the technical plan
|
|
52
|
+
- [ ] No unintended scope expansion
|
|
53
|
+
|
|
54
|
+
## Conclusion and Recommendation
|
|
55
|
+
|
|
56
|
+
### Approval Decision
|
|
57
|
+
- [ ] Approved
|
|
58
|
+
- [ ] Changes Requested
|
|
59
|
+
- [ ] Rejected
|
|
60
|
+
|
|
61
|
+
### Next Steps
|
|
62
|
+
{recommended next step}
|
|
63
|
+
```
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# 审查报告模板
|
|
2
|
+
|
|
3
|
+
编写 `review.md` 或 `review-r{N}.md` 时使用本模板。
|
|
4
|
+
|
|
5
|
+
## 输出模板
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
# 代码审查报告
|
|
9
|
+
|
|
10
|
+
- **审查轮次**:第 {review-round} 轮
|
|
11
|
+
- **产物文件**:`{review-artifact}`
|
|
12
|
+
- **审查输入**:
|
|
13
|
+
- `{implementation-artifact}`
|
|
14
|
+
- `{refinement-artifact}`(如存在)
|
|
15
|
+
|
|
16
|
+
## 审查摘要
|
|
17
|
+
|
|
18
|
+
- **审查者**:{reviewer-name}
|
|
19
|
+
- **审查时间**:{timestamp}
|
|
20
|
+
- **审查范围**:{file-count and major modules}
|
|
21
|
+
- **总体结论**:{通过 / 需要修改 / 拒绝}
|
|
22
|
+
|
|
23
|
+
## 问题清单
|
|
24
|
+
|
|
25
|
+
### 阻塞项(必须修复)
|
|
26
|
+
|
|
27
|
+
#### 1. {问题标题}
|
|
28
|
+
**文件**:`{file-path}:{line-number}`
|
|
29
|
+
**说明**:{details}
|
|
30
|
+
**修复建议**:{fix suggestion}
|
|
31
|
+
|
|
32
|
+
### 主要问题(建议修复)
|
|
33
|
+
|
|
34
|
+
#### 1. {问题标题}
|
|
35
|
+
**文件**:`{file-path}:{line-number}`
|
|
36
|
+
**说明**:{details}
|
|
37
|
+
**修复建议**:{fix suggestion}
|
|
38
|
+
|
|
39
|
+
### 次要问题(可选改进)
|
|
40
|
+
|
|
41
|
+
#### 1. {改进点}
|
|
42
|
+
**文件**:`{file-path}:{line-number}`
|
|
43
|
+
**建议**:{improvement suggestion}
|
|
44
|
+
|
|
45
|
+
## 亮点
|
|
46
|
+
|
|
47
|
+
- {what went well}
|
|
48
|
+
|
|
49
|
+
## 与方案一致性
|
|
50
|
+
|
|
51
|
+
- [ ] 实现与技术方案一致
|
|
52
|
+
- [ ] 没有意外的范围扩张
|
|
53
|
+
|
|
54
|
+
## 结论与建议
|
|
55
|
+
|
|
56
|
+
### 审查决定
|
|
57
|
+
- [ ] 通过
|
|
58
|
+
- [ ] 需要修改
|
|
59
|
+
- [ ] 拒绝
|
|
60
|
+
|
|
61
|
+
### 下一步
|
|
62
|
+
{recommended next step}
|
|
63
|
+
```
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Review Criteria
|
|
2
|
+
|
|
3
|
+
Read this file before reviewing code or classifying findings.
|
|
4
|
+
|
|
5
|
+
## Perform Code Review
|
|
6
|
+
|
|
7
|
+
Follow the `code-review` step in `.agents/workflows/feature-development.yaml`.
|
|
8
|
+
|
|
9
|
+
**Required review areas**:
|
|
10
|
+
- [ ] code quality and coding standards
|
|
11
|
+
- [ ] bug and risk detection
|
|
12
|
+
- [ ] test coverage and test quality
|
|
13
|
+
- [ ] error handling and edge cases
|
|
14
|
+
- [ ] performance and security concerns
|
|
15
|
+
- [ ] code comments and documentation
|
|
16
|
+
- [ ] alignment with the technical plan
|
|
17
|
+
|
|
18
|
+
**Review principles**:
|
|
19
|
+
1. **Strict but fair**: point out problems and also acknowledge good work
|
|
20
|
+
2. **Specific**: cite exact file paths and line numbers
|
|
21
|
+
3. **Actionable**: suggest a concrete fix
|
|
22
|
+
4. **Severity-based**: distinguish blockers, major issues, and minor improvements
|
|
23
|
+
|
|
24
|
+
Also inspect `git diff` so the report reflects the full change context.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# 审查标准
|
|
2
|
+
|
|
3
|
+
在审查代码或划分问题严重程度之前先读取本文件。
|
|
4
|
+
|
|
5
|
+
## 执行代码审查
|
|
6
|
+
|
|
7
|
+
遵循 `.agents/workflows/feature-development.yaml` 中的 `code-review` 步骤。
|
|
8
|
+
|
|
9
|
+
**必查范围**:
|
|
10
|
+
- [ ] 代码质量和编码规范
|
|
11
|
+
- [ ] bug 与风险识别
|
|
12
|
+
- [ ] 测试覆盖率和测试质量
|
|
13
|
+
- [ ] 错误处理和边界情况
|
|
14
|
+
- [ ] 性能与安全风险
|
|
15
|
+
- [ ] 代码注释和文档
|
|
16
|
+
- [ ] 与技术方案的一致性
|
|
17
|
+
|
|
18
|
+
**审查原则**:
|
|
19
|
+
1. **严格但公正**:既要指出问题,也要承认做得好的部分
|
|
20
|
+
2. **具体**:引用准确的文件路径和行号
|
|
21
|
+
3. **可执行**:给出明确可落地的修复建议
|
|
22
|
+
4. **按严重程度分类**:明确区分 blocker、major 和 minor
|
|
23
|
+
|
|
24
|
+
同时检查 `git diff`,确保报告反映完整的变更上下文。
|