@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
@@ -8,12 +8,22 @@ This guide walks you through using multiple AI coding assistants together on a p
8
8
  - A project with `.agents/` directory set up (this project)
9
9
  - Familiarity with your project's codebase
10
10
 
11
+ ## Git Hook Setup
12
+
13
+ Enable the shared Git hooks path before relying on the template hook chain:
14
+
15
+ ```bash
16
+ git config core.hooksPath .github/hooks
17
+ ```
18
+
19
+ This makes Git invoke the hooks synced into `.github/hooks/`, including `pre-commit` and `check-version-format.sh`.
20
+
11
21
  ## Creating Your First Task
12
22
 
13
23
  1. Copy the task template to the active workspace:
14
24
 
15
25
  ```bash
16
- cp .agents/templates/task.md .agent-workspace/active/task-001.md
26
+ cp .agents/templates/task.md .agents/workspace/active/task-001.md
17
27
  ```
18
28
 
19
29
  2. Fill in the task metadata:
@@ -49,7 +59,7 @@ Claude Code excels at codebase exploration and understanding complex relationshi
49
59
  gemini
50
60
 
51
61
  # Example prompt:
52
- # "Based on the analysis in .agent-workspace/active/task-001.md,
62
+ # "Based on the analysis in .agents/workspace/active/task-001.md,
53
63
  # create a technical design. Define interfaces and outline the approach."
54
64
  ```
55
65
 
@@ -60,7 +70,7 @@ gemini
60
70
  codex
61
71
 
62
72
  # Example prompt:
63
- # "Implement the changes described in .agent-workspace/active/task-001.md.
73
+ # "Implement the changes described in .agents/workspace/active/task-001.md.
64
74
  # Follow the design section. Create a new branch for this work."
65
75
  ```
66
76
 
@@ -87,7 +97,7 @@ claude
87
97
 
88
98
  ```bash
89
99
  # Quick bug fix workflow
90
- cp .agents/templates/task.md .agent-workspace/active/bugfix-001.md
100
+ cp .agents/templates/task.md .agents/workspace/active/bugfix-001.md
91
101
  # Edit the task, then:
92
102
  # 1. Use Claude Code to analyze
93
103
  # 2. Use Codex/Cursor to fix
@@ -101,7 +111,7 @@ cp .agents/templates/task.md .agent-workspace/active/bugfix-001.md
101
111
  3. **Report**: Generate review report from template.
102
112
 
103
113
  ```bash
104
- cp .agents/templates/review-report.md .agent-workspace/active/review-pr-42.md
114
+ cp .agents/templates/review-report.md .agents/workspace/active/review-pr-42.md
105
115
  # Use Claude Code to fill in the review
106
116
  ```
107
117
 
@@ -113,7 +123,7 @@ cp .agents/templates/review-report.md .agent-workspace/active/review-pr-42.md
113
123
  4. **Verify** (Claude Code): Ensure no regressions, run tests.
114
124
 
115
125
  ```bash
116
- cp .agents/templates/task.md .agent-workspace/active/refactor-001.md
126
+ cp .agents/templates/task.md .agents/workspace/active/refactor-001.md
117
127
  # Follow the refactoring workflow in .agents/workflows/refactoring.yaml
118
128
  ```
119
129
 
@@ -122,7 +132,7 @@ cp .agents/templates/task.md .agent-workspace/active/refactor-001.md
122
132
  When switching between AI tools, create a handoff document:
123
133
 
124
134
  ```bash
125
- cp .agents/templates/handoff.md .agent-workspace/active/handoff-task-001-phase2.md
135
+ cp .agents/templates/handoff.md .agents/workspace/active/handoff-task-001-phase2.md
126
136
  ```
127
137
 
128
138
  Fill in:
@@ -8,12 +8,22 @@
8
8
  - 项目已设置 `.agents/` 目录(本项目已就绪)
9
9
  - 熟悉你的项目代码库
10
10
 
11
+ ## Git Hook 配置
12
+
13
+ 在依赖模板中的 Git hook 链路前,先启用共享 hooks 路径:
14
+
15
+ ```bash
16
+ git config core.hooksPath .github/hooks
17
+ ```
18
+
19
+ 这样 Git 才会调用同步到 `.github/hooks/` 下的 hook,包括 `pre-commit` 和 `check-version-format.sh`。
20
+
11
21
  ## 创建第一个任务
12
22
 
13
23
  1. 将任务模板复制到活跃工作区:
14
24
 
15
25
  ```bash
