@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
@@ -0,0 +1,38 @@
1
+ # Refinement Report Template
2
+
3
+ Use this structure when writing `refinement.md` or `refinement-r{N}.md`.
4
+
5
+ ## Output Template
6
+
7
+ ```markdown
8
+ # Refinement Report
9
+
10
+ - **Refinement Round**: Round {refinement-round}
11
+ - **Artifact File**: `{refinement-artifact}`
12
+ - **Review Input**: `{review-artifact}`
13
+ - **Implementation Context**: `{implementation-artifact}`
14
+
15
+ ### Review Feedback Handling
16
+
17
+ #### Blocker Fixes
18
+ 1. **{issue-title}**
19
+ - **Fix**: {what changed}
20
+ - **File**: `{file-path}:{line-number}`
21
+ - **Validation**: {validation}
22
+
23
+ #### Major Issue Fixes
24
+ 1. **{issue-title}**
25
+ - **Fix**: {what changed}
26
+ - **File**: `{file-path}:{line-number}`
27
+
28
+ #### Minor Issue Handling
29
+ 1. **{issue-title}**
30
+ - **Fix**: {what changed}
31
+
32
+ #### Unresolved Issues
33
+ - {issue}: {reason}
34
+
35
+ ### Test Results After Refinement
36
+ - All tests passing: {yes/no}
37
+ - Test output: {summary}
38
+ ```
@@ -0,0 +1,38 @@
1
+ # 修复报告模板
2
+
3
+ 编写 `refinement.md` 或 `refinement-r{N}.md` 时,使用以下结构。
4
+
5
+ ## 输出模板
6
+
7
+ ```markdown
8
+ # 修复报告
9
+
10
+ - **修复轮次**: Round {refinement-round}
11
+ - **产物文件**: `{refinement-artifact}`
12
+ - **审查输入**: `{review-artifact}`
13
+ - **实现上下文**: `{implementation-artifact}`
14
+
15
+ ### 审查反馈处理
16
+
17
+ #### 阻塞项修复
18
+ 1. **{issue-title}**
19
+ - **修复**: {what changed}
20
+ - **文件**: `{file-path}:{line-number}`
21
+ - **验证**: {validation}
22
+
23
+ #### 主要问题修复
24
+ 1. **{issue-title}**
25
+ - **修复**: {what changed}
26
+ - **文件**: `{file-path}:{line-number}`
27
+
28
+ #### 次要问题处理
29
+ 1. **{issue-title}**
30
+ - **修复**: {what changed}
31
+
32
+ #### 未解决问题
33
+ - {issue}: {reason}
34
+
35
+ ### 修复后的测试结果
36
+ - 所有测试通过: {yes/no}
37
+ - 测试输出: {summary}
38
+ ```
@@ -1,9 +1,6 @@
1
1
  ---
2
2
  name: refine-title
3
- description: >
4
- Deeply analyze Issue or PR content and reformat the title to
5
- Conventional Commits format. Triggered when the user requests
6
- title optimization. Argument: issue or PR number.
3
+ description: "Rewrite an Issue or PR title in Conventional Commits format"
7
4
  ---
8
5
 
9
6
  # Refine Title
@@ -1,8 +1,6 @@
1
1
  ---
2
2
  name: refine-title
3
- description: >
4
- 深度分析 Issue 或 PR 内容,并将其标题重构为 Conventional Commits 格式。
5
- 当用户要求优化标题时触发。参数:issue 或 PR 编号。
3
+ description: "重构 Issue/PR 标题为 Conventional Commits 格式"
6
4
  ---
7
5
 
8
6
  # 重构标题
@@ -1,8 +1,6 @@
1
1
  ---
2
2
  name: release
3
- description: >
4
- Execute the version release workflow. Triggered when the user
5
- requests a version release. Argument: version number (X.Y.Z).
3
+ description: "Run the version release workflow"
6
4
  ---
7
5
 
8
6
  # Version Release
@@ -13,7 +11,7 @@ Execute the version release workflow for the specified version.
13
11
 
14
12
  ## Execution Flow
15
13
 
16
- ### Step 1: Parse and Validate Version
14
+ ### 1. Parse and Validate Version
17
15
 
18
16
  Extract version from arguments. Must match `X.Y.Z` format.
19
17
 
@@ -23,7 +21,7 @@ Parse components:
23
21
 
