@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,8 +1,6 @@
1
1
  ---
2
2
  name: import-issue
3
- description: >
4
- 从 GitHub Issue 导入并创建任务文件。
5
- 当用户要求导入某个 Issue 时触发。参数:issue 编号。
3
+ description: "从 GitHub Issue 导入并创建任务"
6
4
  ---
7
5
 
8
6
  # 导入 Issue
@@ -27,7 +25,7 @@ gh issue view <issue-number> --json number,title,body,labels
27
25
 
28
26
  ### 2. 检查已有任务
29
27
 
30
- 搜索 `.agent-workspace/active/` 中是否已有链接到此 Issue 的任务。
28
+ 搜索 `.agents/workspace/active/` 中是否已有链接到此 Issue 的任务。
31
29
  - 如果找到,询问用户是重新导入还是继续使用现有任务
32
30
  - 如果未找到,创建新任务
33
31
 
@@ -37,7 +35,7 @@ gh issue view <issue-number> --json number,title,body,labels
37
35
  date +%Y%m%d-%H%M%S
38
36
  ```
39
37
 
40
- - 创建目录:`.agent-workspace/active/TASK-{yyyyMMdd-HHmmss}/`
38
+ - 创建目录:`.agents/workspace/active/TASK-{yyyyMMdd-HHmmss}/`
41
39
  - 使用 `.agents/templates/task.md` 模板创建 `task.md`
42
40
 
43
41
  任务元数据:
@@ -62,7 +60,7 @@ assigned_to: {当前 AI 代理}
62
60
  date "+%Y-%m-%d %H:%M:%S"
63
61
  ```
64
62
 
65
- 更新 `.agent-workspace/active/{task-id}/task.md`:
63
+ 更新 `.agents/workspace/active/{task-id}/task.md`:
66
64
  - `current_step`:requirement-analysis
67
65
  - `assigned_to`:{当前 AI 代理}
68
66
  - `updated_at`:{当前时间}
@@ -84,7 +82,7 @@ Issue #{number} 已导入。
84
82
  - 工作流:{workflow}
85
83
 
86
84
  产出文件:
87
- - 任务文件:.agent-workspace/active/{task-id}/task.md
85
+ - 任务文件:.agents/workspace/active/{task-id}/task.md
88
86
 
89
87
  下一步 - 执行需求分析:
90
88
  - Claude Code / OpenCode:/analyze-task {task-id}
@@ -94,7 +92,7 @@ Issue #{number} 已导入。
94
92
 
95
93
  ## 完成检查清单
96
94
 
97
- - [ ] 创建了任务文件 `.agent-workspace/active/{task-id}/task.md`
95
+ - [ ] 创建了任务文件 `.agents/workspace/active/{task-id}/task.md`
98
96
  - [ ] 在 task.md 中记录了 issue_number
99
97
  - [ ] 更新了 `current_step` 为 requirement-analysis
100
98
  - [ ] 更新了 `updated_at` 为当前时间
@@ -1,9 +1,6 @@
1
1
  ---
2
2
  name: init-labels
3
- description: >
4
- Initialize the repository's standard GitHub Labels taxonomy in one pass.
5
- Create the common labels, auto-detect `in:` labels from the project structure,
6
- do not create `theme:` labels, overwrite exact-match GitHub defaults, and report unmatched defaults.
3
+ description: "Initialize the repository's standard GitHub Labels taxonomy"
7
4
  ---
8
5
 
9
6
  # Initialize GitHub Labels
@@ -1,9 +1,6 @@
1
1
  ---
2
2
  name: init-labels
3
- description: >
4
- 一次性初始化仓库的标准 GitHub Labels 体系。
5
- 创建通用 labels、基于项目目录结构自动探测 `in:` labels、
6
- 不创建 `theme:` labels、覆盖名称完全匹配的 GitHub 默认 labels,并提示未覆盖的默认 labels。
3
+ description: "初始化仓库的 GitHub Labels 体系"
7
4
  ---
8
5
 
9
6
  # 初始化 GitHub Labels
@@ -1,8 +1,6 @@
1
1
  ---
2
2
  name: init-milestones