16
- cp .agents/templates/task.zh-CN.md .agent-workspace/active/task-001.md
26
+ cp .agents/templates/task.zh-CN.md .agents/workspace/active/task-001.md
17
27
  ```
18
28
 
19
29
  2. 填写任务元数据:
@@ -49,7 +59,7 @@ Claude Code 擅长代码库探索和理解文件间的复杂关系。
49
59
  gemini
50
60
 
51
61
  # 示例提示:
52
- # "基于 .agent-workspace/active/task-001.md 中的分析结果,
62
+ # "基于 .agents/workspace/active/task-001.md 中的分析结果,
53
63
  # 创建技术设计方案。定义接口并概述实现思路。"
54
64
  ```
55
65
 
@@ -60,7 +70,7 @@ gemini
60
70
  codex
61
71
 
62
72
  # 示例提示:
63
- # "实现 .agent-workspace/active/task-001.md 中描述的变更。
73
+ # "实现 .agents/workspace/active/task-001.md 中描述的变更。
64
74
  # 遵循设计部分。为此工作创建新分支。"
65
75
  ```
66
76
 
@@ -87,7 +97,7 @@ claude
87
97
 
88
98
  ```bash
89
99
  # 快速缺陷修复工作流
90
- cp .agents/templates/task.zh-CN.md .agent-workspace/active/bugfix-001.md
100
+ cp .agents/templates/task.zh-CN.md .agents/workspace/active/bugfix-001.md
91
101
  # 编辑任务,然后:
92
102
  # 1. 使用 Claude Code 分析
93
103
  # 2. 使用 Codex/Cursor 修复
@@ -101,7 +111,7 @@ cp .agents/templates/task.zh-CN.md .agent-workspace/active/bugfix-001.md
101
111
  3. **报告**:从模板生成审查报告。
102
112
 
103
113
  ```bash
104
- cp .agents/templates/review-report.zh-CN.md .agent-workspace/active/review-pr-42.md
114
+ cp .agents/templates/review-report.zh-CN.md .agents/workspace/active/review-pr-42.md
105
115
  # 使用 Claude Code 填写审查内容
106
116
  ```
107
117
 
@@ -113,7 +123,7 @@ cp .agents/templates/review-report.zh-CN.md .agent-workspace/active/review-pr-42
113
123
  4. **验证**(Claude Code):确保没有回归问题,运行测试。
114
124
 
115
125
  ```bash
116
- cp .agents/templates/task.zh-CN.md .agent-workspace/active/refactor-001.md
126
+ cp .agents/templates/task.zh-CN.md .agents/workspace/active/refactor-001.md
117
127
  # 按照 .agents/workflows/refactoring.zh-CN.yaml 中的重构工作流执行
118
128
  ```
119
129
 
@@ -122,7 +132,7 @@ cp .agents/templates/task.zh-CN.md .agent-workspace/active/refactor-001.md
122
132
  在 AI 工具之间切换时,创建交接文档:
123
133
 
124
134
  ```bash
125
- cp .agents/templates/handoff.zh-CN.md .agent-workspace/active/handoff-task-001-phase2.md
135
+ cp .agents/templates/handoff.zh-CN.md .agents/workspace/active/handoff-task-001-phase2.md
126
136
  ```
127
137
 
128
138
  填写:
@@ -36,12 +36,11 @@ This dual-config approach ensures every AI tool receives appropriate project con
36
36
  bug-fix.yaml # Bug fix workflow
37
37
  code-review.yaml # Code review workflow
38
38
  refactoring.yaml # Refactoring workflow
39
-
40
- .agent-workspace/ # Runtime workspace (git-ignored)
41
- active/ # Currently active tasks
42
- blocked/ # Blocked tasks
43
- completed/ # Completed tasks
44
- logs/ # Collaboration logs
39
+ workspace/ # Runtime workspace (git-ignored)
40
+ active/ # Currently active tasks
41
+ blocked/ # Blocked tasks
42
+ completed/ # Completed tasks
43
+ logs/ # Collaboration logs
45
44
 
46
45
  .claude/ # Claude Code specific config
47
46
  CLAUDE.md # Project instructions for Claude
@@ -53,11 +52,12 @@ This dual-config approach ensures every AI tool receives appropriate project con
53
52
 
