@fitlab-ai/agent-infra 0.3.1 → 0.4.0

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 (93) hide show
  1. package/README.md +29 -39
  2. package/README.zh-CN.md +29 -39
  3. package/bin/cli.js +1 -1
  4. package/lib/defaults.json +3 -12
  5. package/lib/init.js +13 -24
  6. package/lib/paths.js +3 -42
  7. package/lib/update.js +98 -32
  8. package/lib/version.js +2 -1
  9. package/package.json +2 -1
  10. package/templates/.agents/QUICKSTART.md +7 -7
  11. package/templates/.agents/QUICKSTART.zh-CN.md +7 -7
  12. package/templates/.agents/README.md +16 -4
  13. package/templates/.agents/README.zh-CN.md +16 -4
  14. package/templates/.agents/skills/analyze-task/SKILL.md +106 -105
  15. package/templates/.agents/skills/analyze-task/SKILL.zh-CN.md +6 -6
  16. package/templates/.agents/skills/block-task/SKILL.md +8 -8
  17. package/templates/.agents/skills/block-task/SKILL.zh-CN.md +8 -8
  18. package/templates/.agents/skills/check-task/SKILL.md +3 -3
  19. package/templates/.agents/skills/check-task/SKILL.zh-CN.md +3 -3
  20. package/templates/.agents/skills/close-codescan/SKILL.md +64 -63
  21. package/templates/.agents/skills/close-dependabot/SKILL.md +71 -70
  22. package/templates/.agents/skills/commit/SKILL.md +1 -1
  23. package/templates/.agents/skills/commit/SKILL.zh-CN.md +1 -1
  24. package/templates/.agents/skills/complete-task/SKILL.md +7 -7
  25. package/templates/.agents/skills/complete-task/SKILL.zh-CN.md +7 -7
  26. package/templates/.agents/skills/create-issue/SKILL.md +57 -12
  27. package/templates/.agents/skills/create-issue/SKILL.zh-CN.md +57 -12
  28. package/templates/.agents/skills/create-pr/SKILL.md +44 -7
  29. package/templates/.agents/skills/create-pr/SKILL.zh-CN.md +44 -7
  30. package/templates/.agents/skills/create-release-note/SKILL.md +18 -11
  31. package/templates/.agents/skills/create-release-note/SKILL.zh-CN.md +18 -11
  32. package/templates/.agents/skills/create-task/SKILL.md +80 -78
  33. package/templates/.agents/skills/create-task/SKILL.zh-CN.md +11 -10
  34. package/templates/.agents/skills/implement-task/SKILL.md +15 -18
  35. package/templates/.agents/skills/implement-task/SKILL.zh-CN.md +15 -18
  36. package/templates/.agents/skills/import-codescan/SKILL.md +54 -53
  37. package/templates/.agents/skills/import-codescan/SKILL.zh-CN.md +1 -1
  38. package/templates/.agents/skills/import-dependabot/SKILL.md +57 -56
  39. package/templates/.agents/skills/import-dependabot/SKILL.zh-CN.md +3 -3
  40. package/templates/.agents/skills/import-issue/SKILL.md +58 -58
  41. package/templates/.agents/skills/import-issue/SKILL.zh-CN.md +5 -5
  42. package/templates/.agents/skills/init-labels/SKILL.md +8 -0
  43. package/templates/.agents/skills/init-labels/SKILL.zh-CN.md +8 -0
  44. package/templates/.agents/skills/plan-task/SKILL.md +151 -149
  45. package/templates/.agents/skills/plan-task/SKILL.zh-CN.md +6 -6
  46. package/templates/.agents/skills/refine-task/SKILL.md +3 -3
  47. package/templates/.agents/skills/refine-task/SKILL.zh-CN.md +3 -3
  48. package/templates/.agents/skills/release/SKILL.md +55 -14
  49. package/templates/.agents/skills/release/SKILL.zh-CN.md +55 -14
  50. package/templates/.agents/skills/review-task/SKILL.md +9 -9
  51. package/templates/.agents/skills/review-task/SKILL.zh-CN.md +9 -9
  52. package/templates/.agents/skills/sync-issue/SKILL.md +258 -279
  53. package/templates/.agents/skills/sync-issue/SKILL.zh-CN.md +34 -56
  54. package/templates/.agents/skills/sync-pr/SKILL.md +8 -28
  55. package/templates/.agents/skills/sync-pr/SKILL.zh-CN.md +7 -27
  56. package/templates/.agents/skills/update-agent-infra/SKILL.md +6 -6
  57. package/templates/.agents/skills/update-agent-infra/SKILL.zh-CN.md +6 -6
  58. package/templates/.agents/skills/update-agent-infra/scripts/sync-templates.js +61 -116
  59. package/templates/.agents/templates/handoff.md +1 -1
  60. package/templates/.agents/templates/handoff.zh-CN.md +1 -1
  61. package/templates/.agents/workflows/bug-fix.yaml +71 -71
  62. package/templates/.agents/workflows/bug-fix.zh-CN.yaml +1 -1
  63. package/templates/.agents/workflows/feature-development.yaml +71 -71
  64. package/templates/.agents/workflows/feature-development.zh-CN.yaml +1 -1
  65. package/templates/.agents/workflows/refactoring.yaml +76 -76
  66. package/templates/.agents/workflows/refactoring.zh-CN.yaml +1 -1
  67. package/templates/{.agent-workspace → .agents/workspace}/README.md +1 -1
  68. package/templates/{.agent-workspace → .agents/workspace}/README.zh-CN.md +1 -1
  69. package/templates/.claude/CLAUDE.md +14 -1
  70. package/templates/.claude/CLAUDE.zh-CN.md +14 -1
  71. package/templates/.claude/hooks/check-version-format.sh +44 -0
  72. package/templates/.claude/settings.json +14 -0
  73. package/templates/.opencode/COMMAND_STYLE_GUIDE.md +6 -6
  74. package/templates/.opencode/COMMAND_STYLE_GUIDE.zh-CN.md +6 -6
  75. package/templates/AGENTS.md +14 -1
  76. package/templates/AGENTS.zh-CN.md +14 -1
  77. package/templates/.editorconfig +0 -15
  78. package/templates/.github/ISSUE_TEMPLATE/01_bug_report.yml +0 -149
  79. package/templates/.github/ISSUE_TEMPLATE/02_question.yml +0 -101
  80. package/templates/.github/ISSUE_TEMPLATE/03_feature_request.yml +0 -131
  81. package/templates/.github/ISSUE_TEMPLATE/04_documentation.yml +0 -165
  82. package/templates/.github/ISSUE_TEMPLATE/05_other.yml +0 -147
  83. package/templates/.github/ISSUE_TEMPLATE/config.yml +0 -11
  84. package/templates/.github/PULL_REQUEST_TEMPLATE.md +0 -123
  85. package/templates/.github/dependabot.yml +0 -17
  86. package/templates/.github/hooks/check-utf8-encoding.sh +0 -25
  87. package/templates/.github/release.yml +0 -27
  88. package/templates/.github/workflows/pr-title-check.yml +0 -42
  89. package/templates/.mailmap +0 -4
  90. package/templates/CONTRIBUTING.md +0 -126
  91. package/templates/CONTRIBUTING.zh-CN.md +0 -124
  92. package/templates/SECURITY.md +0 -131
  93. package/templates/SECURITY.zh-CN.md +0 -131