3
- description: >
4
- Initialize the repository's standard GitHub Milestones taxonomy in one pass.
5
- Create General Backlog, the initial milestones derived from the current version baseline, and optionally backfill historical milestones.
3
+ description: "Initialize the repository's standard GitHub Milestones taxonomy"
6
4
  ---
7
5
 
8
6
  # Initialize GitHub Milestones
@@ -1,8 +1,6 @@
1
1
  ---
2
2
  name: init-milestones
3
- description: >
4
- 一次性初始化仓库的标准 GitHub Milestones 体系。
5
- 创建 General Backlog、基于当前版本的初始里程碑,并可选补齐历史版本里程碑。
3
+ description: "初始化仓库的 GitHub Milestones 体系"
6
4
  ---
7
5
 
8
6
  # 初始化 GitHub Milestones
@@ -1,10 +1,6 @@
1
1
  ---
2
2
  name: plan-task
3
- description: >
4
- Design a technical plan for a task and output a detailed implementation
5
- plan. Triggered when the user asks for a design or technical plan after
6
- requirements analysis is complete. This is a mandatory human review
7
- checkpoint. Argument: task-id.
3
+ description: "Design a technical plan for a task"
8
4
  ---
9
5
 
10
6
  # Design Technical Plan
@@ -20,7 +16,7 @@ description: >
20
16
  ### 1. Verify Prerequisites
21
17
 
22
18
  Check required files:
23
- - `.agent-workspace/active/{task-id}/task.md` - Task file
19
+ - `.agents/workspace/active/{task-id}/task.md` - Task file
24
20
  - At least one analysis artifact: `analysis.md` or `analysis-r{N}.md`
25
21
 
26
22
  Note: `{task-id}` format is `TASK-{yyyyMMdd-HHmmss}`, for example `TASK-20260306-143022`
@@ -29,7 +25,7 @@ If any required file is missing, prompt the user to complete the prerequisite st
29
25
 
30
26
  ### 2. Determine the Plan Round
31
27
 
32
- Scan `.agent-workspace/active/{task-id}/` for plan artifact files:
28
+ Scan `.agents/workspace/active/{task-id}/` for plan artifact files:
33
29
  - If neither `plan.md` nor `plan-r*.md` exists -> this is Round 1 and must create `plan.md`
34
30
  - If `plan.md` exists and no `plan-r*.md` exists -> this is Round 2 and must create `plan-r2.md`
35
31
  - If `plan-r{N}.md` exists -> this is Round N+1 and must create `plan-r{N+1}.md`
@@ -77,7 +73,7 @@ Follow the `technical-design` step in `.agents/workflows/feature-development.yam
77
73
 
78
74
  ### 6. Output Plan Document
79
75
 
80
- Create `.agent-workspace/active/{task-id}/{plan-artifact}`.
76
+ Create `.agents/workspace/active/{task-id}/{plan-artifact}`.
81
77
 
82
78
  ### 7. Update Task Status
83
79
 
@@ -87,7 +83,7 @@ Get the current time:
87
83
  date "+%Y-%m-%d %H:%M:%S"
88
84
  ```
89
85
 
90
- Update `.agent-workspace/active/{task-id}/task.md`:
86
+ Update `.agents/workspace/active/{task-id}/task.md`:
91
87
  - `current_step`: technical-design
92
88
  - `assigned_to`: {current AI agent}
93
89
  - `updated_at`: {current time}
@@ -115,7 +111,7 @@ Plan summary:
115
111
  - Estimated complexity: {assessment}
116
112
 
117
113
  Output file:
118
- - Technical plan: .agent-workspace/active/{task-id}/{plan-artifact}
114
+ - Technical plan: .agents/workspace/active/{task-id}/{plan-artifact}
119
115
 
120
116
  Important: human review checkpoint.
121
117
  Please review the technical plan before continuing to implementation.
@@ -200,7 +196,7 @@ Next step - implement the task:
200
196
 
201
197
  - [ ] Read and understood the requirements analysis
202
198
  - [ ] Considered alternative options
203
- - [ ] Created the plan document `.agent-workspace/active/{task-id}/{plan-artifact}`
199
+ - [ ] Created the plan document `.agents/workspace/active/{task-id}/{plan-artifact}`
204
200
  - [ ] Updated `current_step` to technical-design in task.md
205
201
  - [ ] Updated `updated_at` to the current time in task.md
