@fitlab-ai/agent-infra 0.3.2 → 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 (302) hide show
  1. package/README.md +18 -35
  2. package/README.zh-CN.md +18 -35
  3. package/lib/defaults.json +5 -12
  4. package/lib/init.js +9 -25
  5. package/lib/paths.js +3 -42
  6. package/lib/update.js +43 -32
  7. package/package.json +2 -1
  8. package/templates/.agents/QUICKSTART.md +17 -7
  9. package/templates/.agents/QUICKSTART.zh-CN.md +17 -7
  10. package/templates/.agents/README.md +21 -14
  11. package/templates/.agents/README.zh-CN.md +21 -14
  12. package/templates/.agents/skills/analyze-task/SKILL.md +7 -10
  13. package/templates/.agents/skills/analyze-task/SKILL.zh-CN.md +7 -9
  14. package/templates/.agents/skills/block-task/SKILL.md +9 -13
  15. package/templates/.agents/skills/block-task/SKILL.zh-CN.md +9 -12
  16. package/templates/.agents/skills/check-task/SKILL.md +4 -8
  17. package/templates/.agents/skills/check-task/SKILL.zh-CN.md +4 -6
  18. package/templates/.agents/skills/close-codescan/SKILL.md +1 -4
  19. package/templates/.agents/skills/close-codescan/SKILL.zh-CN.md +1 -3
  20. package/templates/.agents/skills/close-dependabot/SKILL.md +1 -4
  21. package/templates/.agents/skills/close-dependabot/SKILL.zh-CN.md +1 -3
  22. package/templates/.agents/skills/commit/SKILL.md +26 -198
  23. package/templates/.agents/skills/commit/SKILL.zh-CN.md +26 -197
  24. package/templates/.agents/skills/commit/reference/commit-message.md +60 -0
  25. package/templates/.agents/skills/commit/reference/commit-message.zh-CN.md +60 -0
  26. package/templates/.agents/skills/commit/reference/copyright-check.md +39 -0
  27. package/templates/.agents/skills/commit/reference/copyright-check.zh-CN.md +39 -0
  28. package/templates/.agents/skills/commit/reference/task-status-update.md +88 -0
  29. package/templates/.agents/skills/commit/reference/task-status-update.zh-CN.md +88 -0
  30. package/templates/.agents/skills/complete-task/SKILL.md +8 -13
  31. package/templates/.agents/skills/complete-task/SKILL.zh-CN.md +8 -11
  32. package/templates/.agents/skills/create-issue/SKILL.md +32 -251
  33. package/templates/.agents/skills/create-issue/SKILL.zh-CN.md +33 -252
  34. package/templates/.agents/skills/create-issue/reference/label-and-type.md +77 -0
  35. package/templates/.agents/skills/create-issue/reference/label-and-type.zh-CN.md +77 -0
  36. package/templates/.agents/skills/create-issue/reference/template-matching.md +45 -0
  37. package/templates/.agents/skills/create-issue/reference/template-matching.zh-CN.md +45 -0
  38. package/templates/.agents/skills/create-pr/SKILL.md +33 -224
  39. package/templates/.agents/skills/create-pr/SKILL.zh-CN.md +32 -222
  40. package/templates/.agents/skills/create-pr/reference/branch-strategy.md +29 -0
  41. package/templates/.agents/skills/create-pr/reference/branch-strategy.zh-CN.md +29 -0
  42. package/templates/.agents/skills/create-pr/reference/pr-body-template.md +86 -0
  43. package/templates/.agents/skills/create-pr/reference/pr-body-template.zh-CN.md +86 -0
  44. package/templates/.agents/skills/create-release-note/SKILL.md +10 -13
  45. package/templates/.agents/skills/create-release-note/SKILL.zh-CN.md +10 -12
  46. package/templates/.agents/skills/create-task/SKILL.md +5 -8
  47. package/templates/.agents/skills/create-task/SKILL.zh-CN.md +5 -7
  48. package/templates/.agents/skills/implement-task/SKILL.md +48 -178
  49. package/templates/.agents/skills/implement-task/SKILL.zh-CN.md +44 -172
  50. package/templates/.agents/skills/implement-task/reference/implementation-rules.md +58 -0
  51. package/templates/.agents/skills/implement-task/reference/implementation-rules.zh-CN.md +58 -0
  52. package/templates/.agents/skills/implement-task/reference/report-template.md +63 -0
  53. package/templates/.agents/skills/implement-task/reference/report-template.zh-CN.md +63 -0
  54. package/templates/.agents/skills/import-codescan/SKILL.md +2 -5
  55. package/templates/.agents/skills/import-codescan/SKILL.zh-CN.md +2 -4
  56. package/templates/.agents/skills/import-dependabot/SKILL.md +4 -7
  57. package/templates/.agents/skills/import-dependabot/SKILL.zh-CN.md +4 -6
  58. package/templates/.agents/skills/import-issue/SKILL.md +6 -8
  59. package/templates/.agents/skills/import-issue/SKILL.zh-CN.md +6 -8
  60. package/templates/.agents/skills/init-labels/SKILL.md +1 -4
  61. package/templates/.agents/skills/init-labels/SKILL.zh-CN.md +1 -4
  62. package/templates/.agents/skills/init-milestones/SKILL.md +1 -3
  63. package/templates/.agents/skills/init-milestones/SKILL.zh-CN.md +1 -3
  64. package/templates/.agents/skills/plan-task/SKILL.md +7 -11
  65. package/templates/.agents/skills/plan-task/SKILL.zh-CN.md +7 -9
  66. package/templates/.agents/skills/refine-task/SKILL.md +38 -162
  67. package/templates/.agents/skills/refine-task/SKILL.zh-CN.md +36 -158
  68. package/templates/.agents/skills/refine-task/reference/fix-workflow.md +76 -0
  69. package/templates/.agents/skills/refine-task/reference/fix-workflow.zh-CN.md +76 -0
  70. package/templates/.agents/skills/refine-task/reference/report-template.md +38 -0
  71. package/templates/.agents/skills/refine-task/reference/report-template.zh-CN.md +38 -0
  72. package/templates/.agents/skills/refine-title/SKILL.md +1 -4
  73. package/templates/.agents/skills/refine-title/SKILL.zh-CN.md +1 -3
  74. package/templates/.agents/skills/release/SKILL.md +58 -19
  75. package/templates/.agents/skills/release/SKILL.zh-CN.md +58 -18
  76. package/templates/.agents/skills/review-task/SKILL.md +37 -239
  77. package/templates/.agents/skills/review-task/SKILL.zh-CN.md +37 -238
  78. package/templates/.agents/skills/review-task/reference/output-templates.md +72 -0
  79. package/templates/.agents/skills/review-task/reference/output-templates.zh-CN.md +72 -0
  80. package/templates/.agents/skills/review-task/reference/report-template.md +63 -0
  81. package/templates/.agents/skills/review-task/reference/report-template.zh-CN.md +63 -0
  82. package/templates/.agents/skills/review-task/reference/review-criteria.md +24 -0
  83. package/templates/.agents/skills/review-task/reference/review-criteria.zh-CN.md +24 -0
  84. package/templates/.agents/skills/sync-issue/SKILL.md +32 -490
  85. package/templates/.agents/skills/sync-issue/SKILL.zh-CN.md +33 -490
  86. package/templates/.agents/skills/sync-issue/reference/comment-publish.md +88 -0
  87. package/templates/.agents/skills/sync-issue/reference/comment-publish.zh-CN.md +88 -0
  88. package/templates/.agents/skills/sync-issue/reference/delivery-detection.md +42 -0
  89. package/templates/.agents/skills/sync-issue/reference/delivery-detection.zh-CN.md +42 -0
  90. package/templates/.agents/skills/sync-issue/reference/label-sync.md +63 -0
  91. package/templates/.agents/skills/sync-issue/reference/label-sync.zh-CN.md +63 -0
  92. package/templates/.agents/skills/sync-issue/reference/milestone-sync.md +37 -0
  93. package/templates/.agents/skills/sync-issue/reference/milestone-sync.zh-CN.md +37 -0
  94. package/templates/.agents/skills/sync-pr/SKILL.md +25 -287
  95. package/templates/.agents/skills/sync-pr/SKILL.zh-CN.md +29 -291
  96. package/templates/.agents/skills/sync-pr/reference/comment-publish.md +82 -0
  97. package/templates/.agents/skills/sync-pr/reference/comment-publish.zh-CN.md +82 -0
  98. package/templates/.agents/skills/sync-pr/reference/delivery-detection.md +54 -0
  99. package/templates/.agents/skills/sync-pr/reference/delivery-detection.zh-CN.md +54 -0
  100. package/templates/.agents/skills/test/SKILL.md +1 -3
  101. package/templates/.agents/skills/test/SKILL.zh-CN.md +1 -3
  102. package/templates/.agents/skills/test-integration/SKILL.md +1 -4
  103. package/templates/.agents/skills/test-integration/SKILL.zh-CN.md +1 -3
  104. package/templates/.agents/skills/update-agent-infra/SKILL.md +7 -11
  105. package/templates/.agents/skills/update-agent-infra/SKILL.zh-CN.md +7 -9
  106. package/templates/.agents/skills/update-agent-infra/scripts/sync-templates.js +59 -118
  107. package/templates/.agents/skills/upgrade-dependency/SKILL.md +1 -4
  108. package/templates/.agents/skills/upgrade-dependency/SKILL.zh-CN.md +1 -3
  109. package/templates/.agents/templates/handoff.md +1 -1
  110. package/templates/.agents/templates/handoff.zh-CN.md +1 -1
  111. package/templates/.agents/workflows/bug-fix.yaml +71 -71
  112. package/templates/.agents/workflows/bug-fix.zh-CN.yaml +1 -1
  113. package/templates/.agents/workflows/feature-development.yaml +71 -71
  114. package/templates/.agents/workflows/feature-development.zh-CN.yaml +1 -1
  115. package/templates/.agents/workflows/refactoring.yaml +76 -76
  116. package/templates/.agents/workflows/refactoring.zh-CN.yaml +1 -1
  117. package/templates/{.agent-workspace → .agents/workspace}/README.md +1 -1
  118. package/templates/{.agent-workspace → .agents/workspace}/README.zh-CN.md +1 -1
  119. package/templates/.claude/CLAUDE.md +14 -52
  120. package/templates/.claude/CLAUDE.zh-CN.md +14 -52
  121. package/templates/.claude/commands/analyze-task.md +1 -1
  122. package/templates/.claude/commands/analyze-task.zh-CN.md +1 -1
  123. package/templates/.claude/commands/block-task.md +2 -1
  124. package/templates/.claude/commands/block-task.zh-CN.md +2 -1
  125. package/templates/.claude/commands/check-task.md +2 -1
  126. package/templates/.claude/commands/check-task.zh-CN.md +2 -1
  127. package/templates/.claude/commands/close-codescan.md +2 -1
  128. package/templates/.claude/commands/close-codescan.zh-CN.md +2 -1
  129. package/templates/.claude/commands/close-dependabot.md +2 -1
  130. package/templates/.claude/commands/close-dependabot.zh-CN.md +2 -1
  131. package/templates/.claude/commands/commit.md +1 -1
  132. package/templates/.claude/commands/commit.zh-CN.md +1 -1
  133. package/templates/.claude/commands/complete-task.md +1 -1
  134. package/templates/.claude/commands/complete-task.zh-CN.md +1 -1
  135. package/templates/.claude/commands/create-issue.md +1 -1
  136. package/templates/.claude/commands/create-issue.zh-CN.md +1 -1
  137. package/templates/.claude/commands/create-pr.md +1 -1
  138. package/templates/.claude/commands/create-pr.zh-CN.md +1 -1
  139. package/templates/.claude/commands/create-release-note.md +2 -1
  140. package/templates/.claude/commands/create-release-note.zh-CN.md +2 -1
  141. package/templates/.claude/commands/create-task.md +1 -1
  142. package/templates/.claude/commands/create-task.zh-CN.md +1 -1
  143. package/templates/.claude/commands/implement-task.md +1 -1
  144. package/templates/.claude/commands/implement-task.zh-CN.md +1 -1
  145. package/templates/.claude/commands/import-codescan.md +1 -0
  146. package/templates/.claude/commands/import-codescan.zh-CN.md +2 -1
  147. package/templates/.claude/commands/import-dependabot.md +1 -0
  148. package/templates/.claude/commands/import-dependabot.zh-CN.md +2 -1
  149. package/templates/.claude/commands/import-issue.md +1 -1
  150. package/templates/.claude/commands/import-issue.zh-CN.md +1 -1
  151. package/templates/.claude/commands/init-labels.md +1 -0
  152. package/templates/.claude/commands/init-labels.zh-CN.md +2 -1
  153. package/templates/.claude/commands/init-milestones.md +2 -1
  154. package/templates/.claude/commands/init-milestones.zh-CN.md +2 -1
  155. package/templates/.claude/commands/plan-task.md +1 -1
  156. package/templates/.claude/commands/plan-task.zh-CN.md +1 -1
  157. package/templates/.claude/commands/refine-task.zh-CN.md +1 -1
  158. package/templates/.claude/commands/refine-title.md +2 -1
  159. package/templates/.claude/commands/refine-title.zh-CN.md +2 -1
  160. package/templates/.claude/commands/release.md +2 -1
  161. package/templates/.claude/commands/release.zh-CN.md +2 -1
  162. package/templates/.claude/commands/review-task.md +1 -1
  163. package/templates/.claude/commands/review-task.zh-CN.md +1 -1
  164. package/templates/.claude/commands/sync-issue.md +1 -1
  165. package/templates/.claude/commands/sync-issue.zh-CN.md +1 -1
  166. package/templates/.claude/commands/sync-pr.md +1 -1
  167. package/templates/.claude/commands/sync-pr.zh-CN.md +1 -1
  168. package/templates/.claude/commands/test-integration.md +2 -1
  169. package/templates/.claude/commands/test-integration.zh-CN.md +2 -1
  170. package/templates/.claude/commands/test.md +1 -1
  171. package/templates/.claude/commands/test.zh-CN.md +1 -1
  172. package/templates/.claude/commands/update-agent-infra.md +2 -1
  173. package/templates/.claude/commands/update-agent-infra.zh-CN.md +2 -1
  174. package/templates/.claude/commands/upgrade-dependency.md +2 -1
  175. package/templates/.claude/commands/upgrade-dependency.zh-CN.md +2 -1
  176. package/templates/.claude/hooks/check-version-format.sh +44 -0
  177. package/templates/.claude/settings.json +14 -0
  178. package/templates/.gemini/commands/_project_/analyze-task.toml +1 -1
  179. package/templates/.gemini/commands/_project_/analyze-task.zh-CN.toml +1 -1
  180. package/templates/.gemini/commands/_project_/block-task.toml +1 -1
  181. package/templates/.gemini/commands/_project_/block-task.zh-CN.toml +1 -1
  182. package/templates/.gemini/commands/_project_/check-task.toml +1 -1
  183. package/templates/.gemini/commands/_project_/check-task.zh-CN.toml +1 -1
  184. package/templates/.gemini/commands/_project_/close-codescan.toml +1 -1
  185. package/templates/.gemini/commands/_project_/close-codescan.zh-CN.toml +1 -1
  186. package/templates/.gemini/commands/_project_/close-dependabot.toml +1 -1
  187. package/templates/.gemini/commands/_project_/close-dependabot.zh-CN.toml +1 -1
  188. package/templates/.gemini/commands/_project_/commit.toml +1 -1
  189. package/templates/.gemini/commands/_project_/commit.zh-CN.toml +1 -1
  190. package/templates/.gemini/commands/_project_/complete-task.toml +1 -1
  191. package/templates/.gemini/commands/_project_/complete-task.zh-CN.toml +1 -1
  192. package/templates/.gemini/commands/_project_/create-issue.zh-CN.toml +1 -1
  193. package/templates/.gemini/commands/_project_/create-pr.toml +1 -1
  194. package/templates/.gemini/commands/_project_/create-pr.zh-CN.toml +1 -1
  195. package/templates/.gemini/commands/_project_/create-release-note.toml +1 -1
  196. package/templates/.gemini/commands/_project_/create-release-note.zh-CN.toml +1 -1
  197. package/templates/.gemini/commands/_project_/create-task.toml +1 -1
  198. package/templates/.gemini/commands/_project_/create-task.zh-CN.toml +1 -1
  199. package/templates/.gemini/commands/_project_/implement-task.toml +1 -1
  200. package/templates/.gemini/commands/_project_/implement-task.zh-CN.toml +1 -1
  201. package/templates/.gemini/commands/_project_/import-codescan.zh-CN.toml +1 -1
  202. package/templates/.gemini/commands/_project_/import-dependabot.zh-CN.toml +1 -1
  203. package/templates/.gemini/commands/_project_/import-issue.toml +1 -1
  204. package/templates/.gemini/commands/_project_/import-issue.zh-CN.toml +1 -1
  205. package/templates/.gemini/commands/_project_/init-labels.zh-CN.toml +1 -1
  206. package/templates/.gemini/commands/_project_/init-milestones.toml +1 -1
  207. package/templates/.gemini/commands/_project_/init-milestones.zh-CN.toml +1 -1
  208. package/templates/.gemini/commands/_project_/plan-task.toml +1 -1
  209. package/templates/.gemini/commands/_project_/plan-task.zh-CN.toml +1 -1
  210. package/templates/.gemini/commands/_project_/refine-task.zh-CN.toml +1 -1
  211. package/templates/.gemini/commands/_project_/refine-title.toml +1 -1
  212. package/templates/.gemini/commands/_project_/refine-title.zh-CN.toml +1 -1
  213. package/templates/.gemini/commands/_project_/release.toml +1 -1
  214. package/templates/.gemini/commands/_project_/release.zh-CN.toml +1 -1
  215. package/templates/.gemini/commands/_project_/review-task.toml +1 -1
  216. package/templates/.gemini/commands/_project_/review-task.zh-CN.toml +1 -1
  217. package/templates/.gemini/commands/_project_/sync-issue.toml +1 -1
  218. package/templates/.gemini/commands/_project_/sync-issue.zh-CN.toml +1 -1
  219. package/templates/.gemini/commands/_project_/sync-pr.toml +1 -1
  220. package/templates/.gemini/commands/_project_/sync-pr.zh-CN.toml +1 -1
  221. package/templates/.gemini/commands/_project_/test-integration.toml +1 -1
  222. package/templates/.gemini/commands/_project_/test-integration.zh-CN.toml +1 -1
  223. package/templates/.gemini/commands/_project_/test.toml +1 -1
  224. package/templates/.gemini/commands/_project_/test.zh-CN.toml +1 -1
  225. package/templates/.gemini/commands/_project_/update-agent-infra.toml +1 -1
  226. package/templates/.gemini/commands/_project_/update-agent-infra.zh-CN.toml +1 -1
  227. package/templates/.gemini/commands/_project_/upgrade-dependency.toml +1 -1
  228. package/templates/.gemini/commands/_project_/upgrade-dependency.zh-CN.toml +1 -1
  229. package/templates/.github/hooks/check-version-format.sh +29 -0
  230. package/templates/.github/hooks/pre-commit +8 -0
  231. package/templates/.opencode/COMMAND_STYLE_GUIDE.md +6 -6
  232. package/templates/.opencode/COMMAND_STYLE_GUIDE.zh-CN.md +6 -6
  233. package/templates/.opencode/commands/analyze-task.md +1 -1
  234. package/templates/.opencode/commands/analyze-task.zh-CN.md +1 -1
  235. package/templates/.opencode/commands/block-task.md +1 -1
  236. package/templates/.opencode/commands/block-task.zh-CN.md +1 -1
  237. package/templates/.opencode/commands/check-task.md +1 -1
  238. package/templates/.opencode/commands/check-task.zh-CN.md +1 -1
  239. package/templates/.opencode/commands/close-codescan.md +1 -1
  240. package/templates/.opencode/commands/close-codescan.zh-CN.md +1 -1
  241. package/templates/.opencode/commands/close-dependabot.md +1 -1
  242. package/templates/.opencode/commands/close-dependabot.zh-CN.md +1 -1
  243. package/templates/.opencode/commands/commit.md +1 -1
  244. package/templates/.opencode/commands/commit.zh-CN.md +1 -1
  245. package/templates/.opencode/commands/complete-task.md +1 -1
  246. package/templates/.opencode/commands/complete-task.zh-CN.md +1 -1
  247. package/templates/.opencode/commands/create-issue.zh-CN.md +1 -1
  248. package/templates/.opencode/commands/create-pr.md +1 -1
  249. package/templates/.opencode/commands/create-pr.zh-CN.md +1 -1
  250. package/templates/.opencode/commands/create-release-note.md +1 -1
  251. package/templates/.opencode/commands/create-release-note.zh-CN.md +1 -1
  252. package/templates/.opencode/commands/create-task.md +1 -1
  253. package/templates/.opencode/commands/create-task.zh-CN.md +1 -1
  254. package/templates/.opencode/commands/implement-task.md +1 -1
  255. package/templates/.opencode/commands/implement-task.zh-CN.md +1 -1
  256. package/templates/.opencode/commands/import-codescan.zh-CN.md +1 -1
  257. package/templates/.opencode/commands/import-dependabot.zh-CN.md +1 -1
  258. package/templates/.opencode/commands/import-issue.md +1 -1
  259. package/templates/.opencode/commands/import-issue.zh-CN.md +1 -1
  260. package/templates/.opencode/commands/init-labels.zh-CN.md +1 -1
  261. package/templates/.opencode/commands/init-milestones.md +1 -1
  262. package/templates/.opencode/commands/init-milestones.zh-CN.md +1 -1
  263. package/templates/.opencode/commands/plan-task.md +1 -1
  264. package/templates/.opencode/commands/plan-task.zh-CN.md +1 -1
  265. package/templates/.opencode/commands/refine-task.zh-CN.md +1 -1
  266. package/templates/.opencode/commands/refine-title.md +1 -1
  267. package/templates/.opencode/commands/refine-title.zh-CN.md +1 -1
  268. package/templates/.opencode/commands/release.md +1 -1
  269. package/templates/.opencode/commands/release.zh-CN.md +1 -1
  270. package/templates/.opencode/commands/review-task.md +1 -1
  271. package/templates/.opencode/commands/review-task.zh-CN.md +1 -1
  272. package/templates/.opencode/commands/sync-issue.md +1 -1
  273. package/templates/.opencode/commands/sync-issue.zh-CN.md +1 -1
  274. package/templates/.opencode/commands/sync-pr.md +1 -1
  275. package/templates/.opencode/commands/sync-pr.zh-CN.md +1 -1
  276. package/templates/.opencode/commands/test-integration.md +1 -1
  277. package/templates/.opencode/commands/test-integration.zh-CN.md +1 -1
  278. package/templates/.opencode/commands/test.md +1 -1
  279. package/templates/.opencode/commands/test.zh-CN.md +1 -1
  280. package/templates/.opencode/commands/update-agent-infra.md +1 -1
  281. package/templates/.opencode/commands/update-agent-infra.zh-CN.md +1 -1
  282. package/templates/.opencode/commands/upgrade-dependency.md +1 -1
  283. package/templates/.opencode/commands/upgrade-dependency.zh-CN.md +1 -1
  284. package/templates/AGENTS.md +11 -3
  285. package/templates/AGENTS.zh-CN.md +11 -3
  286. package/templates/.editorconfig +0 -15
  287. package/templates/.github/ISSUE_TEMPLATE/01_bug_report.yml +0 -149
  288. package/templates/.github/ISSUE_TEMPLATE/02_question.yml +0 -101
  289. package/templates/.github/ISSUE_TEMPLATE/03_feature_request.yml +0 -131
  290. package/templates/.github/ISSUE_TEMPLATE/04_documentation.yml +0 -165
  291. package/templates/.github/ISSUE_TEMPLATE/05_other.yml +0 -147
  292. package/templates/.github/ISSUE_TEMPLATE/config.yml +0 -11
  293. package/templates/.github/PULL_REQUEST_TEMPLATE.md +0 -123
  294. package/templates/.github/dependabot.yml +0 -17
  295. package/templates/.github/hooks/check-utf8-encoding.sh +0 -25
  296. package/templates/.github/release.yml +0 -27
  297. package/templates/.github/workflows/pr-title-check.yml +0 -42
  298. package/templates/.mailmap +0 -4
  299. package/templates/CONTRIBUTING.md +0 -126
  300. package/templates/CONTRIBUTING.zh-CN.md +0 -124
  301. package/templates/SECURITY.md +0 -131
  302. package/templates/SECURITY.zh-CN.md +0 -131