@@ -1,169 +1,170 @@
1
1
  ---
2
2
  name: analyze-task
3
3
  description: >
4
- 分析已有任务并输出需求分析文档,支持多轮分析产物(analysis.md / analysis-r{N}.md)。
5
- 当用户要求分析某个任务时触发。参数:task-id。
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.
6
7
  ---
7
8
 
8
- # 分析任务
9
+ # Analyze Task
9
10
 
10
- ## 行为边界 / 关键规则
11
+ ## Boundary / Critical Rules
11
12
 
12
- - 本技能仅产出需求分析文档(`analysis.md` `analysis-r{N}.md`)—— 不修改任何业务代码
13
- - 严格基于 `task.md` 中已有的需求、上下文和来源信息展开分析
14
- - 执行本技能后,你**必须**立即更新 task.md 中的任务状态
13
+ - This skill only outputs a requirements analysis document (`analysis.md` or `analysis-r{N}.md`) and does not modify any business code
14
+ - Base the analysis strictly on the existing requirements, context, and source information in `task.md`
15
+ - After executing this skill, you **must** immediately update task status in task.md
15
16
 
16
- ## 执行步骤
17
+ ## Steps
17
18
 
18
- ### 1. 验证前置条件
19
+ ### 1. Verify Prerequisites
19
20
 