206
202
  - [ ] Recorded `{plan-artifact}` as a completed artifact in task.md
@@ -1,8 +1,6 @@
1
1
  ---
2
2
  name: plan-task
3
- description: >
4
- 为任务设计技术方案并输出详细的实施计划。当用户要求为已完成需求分析的任务设计方案或技术计划时触发。
5
- 这是一个强制性的人工审查检查点。参数:task-id。
3
+ description: "为任务设计技术方案和实施计划"
6
4
  ---
7
5
 
8
6
  # 设计技术方案
@@ -18,7 +16,7 @@ description: >
18
16
  ### 1. 验证前置条件
19
17
 
20
18
  检查必要文件:
21
- - `.agent-workspace/active/{task-id}/task.md` - 任务文件
19
+ - `.agents/workspace/active/{task-id}/task.md` - 任务文件
22
20
  - 至少一个分析产物:`analysis.md` 或 `analysis-r{N}.md`
23
21
 
24
22
  注意:`{task-id}` 格式为 `TASK-{yyyyMMdd-HHmmss}`,例如 `TASK-20260306-143022`
@@ -27,7 +25,7 @@ description: >
27
25
 
28
26
  ### 2. 确定方案轮次
29
27
 
30
- 扫描 `.agent-workspace/active/{task-id}/` 目录中的方案产物文件:
28
+ 扫描 `.agents/workspace/active/{task-id}/` 目录中的方案产物文件:
31
29
  - 如果不存在 `plan.md` 且不存在 `plan-r*.md` → 本轮为第 1 轮,产出 `plan.md`
32
30
  - 如果存在 `plan.md` 且不存在 `plan-r*.md` → 本轮为第 2 轮,产出 `plan-r2.md`
33
31
  - 如果存在 `plan-r{N}.md` → 本轮为第 N+1 轮,产出 `plan-r{N+1}.md`
@@ -75,7 +73,7 @@ description: >
75
73
 
76
74
  ### 6. 输出计划文档
77
75
 
78
- 创建 `.agent-workspace/active/{task-id}/{plan-artifact}`。
76
+ 创建 `.agents/workspace/active/{task-id}/{plan-artifact}`。
79
77
 
80
78
  ### 7. 更新任务状态
81
79
 
@@ -85,7 +83,7 @@ description: >
85
83
  date "+%Y-%m-%d %H:%M:%S"
