@fitlab-ai/agent-infra 0.4.0 → 0.4.2

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 (276) hide show
  1. package/README.md +23 -15
  2. package/README.zh-CN.md +23 -15
  3. package/lib/defaults.json +5 -9
  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 +17 -7
  8. package/templates/.agents/QUICKSTART.zh-CN.md +23 -13
  9. package/templates/.agents/README.md +33 -27
  10. package/templates/.agents/README.zh-CN.md +35 -29
  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 +39 -221
  38. package/templates/.agents/skills/create-pr/SKILL.zh-CN.md +39 -220
  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 +2 -5
  46. package/templates/.agents/skills/create-task/SKILL.zh-CN.md +2 -4
  47. package/templates/.agents/skills/implement-task/SKILL.md +47 -176
  48. package/templates/.agents/skills/implement-task/SKILL.zh-CN.md +43 -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 +2 -3
  58. package/templates/.agents/skills/import-issue/SKILL.zh-CN.md +2 -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 +40 -162
  66. package/templates/.agents/skills/refine-task/SKILL.zh-CN.md +38 -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 +34 -490
  84. package/templates/.agents/skills/sync-issue/SKILL.zh-CN.md +34 -489
  85. package/templates/.agents/skills/sync-issue/reference/comment-publish.md +84 -0
  86. package/templates/.agents/skills/sync-issue/reference/comment-publish.zh-CN.md +84 -0
  87. package/templates/.agents/skills/sync-issue/reference/label-sync.md +62 -0
  88. package/templates/.agents/skills/sync-issue/reference/label-sync.zh-CN.md +62 -0
  89. package/templates/.agents/skills/sync-issue/reference/milestone-sync.md +37 -0
  90. package/templates/.agents/skills/sync-issue/reference/milestone-sync.zh-CN.md +37 -0
  91. package/templates/.agents/skills/sync-pr/SKILL.md +37 -284
  92. package/templates/.agents/skills/sync-pr/SKILL.zh-CN.md +41 -288
  93. package/templates/.agents/skills/sync-pr/reference/comment-publish.md +82 -0
  94. package/templates/.agents/skills/sync-pr/reference/comment-publish.zh-CN.md +82 -0
  95. package/templates/.agents/skills/sync-pr/reference/delivery-detection.md +54 -0
  96. package/templates/.agents/skills/sync-pr/reference/delivery-detection.zh-CN.md +54 -0
  97. package/templates/.agents/skills/test/SKILL.md +1 -3
  98. package/templates/.agents/skills/test/SKILL.zh-CN.md +1 -3
  99. package/templates/.agents/skills/test-integration/SKILL.md +1 -4
  100. package/templates/.agents/skills/test-integration/SKILL.zh-CN.md +1 -3
  101. package/templates/.agents/skills/update-agent-infra/SKILL.md +2 -6
  102. package/templates/.agents/skills/update-agent-infra/SKILL.zh-CN.md +2 -4
  103. package/templates/.agents/skills/update-agent-infra/scripts/sync-templates.js +45 -55
  104. package/templates/.agents/skills/upgrade-dependency/SKILL.md +1 -4
  105. package/templates/.agents/skills/upgrade-dependency/SKILL.zh-CN.md +1 -3
  106. package/templates/.claude/commands/analyze-task.md +1 -1
  107. package/templates/.claude/commands/analyze-task.zh-CN.md +1 -1
  108. package/templates/.claude/commands/block-task.md +2 -1
  109. package/templates/.claude/commands/block-task.zh-CN.md +2 -1
  110. package/templates/.claude/commands/check-task.md +2 -1
  111. package/templates/.claude/commands/check-task.zh-CN.md +2 -1
  112. package/templates/.claude/commands/close-codescan.md +2 -1
  113. package/templates/.claude/commands/close-codescan.zh-CN.md +2 -1
  114. package/templates/.claude/commands/close-dependabot.md +2 -1
  115. package/templates/.claude/commands/close-dependabot.zh-CN.md +2 -1
  116. package/templates/.claude/commands/commit.md +1 -1
  117. package/templates/.claude/commands/commit.zh-CN.md +1 -1
  118. package/templates/.claude/commands/complete-task.md +1 -1
  119. package/templates/.claude/commands/complete-task.zh-CN.md +1 -1
  120. package/templates/.claude/commands/create-issue.md +1 -1
  121. package/templates/.claude/commands/create-issue.zh-CN.md +1 -1
  122. package/templates/.claude/commands/create-pr.md +2 -2
  123. package/templates/.claude/commands/create-pr.zh-CN.md +2 -2
  124. package/templates/.claude/commands/create-release-note.md +2 -1
  125. package/templates/.claude/commands/create-release-note.zh-CN.md +2 -1
  126. package/templates/.claude/commands/create-task.md +1 -1
  127. package/templates/.claude/commands/create-task.zh-CN.md +1 -1
  128. package/templates/.claude/commands/implement-task.md +1 -1
  129. package/templates/.claude/commands/implement-task.zh-CN.md +1 -1
  130. package/templates/.claude/commands/import-codescan.md +1 -0
  131. package/templates/.claude/commands/import-codescan.zh-CN.md +2 -1
  132. package/templates/.claude/commands/import-dependabot.md +1 -0
  133. package/templates/.claude/commands/import-dependabot.zh-CN.md +2 -1
  134. package/templates/.claude/commands/import-issue.md +1 -1
  135. package/templates/.claude/commands/import-issue.zh-CN.md +1 -1
  136. package/templates/.claude/commands/init-labels.md +1 -0
  137. package/templates/.claude/commands/init-labels.zh-CN.md +2 -1
  138. package/templates/.claude/commands/init-milestones.md +2 -1
  139. package/templates/.claude/commands/init-milestones.zh-CN.md +2 -1
  140. package/templates/.claude/commands/plan-task.md +1 -1
  141. package/templates/.claude/commands/plan-task.zh-CN.md +1 -1
  142. package/templates/.claude/commands/refine-task.zh-CN.md +1 -1
  143. package/templates/.claude/commands/refine-title.md +2 -1
  144. package/templates/.claude/commands/refine-title.zh-CN.md +2 -1
  145. package/templates/.claude/commands/release.md +2 -1
  146. package/templates/.claude/commands/release.zh-CN.md +2 -1
  147. package/templates/.claude/commands/review-task.md +1 -1
  148. package/templates/.claude/commands/review-task.zh-CN.md +1 -1
  149. package/templates/.claude/commands/sync-issue.md +1 -1
  150. package/templates/.claude/commands/sync-issue.zh-CN.md +1 -1
  151. package/templates/.claude/commands/sync-pr.md +2 -2
  152. package/templates/.claude/commands/sync-pr.zh-CN.md +2 -2
  153. package/templates/.claude/commands/test-integration.md +2 -1
  154. package/templates/.claude/commands/test-integration.zh-CN.md +2 -1
  155. package/templates/.claude/commands/test.md +1 -1
  156. package/templates/.claude/commands/test.zh-CN.md +1 -1
  157. package/templates/.claude/commands/update-agent-infra.md +2 -1
  158. package/templates/.claude/commands/update-agent-infra.zh-CN.md +2 -1
  159. package/templates/.claude/commands/upgrade-dependency.md +2 -1
  160. package/templates/.claude/commands/upgrade-dependency.zh-CN.md +2 -1
  161. package/templates/.gemini/commands/_project_/analyze-task.toml +1 -1
  162. package/templates/.gemini/commands/_project_/analyze-task.zh-CN.toml +1 -1
  163. package/templates/.gemini/commands/_project_/block-task.toml +1 -1
  164. package/templates/.gemini/commands/_project_/block-task.zh-CN.toml +1 -1
  165. package/templates/.gemini/commands/_project_/check-task.toml +1 -1
  166. package/templates/.gemini/commands/_project_/check-task.zh-CN.toml +1 -1
  167. package/templates/.gemini/commands/_project_/close-codescan.toml +1 -1
  168. package/templates/.gemini/commands/_project_/close-codescan.zh-CN.toml +1 -1
  169. package/templates/.gemini/commands/_project_/close-dependabot.toml +1 -1
  170. package/templates/.gemini/commands/_project_/close-dependabot.zh-CN.toml +1 -1
  171. package/templates/.gemini/commands/_project_/commit.toml +1 -1
  172. package/templates/.gemini/commands/_project_/commit.zh-CN.toml +1 -1
  173. package/templates/.gemini/commands/_project_/complete-task.toml +1 -1
  174. package/templates/.gemini/commands/_project_/complete-task.zh-CN.toml +1 -1
  175. package/templates/.gemini/commands/_project_/create-issue.zh-CN.toml +1 -1
  176. package/templates/.gemini/commands/_project_/create-pr.toml +1 -1
  177. package/templates/.gemini/commands/_project_/create-pr.zh-CN.toml +1 -1
  178. package/templates/.gemini/commands/_project_/create-release-note.toml +1 -1
  179. package/templates/.gemini/commands/_project_/create-release-note.zh-CN.toml +1 -1
  180. package/templates/.gemini/commands/_project_/create-task.toml +1 -1
  181. package/templates/.gemini/commands/_project_/create-task.zh-CN.toml +1 -1
  182. package/templates/.gemini/commands/_project_/implement-task.toml +1 -1
  183. package/templates/.gemini/commands/_project_/implement-task.zh-CN.toml +1 -1
  184. package/templates/.gemini/commands/_project_/import-codescan.zh-CN.toml +1 -1
  185. package/templates/.gemini/commands/_project_/import-dependabot.zh-CN.toml +1 -1
  186. package/templates/.gemini/commands/_project_/import-issue.toml +1 -1
  187. package/templates/.gemini/commands/_project_/import-issue.zh-CN.toml +1 -1
  188. package/templates/.gemini/commands/_project_/init-labels.zh-CN.toml +1 -1
  189. package/templates/.gemini/commands/_project_/init-milestones.toml +1 -1
  190. package/templates/.gemini/commands/_project_/init-milestones.zh-CN.toml +1 -1
  191. package/templates/.gemini/commands/_project_/plan-task.toml +1 -1
  192. package/templates/.gemini/commands/_project_/plan-task.zh-CN.toml +1 -1
  193. package/templates/.gemini/commands/_project_/refine-task.zh-CN.toml +1 -1
  194. package/templates/.gemini/commands/_project_/refine-title.toml +1 -1
  195. package/templates/.gemini/commands/_project_/refine-title.zh-CN.toml +1 -1
  196. package/templates/.gemini/commands/_project_/release.toml +1 -1
  197. package/templates/.gemini/commands/_project_/release.zh-CN.toml +1 -1
  198. package/templates/.gemini/commands/_project_/review-task.toml +1 -1
  199. package/templates/.gemini/commands/_project_/review-task.zh-CN.toml +1 -1
  200. package/templates/.gemini/commands/_project_/sync-issue.toml +1 -1
  201. package/templates/.gemini/commands/_project_/sync-issue.zh-CN.toml +1 -1
  202. package/templates/.gemini/commands/_project_/sync-pr.toml +2 -2
  203. package/templates/.gemini/commands/_project_/sync-pr.zh-CN.toml +2 -2
  204. package/templates/.gemini/commands/_project_/test-integration.toml +1 -1
  205. package/templates/.gemini/commands/_project_/test-integration.zh-CN.toml +1 -1
  206. package/templates/.gemini/commands/_project_/test.toml +1 -1
  207. package/templates/.gemini/commands/_project_/test.zh-CN.toml +1 -1
  208. package/templates/.gemini/commands/_project_/update-agent-infra.toml +1 -1
  209. package/templates/.gemini/commands/_project_/update-agent-infra.zh-CN.toml +1 -1
  210. package/templates/.gemini/commands/_project_/upgrade-dependency.toml +1 -1
  211. package/templates/.gemini/commands/_project_/upgrade-dependency.zh-CN.toml +1 -1
  212. package/templates/.github/hooks/check-version-format.sh +29 -0
  213. package/templates/.github/hooks/pre-commit +8 -0
  214. package/templates/.opencode/commands/analyze-task.md +1 -1
  215. package/templates/.opencode/commands/analyze-task.zh-CN.md +1 -1
  216. package/templates/.opencode/commands/block-task.md +1 -1
  217. package/templates/.opencode/commands/block-task.zh-CN.md +1 -1
  218. package/templates/.opencode/commands/check-task.md +1 -1
  219. package/templates/.opencode/commands/check-task.zh-CN.md +1 -1
  220. package/templates/.opencode/commands/close-codescan.md +1 -1
  221. package/templates/.opencode/commands/close-codescan.zh-CN.md +1 -1
  222. package/templates/.opencode/commands/close-dependabot.md +1 -1
  223. package/templates/.opencode/commands/close-dependabot.zh-CN.md +1 -1
  224. package/templates/.opencode/commands/commit.md +1 -1
  225. package/templates/.opencode/commands/commit.zh-CN.md +1 -1
  226. package/templates/.opencode/commands/complete-task.md +1 -1
  227. package/templates/.opencode/commands/complete-task.zh-CN.md +1 -1
  228. package/templates/.opencode/commands/create-issue.zh-CN.md +1 -1
  229. package/templates/.opencode/commands/create-pr.md +1 -1
  230. package/templates/.opencode/commands/create-pr.zh-CN.md +1 -1
  231. package/templates/.opencode/commands/create-release-note.md +1 -1
  232. package/templates/.opencode/commands/create-release-note.zh-CN.md +1 -1
  233. package/templates/.opencode/commands/create-task.md +1 -1
  234. package/templates/.opencode/commands/create-task.zh-CN.md +1 -1
  235. package/templates/.opencode/commands/implement-task.md +1 -1
  236. package/templates/.opencode/commands/implement-task.zh-CN.md +1 -1
  237. package/templates/.opencode/commands/import-codescan.zh-CN.md +1 -1
  238. package/templates/.opencode/commands/import-dependabot.zh-CN.md +1 -1
  239. package/templates/.opencode/commands/import-issue.md +1 -1
  240. package/templates/.opencode/commands/import-issue.zh-CN.md +1 -1
  241. package/templates/.opencode/commands/init-labels.zh-CN.md +1 -1
  242. package/templates/.opencode/commands/init-milestones.md +1 -1
  243. package/templates/.opencode/commands/init-milestones.zh-CN.md +1 -1
  244. package/templates/.opencode/commands/plan-task.md +1 -1
  245. package/templates/.opencode/commands/plan-task.zh-CN.md +1 -1
  246. package/templates/.opencode/commands/refine-task.zh-CN.md +1 -1
  247. package/templates/.opencode/commands/refine-title.md +1 -1
  248. package/templates/.opencode/commands/refine-title.zh-CN.md +1 -1
  249. package/templates/.opencode/commands/release.md +1 -1
  250. package/templates/.opencode/commands/release.zh-CN.md +1 -1
  251. package/templates/.opencode/commands/review-task.md +1 -1
  252. package/templates/.opencode/commands/review-task.zh-CN.md +1 -1
  253. package/templates/.opencode/commands/sync-issue.md +1 -1
  254. package/templates/.opencode/commands/sync-issue.zh-CN.md +1 -1
  255. package/templates/.opencode/commands/sync-pr.md +2 -2
  256. package/templates/.opencode/commands/sync-pr.zh-CN.md +2 -2
  257. package/templates/.opencode/commands/test-integration.md +1 -1
  258. package/templates/.opencode/commands/test-integration.zh-CN.md +1 -1
  259. package/templates/.opencode/commands/test.md +1 -1
  260. package/templates/.opencode/commands/test.zh-CN.md +1 -1
  261. package/templates/.opencode/commands/update-agent-infra.md +1 -1
  262. package/templates/.opencode/commands/update-agent-infra.zh-CN.md +1 -1
  263. package/templates/.opencode/commands/upgrade-dependency.md +1 -1
  264. package/templates/.opencode/commands/upgrade-dependency.zh-CN.md +1 -1
  265. package/templates/.claude/CLAUDE.md +0 -176
  266. package/templates/.claude/CLAUDE.zh-CN.md +0 -176
  267. package/templates/.claude/project-rules.md +0 -65
  268. package/templates/.claude/project-rules.zh-CN.md +0 -65
  269. package/templates/.codex/README.md +0 -38
  270. package/templates/.codex/README.zh-CN.md +0 -37
  271. package/templates/.opencode/COMMAND_STYLE_GUIDE.md +0 -232
  272. package/templates/.opencode/COMMAND_STYLE_GUIDE.zh-CN.md +0 -232
  273. package/templates/.opencode/README.md +0 -76
  274. package/templates/.opencode/README.zh-CN.md +0 -77
  275. package/templates/AGENTS.md +0 -104
  276. package/templates/AGENTS.zh-CN.md +0 -104