@@ -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,26 @@ git status --short
30
29
 
31
30
  如果有未提交的变更,报错:"Workspace has uncommitted changes. Please commit or stash first."
32
31
 
33
- ### 步骤 3:更新版本引用
32
+ ### 3. 发布前验证
33
+
34
+ <!-- TODO: 替换为你的项目发布前验证步骤 -->
35
+
36
+ 运行所有在准备发布前必须通过的检查:
37
+
38
+ ```bash
39
+ git branch --show-current
40
+ # TODO: 替换为你的项目测试/构建验证命令
41
+ ```
42
+
43
+ 验证要求:
44
+ - 确认发布使用的是项目规定的分支
45
+ - 运行你的发布流程要求的完整校验命令
46
+
47
+ 处理规则:
48
+ - 如果当前分支不符合预期,按项目策略输出警告或直接退出
49
+ - 如果任何验证命令失败,停止发布流程并先修复问题
50
+
51
+ ### 4. 更新版本引用
34
52
 
35
53
  <!-- TODO: 替换为你的项目版本更新步骤 -->
36
54
 
@@ -44,6 +62,7 @@ git status --short
44
62
 
45
63
  **常见需要更新的文件**:
46
64
  - `package.json`(Node.js)
65
+ - `package-lock.json`(Node.js;更新 `package.json` 后运行 `npm install --package-lock-only` 同步锁文件)
47
66
  - `pom.xml`(Maven)