20
- 检查必要文件:
21
- - `.agent-workspace/active/{task-id}/task.md` - 任务文件
21
+ Check required files:
22
+ - `.agents/workspace/active/{task-id}/task.md` - Task file
22
23
 
23
- 注意:`{task-id}` 格式为 `TASK-{yyyyMMdd-HHmmss}`,例如 `TASK-20260306-143022`
24
+ Note: `{task-id}` format is `TASK-{yyyyMMdd-HHmmss}`, for example `TASK-20260306-143022`
24
25
 
25
- 如果缺少 `task.md`,提示用户先创建或导入任务。
26
+ If `task.md` is missing, tell the user to create or import the task first.
26
27
 
27
- ### 2. 确定分析轮次
28
+ ### 2. Determine the Analysis Round
28
29
 
29
- 扫描 `.agent-workspace/active/{task-id}/` 目录中的分析产物文件:
30
- - 如果不存在 `analysis.md` 且不存在 `analysis-r*.md` 本轮为第 1 轮,产出 `analysis.md`
31
- - 如果存在 `analysis.md` 且不存在 `analysis-r*.md` 本轮为第 2 轮,产出 `analysis-r2.md`
32
- - 如果存在 `analysis-r{N}.md` 本轮为第 N+1 轮,产出 `analysis-r{N+1}.md`
30
+ Scan `.agents/workspace/active/{task-id}/` for analysis artifact files:
31
+ - If neither `analysis.md` nor `analysis-r*.md` exists -> this is Round 1 and must create `analysis.md`
32
+ - If `analysis.md` exists and no `analysis-r*.md` exists -> this is Round 2 and must create `analysis-r2.md`
33
+ - If `analysis-r{N}.md` exists -> this is Round N+1 and must create `analysis-r{N+1}.md`
33
34
 
34
- 记录:
35
- - `{analysis-round}`:本轮分析轮次
36
- - `{analysis-artifact}`:本轮分析产物文件名
35
+ Record:
36
+ - `{analysis-round}`: the current analysis round
37
+ - `{analysis-artifact}`: the artifact filename for this round
37
38
 
38
- ### 3. 阅读任务上下文
39
+ ### 3. Read Task Context
39
40
 
40
- 仔细阅读 `task.md` 以理解:
41
- - 任务标题、描述和需求列表
42
- - 上下文信息(IssuePR、分支、告警编号等)
43
- - 当前已知的受影响文件和约束
41
+ Read `task.md` carefully to understand:
42
+ - task title, description, and requirement list
43
+ - context information (Issue, PR, branch, alert numbers, etc.)
44
+ - currently known affected files and constraints
44
45
 
45
- `task.md` 包含以下来源字段,补充读取对应来源信息:
46
+ If `task.md` contains these source fields, also read the corresponding source information:
46
47
  - `issue_number` - GitHub Issue
47
- - `codescan_alert_number` - Code Scanning 告警
48
- - `security_alert_number` - Dependabot 告警
48
+ - `codescan_alert_number` - Code Scanning alert
49
+ - `security_alert_number` - Dependabot alert
49
50
 
50
- ### 4. 执行需求分析
51
+ ### 4. Perform Requirements Analysis
51
52
 
52
- 遵循 `.agents/workflows/feature-development.yaml` 中的 `analysis` 步骤:
53
+ Follow the `analysis` step in `.agents/workflows/feature-development.yaml`:
53
54
 