54
53
  The multi-AI collaboration follows a structured workflow:
55
54
 
56
- ```
57
- 1. Analysis --> 2. Design --> 3. Implementation
58
- |
59
- 6. Commit <-- 5. Fix Issues <-- 4. Review
60
- ```
55
+ 1. Analysis
56
+ 2. Design
57
+ 3. Implementation
58
+ 4. Review
59
+ 5. Fix Issues
60
+ 6. Commit
61
61
 
62
62
  ### Phase Details
63
63
 
@@ -95,7 +95,7 @@ Each AI tool has different strengths. Use them accordingly:
95
95
  ## Quick Start
96
96
 
97
97
  1. **Read the quick start guide**: See `QUICKSTART.md` for step-by-step instructions.
98
- 2. **Create a task**: Copy `.agents/templates/task.md` to `.agent-workspace/active/`.
98
+ 2. **Create a task**: Copy `.agents/templates/task.md` to `.agents/workspace/active/`.
99
99
  3. **Assign to an AI**: Update the `assigned_to` field in the task metadata.
100
100
  4. **Run the workflow**: Follow the appropriate workflow in `.agents/workflows/`.
101
101
  5. **Hand off**: When switching AIs, create a handoff document from the template.
@@ -123,6 +123,13 @@ When writing or updating `.agents/skills/*/SKILL.md` files and their templates,
123
123
  5. When renumbering, update every in-document step reference so the instructions remain accurate.
124
124
  6. Extract long bash scripts into a sibling `scripts/` directory; the SKILL.md should contain only a single-line invocation (e.g., `bash .agents/skills/<skill>/scripts/<script>.sh`) and a brief summary of the script's responsibilities.
125
125
 
126
+ ### SKILL.md Size Control
127
+
128
+ - Keep the SKILL.md body within about 500 tokens (roughly 80 lines / 2KB).
129
+ - Move content beyond that threshold into a sibling `reference/` directory.
130
+ - Use explicit navigation in the skeleton, such as: `Read reference/xxx.md before executing this step.`
131
+ - Keep scripts in `scripts/` and execute them instead of inlining long bash blocks.
132
+
126
133
  ## FAQ
127
134
 
128
135
  ### Q: Do I need to configure every AI tool separately?
