@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.
Files changed (270) hide show
  1. package/README.md +1 -3
  2. package/README.zh-CN.md +1 -3
  3. package/lib/defaults.json +2 -0
  4. package/lib/init.js +1 -6
  5. package/lib/update.js +0 -55
  6. package/package.json +1 -1
  7. package/templates/.agents/QUICKSTART.md +10 -0
  8. package/templates/.agents/QUICKSTART.zh-CN.md +10 -0
  9. package/templates/.agents/README.md +18 -11
  10. package/templates/.agents/README.zh-CN.md +18 -11
  11. package/templates/.agents/skills/analyze-task/SKILL.md +1 -4
  12. package/templates/.agents/skills/analyze-task/SKILL.zh-CN.md +1 -3
  13. package/templates/.agents/skills/block-task/SKILL.md +1 -5
  14. package/templates/.agents/skills/block-task/SKILL.zh-CN.md +1 -4
  15. package/templates/.agents/skills/check-task/SKILL.md +1 -5
  16. package/templates/.agents/skills/check-task/SKILL.zh-CN.md +1 -3
  17. package/templates/.agents/skills/close-codescan/SKILL.md +1 -4
  18. package/templates/.agents/skills/close-codescan/SKILL.zh-CN.md +1 -3
  19. package/templates/.agents/skills/close-dependabot/SKILL.md +1 -4
  20. package/templates/.agents/skills/close-dependabot/SKILL.zh-CN.md +1 -3
  21. package/templates/.agents/skills/commit/SKILL.md +26 -198
  22. package/templates/.agents/skills/commit/SKILL.zh-CN.md +26 -197
  23. package/templates/.agents/skills/commit/reference/commit-message.md +60 -0
  24. package/templates/.agents/skills/commit/reference/commit-message.zh-CN.md +60 -0
  25. package/templates/.agents/skills/commit/reference/copyright-check.md +39 -0
  26. package/templates/.agents/skills/commit/reference/copyright-check.zh-CN.md +39 -0
  27. package/templates/.agents/skills/commit/reference/task-status-update.md +88 -0
  28. package/templates/.agents/skills/commit/reference/task-status-update.zh-CN.md +88 -0
  29. package/templates/.agents/skills/complete-task/SKILL.md +1 -6
  30. package/templates/.agents/skills/complete-task/SKILL.zh-CN.md +1 -4
  31. package/templates/.agents/skills/create-issue/SKILL.md +32 -251
  32. package/templates/.agents/skills/create-issue/SKILL.zh-CN.md +33 -252
  33. package/templates/.agents/skills/create-issue/reference/label-and-type.md +77 -0
  34. package/templates/.agents/skills/create-issue/reference/label-and-type.zh-CN.md +77 -0
  35. package/templates/.agents/skills/create-issue/reference/template-matching.md +45 -0
  36. package/templates/.agents/skills/create-issue/reference/template-matching.zh-CN.md +45 -0
  37. package/templates/.agents/skills/create-pr/SKILL.md +33 -224
  38. package/templates/.agents/skills/create-pr/SKILL.zh-CN.md +32 -222
  39. package/templates/.agents/skills/create-pr/reference/branch-strategy.md +29 -0
  40. package/templates/.agents/skills/create-pr/reference/branch-strategy.zh-CN.md +29 -0
  41. package/templates/.agents/skills/create-pr/reference/pr-body-template.md +86 -0
  42. package/templates/.agents/skills/create-pr/reference/pr-body-template.zh-CN.md +86 -0
  43. package/templates/.agents/skills/create-release-note/SKILL.md +10 -13
  44. package/templates/.agents/skills/create-release-note/SKILL.zh-CN.md +10 -12
  45. package/templates/.agents/skills/create-task/SKILL.md +1 -4
  46. package/templates/.agents/skills/create-task/SKILL.zh-CN.md +1 -3
  47. package/templates/.agents/skills/implement-task/SKILL.md +46 -176
  48. package/templates/.agents/skills/implement-task/SKILL.zh-CN.md +42 -170
  49. package/templates/.agents/skills/implement-task/reference/implementation-rules.md +58 -0
  50. package/templates/.agents/skills/implement-task/reference/implementation-rules.zh-CN.md +58 -0
  51. package/templates/.agents/skills/implement-task/reference/report-template.md +63 -0
  52. package/templates/.agents/skills/implement-task/reference/report-template.zh-CN.md +63 -0
  53. package/templates/.agents/skills/import-codescan/SKILL.md +1 -4
  54. package/templates/.agents/skills/import-codescan/SKILL.zh-CN.md +1 -3
  55. package/templates/.agents/skills/import-dependabot/SKILL.md +1 -4
  56. package/templates/.agents/skills/import-dependabot/SKILL.zh-CN.md +1 -3
  57. package/templates/.agents/skills/import-issue/SKILL.md +1 -3
  58. package/templates/.agents/skills/import-issue/SKILL.zh-CN.md +1 -3
  59. package/templates/.agents/skills/init-labels/SKILL.md +1 -4
  60. package/templates/.agents/skills/init-labels/SKILL.zh-CN.md +1 -4
  61. package/templates/.agents/skills/init-milestones/SKILL.md +1 -3
  62. package/templates/.agents/skills/init-milestones/SKILL.zh-CN.md +1 -3
  63. package/templates/.agents/skills/plan-task/SKILL.md +1 -5
  64. package/templates/.agents/skills/plan-task/SKILL.zh-CN.md +1 -3
  65. package/templates/.agents/skills/refine-task/SKILL.md +38 -162
  66. package/templates/.agents/skills/refine-task/SKILL.zh-CN.md +36 -158
  67. package/templates/.agents/skills/refine-task/reference/fix-workflow.md +76 -0
  68. package/templates/.agents/skills/refine-task/reference/fix-workflow.zh-CN.md +76 -0
  69. package/templates/.agents/skills/refine-task/reference/report-template.md +38 -0
  70. package/templates/.agents/skills/refine-task/reference/report-template.zh-CN.md +38 -0
  71. package/templates/.agents/skills/refine-title/SKILL.md +1 -4
  72. package/templates/.agents/skills/refine-title/SKILL.zh-CN.md +1 -3
  73. package/templates/.agents/skills/release/SKILL.md +10 -12
  74. package/templates/.agents/skills/release/SKILL.zh-CN.md +10 -11
  75. package/templates/.agents/skills/review-task/SKILL.md +37 -239
  76. package/templates/.agents/skills/review-task/SKILL.zh-CN.md +37 -238
  77. package/templates/.agents/skills/review-task/reference/output-templates.md +72 -0
  78. package/templates/.agents/skills/review-task/reference/output-templates.zh-CN.md +72 -0
  79. package/templates/.agents/skills/review-task/reference/report-template.md +63 -0
  80. package/templates/.agents/skills/review-task/reference/report-template.zh-CN.md +63 -0
  81. package/templates/.agents/skills/review-task/reference/review-criteria.md +24 -0
  82. package/templates/.agents/skills/review-task/reference/review-criteria.zh-CN.md +24 -0
  83. package/templates/.agents/skills/sync-issue/SKILL.md +29 -487
  84. package/templates/.agents/skills/sync-issue/SKILL.zh-CN.md +30 -487
  85. package/templates/.agents/skills/sync-issue/reference/comment-publish.md +88 -0
  86. package/templates/.agents/skills/sync-issue/reference/comment-publish.zh-CN.md +88 -0
  87. package/templates/.agents/skills/sync-issue/reference/delivery-detection.md +42 -0
  88. package/templates/.agents/skills/sync-issue/reference/delivery-detection.zh-CN.md +42 -0
  89. package/templates/.agents/skills/sync-issue/reference/label-sync.md +63 -0
  90. package/templates/.agents/skills/sync-issue/reference/label-sync.zh-CN.md +63 -0
  91. package/templates/.agents/skills/sync-issue/reference/milestone-sync.md +37 -0
  92. package/templates/.agents/skills/sync-issue/reference/milestone-sync.zh-CN.md +37 -0
  93. package/templates/.agents/skills/sync-pr/SKILL.md +25 -287
  94. package/templates/.agents/skills/sync-pr/SKILL.zh-CN.md +29 -291
  95. package/templates/.agents/skills/sync-pr/reference/comment-publish.md +82 -0
  96. package/templates/.agents/skills/sync-pr/reference/comment-publish.zh-CN.md +82 -0
  97. package/templates/.agents/skills/sync-pr/reference/delivery-detection.md +54 -0
  98. package/templates/.agents/skills/sync-pr/reference/delivery-detection.zh-CN.md +54 -0
  99. package/templates/.agents/skills/test/SKILL.md +1 -3
  100. package/templates/.agents/skills/test/SKILL.zh-CN.md +1 -3
  101. package/templates/.agents/skills/test-integration/SKILL.md +1 -4
  102. package/templates/.agents/skills/test-integration/SKILL.zh-CN.md +1 -3
  103. package/templates/.agents/skills/update-agent-infra/SKILL.md +2 -6
  104. package/templates/.agents/skills/update-agent-infra/SKILL.zh-CN.md +2 -4
  105. package/templates/.agents/skills/update-agent-infra/scripts/sync-templates.js +42 -46
  106. package/templates/.agents/skills/upgrade-dependency/SKILL.md +1 -4
  107. package/templates/.agents/skills/upgrade-dependency/SKILL.zh-CN.md +1 -3
  108. package/templates/.claude/CLAUDE.md +13 -51
  109. package/templates/.claude/CLAUDE.zh-CN.md +13 -51
  110. package/templates/.claude/commands/analyze-task.md +1 -1
  111. package/templates/.claude/commands/analyze-task.zh-CN.md +1 -1
  112. package/templates/.claude/commands/block-task.md +2 -1
  113. package/templates/.claude/commands/block-task.zh-CN.md +2 -1
  114. package/templates/.claude/commands/check-task.md +2 -1
  115. package/templates/.claude/commands/check-task.zh-CN.md +2 -1
  116. package/templates/.claude/commands/close-codescan.md +2 -1
  117. package/templates/.claude/commands/close-codescan.zh-CN.md +2 -1
  118. package/templates/.claude/commands/close-dependabot.md +2 -1
  119. package/templates/.claude/commands/close-dependabot.zh-CN.md +2 -1
  120. package/templates/.claude/commands/commit.md +1 -1
  121. package/templates/.claude/commands/commit.zh-CN.md +1 -1
  122. package/templates/.claude/commands/complete-task.md +1 -1
  123. package/templates/.claude/commands/complete-task.zh-CN.md +1 -1
  124. package/templates/.claude/commands/create-issue.md +1 -1
  125. package/templates/.claude/commands/create-issue.zh-CN.md +1 -1
  126. package/templates/.claude/commands/create-pr.md +1 -1
  127. package/templates/.claude/commands/create-pr.zh-CN.md +1 -1
  128. package/templates/.claude/commands/create-release-note.md +2 -1
  129. package/templates/.claude/commands/create-release-note.zh-CN.md +2 -1
  130. package/templates/.claude/commands/create-task.md +1 -1
  131. package/templates/.claude/commands/create-task.zh-CN.md +1 -1
  132. package/templates/.claude/commands/implement-task.md +1 -1
  133. package/templates/.claude/commands/implement-task.zh-CN.md +1 -1
  134. package/templates/.claude/commands/import-codescan.md +1 -0
  135. package/templates/.claude/commands/import-codescan.zh-CN.md +2 -1
  136. package/templates/.claude/commands/import-dependabot.md +1 -0
  137. package/templates/.claude/commands/import-dependabot.zh-CN.md +2 -1
  138. package/templates/.claude/commands/import-issue.md +1 -1
  139. package/templates/.claude/commands/import-issue.zh-CN.md +1 -1
  140. package/templates/.claude/commands/init-labels.md +1 -0
  141. package/templates/.claude/commands/init-labels.zh-CN.md +2 -1
  142. package/templates/.claude/commands/init-milestones.md +2 -1
  143. package/templates/.claude/commands/init-milestones.zh-CN.md +2 -1
  144. package/templates/.claude/commands/plan-task.md +1 -1
  145. package/templates/.claude/commands/plan-task.zh-CN.md +1 -1
  146. package/templates/.claude/commands/refine-task.zh-CN.md +1 -1
  147. package/templates/.claude/commands/refine-title.md +2 -1
  148. package/templates/.claude/commands/refine-title.zh-CN.md +2 -1
  149. package/templates/.claude/commands/release.md +2 -1
  150. package/templates/.claude/commands/release.zh-CN.md +2 -1
  151. package/templates/.claude/commands/review-task.md +1 -1
  152. package/templates/.claude/commands/review-task.zh-CN.md +1 -1
  153. package/templates/.claude/commands/sync-issue.md +1 -1
  154. package/templates/.claude/commands/sync-issue.zh-CN.md +1 -1
  155. package/templates/.claude/commands/sync-pr.md +1 -1
  156. package/templates/.claude/commands/sync-pr.zh-CN.md +1 -1
  157. package/templates/.claude/commands/test-integration.md +2 -1
  158. package/templates/.claude/commands/test-integration.zh-CN.md +2 -1
  159. package/templates/.claude/commands/test.md +1 -1
  160. package/templates/.claude/commands/test.zh-CN.md +1 -1
  161. package/templates/.claude/commands/update-agent-infra.md +2 -1
  162. package/templates/.claude/commands/update-agent-infra.zh-CN.md +2 -1
  163. package/templates/.claude/commands/upgrade-dependency.md +2 -1
  164. package/templates/.claude/commands/upgrade-dependency.zh-CN.md +2 -1
  165. package/templates/.gemini/commands/_project_/analyze-task.toml +1 -1
  166. package/templates/.gemini/commands/_project_/analyze-task.zh-CN.toml +1 -1
  167. package/templates/.gemini/commands/_project_/block-task.toml +1 -1
  168. package/templates/.gemini/commands/_project_/block-task.zh-CN.toml +1 -1
  169. package/templates/.gemini/commands/_project_/check-task.toml +1 -1
  170. package/templates/.gemini/commands/_project_/check-task.zh-CN.toml +1 -1
  171. package/templates/.gemini/commands/_project_/close-codescan.toml +1 -1
  172. package/templates/.gemini/commands/_project_/close-codescan.zh-CN.toml +1 -1
  173. package/templates/.gemini/commands/_project_/close-dependabot.toml +1 -1
  174. package/templates/.gemini/commands/_project_/close-dependabot.zh-CN.toml +1 -1
  175. package/templates/.gemini/commands/_project_/commit.toml +1 -1
  176. package/templates/.gemini/commands/_project_/commit.zh-CN.toml +1 -1
  177. package/templates/.gemini/commands/_project_/complete-task.toml +1 -1
  178. package/templates/.gemini/commands/_project_/complete-task.zh-CN.toml +1 -1
  179. package/templates/.gemini/commands/_project_/create-issue.zh-CN.toml +1 -1
  180. package/templates/.gemini/commands/_project_/create-pr.toml +1 -1
  181. package/templates/.gemini/commands/_project_/create-pr.zh-CN.toml +1 -1
  182. package/templates/.gemini/commands/_project_/create-release-note.toml +1 -1
  183. package/templates/.gemini/commands/_project_/create-release-note.zh-CN.toml +1 -1
  184. package/templates/.gemini/commands/_project_/create-task.toml +1 -1
  185. package/templates/.gemini/commands/_project_/create-task.zh-CN.toml +1 -1
  186. package/templates/.gemini/commands/_project_/implement-task.toml +1 -1
  187. package/templates/.gemini/commands/_project_/implement-task.zh-CN.toml +1 -1
  188. package/templates/.gemini/commands/_project_/import-codescan.zh-CN.toml +1 -1
  189. package/templates/.gemini/commands/_project_/import-dependabot.zh-CN.toml +1 -1
  190. package/templates/.gemini/commands/_project_/import-issue.toml +1 -1
  191. package/templates/.gemini/commands/_project_/import-issue.zh-CN.toml +1 -1
  192. package/templates/.gemini/commands/_project_/init-labels.zh-CN.toml +1 -1
  193. package/templates/.gemini/commands/_project_/init-milestones.toml +1 -1
  194. package/templates/.gemini/commands/_project_/init-milestones.zh-CN.toml +1 -1
  195. package/templates/.gemini/commands/_project_/plan-task.toml +1 -1
  196. package/templates/.gemini/commands/_project_/plan-task.zh-CN.toml +1 -1
  197. package/templates/.gemini/commands/_project_/refine-task.zh-CN.toml +1 -1
  198. package/templates/.gemini/commands/_project_/refine-title.toml +1 -1
  199. package/templates/.gemini/commands/_project_/refine-title.zh-CN.toml +1 -1
  200. package/templates/.gemini/commands/_project_/release.toml +1 -1
  201. package/templates/.gemini/commands/_project_/release.zh-CN.toml +1 -1
  202. package/templates/.gemini/commands/_project_/review-task.toml +1 -1
  203. package/templates/.gemini/commands/_project_/review-task.zh-CN.toml +1 -1
  204. package/templates/.gemini/commands/_project_/sync-issue.toml +1 -1
  205. package/templates/.gemini/commands/_project_/sync-issue.zh-CN.toml +1 -1
  206. package/templates/.gemini/commands/_project_/sync-pr.toml +1 -1
  207. package/templates/.gemini/commands/_project_/sync-pr.zh-CN.toml +1 -1
  208. package/templates/.gemini/commands/_project_/test-integration.toml +1 -1
  209. package/templates/.gemini/commands/_project_/test-integration.zh-CN.toml +1 -1
  210. package/templates/.gemini/commands/_project_/test.toml +1 -1
  211. package/templates/.gemini/commands/_project_/test.zh-CN.toml +1 -1
  212. package/templates/.gemini/commands/_project_/update-agent-infra.toml +1 -1
  213. package/templates/.gemini/commands/_project_/update-agent-infra.zh-CN.toml +1 -1
  214. package/templates/.gemini/commands/_project_/upgrade-dependency.toml +1 -1
  215. package/templates/.gemini/commands/_project_/upgrade-dependency.zh-CN.toml +1 -1
  216. package/templates/.github/hooks/check-version-format.sh +29 -0
  217. package/templates/.github/hooks/pre-commit +8 -0
  218. package/templates/.opencode/commands/analyze-task.md +1 -1
  219. package/templates/.opencode/commands/analyze-task.zh-CN.md +1 -1
  220. package/templates/.opencode/commands/block-task.md +1 -1
  221. package/templates/.opencode/commands/block-task.zh-CN.md +1 -1
  222. package/templates/.opencode/commands/check-task.md +1 -1
  223. package/templates/.opencode/commands/check-task.zh-CN.md +1 -1
  224. package/templates/.opencode/commands/close-codescan.md +1 -1
  225. package/templates/.opencode/commands/close-codescan.zh-CN.md +1 -1
  226. package/templates/.opencode/commands/close-dependabot.md +1 -1
  227. package/templates/.opencode/commands/close-dependabot.zh-CN.md +1 -1
  228. package/templates/.opencode/commands/commit.md +1 -1
  229. package/templates/.opencode/commands/commit.zh-CN.md +1 -1
  230. package/templates/.opencode/commands/complete-task.md +1 -1
  231. package/templates/.opencode/commands/complete-task.zh-CN.md +1 -1
  232. package/templates/.opencode/commands/create-issue.zh-CN.md +1 -1
  233. package/templates/.opencode/commands/create-pr.md +1 -1
  234. package/templates/.opencode/commands/create-pr.zh-CN.md +1 -1
  235. package/templates/.opencode/commands/create-release-note.md +1 -1
  236. package/templates/.opencode/commands/create-release-note.zh-CN.md +1 -1
  237. package/templates/.opencode/commands/create-task.md +1 -1
  238. package/templates/.opencode/commands/create-task.zh-CN.md +1 -1
  239. package/templates/.opencode/commands/implement-task.md +1 -1
  240. package/templates/.opencode/commands/implement-task.zh-CN.md +1 -1
  241. package/templates/.opencode/commands/import-codescan.zh-CN.md +1 -1
  242. package/templates/.opencode/commands/import-dependabot.zh-CN.md +1 -1
  243. package/templates/.opencode/commands/import-issue.md +1 -1
  244. package/templates/.opencode/commands/import-issue.zh-CN.md +1 -1
  245. package/templates/.opencode/commands/init-labels.zh-CN.md +1 -1
  246. package/templates/.opencode/commands/init-milestones.md +1 -1
  247. package/templates/.opencode/commands/init-milestones.zh-CN.md +1 -1
  248. package/templates/.opencode/commands/plan-task.md +1 -1
  249. package/templates/.opencode/commands/plan-task.zh-CN.md +1 -1
  250. package/templates/.opencode/commands/refine-task.zh-CN.md +1 -1
  251. package/templates/.opencode/commands/refine-title.md +1 -1
  252. package/templates/.opencode/commands/refine-title.zh-CN.md +1 -1
  253. package/templates/.opencode/commands/release.md +1 -1
  254. package/templates/.opencode/commands/release.zh-CN.md +1 -1
  255. package/templates/.opencode/commands/review-task.md +1 -1
  256. package/templates/.opencode/commands/review-task.zh-CN.md +1 -1
  257. package/templates/.opencode/commands/sync-issue.md +1 -1
  258. package/templates/.opencode/commands/sync-issue.zh-CN.md +1 -1
  259. package/templates/.opencode/commands/sync-pr.md +1 -1
  260. package/templates/.opencode/commands/sync-pr.zh-CN.md +1 -1
  261. package/templates/.opencode/commands/test-integration.md +1 -1
  262. package/templates/.opencode/commands/test-integration.zh-CN.md +1 -1
  263. package/templates/.opencode/commands/test.md +1 -1
  264. package/templates/.opencode/commands/test.zh-CN.md +1 -1
  265. package/templates/.opencode/commands/update-agent-infra.md +1 -1
  266. package/templates/.opencode/commands/update-agent-infra.zh-CN.md +1 -1
  267. package/templates/.opencode/commands/upgrade-dependency.md +1 -1
  268. package/templates/.opencode/commands/upgrade-dependency.zh-CN.md +1 -1
  269. package/templates/AGENTS.md +10 -2
  270. 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`,确保报告反映完整的变更上下文。