54
- **必要任务**(仅分析,不编写业务代码):
55
- - [ ] 理解任务需求和目标
56
- - [ ] 搜索相关代码文件(**只读**)
57
- - [ ] 分析代码结构和影响范围
58
- - [ ] 识别潜在技术风险和依赖
59
- - [ ] 评估工作量和复杂度
55
+ **Required tasks** (analysis only, no business code changes):
56
+ - [ ] Understand the task requirements and goals
57
+ - [ ] Search related code files (**read-only**)
58
+ - [ ] Analyze code structure and impact scope
59
+ - [ ] Identify potential technical risks and dependencies
60
+ - [ ] Assess effort and complexity
60
61
 
61
- ### 5. 输出分析文档
62
+ ### 5. Output Analysis Document
62
63
 
63
- 创建 `.agent-workspace/active/{task-id}/{analysis-artifact}`。
64
+ Create `.agents/workspace/active/{task-id}/{analysis-artifact}`.
64
65
 
65
- ## 输出模板
66
+ ## Output Template
66
67
 
67
68
  ```markdown
68
- # 需求分析报告
69
+ # Requirements Analysis Report
69
70
 
70
- - **分析轮次**:Round {analysis-round}
71
- - **产物文件**:`{analysis-artifact}`
71
+ - **Analysis round**: Round {analysis-round}
72
+ - **Artifact file**: `{analysis-artifact}`
72
73
 
73
- ## 需求来源
74
+ ## Requirement Source
74
75
 
75
- **来源类型**:{用户描述 / GitHub Issue / Code Scanning / Dependabot / 其他}
76
- **来源摘要**:
77
- > {任务来源或关键上下文}
76
+ **Source type**: {User description / GitHub Issue / Code Scanning / Dependabot / Other}
77
+ **Source summary**:
78
+ > {Task source or key context}
78
79
 
79
- ## 需求理解
80
- {用自己的话重述需求以确认理解}
80
+ ## Requirement Understanding
81
+ {Restate the requirement in your own words to confirm understanding}
81
82
 
82
- ## 相关文件
83
- - `{file-path}:{line-number}` - {描述}
83
+ ## Related Files
84
+ - `{file-path}:{line-number}` - {Description}
84
85
 
85
- ## 影响评估
86
- **直接影响**:
87
- - {受影响的模块和文件}
86
+ ## Impact Assessment
87
+ **Direct impact**:
88
+ - {Affected modules and files}
88
89
 
89
- **间接影响**:
90
- - {可能受影响的其他部分}
90
+ **Indirect impact**:
91
+ - {Other parts that may be affected}
91
92
 
92
- ## 技术风险
93
- - {风险描述和缓解思路}
93
+ ## Technical Risks
94
+ - {Risk description and mitigation idea}
94
95
 
95
- ## 依赖关系
96
- - {需要的依赖和与其他模块的协调}
96
+ ## Dependencies
97
+ - {Required dependencies and coordination with other modules}
97
98
 
98
- ## 工作量和复杂度评估
99
- - 复杂度:{高/中/低}
100
- - 风险等级:{高/中/低}
99
+ ## Effort and Complexity Assessment
100
+ - Complexity: {High/Medium/Low}
101
+ - Risk level: {High/Medium/Low}
101
102
  ```
102
103
 
103
- ### 6. 更新任务状态
104
+ ### 6. Update Task Status
104
105
 
105
- 获取当前时间:
106
+ Get the current time:
106
107
 
107
108
  ```bash
108
109
  date "+%Y-%m-%d %H:%M:%S"
109
110
  ```
110
111
 