24
22
  If format is invalid, error: "Version format incorrect, expected X.Y.Z (e.g. 1.2.3)"
25
23
 
26
- ### Step 2: Verify Clean Workspace
24
+ ### 2. Verify Clean Workspace
27
25
 
28
26
  ```bash
29
27
  git status --short
@@ -31,7 +29,7 @@ git status --short
31
29
 
32
30
  If there are uncommitted changes, error: "Workspace has uncommitted changes. Please commit or stash first."
33
31
 
34
- ### Step 3: Pre-release Verification
32
+ ### 3. Pre-release Verification
35
33
 
36
34
  <!-- TODO: Replace with your project's pre-release verification steps -->
37
35
 
@@ -50,7 +48,7 @@ Handling rules:
50
48
  - If the current branch is unexpected, print a warning or exit based on your policy
51
49
  - If any verification command fails, stop the release process and fix the issue first
52
50
 
53
- ### Step 4: Update Version References
51
+ ### 4. Update Version References
54
52
 
55
53
  <!-- TODO: Replace with your project's version update steps -->
56
54
 
@@ -76,7 +74,7 @@ Search for version references in project files and update them:
76
74
 
77
75
  If the project uses `package-lock.json`, run `npm install --package-lock-only` after updating `package.json` so the lockfile version stays in sync.
78
76
 
79
- ### Step 5: Rebuild Artifacts
77
+ ### 5. Rebuild Artifacts
80
78
 
81
79
  <!-- TODO: Replace with your project's artifact rebuild steps -->
82
80
 
@@ -91,20 +89,20 @@ Execution guidance:
91
89
  - If your project has no generated artifacts, document that explicitly in the project-specific skill
92
90
  - If the rebuild fails, stop the release process and fix the build first
93
91
 
94
- ### Step 6: Create Release Commit
92
+ ### 6. Create Release Commit
95
93
 
96
94
  ```bash
97
95
  git add -A
98
96
  git commit -m "chore: release v{version}"
99
97
  ```
100
98
 
101
- ### Step 7: Create Git Tag
99
+ ### 7. Create Git Tag
102
100
 
103
101
  ```bash
104
102
  git tag v{version}
105
103
  ```
106
104
 
107
- ### Step 8: Manage Milestones
105
+ ### 8. Manage Milestones
108
106
 
109
107
  Close the milestone for the released version when it exists, and create the missing planning milestones for the next cycle.
110
108
 
@@ -121,7 +119,7 @@ The script is responsible for:
121
119
  - When `PATCH=0`, also ensuring `{MAJOR}.{MINOR+1}.0` and `{MAJOR}.{MINOR+1}.x`
122
120
  - Printing a milestone summary with the released milestone action and new milestone count
123
121
 
124
- ### Step 9: Output Summary
122
+ ### 9. Output Summary
125
123
 
126
124
  > **IMPORTANT**: All TUI command formats listed below must be output in full. Do not show only the format for the current AI agent.
127
125
 
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: release
3
- description: >
4
- 执行版本发布流程。当用户要求发布版本时触发。参数:版本号(X.Y.Z)。
3
+ description: "执行版本发布流程"
5
4
  ---
6
5
 
7
6
  # 版本发布
@@ -12,7 +11,7 @@ description: >
12
11
 
13
12
  ## 执行流程
14
13
 
15
- ### 步骤 1:解析并验证版本号
14
+ ### 1. 解析并验证版本号
16
15
 
17
16
  从参数中提取版本。必须匹配 `X.Y.Z` 格式。
18
17
 
@@ -22,7 +21,7 @@ description: >
22
21
 
23
22
  如果格式无效,报错:"Version format incorrect, expected X.Y.Z (e.g. 1.2.3)"
24
23
 
25
- ### 步骤 2:验证工作区干净
24
+ ### 2. 验证工作区干净
26
25
 
27
26
  ```bash
28
27
  git status --short
@@ -30,7 +29,7 @@ git status --short
30
29
 
31
30
  如果有未提交的变更,报错:"Workspace has uncommitted changes. Please commit or stash first."
32
31
 
33
- ### 步骤 3:发布前验证
32
+ ### 3. 发布前验证
34
33
 
35
34
  <!-- TODO: 替换为你的项目发布前验证步骤 -->
36
35
 
@@ -49,7 +48,7 @@ git branch --show-current
49
48
  - 如果当前分支不符合预期,按项目策略输出警告或直接退出