@@ -1,78 +1,47 @@
1
1
  ---
2
2
  name: review-task
3
- description: >
4
- 审查任务实现代码并输出代码审查报告,按严重程度分类(Blocker / Major / Minor)。
5
- 当用户在实现完成后要求代码审查时触发。参数:task-id。
3
+ description: "审查任务实现并输出代码审查报告"
6
4
  ---
7
5
 
8
6
  # 代码审查
9
7
 
8
+ 审查最新实现轮次,并产出 `review.md` 或 `review-r{N}.md`。
9
+
10
10
  ## 行为边界 / 关键规则
11
11
 
12
- - 本技能仅读取代码并产出审查报告(`review.md` 或 `review-r{N}.md`)—— 不修改业务代码
13
- - 执行本技能后,你**必须**立即更新 task.md 中的任务状态
12
+ - 本技能只审查代码并写报告,不修改业务代码
13
+ - 执行本技能后,你**必须**立即更新 task.md
14
14
 
15
15
  ## 执行步骤
16
16
 
17
17
  ### 1. 验证前置条件
18
18
 
19
- 检查必要文件:
20
- - `.agents/workspace/active/{task-id}/task.md` - 任务文件
21
- - 至少一个实现报告:`implementation.md` 或 `implementation-r{N}.md`
22
-
23
- 注意:`{task-id}` 格式为 `TASK-{yyyyMMdd-HHmmss}`,例如 `TASK-20260306-143022`
24
-
25
- 如果任一文件缺失,提示用户先完成前置步骤。
19
+ 要求存在:
20
+ - `.agents/workspace/active/{task-id}/task.md`
21
+ - 至少一个实现产物:`implementation.md` 或 `implementation-r{N}.md`
26
22
 