86
84
  ```
87
85
 
88
- 更新 `.agent-workspace/active/{task-id}/task.md`:
86
+ 更新 `.agents/workspace/active/{task-id}/task.md`:
89
87
  - `current_step`:technical-design
90
88
  - `assigned_to`:{当前 AI 代理}
91
89
  - `updated_at`:{当前时间}
@@ -113,7 +111,7 @@ date "+%Y-%m-%d %H:%M:%S"
113
111
  - 预估复杂度:{评估}
114
112
 
115
113
  产出文件:
116
- - 技术方案:.agent-workspace/active/{task-id}/{plan-artifact}
114
+ - 技术方案:.agents/workspace/active/{task-id}/{plan-artifact}
117
115
 
118
116
  重要:人工审查检查点。
119
117
  请在继续实现之前审查技术方案。
@@ -198,7 +196,7 @@ date "+%Y-%m-%d %H:%M:%S"
198
196
 
199
197
  - [ ] 阅读并理解了需求分析
200
198
  - [ ] 考虑了备选方案
201
- - [ ] 创建了计划文档 `.agent-workspace/active/{task-id}/{plan-artifact}`
199
+ - [ ] 创建了计划文档 `.agents/workspace/active/{task-id}/{plan-artifact}`
202
200
  - [ ] 更新了 task.md 中的 `current_step` 为 technical-design
203
201
  - [ ] 更新了 task.md 中的 `updated_at` 为当前时间
204
202
  - [ ] 在 task.md 中记录了 `{plan-artifact}` 为已完成产物
@@ -1,94 +1,52 @@
1
1
  ---
2
2
  name: refine-task
3
- description: >
4
- Process code review feedback and fix the issues found in review. Fix items by
5
- priority (Blocker -> Major -> Minor). Only handle issues explicitly marked in
6
- the review; do not add unrelated changes. Triggered when the user asks to fix
7
- review findings. Argument: task-id.
3
+ description: "Handle code review feedback and fix issues"
8
4
  ---
9
5
 
10
- # Refine Review Findings
6
+ # Refine Task
7
+
8
+ Fix review findings and produce `refinement.md` or `refinement-r{N}.md`.
11
9
 
12
10
  ## Boundary / Critical Rules
13
11
 
14
- - Only fix issues that were explicitly identified in review -- do not add unrelated changes or extra "improvements"
15
- - Do NOT auto-commit. Never execute `git commit` or `git add`
16
- - After executing this skill, you **must** immediately update task status in task.md
12
+ - Fix only the issues documented in review artifacts
13
+ - Never auto-run `git add` or `git commit`
14
+ - After executing this skill, you **must** immediately update task.md
17
15
 
18
16
  ## Steps
19
17
 
20
18
  ### 1. Verify Prerequisites
21
19
 
22
- Check required files:
23
- - `.agent-workspace/active/{task-id}/task.md` - Task file
24
- - At least one review artifact: `review.md` or `review-r{N}.md`
25
-
26
- Note: `{task-id}` format is `TASK-{yyyyMMdd-HHmmss}`, for example `TASK-20260306-143022`
27
-
28
- If `task.md` is missing or there is no review artifact, prompt the user to complete the prerequisite step first.
20
+ Require:
21
+ - `.agents/workspace/active/{task-id}/task.md`
22
+ - at least one review artifact: `review.md` or `review-r{N}.md`
29
23
 
30
- Then perform this discovery and validation:
31
- 1. Scan review artifact files in the task directory (`review.md`, `review-r{N}.md`)
32
- 2. Use the highest-round review artifact as the input for this refinement round and record it as `{review-artifact}`
33
- 3. Scan refinement artifact files (`refinement.md`, `refinement-r{N}.md`) and determine the current refinement artifact:
34
- - If neither `refinement.md` nor `refinement-r*.md` exists -> this is Round 1 and must create `refinement.md`
35
- - If `refinement.md` exists and no `refinement-r*.md` exists -> this is Round 2 and must create `refinement-r2.md`
36
- - If `refinement-r{N}.md` exists -> this is Round N+1 and must create `refinement-r{N+1}.md`
37
- - Record `{refinement-round}` and `{refinement-artifact}`
38
- 4. Scan implementation report files (`implementation.md`, `implementation-r{N}.md`) and use the highest-round artifact as the implementation context `{implementation-artifact}`
39
- - Record `{implementation-artifact}`
40
- 5. **Consistency check**: verify that the most recent Code Review entry in `task.md` `## Activity Log` matches the round number and filename of the latest review artifact found in Step 2
24
+ During prerequisite discovery, record `{review-artifact}`, `{refinement-round}`, `{refinement-artifact}`, and Record `{implementation-artifact}` from the latest implementation report.
41
25
 
42
- If the Activity Log entry does not match the actual file, stop immediately and prompt:
26
+ Also validate the latest Code Review entry in Activity Log. If it points to a missing file, stop with:
43
27
  `Review artifact mismatch: Activity Log references {expected} but file not found. Please verify the review artifact exists.`
44
28
 
45
29
  ### 2. Read Review and Implementation Context
46
30
 
47
- Carefully read the latest review artifact `{review-artifact}` and implementation artifact `{implementation-artifact}` identified in Step 1 to understand:
48
- - All blockers (must fix)
49
- - All major issues (should fix)
50
- - Minor issues (optional improvements)
51
- - Reviewer recommendations and suggestions
52
- - The context of the current implementation and previous refinements
53
-
54
- ### 3. Plan the Fixes
55
-
56
- Classify and prioritize:
57
- 1. **Blockers first**: all blockers must be resolved
58
- 2. **Then major issues**: handle all major issues
59
- 3. **Finally minor issues**: fix if appropriate (optional)
31
+ Read the latest `{review-artifact}` and `{implementation-artifact}` before editing any code.
60
32
 
61
- For each issue, determine:
62
- - Which files need to be modified
63
- - What exact change is required
64
- - How to verify the fix
33
+ ### 3. Plan and Apply the Fixes
65
34
 
66
- ### 4. Execute the Fixes
35
+ Prioritize Blocker -> Major -> Minor and keep changes tightly scoped.
67
36
 