50
49
  - 如果任何验证命令失败,停止发布流程并先修复问题
51
50
 
52
- ### 步骤 4:更新版本引用
51
+ ### 4. 更新版本引用
53
52
 
54
53
  <!-- TODO: 替换为你的项目版本更新步骤 -->
55
54
 
@@ -75,7 +74,7 @@ git branch --show-current
75
74
 
76
75
  如果项目使用 `package-lock.json`,在更新 `package.json` 后运行 `npm install --package-lock-only`,确保锁文件中的版本号保持同步。
77
76
 
78
- ### 步骤 5:重新生成构建产物
77
+ ### 5. 重新生成构建产物
79
78
 
80
79
  <!-- TODO: 替换为你的项目产物重建步骤 -->
81
80
 
@@ -90,20 +89,20 @@ git branch --show-current
90
89
  - 如果项目没有生成产物,请在项目特化版本中明确说明
91
90
  - 如果重建失败,停止发布流程并先修复构建问题
92
91
 
93
- ### 步骤 6:创建发布提交
92
+ ### 6. 创建发布提交
94
93
 
95
94
  ```bash
96
95
  git add -A
97
96
  git commit -m "chore: release v{version}"
98
97
  ```
99
98
 
100
- ### 步骤 7:创建 Git 标签
99
+ ### 7. 创建 Git 标签
101
100
 
102
101
  ```bash
103
102
  git tag v{version}
104
103
  ```
105
104
 
106
- ### 步骤 8:管理里程碑
105
+ ### 8. 管理里程碑
107
106
 
108
107
  为已发布版本关闭对应版本里程碑,并为下一轮创建缺失的规划里程碑。
109
108
 
@@ -120,7 +119,7 @@ bash .agents/skills/release/scripts/manage-milestones.sh "$MAJOR" "$MINOR" "$PAT
120
119
  - 当 `PATCH=0` 时,同时确保 `{MAJOR}.{MINOR+1}.0` 与 `{MAJOR}.{MINOR+1}.x`
121
120
  - 输出包含已发布里程碑动作和新建数量的汇总
122
121
 
123
- ### 步骤 9:输出摘要
122
+ ### 9. 输出摘要
124
123
 
125
124
  > **重要**:以下「下一步」中列出的所有 TUI 命令格式必须完整输出,不要只展示当前 AI 代理对应的格式。
126
125
 
@@ -1,79 +1,47 @@
1
1
  ---
2
2
  name: review-task
3
- description: >
4
- Review implemented task changes and output a code review report, categorized by
5
- severity (Blocker / Major / Minor). Triggered when the user requests code
6
- review after implementation is complete. Argument: task-id.
3
+ description: "Review a task implementation and output a code review report"
7
4
  ---
8
5
 
9
6
  # Code Review
10
7
 
8
+ Review the latest implementation round and produce `review.md` or `review-r{N}.md`.
9
+
11
10
  ## Boundary / Critical Rules
12
11
 
13
- - This skill only reads code and produces a review report (`review.md` or `review-r{N}.md`) -- it does not modify business code
14
- - After executing this skill, you **must** immediately update task status in task.md
12
+ - This skill reviews code and writes a report; it does not modify product code
13
+ - After executing this skill, you **must** immediately update task.md
15
14
 
16
15
  ## Steps
17
16
 
18
17
  ### 1. Verify Prerequisites
19
18
 
20
- Check required files:
21
- - `.agents/workspace/active/{task-id}/task.md` - Task file
22
- - At least one implementation report: `implementation.md` or `implementation-r{N}.md`
23
-
24
- Note: `{task-id}` format is `TASK-{yyyyMMdd-HHmmss}`, for example `TASK-20260306-143022`
25
-
26
- If either file is missing, prompt the user to complete the prerequisite step first.
19
+ Require:
20
+ - `.agents/workspace/active/{task-id}/task.md`
21
+ - at least one implementation artifact: `implementation.md` or `implementation-r{N}.md`
27
22
 
28
23
  ### 2. Determine Review Round
29
24
 