48
67
  - `setup.py` / `pyproject.toml`(Python)
49
68
  - `version.go`(Go)
@@ -51,22 +70,39 @@ git status --short
51
70
  - `SECURITY.md` / `SECURITY.zh-CN.md`(支持版本表格)
52
71
 
53
72
  **排除以下目录的版本替换**:
54
- - `.agents/`、`.agent-workspace/`、`.claude/`、`.codex/`、`.gemini/`、`.opencode/`(AI 工具配置)
73
+ - `.agents/`、`.agents/workspace/`、`.claude/`、`.codex/`、`.gemini/`、`.opencode/`(AI 工具配置)
74
+
75
+ 如果项目使用 `package-lock.json`,在更新 `package.json` 后运行 `npm install --package-lock-only`,确保锁文件中的版本号保持同步。
76
+
77
+ ### 5. 重新生成构建产物
55
78
 
56
- ### 步骤 4:创建发布提交
79
+ <!-- TODO: 替换为你的项目产物重建步骤 -->
80
+
81
+ 如果版本更新会影响生成文件、内嵌元数据或打包产物,现在重新生成它们:
82
+
83
+ ```bash
84
+ # TODO: 替换为你的项目构建/重建命令
85
+ ```
86
+
87
+ 执行要求:
88
+ - 在更新版本引用后运行,确保生成产物使用最新版本号
89
+ - 如果项目没有生成产物,请在项目特化版本中明确说明
90
+ - 如果重建失败,停止发布流程并先修复构建问题
91
+
92
+ ### 6. 创建发布提交
57
93
 