27
23
  ### 2. 确定审查轮次
28
24
 
29
- 扫描 `.agents/workspace/active/{task-id}/` 目录中的审查产物文件:
30
- - 如果不存在 `review.md` 且不存在 `review-r*.md` → 本轮为第 1 轮,产出 `review.md`
31
- - 如果存在 `review.md` 且不存在 `review-r*.md` 本轮为第 2 轮,产出 `review-r2.md`
32
- - 如果存在 `review-r{N}.md` → 本轮为第 N+1 轮,产出 `review-r{N+1}.md`
33
-
34
- 记录:
35
- - `{review-round}`:本轮审查轮次
36
- - `{review-artifact}`:本轮审查报告文件名
37
-
38
- ### 3. 阅读实现与修复报告
39
-
40
- 扫描任务目录中的实现报告文件(`implementation.md`、`implementation-r{N}.md`),读取最高轮次的文件以理解:
41
- - 修改的文件列表
42
- - 实现的关键功能
43
- - 测试情况
44
- - 实现者标记的需关注事项
45
-
46
- 如果存在修复产物(`refinement.md`、`refinement-r{N}.md`),读取最高轮次的文件以理解:
47
- - 已修复了哪些审查问题
48
- - 修复对代码和测试的影响
49
- - 当前代码状态相对上轮审查的变化
25
+ 扫描任务目录并记录:
26
+ - `{review-round}`
27
+ - 作为本轮产物的 `{review-artifact}`,格式为 `review.md` `review-r{N}.md`
50
28
 