68
- Fix issues in priority order:
37
+ > The detailed fix workflow, repair order, and verification loop live in `reference/fix-workflow.md`. Read `reference/fix-workflow.md` before making changes.
69
38
 
70
- **For each fix**:
71
- 1. Read the affected file
72
- 2. Apply the fix
73
- 3. Verify that the change resolves the review finding
74
- 4. Run relevant tests
39
+ ### 4. Run Test Verification
75
40
 
76
- **Refinement principles**:
77
- - Only fix marked review issues -- do not add unrelated changes
78
- - Do not add extra "improvements" beyond the scope of the review
79
- - Keep the changes minimal and focused
41
+ Run the project test command after the fixes and keep the repair cycle focused on the documented findings.
80
42
 
81
- ### 5. Run Test Verification
43
+ ### 5. Write the Refinement Report
82
44
 
83
- Execute the project's test command. Reference the `test` skill for the project-specific test command.
45
+ Create `.agents/workspace/active/{task-id}/{refinement-artifact}`.
84
46
 
85
- Ensure all tests still pass after the fixes.
47
+ > The report structure and example sections live in `reference/report-template.md`. Read `reference/report-template.md` before writing the report.
86
48
 
87
- ### 6. Create Refinement Report
88
-
89
- Create `.agent-workspace/active/{task-id}/{refinement-artifact}`.
90
-
91
- ### 7. Update Task Status
49
+ ### 6. Update Task Status
92
50
 
93
51
  Get the current time:
94
52
 
@@ -96,115 +54,33 @@ Get the current time:
96
54
  date "+%Y-%m-%d %H:%M:%S"
97
55
  ```
98
56
 
99
- Update `.agent-workspace/active/{task-id}/task.md`:
100
- - `current_step`: refinement
101
- - `assigned_to`: {current AI agent}
102
- - `updated_at`: {current time}
103
- - Record the refinement artifact for this round: `{refinement-artifact}` (Round `{refinement-round}`)
104
- - **Append** to `## Activity Log` (do NOT overwrite previous entries):
105
- ```
106
- - {yyyy-MM-dd HH:mm:ss} — **Refinement (Round {N}, for {review-artifact})** by {agent} — Fixed {n} blockers, {n} major, {n} minor issues → {refinement-artifact}
107
- ```
108
-
109
- ### 8. Inform User
110
-
111
- > **IMPORTANT**: All TUI command formats listed below must be output in full. Do not show only the format for the current AI agent.
112
-
113
- > **⚠️ CONDITION CHECK — before showing the two next steps below, you must judge the result of this refinement round first:**
114
- >
115
- > - If this round fixed any `Blocker` or `Major` issue, or the changes touched core logic or test scope broadly, **default recommendation** is "Run review again"
116
- > - If this round fixed only `Minor` issues and the change scope is small and low-risk, "Commit directly" may be offered as an option
117
- > - If any `Blocker` or `Major` issue remains unresolved, **do not** imply that direct commit is acceptable; explicitly tell the user to continue fixing or re-run review
118
- >
119
- > **Do not present "Commit directly" as the default path unless you are sure no high-risk issue remains.**
120
-
121
- Output format:
122
- ```
123
- Refinement complete for task {task-id}.
124
-
125
- Fix summary:
126
- - Blockers fixed: {count}/{total}
127
- - Major issues fixed: {count}/{total}
128
- - Minor issues fixed: {count}/{total}
129
- - All tests passing: {yes/no}
130
- - Review input: {review-artifact}
131
- - Refinement artifact: {refinement-artifact}
132
-
133
- Next step - re-review or commit:
134
- - Run review again (default recommendation; prioritize this after Blocker/Major fixes):
135
- - Claude Code / OpenCode: /review-task {task-id}
136
- - Gemini CLI: /{{project}}:review-task {task-id}
137
- - Codex CLI: $review-task {task-id}
138
- - Commit directly (only when only Minor issues were fixed and risk is low):
139
- - Claude Code / OpenCode: /commit
140
- - Gemini CLI: /{{project}}:commit
141
- - Codex CLI: $commit
142
- ```
57
+ Update task.md and append:
58
+ `- {yyyy-MM-dd HH:mm:ss} — **Refinement (Round {N}, for {review-artifact})** by {agent} — Fixed {n} blockers, {n} major, {n} minor issues → {refinement-artifact}`
143
59
 