30
- Scan review artifacts in `.agents/workspace/active/{task-id}/`:
31
- - If neither `review.md` nor `review-r*.md` exists -> this is Round 1 and must create `review.md`
32
- - If `review.md` exists and no `review-r*.md` exists -> this is Round 2 and must create `review-r2.md`
33
- - If `review-r{N}.md` exists -> this is Round N+1 and must create `review-r{N+1}.md`
34
-
35
- Record:
36
- - `{review-round}`: the current review round
37
- - `{review-artifact}`: the review report filename for this round
38
-
39
- ### 3. Read Implementation and Refinement Reports
40
-
41
- Scan implementation reports in the task directory (`implementation.md`, `implementation-r{N}.md`) and read the highest-round file to understand:
42
- - The list of modified files
43
- - The key functionality that was implemented
44
- - Test results
45
- - Any items the implementer marked for reviewer attention
46
-
47
- If refinement artifacts exist (`refinement.md`, `refinement-r{N}.md`), read the highest-round file to understand:
48
- - Which review findings were already fixed
49
- - The effect of those fixes on code and tests
50
- - How the current code state changed relative to the previous review
25
+ Scan the task directory and record:
26
+ - `{review-round}`
27
+ - `{review-artifact}` as `review.md` or `review-r{N}.md`
51
28
 
52
- ### 4. Perform Code Review
29
+ ### 3. Read Implementation and Refinement Context
53
30
 
54
- Follow the `code-review` step in `.agents/workflows/feature-development.yaml`:
31
+ Read the highest-round implementation artifact and, if present, the highest-round refinement artifact.
55
32
 
56
- **Required review areas**:
57
- - [ ] Code quality and coding standards (per project instructions)
58
- - [ ] Bug and risk detection
59
- - [ ] Test coverage and test quality (when a feature is removed, verify that test fixtures and assertions for that feature are also removed — not mechanically flipped; assertions that only confirm data passes through unchanged are not valid tests)
60
- - [ ] Error handling and edge cases
61
- - [ ] Performance and security concerns
62
- - [ ] Code comments and documentation
63
- - [ ] Alignment with the technical plan
33
+ ### 4. Perform the Review
64
34
 
65
- **Review principles**:
66
- 1. **Strict but fair**: Point out issues while also calling out what was done well
67
- 2. **Specific**: Provide exact file paths and line numbers
68
- 3. **Actionable**: Do not only point out problems; give fix suggestions
69
- 4. **Severity-based**: Distinguish must-fix issues from optional improvements
35
+ Follow `.agents/workflows/feature-development.yaml` and inspect `git diff` for the full change context.
70
36
 
71
- Also review `git diff` to inspect the full context of all changes.
37
+ > Detailed review criteria, severity rules, and reviewer expectations live in `reference/review-criteria.md`. Read `reference/review-criteria.md` before reviewing.
72
38
 
73
- ### 5. Output Review Report
39
+ ### 5. Write the Review Report
74
40
 
75
41
  Create `.agents/workspace/active/{task-id}/{review-artifact}`.
76
42
 
43
+ > The report format and severity layout live in `reference/report-template.md`. Read `reference/report-template.md` before writing the review.
44
+
77
45
  ### 6. Update Task Status
78
46
 
79
47
  Get the current time:
@@ -82,205 +50,35 @@ Get the current time:
82
50
  date "+%Y-%m-%d %H:%M:%S"