51
- ### 4. 执行代码审查
29
+ ### 3. 阅读实现与修复上下文
52
30
 
53
- 遵循 `.agents/workflows/feature-development.yaml` 中的 `code-review` 步骤:
31
+ 读取最高轮次的实现产物;如存在修复产物,也读取最高轮次的修复产物。
54
32
 
55
- **必要审查领域**:
56
- - [ ] 代码质量和编码规范(按项目指南)
57
- - [ ] Bug 和潜在问题检测
58
- - [ ] 测试覆盖率和测试质量(删除功能时,确认为该功能而存在的测试 fixture 和断言已一并删除,而非机械翻转断言方向;仅确认数据原样通过的断言不构成有效测试)
59
- - [ ] 错误处理和边界情况
60
- - [ ] 性能和安全问题
61
- - [ ] 代码注释和文档
62
- - [ ] 与技术方案的一致性
33
+ ### 4. 执行审查
63
34
 
64
- **审查原则**:
65
- 1. **严格但公正**:指出问题的同时也肯定做得好的地方
66
- 2. **具体**:提供准确的文件路径和行号
67
- 3. **提供建议**:不仅指出问题,还要提供解决方案
68
- 4. **按严重程度分类**:区分必须修复和可优化项
35
+ 遵循 `.agents/workflows/feature-development.yaml`,并同时检查 `git diff` 获取完整变更上下文。
69
36
 
