@fitlab-ai/agent-infra 0.3.0 → 0.3.2
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 +368 -51
- package/README.zh-CN.md +369 -52
- package/bin/cli.js +1 -1
- package/lib/version.js +2 -1
- package/package.json +1 -1
- package/templates/.agents/README.md +12 -0
- package/templates/.agents/README.zh-CN.md +12 -0
- package/templates/.agents/skills/analyze-task/SKILL.md +106 -105
- package/templates/.agents/skills/check-task/SKILL.md +108 -94
- package/templates/.agents/skills/check-task/SKILL.zh-CN.md +12 -0
- 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 +19 -4
- package/templates/.agents/skills/commit/SKILL.zh-CN.md +19 -4
- package/templates/.agents/skills/complete-task/SKILL.md +11 -1
- package/templates/.agents/skills/complete-task/SKILL.zh-CN.md +11 -1
- package/templates/.agents/skills/create-issue/SKILL.md +302 -0
- package/templates/.agents/skills/create-issue/SKILL.zh-CN.md +302 -0
- package/templates/.agents/skills/create-pr/SKILL.md +140 -5
- package/templates/.agents/skills/create-pr/SKILL.zh-CN.md +140 -5
- 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 +7 -6
- package/templates/.agents/skills/implement-task/SKILL.md +7 -2
- package/templates/.agents/skills/implement-task/SKILL.zh-CN.md +7 -2
- package/templates/.agents/skills/import-codescan/SKILL.md +54 -53
- package/templates/.agents/skills/import-dependabot/SKILL.md +57 -56
- package/templates/.agents/skills/import-issue/SKILL.md +58 -58
- 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/refine-task/SKILL.md +147 -137
- package/templates/.agents/skills/refine-task/SKILL.zh-CN.md +10 -2
- package/templates/.agents/skills/review-task/SKILL.md +196 -186
- package/templates/.agents/skills/review-task/SKILL.zh-CN.md +13 -4
- package/templates/.agents/skills/sync-issue/SKILL.md +252 -272
- package/templates/.agents/skills/sync-issue/SKILL.zh-CN.md +26 -47
- package/templates/.agents/skills/sync-pr/SKILL.md +274 -82
- package/templates/.agents/skills/sync-pr/SKILL.zh-CN.md +251 -59
- package/templates/.agents/skills/update-agent-infra/scripts/sync-templates.js +1 -1
- package/templates/.claude/CLAUDE.md +13 -0
- package/templates/.claude/CLAUDE.zh-CN.md +13 -0
- package/templates/.claude/commands/create-issue.md +8 -0
- package/templates/.claude/commands/create-issue.zh-CN.md +8 -0
- package/templates/.gemini/commands/_project_/create-issue.toml +8 -0
- package/templates/.gemini/commands/_project_/create-issue.zh-CN.toml +8 -0
- package/templates/.opencode/commands/create-issue.md +11 -0
- package/templates/.opencode/commands/create-issue.zh-CN.md +11 -0
- package/templates/AGENTS.md +13 -0
- package/templates/AGENTS.zh-CN.md +13 -0
|
@@ -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
|
-
- `.agent-workspace/active/{task-id}/task.md` -
|
|
21
|
+
Check required files:
|
|
22
|
+
- `.agent-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 `.agent-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 `.agent-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 `.agent-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: .agent-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 `.agent-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"
|
|
@@ -1,122 +1,136 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: check-task
|
|
3
3
|
description: >
|
|
4
|
-
|
|
5
|
-
|
|
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.
|
|
6
8
|
---
|
|
7
9
|
|
|
8
|
-
#
|
|
10
|
+
# Check Task Status
|
|
9
11
|
|
|
10
|
-
##
|
|
12
|
+
## Boundary / Critical Rules
|
|
11
13
|
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
+
- This skill is **read-only** -- do not modify any files
|
|
15
|
+
- Always check the active, blocked, and completed directories
|
|
14
16
|
|
|
15
|
-
##
|
|
17
|
+
## Steps
|
|
16
18
|
|
|
17
|
-
### 1.
|
|
19
|
+
### 1. Locate Task
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
Search for the task in this priority order:
|
|
20
22
|
1. `.agent-workspace/active/{task-id}/task.md`
|
|
21
23
|
2. `.agent-workspace/blocked/{task-id}/task.md`
|
|
22
24
|
3. `.agent-workspace/completed/{task-id}/task.md`
|
|
23
25
|
|
|
24
|
-
|
|
26
|
+
Note: `{task-id}` format is `TASK-{yyyyMMdd-HHmmss}`, for example `TASK-20260306-143022`
|
|
25
27
|
|
|
26
|
-
|
|
28
|
+
If the task is not found in any directory, prompt "Task {task-id} not found".
|
|
27
29
|
|
|
28
|
-
### 2.
|
|
30
|
+
### 2. Read Task Metadata
|
|
29
31
|
|
|
30
|
-
|
|
31
|
-
- `id
|
|
32
|
-
- `current_step
|
|
33
|
-
- `created_at
|
|
34
|
-
- `issue_number
|
|
32
|
+
Extract from `task.md`:
|
|
33
|
+
- `id`, `title`, `type`, `status`, `workflow`
|
|
34
|
+
- `current_step`, `assigned_to`
|
|
35
|
+
- `created_at`, `updated_at`
|
|
36
|
+
- `issue_number`, `pr_number` (if applicable)
|
|
35
37
|
|
|
36
|
-
### 3.
|
|
38
|
+
### 3. Inspect Context Files
|
|
37
39
|
|
|
38
|
-
|
|
39
|
-
- `analysis.md
|
|
40
|
-
- `plan.md
|
|
41
|
-
- `implementation.md
|
|
42
|
-
- `refinement.md
|
|
43
|
-
- `review.md
|
|
40
|
+
Scan and record the existence, round, and status of these artifact types:
|
|
41
|
+
- `analysis.md`, `analysis-r{N}.md` - Requirement analysis
|
|
42
|
+
- `plan.md`, `plan-r{N}.md` - Technical plan
|
|
43
|
+
- `implementation.md`, `implementation-r2.md`, ... - Implementation reports
|
|
44
|
+
- `refinement.md`, `refinement-r2.md`, ... - Refinement reports
|
|
45
|
+
- `review.md`, `review-r2.md`, ... - Review reports
|
|
44
46
|
|
|
45
|
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
47
|
+
For versioned artifacts (`analysis`, `plan`, `implementation`, `refinement`, `review`):
|
|
48
|
+
- Scan all versioned files of the same artifact type in the task directory
|
|
49
|
+
- Record the latest round, latest file path, and total number of rounds for each artifact type
|
|
50
|
+
- If the latest round is recorded in `task.md` Activity Log, cross-check it against the actual file when possible
|
|
49
51
|
|
|
50
|
-
### 4.
|
|
52
|
+
### 4. Output Status Report
|
|
51
53
|
|
|
52
|
-
|
|
54
|
+
Format the status report with a clear structure and status indicators:
|
|
53
55
|
|
|
54
56
|
```
|
|
55
|
-
|
|
57
|
+
Task status: {task-id}
|
|
56
58
|
=======================
|
|
57
59
|
|
|
58
|
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
-
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
[
|
|
69
|
-
[
|
|
70
|
-
[
|
|
71
|
-
[
|
|
72
|
-
[
|
|
73
|
-
[
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
- analysis.md
|
|
77
|
-
- analysis-r2.md
|
|
78
|
-
- plan.md
|
|
79
|
-
- implementation.md
|
|
80
|
-
- refinement.md
|
|
81
|
-
- review.md
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
- plan.md
|
|
85
|
-
- plan-r2.md
|
|
86
|
-
- implementation.md
|
|
87
|
-
- implementation-r2.md
|
|
88
|
-
- refinement.md
|
|
89
|
-
- review.md
|
|
90
|
-
- review-r2.md
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
60
|
+
Basic info:
|
|
61
|
+
- Title: {title}
|
|
62
|
+
- Type: {type}
|
|
63
|
+
- Status: {status}
|
|
64
|
+
- Workflow: {workflow}
|
|
65
|
+
- Assigned to: {assigned_to}
|
|
66
|
+
- Created at: {created_at}
|
|
67
|
+
- Updated at: {updated_at}
|
|
68
|
+
|
|
69
|
+
Workflow progress:
|
|
70
|
+
[done] Requirement Analysis analysis-r2.md (Round 2, latest)
|
|
71
|
+
[done] Technical Design plan.md (Round 1)
|
|
72
|
+
[current] Implementation implementation.md (Round 1)
|
|
73
|
+
[pending] Refinement refinement.md (Round 1 will be created next)
|
|
74
|
+
[pending] Code Review review.md (Round 1 will be created next)
|
|
75
|
+
[pending] Final Commit
|
|
76
|
+
|
|
77
|
+
Context files:
|
|
78
|
+
- analysis.md: Exists (Round 1)
|
|
79
|
+
- analysis-r2.md: Exists (Round 2, latest)
|
|
80
|
+
- plan.md: Exists (Round 1, latest)
|
|
81
|
+
- implementation.md: Exists (Round 1, latest)
|
|
82
|
+
- refinement.md: Not started
|
|
83
|
+
- review.md: Not started
|
|
84
|
+
|
|
85
|
+
If multiple rounds exist, show all rounds and mark the latest, for example:
|
|
86
|
+
- plan.md: Exists (Round 1)
|
|
87
|
+
- plan-r2.md: Exists (Round 2, latest)
|
|
88
|
+
- implementation.md: Exists (Round 1)
|
|
89
|
+
- implementation-r2.md: Exists (Round 2, latest)
|
|
90
|
+
- refinement.md: Exists (Round 1)
|
|
91
|
+
- review.md: Exists (Round 1)
|
|
92
|
+
- review-r2.md: Exists (Round 2, latest)
|
|
93
|
+
|
|
94
|
+
Next step:
|
|
95
|
+
Complete implementation, then run code review
|
|
94
96
|
```
|
|
95
97
|
|
|
96
|
-
|
|
97
|
-
- `[done]` -
|
|
98
|
-
- `[current]` -
|
|
99
|
-
- `[pending]` -
|
|
100
|
-
- `[blocked]` -
|
|
101
|
-
- `[skipped]` -
|
|
102
|
-
|
|
103
|
-
### 5.
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
98
|
+
**Status indicators**:
|
|
99
|
+
- `[done]` - Step completed
|
|
100
|
+
- `[current]` - Currently in progress
|
|
101
|
+
- `[pending]` - Not started yet
|
|
102
|
+
- `[blocked]` - Blocked
|
|
103
|
+
- `[skipped]` - Skipped
|
|
104
|
+
|
|
105
|
+
### 5. Recommend Next Action
|
|
106
|
+
|
|
107
|
+
Recommend the appropriate next skill based on the current workflow state. You must show command formats for all TUI columns in the table below, not just the current AI agent.
|
|
108
|
+
|
|
109
|
+
> **⚠️ CONDITION CHECK — you must choose the single matching row in the table below based on `status`, `current_step`, the latest artifacts, and the latest review result:**
|
|
110
|
+
>
|
|
111
|
+
> - `status = blocked` -> choose "Task Blocked"
|
|
112
|
+
> - `status = completed` -> choose "Task Completed"
|
|
113
|
+
> - `current_step = requirement-analysis` and the latest analysis artifact is complete -> choose "Analysis Complete"
|
|
114
|
+
> - `current_step = technical-design` and the latest plan artifact is complete -> choose "Plan Complete"
|
|
115
|
+
> - The latest implementation artifact exists and there is still no latest review artifact -> choose "Implementation Complete"
|
|
116
|
+
> - The latest review artifact exists, the verdict is `Approved`, and `Blocker = 0`, `Major = 0`, `Minor = 0` -> choose "Review Passed"
|
|
117
|
+
> - The latest review artifact exists, but any `Blocker`, `Major`, or `Minor` issue remains, or the verdict is not a clean approval -> choose "Review Has Issues"
|
|
118
|
+
>
|
|
119
|
+
> **Important: if the latest review report contains any issue at all, do not use the "Review Passed" row. You must use "Review Has Issues" instead.**
|
|
120
|
+
|
|
121
|
+
| Current State | Claude Code / OpenCode | Gemini CLI | Codex CLI |
|
|
122
|
+
|--------------|------------------------|------------|-----------|
|
|
123
|
+
| Analysis Complete | `/plan-task {task-id}` | `/{{project}}:plan-task {task-id}` | `$plan-task {task-id}` |
|
|
124
|
+
| Plan Complete | `/implement-task {task-id}` | `/{{project}}:implement-task {task-id}` | `$implement-task {task-id}` |
|
|
125
|
+
| Implementation Complete | `/review-task {task-id}` | `/{{project}}:review-task {task-id}` | `$review-task {task-id}` |
|
|
126
|
+
| Review Passed | `/commit` | `/{{project}}:commit` | `$commit` |
|
|
127
|
+
| Review Has Issues | `/refine-task {task-id}` | `/{{project}}:refine-task {task-id}` | `$refine-task {task-id}` |
|
|
128
|
+
| Task Blocked | Unblock the task or provide the missing information | — | Unblock the task or provide the missing information |
|
|
129
|
+
| Task Completed | No action needed | — | No action needed |
|
|
130
|
+
|
|
131
|
+
## Notes
|
|
132
|
+
|
|
133
|
+
1. **Read-only**: This skill only reads and reports -- it does not modify files
|
|
134
|
+
2. **Multi-directory search**: Always check active, blocked, and completed
|
|
135
|
+
3. **Quick reference**: Use this skill any time you need to see where a task is in the workflow
|
|
136
|
+
4. **Versioned artifacts**: `analysis`, `plan`, `implementation`, `refinement`, and `review` must all report the actual round, not only the base filename
|
|
@@ -104,6 +104,18 @@ description: >
|
|
|
104
104
|
|
|
105
105
|
根据当前工作流状态,建议合适的下一个技能。必须展示下表中所有 TUI 列的命令格式,不要只展示当前 AI 代理对应的列:
|
|
106
106
|
|
|
107
|
+
> **⚠️ 条件判断 — 你必须先根据 `status`、`current_step`、最新产物和最新审查结果,选择下表中唯一匹配的一行:**
|
|
108
|
+
>
|
|
109
|
+
> - `status = blocked` → 选择「任务被阻塞」
|
|
110
|
+
> - `status = completed` → 选择「任务已完成」
|
|
111
|
+
> - `current_step = requirement-analysis` 且最新分析产物已完成 → 选择「分析完成」
|
|
112
|
+
> - `current_step = technical-design` 且最新计划产物已完成 → 选择「计划完成」
|
|
113
|
+
> - 最新实现产物已存在,且尚无最新审查产物 → 选择「实现完成」
|
|
114
|
+
> - 最新审查产物存在,且结论为 `Approved`,同时 `Blocker = 0`、`Major = 0`、`Minor = 0` → 选择「审查通过」
|
|
115
|
+
> - 最新审查产物存在,但仍有任何 `Blocker`、`Major` 或 `Minor` 问题,或结论不是无问题通过 → 选择「审查有问题」
|
|
116
|
+
>
|
|
117
|
+
> **特别注意:只要最新审查报告中存在任何问题,就不能使用「审查通过」行。必须改用「审查有问题」行。**
|
|
118
|
+
|
|
107
119
|
| 当前状态 | Claude Code / OpenCode | Gemini CLI | Codex CLI |
|
|
108
120
|
|---------|----------------------|------------|-----------|
|
|
109
121
|
| 分析完成 | `/plan-task {task-id}` | `/agent-infra:plan-task {task-id}` | `$plan-task {task-id}` |
|