58
94
  ```bash
59
95
  git add -A
60
96
  git commit -m "chore: release v{version}"
61
97
  ```
62
98
 
63
- ### 步骤 5:创建 Git 标签
99
+ ### 7. 创建 Git 标签
64
100
 
65
101
  ```bash
66
102
  git tag v{version}
67
103
  ```
68
104
 
69
- ### 步骤 6:管理里程碑
105
+ ### 8. 管理里程碑
70
106
 
71
107
  为已发布版本关闭对应版本里程碑,并为下一轮创建缺失的规划里程碑。
72
108
 
@@ -83,7 +119,7 @@ bash .agents/skills/release/scripts/manage-milestones.sh "$MAJOR" "$MINOR" "$PAT
83
119
  - 当 `PATCH=0` 时,同时确保 `{MAJOR}.{MINOR+1}.0` 与 `{MAJOR}.{MINOR+1}.x`
84
120
  - 输出包含已发布里程碑动作和新建数量的汇总
85
121
 
86
- ### 步骤 7:输出摘要
122
+ ### 9. 输出摘要
87
123
 
88
124
  > **重要**:以下「下一步」中列出的所有 TUI 命令格式必须完整输出,不要只展示当前 AI 代理对应的格式。
89
125
 
@@ -99,12 +135,12 @@ bash .agents/skills/release/scripts/manage-milestones.sh "$MAJOR" "$MINOR" "$PAT
99
135
 