70
- 同时审查 `git diff` 以查看所有变更的上下文。
37
+ > 详细审查标准、严重程度划分和 reviewer 关注点见 `reference/review-criteria.md`。执行此步骤前先读取 `reference/review-criteria.md`。
71
38
 
72
- ### 5. 输出审查报告
39
+ ### 5. 编写审查报告
73
40
 
74
41
  创建 `.agents/workspace/active/{task-id}/{review-artifact}`。
75
42
 
43
+ > 报告格式和严重程度布局见 `reference/report-template.md`。写报告前先读取 `reference/report-template.md`。
44
+
76
45
  ### 6. 更新任务状态
77
46
 
78
47
  获取当前时间:
@@ -81,205 +50,35 @@ description: >
81
50
  date "+%Y-%m-%d %H:%M:%S"
82
51
  ```
83
52
 
84
- 更新 `.agents/workspace/active/{task-id}/task.md`:
85
- - `current_step`:code-review
86
- - `assigned_to`:{审查者}
87
- - `updated_at`:{当前时间}
88
- - 记录本轮审查产物:`{review-artifact}`(Round `{review-round}`)
89
- - 在工作流进度中标记 code-review 为已完成,并注明实际轮次(如果任务模板支持)
90
- - **追加**到 `## Activity Log`(不要覆盖之前的记录):
91
- ```
92
- - {yyyy-MM-dd HH:mm:ss} — **Code Review (Round {N})** by {agent} — Verdict: {Approved/Changes Requested/Rejected}, blockers: {n}, major: {n}, minor: {n} → {artifact-filename}
93
- ```
53
+ 更新 task.md,并追加:
54
+ `- {yyyy-MM-dd HH:mm:ss} — **Code Review (Round {N})** by {agent} — Verdict: {Approved/Changes Requested/Rejected}, blockers: {n}, major: {n}, minor: {n} → {artifact-filename}`
94
55
 