83
51
  ```
84
52
 
85
- Update `.agents/workspace/active/{task-id}/task.md`:
86
- - `current_step`: code-review
87
- - `assigned_to`: {reviewer}
88
- - `updated_at`: {current time}
89
- - Record the review artifact for this round: `{review-artifact}` (Round `{review-round}`)
90
- - Mark code-review as complete in workflow progress and include the actual round when the task template supports it
91
- - **Append** to `## Activity Log` (do NOT overwrite previous entries):
92
- ```
93
- - {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
- ```
53
+ Update task.md and append:
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}`
95
55
 
96
56
  ### 7. Inform User
97
57
 
98
- > **IMPORTANT**: All TUI command formats listed below must be output in full. Do not show only the format for the current AI agent.
99
-
100
- Output based on the review result:
101
-
102
- > **⚠️ CONDITION CHECK you must determine the conditions below first, then choose exactly one matching output branch:**
103
- >
104
- > 1. If `Blocker = 0` and `Major = 0` and `Minor = 0` -> use "Output Branch A - Passed with No Issues"
105
- > 2. If `Blocker = 0` and (`Major > 0` or `Minor > 0`) -> use "Output Branch B - Passed with Issues"
106
- > 3. If `Blocker > 0` and the issues can be resolved in a focused follow-up fix, **without requiring broad rework** -> use "Output Branch C - Changes Requested"
107
- > 4. If the issues require major rework, redesign, or re-implementation -> use "Output Branch D - Rejected"
108
- >
109
- > **Do not skip the decision. Do not mix templates from different branches. You must output exactly one branch. As soon as `Blocker > 0`, you must not output any "Approved" template.**
110
-
111
- **📋 Output Branch A - Passed with No Issues** (Condition: Blocker = 0 and Major = 0 and Minor = 0):
112
- ```
113
- Code review complete for task {task-id}. Verdict: Approved.
114
- - Blockers: 0 | Major issues: 0 | Minor issues: 0
115
-
116
- Next step - commit changes:
117
- - Claude Code / OpenCode: /commit
118
- - Gemini CLI: /{{project}}:commit
119
- - Codex CLI: $commit
120
- ```
121
-
122
- **📋 Output Branch B - Passed with Issues** (Condition: Blocker = 0 and (`Major > 0` or `Minor > 0`)):
123
- ```
124
- Code review complete for task {task-id}. Verdict: Approved.
125
- - Blockers: 0 | Major issues: {n} | Minor issues: {n}
126
- - Review report: .agents/workspace/active/{task-id}/{review-artifact}
127
-
128
- Next step - fix issues before commit (recommended):
129
- - Claude Code / OpenCode: /refine-task {task-id}
130
- - Gemini CLI: /{{project}}:refine-task {task-id}
131
- - Codex CLI: $refine-task {task-id}
132
-
133
- Or commit directly (skip fixes):
134
- - Claude Code / OpenCode: /commit
135
- - Gemini CLI: /{{project}}:commit
136
- - Codex CLI: $commit
137
- ```
138
-
139
- **📋 Output Branch C - Changes Requested** (Condition: Blocker > 0, and the issues are fixable without major rework):
140
- ```
141
- Code review complete for task {task-id}. Verdict: Changes Requested.
142
- - Blockers: {n} | Major issues: {n} | Minor issues: {n}
143
- - Review report: .agents/workspace/active/{task-id}/{review-artifact}
144
-
145
- Next step - refine the issues:
146
- - Claude Code / OpenCode: /refine-task {task-id}
147
- - Gemini CLI: /{{project}}:refine-task {task-id}
148
- - Codex CLI: $refine-task {task-id}
149
- ```
150
-
151
- **📋 Output Branch D - Rejected** (Condition: major rework, redesign, or re-implementation is required):
152
- ```
153
- Code review complete for task {task-id}. Verdict: Rejected, major rework required.
154
- - Review report: .agents/workspace/active/{task-id}/{review-artifact}
155
-
156
- Next step - re-implement:
157
- - Claude Code / OpenCode: /implement-task {task-id}
158
- - Gemini CLI: /{{project}}:implement-task {task-id}
159
- - Codex CLI: $implement-task {task-id}
160
- ```
161
-
162
- ## Output Template
58
+ Choose exactly one branch based on the findings:
59
+ - no blockers, no major, no minor -> approved with no issues
60
+ - no blockers, but major or minor findings -> approved with issues
61
+ - blockers that can be fixed in a focused pass -> changes requested
62
+ - major redesign or re-implementation needed -> rejected
163
63
 
164
- ```markdown
165
- # Code Review Report
64
+ > The full four-branch output templates, selection rules, and prohibition clauses live in `reference/output-templates.md`. Read `reference/output-templates.md` before reporting the review result.
166
65
 