111
- 更新 `.agent-workspace/active/{task-id}/task.md`:
112
- - `current_step`:requirement-analysis
113
- - `assigned_to`:{当前 AI 代理}
114
- - `updated_at`:{当前时间}
115
- - 记录本轮分析产物:`{analysis-artifact}`(Round `{analysis-round}`)
116
- - 如任务模板包含 `## 分析` 段落,更新为指向 `{analysis-artifact}` 的链接
117
- - 在工作流进度中标记 requirement-analysis 为已完成,并注明实际轮次(如果任务模板支持)
118
- - **追加**到 `## Activity Log`(不要覆盖之前的记录):
112
+ Update `.agents/workspace/active/{task-id}/task.md`:
113
+ - `current_step`: requirement-analysis
114
+ - `assigned_to`: {current AI agent}
115
+ - `updated_at`: {current time}
116
+ - Record the analysis artifact for this round: `{analysis-artifact}` (Round `{analysis-round}`)
117
+ - If the task template contains a `## Analysis` section, update it to link to `{analysis-artifact}`
118
+ - Mark requirement-analysis as complete in workflow progress and include the actual round when the task template supports it
119
+ - **Append** to `## Activity Log` (do NOT overwrite previous entries):
119
120
  ```
120
121
  - {yyyy-MM-dd HH:mm:ss} — **Requirement Analysis (Round {N})** by {agent} — Analysis completed → {analysis-artifact}
121
122
  ```
122
123
 
123
- ### 7. 告知用户
124
+ ### 7. Inform User
124
125
 
125
- > **重要**:以下「下一步」中列出的所有 TUI 命令格式必须完整输出,不要只展示当前 AI 代理对应的格式。
126
+ > **IMPORTANT**: All TUI command formats listed below must be output in full. Do not show only the format for the current AI agent.
126
127
 
127
- 输出格式:
128
+ Output format:
128
129
  ```
129
- 任务 {task-id} 分析完成。
130
+ Analysis complete for task {task-id}.
130
131
 
131
- 摘要:
132
- - 分析轮次:Round {analysis-round}
133
- - 相关文件:{数量}
134
- - 风险等级:{评估}
132
+ Summary:
133
+ - Analysis round: Round {analysis-round}
134
+ - Related files: {count}
135
+ - Risk level: {assessment}
135
136
 
136
- 产出文件:
137
- - 分析报告:.agent-workspace/active/{task-id}/{analysis-artifact}
137
+ Output file:
138
+ - Analysis report: .agents/workspace/active/{task-id}/{analysis-artifact}
138
139
 
139
- 下一步 - 设计技术方案:
140
- - Claude Code / OpenCode:/plan-task {task-id}
141
- - Gemini CLI:/agent-infra:plan-task {task-id}
142
- - Codex CLI:$plan-task {task-id}
140
+ Next step - create technical plan:
141
+ - Claude Code / OpenCode: /plan-task {task-id}
142
+ - Gemini CLI: /{{project}}:plan-task {task-id}
143
+ - Codex CLI: $plan-task {task-id}
143
144
  ```
144
145
 
145
- ## 完成检查清单
146
+ ## Completion Checklist
146
147
 
147
- - [ ] 阅读并理解了任务文件和来源信息
148
- - [ ] 创建了分析文档 `.agent-workspace/active/{task-id}/{analysis-artifact}`
149
- - [ ] 更新了 task.md 中的 `current_step` requirement-analysis
150
- - [ ] 更新了 task.md 中的 `updated_at` 为当前时间
151
- - [ ] 更新了 task.md 中的 `assigned_to`
152
- - [ ] 追加了 Activity Log 条目到 task.md
153
- - [ ] 在工作流进度中标记了 requirement-analysis 为已完成
154
- - [ ] 告知了用户下一步(必须展示所有 TUI 的命令格式,不要筛选)
155
- - [ ] **没有修改任何业务代码**
148
+ - [ ] Read and understood the task file and source information
149
+ - [ ] Created analysis document `.agents/workspace/active/{task-id}/{analysis-artifact}`
150
+ - [ ] Updated `current_step` to requirement-analysis in task.md
151
+ - [ ] Updated `updated_at` to the current time in task.md
152
+ - [ ] Updated `assigned_to` in task.md
153
+ - [ ] Appended an Activity Log entry to task.md
154
+ - [ ] Marked requirement-analysis as complete in workflow progress
155
+ - [ ] Informed the user of the next step (must include all TUI command formats; do not filter)
156
+ - [ ] **Did not modify any business code**
156
157
 
157
- ## 停止
158
+ ## STOP
158
159
 