95
56
  ### 7. 告知用户
96
57
 
97
- > **重要**:以下「下一步」中列出的所有 TUI 命令格式必须完整输出,不要只展示当前 AI 代理对应的格式。
98
-
99
- 根据审查结果输出:
100
-
101
- > **⚠️ 条件判断 — 你必须先判断以下条件,再选择唯一匹配的输出分支:**
102
- >
103
- > 1. 如果 `Blocker = 0` 且 `Major = 0` 且 `Minor = 0` → 使用「输出分支 A — 通过且无问题」
104
- > 2. 如果 `Blocker = 0` 且 (`Major > 0` 或 `Minor > 0`) → 使用「输出分支 B — 通过但有问题」
105
- > 3. 如果 `Blocker > 0` 且问题可通过一次修复解决,**且未达到需要整体重做的程度** → 使用「输出分支 C — 需要修改」
106
- > 4. 如果问题需要重大返工、重新设计或重新实现 → 使用「输出分支 D — 拒绝」
107
- >
108
- > **禁止跳过判断、禁止混用不同分支的模板。每次只能输出一个分支。只要 `Blocker > 0`,就绝不能输出任何“通过”模板。**
109
-
110
- **📋 输出分支 A — 通过且无问题**(条件:Blocker = 0 且 Major = 0 且 Minor = 0):
111
- ```
112
- 任务 {task-id} 代码审查完成。结论:通过。
113
- - 阻塞项:0 | 主要问题:0 | 次要问题:0
114
-
115
- 下一步 - 提交代码:
116
- - Claude Code / OpenCode:/commit
117
- - Gemini CLI:/agent-infra:commit
118
- - Codex CLI:$commit
119
- ```
120
-
121
- **📋 输出分支 B — 通过但有问题**(条件:Blocker = 0 且 (`Major > 0` 或 `Minor > 0`)):
122
- ```
123
- 任务 {task-id} 代码审查完成。结论:通过。
124
- - 阻塞项:0 | 主要问题:{n} | 次要问题:{n}
125
- - 审查报告:.agents/workspace/active/{task-id}/{review-artifact}
126
-
127
- 下一步 - 修复问题后提交(推荐):
128
- - Claude Code / OpenCode:/refine-task {task-id}
129
- - Gemini CLI:/agent-infra:refine-task {task-id}
130
- - Codex CLI:$refine-task {task-id}
131
-
132
- 或直接提交(跳过修复):
133
- - Claude Code / OpenCode:/commit
134
- - Gemini CLI:/agent-infra:commit
135
- - Codex CLI:$commit
136
- ```
137
-
138
- **📋 输出分支 C — 需要修改**(条件:Blocker > 0,且问题可修复但无需重大返工):
139
- ```
140
- 任务 {task-id} 代码审查完成。结论:需要修改。
141
- - 阻塞项:{n} | 主要问题:{n} | 次要问题:{n}
142
- - 审查报告:.agents/workspace/active/{task-id}/{review-artifact}
143
-
144
- 下一步 - 修复问题:
145
- - Claude Code / OpenCode:/refine-task {task-id}
146
- - Gemini CLI:/agent-infra:refine-task {task-id}
147
- - Codex CLI:$refine-task {task-id}
148
- ```
149
-
150
- **📋 输出分支 D — 拒绝**(条件:需要重大返工、重新设计或重新实现):
151
- ```
152
- 任务 {task-id} 代码审查完成。结论:拒绝,需要重大返工。
153
- - 审查报告:.agents/workspace/active/{task-id}/{review-artifact}
154
-
155
- 下一步 - 重新实现:
156
- - Claude Code / OpenCode:/implement-task {task-id}
157
- - Gemini CLI:/agent-infra:implement-task {task-id}
158
- - Codex CLI:$implement-task {task-id}
159
- ```
160
-
161
- ## 输出模板
58
+ 必须先判断结果,再只选择一个输出分支:
59
+ - 无 blocker、major、minor -> 通过且无问题
60
+ - 无 blocker,但有 major 或 minor -> 通过但有问题
61
+ - 有 blocker,且可集中修复 -> 需要修改
62
+ - 需要重大返工或重新实现 -> 拒绝
162
63
 