@@ -131,7 +138,7 @@ No. Claude Code reads from `.claude/CLAUDE.md`, and all other tools read from `A
131
138
 
132
139
  ### Q: How do tasks get passed between AI tools?
133
140
 
134
- Through handoff documents stored in `.agent-workspace/`. Each handoff includes context, progress, and next steps so the receiving AI can continue seamlessly.
141
+ Through handoff documents stored in `.agents/workspace/`. Each handoff includes context, progress, and next steps so the receiving AI can continue seamlessly.
135
142
 
136
143
  ### Q: What if an AI tool doesn't support AGENTS.md?
137
144
 
@@ -143,4 +150,4 @@ It's not recommended. The workflow model is sequential -- one AI per phase. Para
143
150
 
144
151
  ### Q: Where are runtime files stored?
145
152
 
146
- In `.agent-workspace/`, which is git-ignored. Only templates and workflow definitions in `.agents/` are version-controlled.
153
+ In `.agents/workspace/`, which is git-ignored. Only templates and workflow definitions in `.agents/` are version-controlled.
@@ -36,12 +36,11 @@
36
36
  bug-fix.yaml # 缺陷修复工作流
37
37
  code-review.yaml # 代码审查工作流
38
38
  refactoring.yaml # 重构工作流
39
-
40
- .agent-workspace/ # 运行时工作区(已被 git ignore)
41
- active/ # 当前活跃任务
42
- blocked/ # 被阻塞的任务
43
- completed/ # 已完成的任务
44
- logs/ # 协作日志
39
+ workspace/ # 运行时工作区(已被 git ignore)
40
+ active/ # 当前活跃任务
41
+ blocked/ # 被阻塞的任务
42
+ completed/ # 已完成的任务
43
+ logs/ # 协作日志
45
44
 
46
45
  .claude/ # Claude Code 专属配置
47
46
  CLAUDE.md # Claude 项目指令
@@ -53,11 +52,12 @@
53
52
 
54
53
  多 AI 协作遵循结构化工作流:
55
54
 
56
- ```
57
- 1. 分析 --> 2. 设计 --> 3. 实现
58
- |
59
- 6. 提交 <-- 5. 修复问题 <-- 4. 审查
60
- ```
55
+ 1. 分析
56
+ 2. 设计
57
+ 3. 实现
58
+ 4. 审查
59
+ 5. 修复问题
60
+ 6. 提交
61
61
 
62
62
  ### 阶段详情
63
63
 
@@ -95,7 +95,7 @@
95
95
  ## 快速入门
96
96
 
97
97
  1. **阅读快速入门指南**:参见 `QUICKSTART.zh-CN.md` 获取分步说明。
98
- 2. **创建任务**:将 `.agents/templates/task.zh-CN.md` 复制到 `.agent-workspace/active/`。
98
+ 2. **创建任务**:将 `.agents/templates/task.zh-CN.md` 复制到 `.agents/workspace/active/`。
99
99
  3. **分配给 AI**:更新任务元数据中的 `assigned_to` 字段。
100
100
  4. **执行工作流**:按照 `.agents/workflows/` 中相应的工作流执行。
101
101
  5. **交接**:切换 AI 时,从模板创建交接文档。
@@ -123,6 +123,13 @@
123
123
  5. 调整编号时,必须同步更新文中的步骤引用,确保说明、命令和检查点一致。
124
124
  6. 长 bash 脚本应从 SKILL.md 提取到同级 `scripts/` 目录中,SKILL.md 只保留单行调用(如 `bash .agents/skills/<skill>/scripts/<script>.sh`)和对脚本职责的概要说明。
125
125
 
126
+ ### SKILL.md 体积控制
127
+
128
+ - SKILL.md 正文控制在约 500 tokens(约 80 行 / 2KB)以内。
129
+ - 超过阈值的内容拆分到同级 `reference/` 目录。
130
+ - 骨架中使用明确导航,例如:`执行此步骤前,先读取 reference/xxx.md。`
131
+ - 长脚本继续放在 `scripts/` 目录,优先执行脚本而不是内联大段 bash。
132
+
126
133
  ## 常见问题
127
134
 
128
135
  ### Q:我需要单独配置每个 AI 工具吗?
@@ -131,7 +138,7 @@
131
138
 
132
139
  ### Q:任务如何在 AI 工具之间传递?
133
140
 
134
- 通过存储在 `.agent-workspace/` 中的交接文档。每份交接文档包含上下文、进度和后续步骤,让接收方 AI 能无缝接续。
141
+ 通过存储在 `.agents/workspace/` 中的交接文档。每份交接文档包含上下文、进度和后续步骤,让接收方 AI 能无缝接续。
135
142
 
136
143
  ### Q:如果某个 AI 工具不支持 AGENTS.md 怎么办?
137
144
 
@@ -143,4 +150,4 @@
143
150
 
144
151
  ### Q:运行时文件存储在哪里?
145
152
 
146
- 在 `.agent-workspace/` 中,该目录已被 git ignore。只有 `.agents/` 中的模板和工作流定义受版本控制。
153
+ 在 `.agents/workspace/` 中,该目录已被 git ignore。只有 `.agents/` 中的模板和工作流定义受版本控制。
@@ -1,9 +1,6 @@
1
1
  ---
2
2
  name: analyze-task
3
- description: >
4
- Analyze an existing task and output a requirements analysis document,
5
- supporting multi-round artifacts (`analysis.md` / `analysis-r{N}.md`).
6
- Triggered when the user asks to analyze a task. Argument: task-id.
3
+ description: "Analyze a task and produce a requirements document"
7
4
  ---
8
5
 
9
6
  # Analyze Task
@@ -19,7 +16,7 @@ description: >
19
16
  ### 1. Verify Prerequisites
20
17
 
21
18
  Check required files:
22
- - `.agent-workspace/active/{task-id}/task.md` - Task file
19
+ - `.agents/workspace/active/{task-id}/task.md` - Task file
23
20
 
24
21
  Note: `{task-id}` format is `TASK-{yyyyMMdd-HHmmss}`, for example `TASK-20260306-143022`
25
22
 
@@ -27,7 +24,7 @@ If `task.md` is missing, tell the user to create or import the task first.
27
24
 
28
25
  ### 2. Determine the Analysis Round
29
26
 
30
- Scan `.agent-workspace/active/{task-id}/` for analysis artifact files:
27
+ Scan `.agents/workspace/active/{task-id}/` for analysis artifact files:
31
28
  - If neither `analysis.md` nor `analysis-r*.md` exists -> this is Round 1 and must create `analysis.md`
32
29
  - If `analysis.md` exists and no `analysis-r*.md` exists -> this is Round 2 and must create `analysis-r2.md`
33
30
  - If `analysis-r{N}.md` exists -> this is Round N+1 and must create `analysis-r{N+1}.md`
@@ -61,7 +58,7 @@ Follow the `analysis` step in `.agents/workflows/feature-development.yaml`:
61
58
 
62
59
  ### 5. Output Analysis Document
63
60
 
64
- Create `.agent-workspace/active/{task-id}/{analysis-artifact}`.
61
+ Create `.agents/workspace/active/{task-id}/{analysis-artifact}`.
65
62
 
66
63
  ## Output Template
67
64
 
@@ -109,7 +106,7 @@ Get the current time:
109
106
  date "+%Y-%m-%d %H:%M:%S"
110
107
  ```