159
- 完成检查清单后,**立即停止**。等待用户审查分析结果并手动调用 `plan-task` 技能。
160
+ After completing the checklist, **stop immediately**. Wait for the user to review the analysis result and manually invoke the `plan-task` skill.
160
161
 
161
- ## 注意事项
162
+ ## Notes
162
163
 
163
- 1. **前置条件**:必须已存在任务文件 `task.md`
164
- 2. **多轮分析**:需求变化或已有分析需要修订时,使用 `analysis-r{N}.md`
165
- 3. **职责单一**:本技能只负责分析,不设计方案、不实现代码
164
+ 1. **Prerequisite**: the task file `task.md` must already exist
165
+ 2. **Multi-round analysis**: use `analysis-r{N}.md` when requirements change or an existing analysis needs revision
166
+ 3. **Single responsibility**: this skill only handles analysis, not planning or implementation
166
167
 
167
- ## 错误处理
168
+ ## Error Handling
168
169
 
169
- - 任务未找到:提示 "Task {task-id} not found, please check the task ID"
170
+ - Task not found: output "Task {task-id} not found, please check the task ID"
@@ -18,7 +18,7 @@ description: >
18
18
  ### 1. 验证前置条件
19
19
 
20
20
  检查必要文件:
21
- - `.agent-workspace/active/{task-id}/task.md` - 任务文件
21
+ - `.agents/workspace/active/{task-id}/task.md` - 任务文件
22
22
 
23
23
  注意:`{task-id}` 格式为 `TASK-{yyyyMMdd-HHmmss}`,例如 `TASK-20260306-143022`
24
24
 
@@ -26,7 +26,7 @@ description: >
26
26
 
27
27
  ### 2. 确定分析轮次
28
28
 
29
- 扫描 `.agent-workspace/active/{task-id}/` 目录中的分析产物文件:
29
+ 扫描 `.agents/workspace/active/{task-id}/` 目录中的分析产物文件:
30
30
  - 如果不存在 `analysis.md` 且不存在 `analysis-r*.md` → 本轮为第 1 轮,产出 `analysis.md`
31
31
  - 如果存在 `analysis.md` 且不存在 `analysis-r*.md` → 本轮为第 2 轮,产出 `analysis-r2.md`
32
32
  - 如果存在 `analysis-r{N}.md` → 本轮为第 N+1 轮,产出 `analysis-r{N+1}.md`
@@ -60,7 +60,7 @@ description: >
60
60
 
61
61
  ### 5. 输出分析文档
62
62
 
63
- 创建 `.agent-workspace/active/{task-id}/{analysis-artifact}`。
63
+ 创建 `.agents/workspace/active/{task-id}/{analysis-artifact}`。
64
64
 
65
65
  ## 输出模板
66
66
 
@@ -108,7 +108,7 @@ description: >
108
108
  date "+%Y-%m-%d %H:%M:%S"
109
109
  ```
110
110
 
111
- 更新 `.agent-workspace/active/{task-id}/task.md`:
111
+ 更新 `.agents/workspace/active/{task-id}/task.md`:
112
112
  - `current_step`:requirement-analysis
113
113
  - `assigned_to`:{当前 AI 代理}
114
114
  - `updated_at`:{当前时间}
@@ -134,7 +134,7 @@ date "+%Y-%m-%d %H:%M:%S"
134
134
  - 风险等级:{评估}
135
135
 
136
136
  产出文件:
137
- - 分析报告:.agent-workspace/active/{task-id}/{analysis-artifact}
137
+ - 分析报告:.agents/workspace/active/{task-id}/{analysis-artifact}
138
138
 
139
139
  下一步 - 设计技术方案:
140
140
  - Claude Code / OpenCode:/plan-task {task-id}
@@ -145,7 +145,7 @@ date "+%Y-%m-%d %H:%M:%S"
145
145
  ## 完成检查清单
146
146
 
147
147
  - [ ] 阅读并理解了任务文件和来源信息
148
- - [ ] 创建了分析文档 `.agent-workspace/active/{task-id}/{analysis-artifact}`
148
+ - [ ] 创建了分析文档 `.agents/workspace/active/{task-id}/{analysis-artifact}`
149
149
  - [ ] 更新了 task.md 中的 `current_step` 为 requirement-analysis
150
150
  - [ ] 更新了 task.md 中的 `updated_at` 为当前时间
151
151
  - [ ] 更新了 task.md 中的 `assigned_to`
@@ -25,7 +25,7 @@ description: >
25
25
 
26
26
  ### 1. Verify Task Exists
27
27
 
28
- Check that the task exists in `.agent-workspace/active/{task-id}/`.
28
+ Check that the task exists in `.agents/workspace/active/{task-id}/`.
29
29
 
30
30
  Note: `{task-id}` format is `TASK-{yyyyMMdd-HHmmss}`, e.g. `TASK-20260306-143022`
31
31
 
@@ -47,7 +47,7 @@ Get the current time:
47
47
  date "+%Y-%m-%d %H:%M:%S"
48
48
  ```