163
- ```markdown
164
- # 代码审查报告
64
+ > 完整的 4 分支输出模板、判断规则和禁止条款见 `reference/output-templates.md`。向用户汇报审查结论前先读取 `reference/output-templates.md`。
165
65
 
166
- - **审查轮次**:Round {review-round}
167
- - **产物文件**:`{review-artifact}`
168
- - **实现输入**:
169
- - `{implementation-artifact}`
170
- - `{refinement-artifact}`(如存在)
171
-
172
- ## 审查摘要
173
-
174
- - **审查者**:{审查者名称}
175
- - **审查时间**:{时间戳}
176
- - **审查范围**:{文件数量和主要模块}
177
- - **总体结论**:{已批准 / 需要修改 / 拒绝}
178
-
179
- ## 发现的问题
180
-
181
- ### 阻塞项(必须修复)
182
-
183
- #### 1. {问题标题}
184
- **文件**:`{file-path}:{line-number}`
185
- **描述**:{详细描述}
186
- **建议修复**:{具体建议}
187
- **严重程度**:高
188
-
189
- ### 主要问题(应该修复)
190
-
191
- #### 1. {问题标题}
192
- **文件**:`{file-path}:{line-number}`
193
- **描述**:{详细描述}
194
- **建议修复**:{具体建议}
195
- **严重程度**:中
196
-
197
- ### 次要问题(可选优化)
198
-
199
- #### 1. {优化点}
200
- **文件**:`{file-path}:{line-number}`
201
- **建议**:{优化建议}
202
-
203
- ## 亮点
204
-
205
- - {做得好的方面 1}
206
- - {做得好的方面 2}
207
-
208
- ## 规范符合度
209
-
210
- ### 编码规范
211
- - [ ] 命名规范
212
- - [ ] 代码风格
213
- - [ ] 注释规范
214
- - [ ] 测试规范
215
-
216
- ### 代码质量指标
217
- - 圈复杂度:{评估}
218
- - 代码重复:{评估}
219
- - 测试覆盖率:{百分比或评估}
220
-
221
- ## 测试审查
222
-
223
- ### 测试覆盖率
224
- - 单元测试:{评估}
225
- - 边界情况:{是否覆盖?}
226
- - 错误场景:{是否覆盖?}
227
-
228
- ### 测试质量
229
- - 测试命名:{评估}
230
- - 断言充分性:{评估}
231
- - 测试独立性:{评估}
232
-
233
- ## 安全审查
234
-
235
- - SQL 注入风险:{检查结果}
236
- - XSS 风险:{检查结果}
237
- - 访问控制:{检查结果}
238
- - 敏感数据暴露:{检查结果}
239
-
240
- ## 性能审查
241
-
242
- - 算法复杂度:{评估}
243
- - 资源管理:{检查结果}
244
- - 潜在瓶颈:{评估}
245
-
246
- ## 与方案的一致性
247
-
248
- - [ ] 实现与技术方案一致
249
- - [ ] 没有偏离设计意图
250
- - [ ] 没有添加计划外的功能
251
-
252
- ## 结论和建议
253
-
254
- ### 审批决定
255
- - [ ] 通过 - 无阻塞问题
256
- - [ ] 需要修改 - 有需要解决的问题
257
- - [ ] 拒绝 - 需要重大返工
258
-
259
- ### 后续步骤
260
- {基于审查结果的建议}
261
- ```
66
+ 向用户展示下一步时,必须包含所有 TUI 命令格式。
262
67
 