111
108
 
112
- Update `.agent-workspace/active/{task-id}/task.md`:
109
+ Update `.agents/workspace/active/{task-id}/task.md`:
113
110
  - `current_step`: requirement-analysis
114
111
  - `assigned_to`: {current AI agent}
115
112
  - `updated_at`: {current time}
@@ -135,7 +132,7 @@ Summary:
135
132
  - Risk level: {assessment}
136
133
 
137
134
  Output file:
138
- - Analysis report: .agent-workspace/active/{task-id}/{analysis-artifact}
135
+ - Analysis report: .agents/workspace/active/{task-id}/{analysis-artifact}
139
136
 
140
137
  Next step - create technical plan:
141
138
  - Claude Code / OpenCode: /plan-task {task-id}
@@ -146,7 +143,7 @@ Next step - create technical plan:
146
143
  ## Completion Checklist
147
144
 
148
145
  - [ ] Read and understood the task file and source information
149
- - [ ] Created analysis document `.agent-workspace/active/{task-id}/{analysis-artifact}`
146
+ - [ ] Created analysis document `.agents/workspace/active/{task-id}/{analysis-artifact}`
150
147
  - [ ] Updated `current_step` to requirement-analysis in task.md
151
148
  - [ ] Updated `updated_at` to the current time in task.md
152
149
  - [ ] Updated `assigned_to` in task.md
@@ -1,8 +1,6 @@
1
1
  ---
2
2
  name: analyze-task
3
- description: >
4
- 分析已有任务并输出需求分析文档,支持多轮分析产物(analysis.md / analysis-r{N}.md)。
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
 
23
21
  注意:`{task-id}` 格式为 `TASK-{yyyyMMdd-HHmmss}`,例如 `TASK-20260306-143022`
24
22
 
@@ -26,7 +24,7 @@ description: >
26
24
 
27
25
  ### 2. 确定分析轮次
28
26
 
29
- 扫描 `.agent-workspace/active/{task-id}/` 目录中的分析产物文件:
27
+ 扫描 `.agents/workspace/active/{task-id}/` 目录中的分析产物文件:
30
28
  - 如果不存在 `analysis.md` 且不存在 `analysis-r*.md` → 本轮为第 1 轮,产出 `analysis.md`
31
29
  - 如果存在 `analysis.md` 且不存在 `analysis-r*.md` → 本轮为第 2 轮,产出 `analysis-r2.md`
32
30
  - 如果存在 `analysis-r{N}.md` → 本轮为第 N+1 轮,产出 `analysis-r{N+1}.md`
@@ -60,7 +58,7 @@ description: >
60
58
 
61
59
  ### 5. 输出分析文档
62
60
 
63
- 创建 `.agent-workspace/active/{task-id}/{analysis-artifact}`。
61
+ 创建 `.agents/workspace/active/{task-id}/{analysis-artifact}`。
64
62
 
65
63
  ## 输出模板
66
64
 
@@ -108,7 +106,7 @@ description: >
108
106
  date "+%Y-%m-%d %H:%M:%S"