144
- ## Output Template
60
+ ### 7. Inform User
145
61
 
146
- ```markdown
147
- # Refinement Report
148
-
149
- - **Refinement round**: Round {refinement-round}
150
- - **Artifact file**: `{refinement-artifact}`
151
- - **Review input**: `{review-artifact}`
152
- - **Implementation context**: `{implementation-artifact}`
153
-
154
- ### Review Feedback Handling
155
-
156
- #### Blocker Fixes
157
- 1. **{Issue title}** (from {review-artifact})
158
- - **Fix**: {What changed}
159
- - **File**: `{file-path}:{line-number}`
160
- - **Validation**: {How it was verified}
161
-
162
- #### Major Issue Fixes
163
- 1. **{Issue title}** (from {review-artifact})
164
- - **Fix**: {What changed}
165
- - **File**: `{file-path}:{line-number}`
166
-
167
- #### Minor Issue Handling
168
- 1. **{Issue title}** (from {review-artifact})
169
- - **Fix**: {What changed}
170
-
171
- #### Unresolved Issues
172
- - {Issue}: {Reason it was not handled, for example disagreement with the review suggestion}
173
-
174
- ### Test Results After Refinement
175
- - All tests passing: {yes/no}
176
- - Test output: {Summary}
177
- ```
62
+ Recommend re-review by default when Blocker or Major issues were fixed. Only present direct commit as a low-risk option when the changes are truly minor.
178
63
 
179
64
  ## Completion Checklist
180
65
 
181
- - [ ] Read and understood all review findings
182
- - [ ] Fixed all blockers
183
- - [ ] Fixed all major issues
184
- - [ ] Addressed minor issues when appropriate
185
- - [ ] All tests pass after the fixes
186
- - [ ] Created refinement report `{refinement-artifact}`
187
- - [ ] Updated task status in task.md
188
- - [ ] Appended an Activity Log entry to task.md
189
- - [ ] Informed the user of the next step (must include all TUI command formats without filtering)
66
+ - [ ] Read the latest review and implementation context
67
+ - [ ] Fixed all required Blocker and Major findings
68
+ - [ ] Wrote `{refinement-artifact}`
69
+ - [ ] Updated task.md and appended the Activity Log entry
70
+ - [ ] Recommended the correct next step based on residual risk
190
71
 
191
72
  ## Notes
192
73
 
193
- 1. **Prerequisite**: A review report must exist (`review.md` or `review-r{N}.md`)
194
- 2. **No auto-commit**: Do NOT execute `git commit`. Remind the user to commit manually
195
- 3. **Scope discipline**: Only fix issues marked in review -- do not add extra changes
196
- 4. **Disagreement**: If you disagree with a review finding, record your reasoning in "Unresolved Issues"
197
- 5. **Re-review**: After fixing blockers, re-run `review-task` to validate the result
198
- 6. **Consistency requirement**: The latest review artifact, Activity Log entry, and refinement report title must all reference the same review round
199
- 7. **Versioning rule**: First refinement uses `refinement.md`; later rounds use `refinement-r{N}.md`
74
+ - Round 1 uses `refinement.md`; later rounds use `refinement-r{N}.md`
75
+ - Record any disagreement with a review comment under unresolved issues in the report
76
+ - Do not expand scope beyond the review findings
200
77
 
201
78
  ## STOP
202
79
 
203
- After completing the checklist, **stop immediately**. Wait for the user to review the fixes and decide whether to run review again or commit.
80
+ Stop after the checklist is complete.
204
81
 
205
82
  ## Error Handling
206
83
 
207
- - Task not found: Prompt "Task {task-id} not found"
208
- - Missing review report: Prompt "Review report not found, please run the review-task skill first"
209
- - Review artifact mismatch: Prompt "Review artifact mismatch: Activity Log references {expected} but file not found. Please verify the review artifact exists."
210
- - Test failure after fixes: Output the test errors and ask the user how to proceed
84
+ - Task not found: `Task {task-id} not found`
85
+ - Missing review report: `Review report not found, please run the review-task skill first`
86
+ - Review artifact mismatch: `Review artifact mismatch: Activity Log references {expected} but file not found. Please verify the review artifact exists.`