263
68
  ## 完成检查清单
264
69
 
265
- - [ ] 完成了所有修改文件的代码审查
266
- - [ ] 创建了审查报告 `.agents/workspace/active/{task-id}/{review-artifact}`
267
- - [ ] 更新了 task.md 中的 `current_step` 为 code-review
268
- - [ ] 更新了 task.md 中的 `updated_at` 为当前时间
269
- - [ ] 更新了 task.md 中的 `assigned_to` 为审查者名称
270
- - [ ] 追加了 Activity Log 条目到 task.md
271
- - [ ] 在工作流进度中标记了 code-review 为已完成
272
- - [ ] 根据审查结果告知了用户下一步(必须展示所有 TUI 的命令格式,不要筛选)
70
+ - [ ] 已审查最新实现上下文
71
+ - [ ] 已创建 `{review-artifact}`
72
+ - [ ] 已更新 task.md 并追加 Activity Log
73
+ - [ ] 用户输出中只选择了一个审查结论分支
273
74
 
274
75
  ## 注意事项
275
76
 
276
- 1. **前置条件**:必须已完成至少一轮实现(`implementation.md` `implementation-r{N}.md` 存在)
277
- 2. **客观性**:严格但公正;在指出问题的同时肯定优秀的工作
278
- 3. **具体性**:始终引用准确的文件路径和行号
279
- 4. **严重程度分类**:阻塞项必须修复;主要问题应该修复;次要问题为可选
280
- 5. **版本化规则**:首轮审查使用 `review.md`;后续轮次使用 `review-r{N}.md`
77
+ - 首轮审查使用 `review.md`,后续轮次使用 `review-r{N}.md`
78
+ - 所有问题都要引用具体文件路径和行号
79
+ - 严重程度必须区分 blocker、major、minor
281
80
 
282
81
  ## 错误处理
283
82
 
284
- - 任务未找到:提示 "Task {task-id} not found"
285
- - 缺少实现报告:提示 "Implementation report not found, please run the implement-task skill first"
83
+ - 任务未找到:`Task {task-id} not found`
84
+ - 缺少实现报告:`Implementation report not found, please run the implement-task skill first`
@@ -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`,确保报告反映完整的变更上下文。