109
107
  ```
110
108
 
111
- 更新 `.agent-workspace/active/{task-id}/task.md`:
109
+ 更新 `.agents/workspace/active/{task-id}/task.md`:
112
110
  - `current_step`:requirement-analysis
113
111
  - `assigned_to`:{当前 AI 代理}
114
112
  - `updated_at`:{当前时间}
@@ -134,7 +132,7 @@ date "+%Y-%m-%d %H:%M:%S"
134
132
  - 风险等级:{评估}
135
133
 
136
134
  产出文件:
137
- - 分析报告:.agent-workspace/active/{task-id}/{analysis-artifact}
135
+ - 分析报告:.agents/workspace/active/{task-id}/{analysis-artifact}
138
136
 
139
137
  下一步 - 设计技术方案:
140
138
  - Claude Code / OpenCode:/plan-task {task-id}
@@ -145,7 +143,7 @@ date "+%Y-%m-%d %H:%M:%S"
145
143
  ## 完成检查清单
146
144
 
147
145
  - [ ] 阅读并理解了任务文件和来源信息
148
- - [ ] 创建了分析文档 `.agent-workspace/active/{task-id}/{analysis-artifact}`
146
+ - [ ] 创建了分析文档 `.agents/workspace/active/{task-id}/{analysis-artifact}`
149
147
  - [ ] 更新了 task.md 中的 `current_step` 为 requirement-analysis
150
148
  - [ ] 更新了 task.md 中的 `updated_at` 为当前时间
151
149
  - [ ] 更新了 task.md 中的 `assigned_to`
@@ -1,10 +1,6 @@
1
1
  ---
2
2
  name: block-task
3
- description: >
4
- Mark a task as blocked and record the blocking reason, moving it from
5
- the active directory to the blocked directory. Use when a task cannot
6
- proceed due to technical problems, unclear requirements, missing resources,
7
- or pending decisions. Arguments: task-id, optional blocking reason.
3
+ description: "Mark a task as blocked and record the reason"
8
4
  ---
9
5
 
10
6
  # Block Task
@@ -25,7 +21,7 @@ description: >
25
21
 
26
22
  ### 1. Verify Task Exists
27
23
 
28
- Check that the task exists in `.agent-workspace/active/{task-id}/`.
24
+ Check that the task exists in `.agents/workspace/active/{task-id}/`.
29
25
 
30
26
  Note: `{task-id}` format is `TASK-{yyyyMMdd-HHmmss}`, e.g. `TASK-20260306-143022`
31
27
 
@@ -47,7 +43,7 @@ Get the current time:
47
43
  date "+%Y-%m-%d %H:%M:%S"
48
44
  ```
49
45
 
50
- Update `.agent-workspace/active/{task-id}/task.md`:
46
+ Update `.agents/workspace/active/{task-id}/task.md`:
51
47
  - `status`: blocked
52
48
  - `blocked_at`: {current timestamp}
53
49
  - `updated_at`: {current timestamp}
@@ -61,13 +57,13 @@ Add a blocking information section to task.md.
61
57
  ### 4. Move Task to Blocked Directory
62
58
 
63
59
  ```bash
64
- mv .agent-workspace/active/{task-id} .agent-workspace/blocked/{task-id}
60
+ mv .agents/workspace/active/{task-id} .agents/workspace/blocked/{task-id}
65
61
  ```
66
62
 
67
63
  ### 5. Verify Move
68
64
 
69
65
  ```bash
70
- ls .agent-workspace/blocked/{task-id}/task.md
66
+ ls .agents/workspace/blocked/{task-id}/task.md
71
67
  ```
72
68
 
73
69
  ### 6. Sync to Issue (Optional)
@@ -93,10 +89,10 @@ Task {task-id} marked as blocked.
93
89
 
94
90
  Blocking reason: {summary}