167
- - **Review round**: Round {review-round}
168
- - **Artifact file**: `{review-artifact}`
169
- - **Implementation input**:
170
- - `{implementation-artifact}`
171
- - `{refinement-artifact}` (if present)
172
-
173
- ## Review Summary
174
-
175
- - **Reviewer**: {reviewer name}
176
- - **Review time**: {timestamp}
177
- - **Review scope**: {file count and major modules}
178
- - **Overall verdict**: {Approved / Changes Requested / Rejected}
179
-
180
- ## Findings
181
-
182
- ### Blockers (must fix)
183
-
184
- #### 1. {Issue title}
185
- **File**: `{file-path}:{line-number}`
186
- **Description**: {Detailed description}
187
- **Suggested fix**: {Concrete suggestion}
188
- **Severity**: High
189
-
190
- ### Major Issues (should fix)
191
-
192
- #### 1. {Issue title}
193
- **File**: `{file-path}:{line-number}`
194
- **Description**: {Detailed description}
195
- **Suggested fix**: {Concrete suggestion}
196
- **Severity**: Medium
197
-
198
- ### Minor Issues (optional improvements)
199
-
200
- #### 1. {Improvement point}
201
- **File**: `{file-path}:{line-number}`
202
- **Suggestion**: {Improvement suggestion}
203
-
204
- ## Highlights
205
-
206
- - {Positive aspect 1}
207
- - {Positive aspect 2}
208
-
209
- ## Standards Compliance
210
-
211
- ### Coding Standards
212
- - [ ] Naming conventions
213
- - [ ] Code style
214
- - [ ] Comment standards
215
- - [ ] Testing standards
216
-
217
- ### Code Quality Metrics
218
- - Cyclomatic complexity: {Assessment}
219
- - Code duplication: {Assessment}
220
- - Test coverage: {Percentage or assessment}
221
-
222
- ## Test Review
223
-
224
- ### Test Coverage
225
- - Unit tests: {Assessment}
226
- - Edge cases: {Covered?}
227
- - Error scenarios: {Covered?}
228
-
229
- ### Test Quality
230
- - Test naming: {Assessment}
231
- - Assertion sufficiency: {Assessment}
232
- - Test independence: {Assessment}
233
-
234
- ## Security Review
235
-
236
- - SQL injection risk: {Check result}
237
- - XSS risk: {Check result}
238
- - Access control: {Check result}
239
- - Sensitive data exposure: {Check result}
240
-
241
- ## Performance Review
242
-
243
- - Algorithmic complexity: {Assessment}
244
- - Resource management: {Check result}
245
- - Potential bottlenecks: {Assessment}
246
-
247
- ## Alignment with Plan
248
-
249
- - [ ] Implementation matches the technical plan
250
- - [ ] No deviation from design intent
251
- - [ ] No out-of-scope functionality was added
252
-
253
- ## Conclusion and Recommendation
254
-
255
- ### Approval Decision
256
- - [ ] Approved - no blocking issues
257
- - [ ] Changes Requested - issues need to be resolved
258
- - [ ] Rejected - major rework required
259
-
260
- ### Next Steps
261
- {Recommendation based on the review result}
262
- ```
66
+ Include all TUI command formats in the next-step output.
263
67
 
264
68
  ## Completion Checklist
265
69
 
266
- - [ ] Completed code review for all modified files
267
- - [ ] Created review report `.agents/workspace/active/{task-id}/{review-artifact}`
268
- - [ ] Updated `current_step` to code-review in task.md
269
- - [ ] Updated `updated_at` to the current time in task.md
270
- - [ ] Updated `assigned_to` to the reviewer name in task.md
271
- - [ ] Appended an Activity Log entry to task.md
272
- - [ ] Marked code-review as complete in workflow progress
273
- - [ ] Informed the user of the next step based on the review result (must include all TUI command formats without filtering)
70
+ - [ ] Reviewed the latest implementation context
71
+ - [ ] Created `{review-artifact}`
72
+ - [ ] Updated task.md and appended the Activity Log entry
73
+ - [ ] Chose exactly one verdict branch in the user output
274
74
 
275
75
  ## Notes
276
76
 
277
- 1. **Prerequisite**: At least one implementation round must already exist (`implementation.md` or `implementation-r{N}.md`)
278
- 2. **Objectivity**: Be strict but fair; acknowledge strong work while pointing out issues
279
- 3. **Specificity**: Always cite exact file paths and line numbers
280
- 4. **Severity categories**: Blockers must be fixed; major issues should be fixed; minor issues are optional
281
- 5. **Versioning rule**: First review uses `review.md`; later rounds use `review-r{N}.md`
77
+ - Round 1 uses `review.md`; later rounds use `review-r{N}.md`
78
+ - Always cite concrete file paths and line numbers in findings
79
+ - Review severity must distinguish blockers, major issues, and minor issues
282
80
 
283
81
  ## Error Handling
284
82
 
285
- - Task not found: Prompt "Task {task-id} not found"
286
- - Missing implementation report: Prompt "Implementation report not found, please run the implement-task skill first"
83
+ - Task not found: `Task {task-id} not found`
84
+ - Missing implementation report: `Implementation report not found, please run the implement-task skill first`