49
49
 
50
- Update `.agent-workspace/active/{task-id}/task.md`:
50
+ Update `.agents/workspace/active/{task-id}/task.md`:
51
51
  - `status`: blocked
52
52
  - `blocked_at`: {current timestamp}
53
53
  - `updated_at`: {current timestamp}
@@ -61,13 +61,13 @@ Add a blocking information section to task.md.
61
61
  ### 4. Move Task to Blocked Directory
62
62
 
63
63
  ```bash
64
- mv .agent-workspace/active/{task-id} .agent-workspace/blocked/{task-id}
64
+ mv .agents/workspace/active/{task-id} .agents/workspace/blocked/{task-id}
65
65
  ```
66
66
 
67
67
  ### 5. Verify Move
68
68
 
69
69
  ```bash
70
- ls .agent-workspace/blocked/{task-id}/task.md
70
+ ls .agents/workspace/blocked/{task-id}/task.md
71
71
  ```
72
72
 
73
73
  ### 6. Sync to Issue (Optional)
@@ -93,10 +93,10 @@ Task {task-id} marked as blocked.
93
93
 
94
94
  Blocking reason: {summary}
95
95
  Required to unblock: {what's needed}
96
- Archived to: .agent-workspace/blocked/{task-id}/
96
+ Archived to: .agents/workspace/blocked/{task-id}/
97
97
 
98
98
  To unblock when the issue is resolved:
99
- mv .agent-workspace/blocked/{task-id} .agent-workspace/active/{task-id}
99
+ mv .agents/workspace/blocked/{task-id} .agents/workspace/active/{task-id}
100
100
  # Then update task.md: status -> active, remove blocked_at
101
101
  ```
102
102
 
@@ -133,7 +133,7 @@ Blocking information section to add to task.md:
133
133
 
134
134
  - [ ] Analyzed and documented the blocking reason
135
135
  - [ ] Updated task.md with blocked status and blocking information
136
- - [ ] Moved task directory to `.agent-workspace/blocked/`
136
+ - [ ] Moved task directory to `.agents/workspace/blocked/`
137
137
  - [ ] Verified move succeeded
138
138
  - [ ] Informed user how to unblock
139
139
 
@@ -143,7 +143,7 @@ When the blocking issue is resolved:
143
143
 
144
144
  ```bash
145
145
  # 1. Move back to active
146
- mv .agent-workspace/blocked/{task-id} .agent-workspace/active/{task-id}
146
+ mv .agents/workspace/blocked/{task-id} .agents/workspace/active/{task-id}
147
147
 
148
148
  # 2. Update task.md: set status to active, update timestamps
149
149
  # 3. Resume from where you left off (check current_step)
@@ -24,7 +24,7 @@ description: >
24
24
 
25
25
  ### 1. 验证任务存在
26
26
 
27
- 检查任务是否存在于 `.agent-workspace/active/{task-id}/`。
27
+ 检查任务是否存在于 `.agents/workspace/active/{task-id}/`。
28
28
 
29
29
  注意:`{task-id}` 格式为 `TASK-{yyyyMMdd-HHmmss}`,例如 `TASK-20260306-143022`
30
30
 
@@ -46,7 +46,7 @@ description: >
46
46
  date "+%Y-%m-%d %H:%M:%S"
47
47
  ```
48
48
 
49
- 更新 `.agent-workspace/active/{task-id}/task.md`:
49
+ 更新 `.agents/workspace/active/{task-id}/task.md`:
50
50
  - `status`:blocked
51
51
  - `blocked_at`:{当前时间戳}
52
52
  - `updated_at`:{当前时间戳}
@@ -60,13 +60,13 @@ date "+%Y-%m-%d %H:%M:%S"
60
60
  ### 4. 移动任务到 blocked 目录
61
61
 
62
62
  ```bash
63
- mv .agent-workspace/active/{task-id} .agent-workspace/blocked/{task-id}
63
+ mv .agents/workspace/active/{task-id} .agents/workspace/blocked/{task-id}
64
64
  ```
65
65
 
66
66
  ### 5. 验证移动
67
67
 
68
68
  ```bash
69
- ls .agent-workspace/blocked/{task-id}/task.md
69
+ ls .agents/workspace/blocked/{task-id}/task.md
70
70
  ```
71
71
 
72
72
  ### 6. 同步到 Issue(可选)
@@ -92,10 +92,10 @@ ls .agent-workspace/blocked/{task-id}/task.md
92
92
 
93
93
  阻塞原因:{摘要}
94
94
  解除阻塞所需:{需要什么}
95
- 归档路径:.agent-workspace/blocked/{task-id}/
95
+ 归档路径:.agents/workspace/blocked/{task-id}/
96
96
 
97
97
  解除阻塞时执行:
98
- mv .agent-workspace/blocked/{task-id} .agent-workspace/active/{task-id}
98
+ mv .agents/workspace/blocked/{task-id} .agents/workspace/active/{task-id}
99
99
  # 然后更新 task.md:status -> active,移除 blocked_at
100
100
  ```
101
101
 
@@ -132,7 +132,7 @@ ls .agent-workspace/blocked/{task-id}/task.md
132
132
 
133
133
  - [ ] 分析并记录了阻塞原因
134
134
  - [ ] 更新了 task.md 的阻塞状态和阻塞信息
135
- - [ ] 将任务目录移动到 `.agent-workspace/blocked/`
135
+ - [ ] 将任务目录移动到 `.agents/workspace/blocked/`
136
136
  - [ ] 验证了移动成功
137
137
  - [ ] 告知了用户如何解除阻塞
138
138
 
@@ -142,7 +142,7 @@ ls .agent-workspace/blocked/{task-id}/task.md
142
142
 
143
143
  ```bash
144
144
  # 1. 移回 active
145
- mv .agent-workspace/blocked/{task-id} .agent-workspace/active/{task-id}
145
+ mv .agents/workspace/blocked/{task-id} .agents/workspace/active/{task-id}
146
146
 
147
147
  # 2. 更新 task.md:设置 status 为 active,更新时间戳
148
148
  # 3. 从中断处继续(检查 current_step)
@@ -19,9 +19,9 @@ description: >
19
19
  ### 1. Locate Task
20
20
 
21
21
  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`
22
+ 1. `.agents/workspace/active/{task-id}/task.md`
23
+ 2. `.agents/workspace/blocked/{task-id}/task.md`
24
+ 3. `.agents/workspace/completed/{task-id}/task.md`
25
25
 
26
26
  Note: `{task-id}` format is `TASK-{yyyyMMdd-HHmmss}`, for example `TASK-20260306-143022`
27
27
 
@@ -17,9 +17,9 @@ description: >
17
17
  ### 1. 查找任务
18
18
 
19
19
  按以下优先顺序搜索任务:
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`
20
+ 1. `.agents/workspace/active/{task-id}/task.md`
21
+ 2. `.agents/workspace/blocked/{task-id}/task.md`
22
+ 3. `.agents/workspace/completed/{task-id}/task.md`
23
23
 
24
24
  注意:`{task-id}` 格式为 `TASK-{yyyyMMdd-HHmmss}`,例如 `TASK-20260306-143022`
25
25