95
91
  Required to unblock: {what's needed}
96
- Archived to: .agent-workspace/blocked/{task-id}/
92
+ Archived to: .agents/workspace/blocked/{task-id}/
97
93
 
98
94
  To unblock when the issue is resolved:
99
- mv .agent-workspace/blocked/{task-id} .agent-workspace/active/{task-id}
95
+ mv .agents/workspace/blocked/{task-id} .agents/workspace/active/{task-id}
100
96
  # Then update task.md: status -> active, remove blocked_at
101
97
  ```
102
98
 
@@ -133,7 +129,7 @@ Blocking information section to add to task.md:
133
129
 
134
130
  - [ ] Analyzed and documented the blocking reason
135
131
  - [ ] Updated task.md with blocked status and blocking information
136
- - [ ] Moved task directory to `.agent-workspace/blocked/`
132
+ - [ ] Moved task directory to `.agents/workspace/blocked/`
137
133
  - [ ] Verified move succeeded
138
134
  - [ ] Informed user how to unblock
139
135
 
@@ -143,7 +139,7 @@ When the blocking issue is resolved:
143
139
 
144
140
  ```bash
145
141
  # 1. Move back to active
146
- mv .agent-workspace/blocked/{task-id} .agent-workspace/active/{task-id}
142
+ mv .agents/workspace/blocked/{task-id} .agents/workspace/active/{task-id}
147
143
 
148
144
  # 2. Update task.md: set status to active, update timestamps
149
145
  # 3. Resume from where you left off (check current_step)
@@ -1,9 +1,6 @@
1
1
  ---
2
2
  name: block-task
3
- description: >
4
- 标记任务为阻塞状态并记录阻塞原因,将其从 active 目录移动到 blocked 目录。
5
- 当任务因技术问题、需求不清晰、缺少资源或待定决策而无法继续时使用。
6
- 参数:task-id,可选的阻塞原因。
3
+ description: "标记任务为阻塞状态并记录原因"
7
4
  ---
8
5
 
9
6
  # 标记任务阻塞
@@ -24,7 +21,7 @@ description: >
24
21
 
25
22
  ### 1. 验证任务存在
26
23
 
27
- 检查任务是否存在于 `.agent-workspace/active/{task-id}/`。
24
+ 检查任务是否存在于 `.agents/workspace/active/{task-id}/`。
28
25
 
29
26
  注意:`{task-id}` 格式为 `TASK-{yyyyMMdd-HHmmss}`,例如 `TASK-20260306-143022`
30
27
 
@@ -46,7 +43,7 @@ description: >
46
43
  date "+%Y-%m-%d %H:%M:%S"
47
44
  ```
48
45
 
49
- 更新 `.agent-workspace/active/{task-id}/task.md`:
46
+ 更新 `.agents/workspace/active/{task-id}/task.md`:
50
47
  - `status`:blocked
51
48
  - `blocked_at`:{当前时间戳}
52
49
  - `updated_at`:{当前时间戳}
@@ -60,13 +57,13 @@ date "+%Y-%m-%d %H:%M:%S"
60
57
  ### 4. 移动任务到 blocked 目录
61
58
 
62
59
  ```bash
63
- mv .agent-workspace/active/{task-id} .agent-workspace/blocked/{task-id}
60
+ mv .agents/workspace/active/{task-id} .agents/workspace/blocked/{task-id}
64
61
  ```
65
62
 
66
63
  ### 5. 验证移动
67
64
 
68
65
  ```bash
69
- ls .agent-workspace/blocked/{task-id}/task.md
66
+ ls .agents/workspace/blocked/{task-id}/task.md
70
67
  ```
71
68
 
72
69
  ### 6. 同步到 Issue(可选)
@@ -92,10 +89,10 @@ ls .agent-workspace/blocked/{task-id}/task.md
92
89
 
93
90
  阻塞原因:{摘要}
94
91
  解除阻塞所需:{需要什么}
95
- 归档路径:.agent-workspace/blocked/{task-id}/
92
+ 归档路径:.agents/workspace/blocked/{task-id}/
96
93
 
97
94
  解除阻塞时执行:
98
- mv .agent-workspace/blocked/{task-id} .agent-workspace/active/{task-id}
95
+ mv .agents/workspace/blocked/{task-id} .agents/workspace/active/{task-id}
99
96
  # 然后更新 task.md:status -> active,移除 blocked_at
100
97
  ```
101
98
 
@@ -132,7 +129,7 @@ ls .agent-workspace/blocked/{task-id}/task.md
132
129
 
133
130
  - [ ] 分析并记录了阻塞原因
134
131
  - [ ] 更新了 task.md 的阻塞状态和阻塞信息
135
- - [ ] 将任务目录移动到 `.agent-workspace/blocked/`
132
+ - [ ] 将任务目录移动到 `.agents/workspace/blocked/`
136
133
  - [ ] 验证了移动成功
137
134
  - [ ] 告知了用户如何解除阻塞
138
135
 
@@ -142,7 +139,7 @@ ls .agent-workspace/blocked/{task-id}/task.md
142
139
 
143
140
  ```bash
144
141
  # 1. 移回 active
145
- mv .agent-workspace/blocked/{task-id} .agent-workspace/active/{task-id}
142
+ mv .agents/workspace/blocked/{task-id} .agents/workspace/active/{task-id}
146
143
 
147
144
  # 2. 更新 task.md:设置 status 为 active,更新时间戳
148
145
  # 3. 从中断处继续(检查 current_step)
@@ -1,10 +1,6 @@
1
1
  ---
2
2
  name: check-task
3
- description: >
4
- Check a task's current status, workflow progress, and context files. This is a
5
- read-only operation that reports the task status and recommends appropriate
6
- next steps. Triggered when the user asks to inspect task status. Argument:
7
- task-id.
3
+ description: "Check a task's current status and progress"
8
4
  ---
9
5
 
10
6
  # Check Task Status
@@ -19,9 +15,9 @@ description: >
19
15
  ### 1. Locate Task
20
16
 
21
17
  Search for the task in this priority order:
22
- 1. `.agent-workspace/active/{task-id}/task.md`
23
- 2. `.agent-workspace/blocked/{task-id}/task.md`
24
- 3. `.agent-workspace/completed/{task-id}/task.md`
18
+ 1. `.agents/workspace/active/{task-id}/task.md`
19
+ 2. `.agents/workspace/blocked/{task-id}/task.md`
20
+ 3. `.agents/workspace/completed/{task-id}/task.md`
25
21
 
26
22
  Note: `{task-id}` format is `TASK-{yyyyMMdd-HHmmss}`, for example `TASK-20260306-143022`
27
23
 
@@ -1,8 +1,6 @@
1
1
  ---
2
2
  name: check-task
3
- description: >
4
- 查看任务的当前状态、工作流进度和上下文文件。这是只读操作,报告任务状态并建议
5
- 适当的下一步操作。当用户要求查看任务状态时触发。参数:task-id。
3
+ description: "查看任务的当前状态和进度"
6
4
  ---
7
5
 
8
6
  # 查看任务状态
@@ -17,9 +15,9 @@ description: >
17
15
  ### 1. 查找任务
18
16
 
19
17
  按以下优先顺序搜索任务:
20
- 1. `.agent-workspace/active/{task-id}/task.md`
21
- 2. `.agent-workspace/blocked/{task-id}/task.md`
22
- 3. `.agent-workspace/completed/{task-id}/task.md`
18
+ 1. `.agents/workspace/active/{task-id}/task.md`
19
+ 2. `.agents/workspace/blocked/{task-id}/task.md`
20
+ 3. `.agents/workspace/completed/{task-id}/task.md`
23
21
 
24
22
  注意:`{task-id}` 格式为 `TASK-{yyyyMMdd-HHmmss}`,例如 `TASK-20260306-143022`
25
23
 
@@ -1,9 +1,6 @@
1
1
  ---
2
2
  name: close-codescan
3
- description: >
4
- Dismiss a Code Scanning (CodeQL) alert with a documented justification.
5
- Triggered when the user asks to dismiss a Code Scanning alert.
6
- Argument: alert number.
3
+ description: "Close a Code Scanning alert with a documented reason"
7
4
  ---
8
5
 
9
6
  # Dismiss Code Scanning Alert
@@ -1,8 +1,6 @@
1
1
  ---
2
2
  name: close-codescan
3
- description: >
4
- 关闭 Code Scanning(CodeQL)告警并提供有据可查的理由。
5
- 当用户要求关闭 Code Scanning 告警时触发。参数:告警编号。
3
+ description: "关闭 Code Scanning 告警并记录理由"
6
4
  ---
7
5
 
8
6
  # 关闭 Code Scanning 告警
@@ -1,9 +1,6 @@
1
1
  ---
2
2
  name: close-dependabot
3
- description: >
4
- Dismiss a Dependabot security alert with a documented justification.
5
- Triggered when the user asks to dismiss a Dependabot alert.
6
- Argument: alert number.
3
+ description: "Close a Dependabot alert with a documented reason"
7
4
  ---
8
5
 
9
6
  # Dismiss Dependabot Alert
@@ -1,8 +1,6 @@
1
1
  ---
2
2
  name: close-dependabot
3
- description: >
4
- 关闭 Dependabot 安全告警并提供有据可查的理由。
5
- 当用户要求关闭 Dependabot 告警时触发。参数:告警编号。
3
+ description: "关闭 Dependabot 安全告警并记录理由"
6
4
  ---
7
5
 
8
6
  # 关闭 Dependabot 告警