100
136
  下一步(手动执行):
101
137
 
102
- 1. 推送标签:
103
- git push origin v{version}
104
-
105
- 2. 推送分支:
138
+ 1. 推送分支:
106
139
  git push origin {current-branch}
107
140
 
141
+ 2. 推送标签:
142
+ git push origin v{version}
143
+
108
144
  3.(可选)生成发布说明:
109
145
  - Claude Code / OpenCode:/create-release-note {version}
110
146
  - Gemini CLI:/{{project}}:create-release-note {version}
@@ -129,13 +165,17 @@ git checkout -- .
129
165
 
130
166
  1. **需要干净的工作区**:必须没有未提交的变更
131
167
  2. **不自动推送**:所有操作仅在本地执行;用户手动推送
132
- 3. **不验证构建**:发布前执行 test 技能进行验证
133
- 4. **版本替换范围**:通过搜索确定需要更新哪些文件;排除 AI 工具目录
134
- 5. **适配你的项目**:以上版本更新步骤是通用的;请根据你的项目版本方案进行定制
135
- 6. **里程碑联动**:发布时自动创建下一轮里程碑;如果里程碑体系未初始化,建议先运行 `init-milestones`
168
+ 3. **发布前验证**:将步骤 3 的 TODO 替换为你的项目所需的分支、测试和验证命令
169
+ 4. **生成产物**:如果版本变化会影响生成文件、打包产物或内嵌元数据,需要将步骤 5 的 TODO 替换为实际命令
170
+ 5. **发布自动化**:如果推送标签会触发 CI/CD 或包发布,请先确认所需凭据和流水线配置
171
+ 6. **版本替换范围**:通过搜索确定需要更新哪些文件;排除 AI 工具目录
172
+ 7. **适配你的项目**:以上版本更新和产物重建步骤是通用的;请根据你的项目版本方案进行定制
173
+ 8. **里程碑联动**:发布时自动创建下一轮里程碑;如果里程碑体系未初始化,建议先运行 `init-milestones`
136
174
 
