@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.
- package/README.md +29 -39
- package/README.zh-CN.md +29 -39
- package/bin/cli.js +1 -1
- package/lib/defaults.json +3 -12
- package/lib/init.js +13 -24
- package/lib/paths.js +3 -42
- package/lib/update.js +98 -32
- package/lib/version.js +2 -1
- package/package.json +2 -1
- package/templates/.agents/QUICKSTART.md +7 -7
- package/templates/.agents/QUICKSTART.zh-CN.md +7 -7
- package/templates/.agents/README.md +16 -4
- package/templates/.agents/README.zh-CN.md +16 -4
- package/templates/.agents/skills/analyze-task/SKILL.md +106 -105
- package/templates/.agents/skills/analyze-task/SKILL.zh-CN.md +6 -6
- package/templates/.agents/skills/block-task/SKILL.md +8 -8
- package/templates/.agents/skills/block-task/SKILL.zh-CN.md +8 -8
- package/templates/.agents/skills/check-task/SKILL.md +3 -3
- package/templates/.agents/skills/check-task/SKILL.zh-CN.md +3 -3
- package/templates/.agents/skills/close-codescan/SKILL.md +64 -63
- package/templates/.agents/skills/close-dependabot/SKILL.md +71 -70
- package/templates/.agents/skills/commit/SKILL.md +1 -1
- package/templates/.agents/skills/commit/SKILL.zh-CN.md +1 -1
- package/templates/.agents/skills/complete-task/SKILL.md +7 -7
- package/templates/.agents/skills/complete-task/SKILL.zh-CN.md +7 -7
- package/templates/.agents/skills/create-issue/SKILL.md +57 -12
- package/templates/.agents/skills/create-issue/SKILL.zh-CN.md +57 -12
- package/templates/.agents/skills/create-pr/SKILL.md +44 -7
- package/templates/.agents/skills/create-pr/SKILL.zh-CN.md +44 -7
- package/templates/.agents/skills/create-release-note/SKILL.md +18 -11
- package/templates/.agents/skills/create-release-note/SKILL.zh-CN.md +18 -11
- package/templates/.agents/skills/create-task/SKILL.md +80 -78
- package/templates/.agents/skills/create-task/SKILL.zh-CN.md +11 -10
- package/templates/.agents/skills/implement-task/SKILL.md +15 -18
- package/templates/.agents/skills/implement-task/SKILL.zh-CN.md +15 -18
- package/templates/.agents/skills/import-codescan/SKILL.md +54 -53
- package/templates/.agents/skills/import-codescan/SKILL.zh-CN.md +1 -1
- package/templates/.agents/skills/import-dependabot/SKILL.md +57 -56
- package/templates/.agents/skills/import-dependabot/SKILL.zh-CN.md +3 -3
- package/templates/.agents/skills/import-issue/SKILL.md +58 -58
- package/templates/.agents/skills/import-issue/SKILL.zh-CN.md +5 -5
- package/templates/.agents/skills/init-labels/SKILL.md +8 -0
- package/templates/.agents/skills/init-labels/SKILL.zh-CN.md +8 -0
- package/templates/.agents/skills/plan-task/SKILL.md +151 -149
- package/templates/.agents/skills/plan-task/SKILL.zh-CN.md +6 -6
- package/templates/.agents/skills/refine-task/SKILL.md +3 -3
- package/templates/.agents/skills/refine-task/SKILL.zh-CN.md +3 -3
- package/templates/.agents/skills/release/SKILL.md +55 -14
- package/templates/.agents/skills/release/SKILL.zh-CN.md +55 -14
- package/templates/.agents/skills/review-task/SKILL.md +9 -9
- package/templates/.agents/skills/review-task/SKILL.zh-CN.md +9 -9
- package/templates/.agents/skills/sync-issue/SKILL.md +258 -279
- package/templates/.agents/skills/sync-issue/SKILL.zh-CN.md +34 -56
- package/templates/.agents/skills/sync-pr/SKILL.md +8 -28
- package/templates/.agents/skills/sync-pr/SKILL.zh-CN.md +7 -27
- package/templates/.agents/skills/update-agent-infra/SKILL.md +6 -6
- package/templates/.agents/skills/update-agent-infra/SKILL.zh-CN.md +6 -6
- package/templates/.agents/skills/update-agent-infra/scripts/sync-templates.js +61 -116
- package/templates/.agents/templates/handoff.md +1 -1
- package/templates/.agents/templates/handoff.zh-CN.md +1 -1
- package/templates/.agents/workflows/bug-fix.yaml +71 -71
- package/templates/.agents/workflows/bug-fix.zh-CN.yaml +1 -1
- package/templates/.agents/workflows/feature-development.yaml +71 -71
- package/templates/.agents/workflows/feature-development.zh-CN.yaml +1 -1
- package/templates/.agents/workflows/refactoring.yaml +76 -76
- package/templates/.agents/workflows/refactoring.zh-CN.yaml +1 -1
- package/templates/{.agent-workspace → .agents/workspace}/README.md +1 -1
- package/templates/{.agent-workspace → .agents/workspace}/README.zh-CN.md +1 -1
- package/templates/.claude/CLAUDE.md +14 -1
- package/templates/.claude/CLAUDE.zh-CN.md +14 -1
- package/templates/.claude/hooks/check-version-format.sh +44 -0
- package/templates/.claude/settings.json +14 -0
- package/templates/.opencode/COMMAND_STYLE_GUIDE.md +6 -6
- package/templates/.opencode/COMMAND_STYLE_GUIDE.zh-CN.md +6 -6
- package/templates/AGENTS.md +14 -1
- package/templates/AGENTS.zh-CN.md +14 -1
- package/templates/.editorconfig +0 -15
- package/templates/.github/ISSUE_TEMPLATE/01_bug_report.yml +0 -149
- package/templates/.github/ISSUE_TEMPLATE/02_question.yml +0 -101
- package/templates/.github/ISSUE_TEMPLATE/03_feature_request.yml +0 -131
- package/templates/.github/ISSUE_TEMPLATE/04_documentation.yml +0 -165
- package/templates/.github/ISSUE_TEMPLATE/05_other.yml +0 -147
- package/templates/.github/ISSUE_TEMPLATE/config.yml +0 -11
- package/templates/.github/PULL_REQUEST_TEMPLATE.md +0 -123
- package/templates/.github/dependabot.yml +0 -17
- package/templates/.github/hooks/check-utf8-encoding.sh +0 -25
- package/templates/.github/release.yml +0 -27
- package/templates/.github/workflows/pr-title-check.yml +0 -42
- package/templates/.mailmap +0 -4
- package/templates/CONTRIBUTING.md +0 -126
- package/templates/CONTRIBUTING.zh-CN.md +0 -124
- package/templates/SECURITY.md +0 -131
- package/templates/SECURITY.zh-CN.md +0 -131
|
@@ -1,169 +1,170 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: analyze-task
|
|
3
3
|
description: >
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
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
|
-
- `.
|
|
21
|
+
Check required files:
|
|
22
|
+
- `.agents/workspace/active/{task-id}/task.md` - Task file
|
|
22
23
|
|
|
23
|
-
|
|
24
|
+
Note: `{task-id}` format is `TASK-{yyyyMMdd-HHmmss}`, for example `TASK-20260306-143022`
|
|
24
25
|
|
|
25
|
-
|
|
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
|
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
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
|
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
-
|
|
71
|
-
-
|
|
71
|
+
- **Analysis round**: Round {analysis-round}
|
|
72
|
+
- **Artifact file**: `{analysis-artifact}`
|
|
72
73
|
|
|
73
|
-
##
|
|
74
|
+
## Requirement Source
|
|
74
75
|
|
|
75
|
-
|
|
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
|
-
|
|
112
|
-
- `current_step
|
|
113
|
-
- `assigned_to
|
|
114
|
-
- `updated_at
|
|
115
|
-
-
|
|
116
|
-
-
|
|
117
|
-
-
|
|
118
|
-
-
|
|
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
|
-
>
|
|
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
|
-
|
|
130
|
+
Analysis complete for task {task-id}.
|
|
130
131
|
|
|
131
|
-
|
|
132
|
-
-
|
|
133
|
-
-
|
|
134
|
-
-
|
|
132
|
+
Summary:
|
|
133
|
+
- Analysis round: Round {analysis-round}
|
|
134
|
+
- Related files: {count}
|
|
135
|
+
- Risk level: {assessment}
|
|
135
136
|
|
|
136
|
-
|
|
137
|
-
-
|
|
137
|
+
Output file:
|
|
138
|
+
- Analysis report: .agents/workspace/active/{task-id}/{analysis-artifact}
|
|
138
139
|
|
|
139
|
-
|
|
140
|
-
- Claude Code / OpenCode
|
|
141
|
-
- Gemini CLI
|
|
142
|
-
- Codex CLI
|
|
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
|
-
- [ ]
|
|
149
|
-
- [ ]
|
|
150
|
-
- [ ]
|
|
151
|
-
- [ ]
|
|
152
|
-
- [ ]
|
|
153
|
-
- [ ]
|
|
154
|
-
- [ ]
|
|
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
|
-
|
|
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.
|
|
164
|
-
2.
|
|
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
|
-
-
|
|
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
|
-
- `.
|
|
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
|
-
扫描 `.
|
|
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
|
-
创建 `.
|
|
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
|
-
更新 `.
|
|
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
|
-
- 分析报告:.
|
|
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
|
-
- [ ] 创建了分析文档 `.
|
|
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 `.
|
|
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 `.
|
|
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 .
|
|
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 .
|
|
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: .
|
|
96
|
+
Archived to: .agents/workspace/blocked/{task-id}/
|
|
97
97
|
|
|
98
98
|
To unblock when the issue is resolved:
|
|
99
|
-
mv .
|
|
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 `.
|
|
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 .
|
|
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
|
-
检查任务是否存在于 `.
|
|
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
|
-
更新 `.
|
|
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 .
|
|
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 .
|
|
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
|
-
归档路径:.
|
|
95
|
+
归档路径:.agents/workspace/blocked/{task-id}/
|
|
96
96
|
|
|
97
97
|
解除阻塞时执行:
|
|
98
|
-
mv .
|
|
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
|
-
- [ ] 将任务目录移动到 `.
|
|
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 .
|
|
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. `.
|
|
23
|
-
2. `.
|
|
24
|
-
3. `.
|
|
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. `.
|
|
21
|
-
2. `.
|
|
22
|
-
3. `.
|
|
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
|
|