137
175
  ## 错误处理
138
176
 
139
177
  - 版本格式无效:提示正确格式并退出
140
178
  - 工作区不干净:提示提交或暂存
179
+ - 验证失败:显示失败的检查并停止发布流程
180
+ - 产物重建失败:显示构建错误并停止发布流程
141
181
  - Git 操作失败:显示错误并提供回滚说明
@@ -1,78 +1,46 @@
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
- - `.agent-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 `.agent-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
25
+ Scan the task directory and record:
26
+ - `{review-round}`
27
+ - `{review-artifact}` as `review.md` or `review-r{N}.md`
38
28
 
39
- ### 3. Read Implementation and Refinement Reports
29
+ ### 3. Read Implementation and Refinement Context
40
30
 
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
31
+ Read the highest-round implementation artifact and, if present, the highest-round refinement artifact.
46
32
 
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
33
+ ### 4. Perform the Review
51
34
 
52
- ### 4. Perform Code Review
35
+ Follow `.agents/workflows/feature-development.yaml` and inspect `git diff` for the full change context.
53
36
 
54
- Follow the `code-review` step in `.agents/workflows/feature-development.yaml`:
37
+ > Detailed review criteria, severity rules, and reviewer expectations live in `reference/review-criteria.md`. Read `reference/review-criteria.md` before reviewing.
55
38
 
56
- **Required review areas**:
57
- - [ ] Code quality and coding standards (per project instructions)
58
- - [ ] Bug and risk detection
59
- - [ ] Test coverage and test quality
60
- - [ ] Error handling and edge cases
61
- - [ ] Performance and security concerns
62
- - [ ] Code comments and documentation
63
- - [ ] Alignment with the technical plan
39
+ ### 5. Write the Review Report
64
40
 
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
41
+ Create `.agents/workspace/active/{task-id}/{review-artifact}`.
70
42
 
71
- Also review `git diff` to inspect the full context of all changes.
72
-
73
- ### 5. Output Review Report
74
-
75
- Create `.agent-workspace/active/{task-id}/{review-artifact}`.
43
+ > The report format and severity layout live in `reference/report-template.md`. Read `reference/report-template.md` before writing the review.
76
44
 
77
45
  ### 6. Update Task Status
78
46
 
@@ -82,205 +50,35 @@ Get the current time:
82
50
  date "+%Y-%m-%d %H:%M:%S"
83
51
  ```
84
52
 
85
- Update `.agent-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: .agent-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: .agent-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: .agent-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
163
-
164
- ```markdown
165
- # Code Review Report
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
166
63
 
167
- - **Review round**: Round {review-round}
168
- - **Artifact file**: `{review-artifact}`
169
- - **Implementation input**:
170
- - `{implementation-artifact}`
171
- - `{refinement-artifact}` (if present)
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.
172
65
 
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 `.agent-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`