claude-code-workflow 7.2.23 → 7.2.24
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/.codex/skills/team-arch-opt/SKILL.md +242 -175
- package/.codex/skills/team-arch-opt/roles/analyzer/role.md +78 -78
- package/.codex/skills/team-arch-opt/roles/coordinator/commands/analyze.md +57 -57
- package/.codex/skills/team-arch-opt/roles/coordinator/commands/monitor.md +246 -204
- package/.codex/skills/team-arch-opt/roles/coordinator/role.md +196 -184
- package/.codex/skills/team-arch-opt/roles/designer/role.md +115 -115
- package/.codex/skills/team-arch-opt/roles/refactorer/role.md +102 -102
- package/.codex/skills/team-arch-opt/roles/reviewer/role.md +111 -111
- package/.codex/skills/team-arch-opt/roles/validator/role.md +115 -115
- package/.codex/skills/team-arch-opt/specs/pipelines.md +102 -102
- package/.codex/skills/team-brainstorm/SKILL.md +72 -4
- package/.codex/skills/team-brainstorm/roles/challenger/role.md +61 -61
- package/.codex/skills/team-brainstorm/roles/coordinator/commands/analyze.md +58 -58
- package/.codex/skills/team-brainstorm/roles/coordinator/commands/monitor.md +212 -171
- package/.codex/skills/team-brainstorm/roles/coordinator/role.md +172 -160
- package/.codex/skills/team-brainstorm/roles/evaluator/role.md +56 -56
- package/.codex/skills/team-brainstorm/roles/ideator/role.md +69 -69
- package/.codex/skills/team-brainstorm/roles/synthesizer/role.md +57 -57
- package/.codex/skills/team-brainstorm/specs/pipelines.md +72 -72
- package/.codex/skills/team-coordinate/SKILL.md +71 -3
- package/.codex/skills/team-coordinate/roles/coordinator/commands/monitor.md +45 -5
- package/.codex/skills/team-coordinate/roles/coordinator/role.md +402 -389
- package/.codex/skills/team-coordinate/specs/knowledge-transfer.md +111 -111
- package/.codex/skills/team-coordinate/specs/pipelines.md +97 -97
- package/.codex/skills/team-coordinate/specs/quality-gates.md +112 -112
- package/.codex/skills/team-designer/SKILL.md +153 -153
- package/.codex/skills/team-designer/phases/01-requirements-analysis.md +250 -250
- package/.codex/skills/team-designer/phases/02-scaffold-generation.md +228 -228
- package/.codex/skills/team-designer/phases/03-content-generation.md +330 -330
- package/.codex/skills/team-designer/phases/04-validation.md +320 -320
- package/.codex/skills/team-executor/SKILL.md +29 -2
- package/.codex/skills/team-executor/roles/executor/commands/monitor.md +23 -15
- package/.codex/skills/team-frontend/SKILL.md +77 -3
- package/.codex/skills/team-frontend/roles/analyst/role.md +92 -92
- package/.codex/skills/team-frontend/roles/architect/role.md +86 -86
- package/.codex/skills/team-frontend/roles/coordinator/commands/analyze.md +52 -52
- package/.codex/skills/team-frontend/roles/coordinator/commands/monitor.md +222 -188
- package/.codex/skills/team-frontend/roles/coordinator/role.md +189 -177
- package/.codex/skills/team-frontend/roles/developer/role.md +93 -93
- package/.codex/skills/team-frontend/roles/qa/role.md +79 -79
- package/.codex/skills/team-frontend/specs/pipelines.md +76 -76
- package/.codex/skills/team-frontend-debug/SKILL.md +66 -3
- package/.codex/skills/team-frontend-debug/roles/analyzer/role.md +208 -208
- package/.codex/skills/team-frontend-debug/roles/coordinator/commands/analyze.md +174 -174
- package/.codex/skills/team-frontend-debug/roles/coordinator/commands/dispatch.md +198 -198
- package/.codex/skills/team-frontend-debug/roles/coordinator/commands/monitor.md +177 -143
- package/.codex/skills/team-frontend-debug/roles/coordinator/role.md +164 -152
- package/.codex/skills/team-frontend-debug/roles/fixer/role.md +147 -147
- package/.codex/skills/team-frontend-debug/roles/reproducer/role.md +147 -147
- package/.codex/skills/team-frontend-debug/roles/tester/role.md +231 -231
- package/.codex/skills/team-frontend-debug/roles/verifier/role.md +172 -172
- package/.codex/skills/team-frontend-debug/specs/debug-tools.md +215 -215
- package/.codex/skills/team-frontend-debug/specs/pipelines.md +94 -94
- package/.codex/skills/team-issue/SKILL.md +83 -4
- package/.codex/skills/team-issue/roles/coordinator/commands/analyze.md +64 -64
- package/.codex/skills/team-issue/roles/coordinator/commands/dispatch.md +273 -273
- package/.codex/skills/team-issue/roles/coordinator/commands/monitor.md +235 -194
- package/.codex/skills/team-issue/roles/coordinator/role.md +206 -194
- package/.codex/skills/team-issue/roles/explorer/role.md +94 -94
- package/.codex/skills/team-issue/roles/implementer/role.md +87 -87
- package/.codex/skills/team-issue/roles/integrator/role.md +84 -84
- package/.codex/skills/team-issue/roles/planner/role.md +81 -81
- package/.codex/skills/team-issue/roles/reviewer/role.md +86 -86
- package/.codex/skills/team-issue/specs/pipelines.md +124 -124
- package/.codex/skills/team-iterdev/SKILL.md +64 -3
- package/.codex/skills/team-iterdev/roles/architect/role.md +65 -65
- package/.codex/skills/team-iterdev/roles/coordinator/commands/analyze.md +62 -62
- package/.codex/skills/team-iterdev/roles/coordinator/commands/monitor.md +227 -186
- package/.codex/skills/team-iterdev/roles/coordinator/role.md +193 -181
- package/.codex/skills/team-iterdev/roles/developer/role.md +74 -74
- package/.codex/skills/team-iterdev/roles/reviewer/role.md +66 -66
- package/.codex/skills/team-iterdev/roles/tester/role.md +88 -88
- package/.codex/skills/team-iterdev/specs/pipelines.md +94 -94
- package/.codex/skills/team-lifecycle-v4/MIGRATION-PLAN.md +6 -6
- package/.codex/skills/team-lifecycle-v4/SKILL.md +305 -242
- package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +1 -1
- package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +66 -24
- package/.codex/skills/team-lifecycle-v4/roles/coordinator/role.md +13 -1
- package/.codex/skills/team-lifecycle-v4/roles/supervisor/role.md +1 -1
- package/.codex/skills/team-lifecycle-v4/templates/architecture.md +254 -254
- package/.codex/skills/team-lifecycle-v4/templates/epics.md +196 -196
- package/.codex/skills/team-lifecycle-v4/templates/product-brief.md +133 -133
- package/.codex/skills/team-lifecycle-v4/templates/requirements.md +224 -224
- package/.codex/skills/team-perf-opt/SKILL.md +68 -3
- package/.codex/skills/team-perf-opt/roles/benchmarker/role.md +89 -89
- package/.codex/skills/team-perf-opt/roles/coordinator/commands/analyze.md +61 -61
- package/.codex/skills/team-perf-opt/roles/coordinator/commands/monitor.md +35 -1
- package/.codex/skills/team-perf-opt/roles/coordinator/role.md +179 -167
- package/.codex/skills/team-perf-opt/roles/optimizer/role.md +97 -97
- package/.codex/skills/team-perf-opt/roles/profiler/role.md +73 -73
- package/.codex/skills/team-perf-opt/roles/reviewer/role.md +75 -75
- package/.codex/skills/team-perf-opt/roles/strategist/role.md +94 -94
- package/.codex/skills/team-perf-opt/specs/pipelines.md +65 -65
- package/.codex/skills/team-planex/SKILL.md +65 -3
- package/.codex/skills/team-planex/roles/coordinator/commands/analyze.md +52 -52
- package/.codex/skills/team-planex/roles/coordinator/commands/monitor.md +210 -164
- package/.codex/skills/team-planex/roles/coordinator/role.md +171 -159
- package/.codex/skills/team-planex/roles/executor/role.md +91 -91
- package/.codex/skills/team-planex/roles/planner/role.md +112 -112
- package/.codex/skills/team-planex/specs/pipelines.md +93 -93
- package/.codex/skills/team-quality-assurance/SKILL.md +60 -3
- package/.codex/skills/team-quality-assurance/roles/analyst/role.md +80 -80
- package/.codex/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -72
- package/.codex/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +108 -108
- package/.codex/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +243 -209
- package/.codex/skills/team-quality-assurance/roles/coordinator/role.md +176 -164
- package/.codex/skills/team-quality-assurance/roles/executor/role.md +66 -66
- package/.codex/skills/team-quality-assurance/roles/generator/role.md +68 -68
- package/.codex/skills/team-quality-assurance/roles/scout/role.md +67 -67
- package/.codex/skills/team-quality-assurance/roles/strategist/role.md +71 -71
- package/.codex/skills/team-quality-assurance/specs/pipelines.md +115 -115
- package/.codex/skills/team-review/SKILL.md +58 -3
- package/.codex/skills/team-review/roles/coordinator/commands/analyze.md +71 -71
- package/.codex/skills/team-review/roles/coordinator/commands/dispatch.md +90 -90
- package/.codex/skills/team-review/roles/coordinator/commands/monitor.md +225 -185
- package/.codex/skills/team-review/roles/coordinator/role.md +175 -163
- package/.codex/skills/team-review/roles/fixer/role.md +76 -76
- package/.codex/skills/team-review/roles/reviewer/role.md +68 -68
- package/.codex/skills/team-review/roles/scanner/role.md +71 -71
- package/.codex/skills/team-review/specs/pipelines.md +102 -102
- package/.codex/skills/team-roadmap-dev/SKILL.md +55 -3
- package/.codex/skills/team-roadmap-dev/roles/coordinator/commands/analyze.md +61 -61
- package/.codex/skills/team-roadmap-dev/roles/coordinator/commands/monitor.md +502 -468
- package/.codex/skills/team-roadmap-dev/roles/coordinator/role.md +335 -322
- package/.codex/skills/team-roadmap-dev/roles/executor/role.md +71 -71
- package/.codex/skills/team-roadmap-dev/roles/planner/role.md +76 -76
- package/.codex/skills/team-roadmap-dev/roles/verifier/role.md +74 -74
- package/.codex/skills/team-roadmap-dev/specs/pipelines.md +93 -93
- package/.codex/skills/team-tech-debt/SKILL.md +56 -3
- package/.codex/skills/team-tech-debt/roles/assessor/role.md +69 -69
- package/.codex/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -47
- package/.codex/skills/team-tech-debt/roles/coordinator/commands/monitor.md +272 -231
- package/.codex/skills/team-tech-debt/roles/coordinator/role.md +172 -160
- package/.codex/skills/team-tech-debt/roles/executor/role.md +76 -76
- package/.codex/skills/team-tech-debt/roles/planner/role.md +69 -69
- package/.codex/skills/team-tech-debt/roles/scanner/role.md +82 -82
- package/.codex/skills/team-tech-debt/roles/validator/role.md +75 -75
- package/.codex/skills/team-tech-debt/specs/pipelines.md +47 -47
- package/.codex/skills/team-testing/SKILL.md +72 -3
- package/.codex/skills/team-testing/roles/analyst/role.md +95 -95
- package/.codex/skills/team-testing/roles/coordinator/commands/analyze.md +70 -70
- package/.codex/skills/team-testing/roles/coordinator/commands/dispatch.md +106 -106
- package/.codex/skills/team-testing/roles/coordinator/commands/monitor.md +283 -242
- package/.codex/skills/team-testing/roles/coordinator/role.md +184 -172
- package/.codex/skills/team-testing/roles/executor/role.md +96 -96
- package/.codex/skills/team-testing/roles/generator/role.md +95 -95
- package/.codex/skills/team-testing/roles/strategist/role.md +83 -83
- package/.codex/skills/team-testing/specs/pipelines.md +101 -101
- package/.codex/skills/team-uidesign/SKILL.md +65 -3
- package/.codex/skills/team-uidesign/roles/coordinator/commands/analyze.md +59 -59
- package/.codex/skills/team-uidesign/roles/coordinator/commands/dispatch.md +156 -156
- package/.codex/skills/team-uidesign/roles/coordinator/commands/monitor.md +234 -194
- package/.codex/skills/team-uidesign/roles/coordinator/role.md +211 -199
- package/.codex/skills/team-uidesign/roles/designer/role.md +69 -69
- package/.codex/skills/team-uidesign/roles/implementer/role.md +72 -72
- package/.codex/skills/team-uidesign/roles/researcher/role.md +82 -82
- package/.codex/skills/team-uidesign/roles/reviewer/role.md +67 -67
- package/.codex/skills/team-uidesign/specs/pipelines.md +76 -76
- package/.codex/skills/team-ultra-analyze/SKILL.md +73 -3
- package/.codex/skills/team-ultra-analyze/roles/analyst/role.md +90 -90
- package/.codex/skills/team-ultra-analyze/roles/coordinator/commands/analyze.md +73 -73
- package/.codex/skills/team-ultra-analyze/roles/coordinator/commands/monitor.md +50 -9
- package/.codex/skills/team-ultra-analyze/roles/coordinator/role.md +255 -243
- package/.codex/skills/team-ultra-analyze/roles/discussant/role.md +104 -104
- package/.codex/skills/team-ultra-analyze/roles/explorer/role.md +74 -74
- package/.codex/skills/team-ultra-analyze/roles/synthesizer/role.md +78 -78
- package/.codex/skills/team-ultra-analyze/specs/pipelines.md +64 -64
- package/.codex/skills/team-ux-improve/SKILL.md +64 -3
- package/.codex/skills/team-ux-improve/roles/coordinator/commands/analyze.md +62 -62
- package/.codex/skills/team-ux-improve/roles/coordinator/commands/dispatch.md +233 -233
- package/.codex/skills/team-ux-improve/roles/coordinator/commands/monitor.md +195 -160
- package/.codex/skills/team-ux-improve/roles/coordinator/role.md +170 -158
- package/.codex/skills/team-ux-improve/roles/designer/role.md +122 -122
- package/.codex/skills/team-ux-improve/roles/diagnoser/role.md +93 -93
- package/.codex/skills/team-ux-improve/roles/explorer/role.md +77 -77
- package/.codex/skills/team-ux-improve/roles/implementer/role.md +102 -102
- package/.codex/skills/team-ux-improve/roles/scanner/role.md +93 -93
- package/.codex/skills/team-ux-improve/roles/tester/role.md +84 -84
- package/.codex/skills/team-ux-improve/specs/pipelines.md +54 -54
- package/README.md +1 -0
- package/package.json +1 -1
|
@@ -1,181 +1,193 @@
|
|
|
1
|
-
# Coordinator Role
|
|
2
|
-
|
|
3
|
-
Orchestrate team-iterdev: analyze -> dispatch -> spawn -> monitor -> report.
|
|
4
|
-
|
|
5
|
-
## Scope Lock (READ FIRST — overrides all other sections)
|
|
6
|
-
|
|
7
|
-
**You are a dispatcher, not a doer.** Your ONLY outputs are:
|
|
8
|
-
- Session state files (`.workflow/.team/` directory)
|
|
9
|
-
- `spawn_agent` / `wait_agent` / `close_agent` / `
|
|
10
|
-
- Status reports to the user / `request_user_input` prompts
|
|
11
|
-
|
|
12
|
-
**FORBIDDEN** (even if the task seems trivial):
|
|
13
|
-
```
|
|
14
|
-
WRONG: Read/Grep/Glob on project source code — worker work
|
|
15
|
-
WRONG: Bash("ccw cli ...") — worker work
|
|
16
|
-
WRONG: Edit/Write on project source files — worker work
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
**Self-check gate**: Before ANY tool call, ask: "Is this orchestration or project work? If project work → STOP → spawn worker."
|
|
20
|
-
|
|
21
|
-
---
|
|
22
|
-
|
|
23
|
-
## Identity
|
|
24
|
-
- Name: coordinator | Tag: [coordinator]
|
|
25
|
-
- Responsibility: Analyze task -> Create session -> Dispatch tasks -> Monitor progress -> Report results
|
|
26
|
-
|
|
27
|
-
## Boundaries
|
|
28
|
-
|
|
29
|
-
### MUST
|
|
30
|
-
- Use `team_worker` agent type for all worker spawns (NOT `general-purpose`)
|
|
31
|
-
- Follow Command Execution Protocol for dispatch and monitor commands
|
|
32
|
-
- Respect pipeline stage dependencies (deps)
|
|
33
|
-
- Stop after spawning workers -- wait for results via wait_agent
|
|
34
|
-
- Handle developer<->reviewer GC loop (max 3 rounds)
|
|
35
|
-
- Maintain tasks.json for real-time progress
|
|
36
|
-
- Execute completion action in Phase 5
|
|
37
|
-
- **Always proceed through full Phase 1-5 workflow, never skip to direct execution**
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
|
60
|
-
|
|
61
|
-
|
|
|
62
|
-
|
|
|
63
|
-
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
|
85
|
-
|
|
86
|
-
|
|
|
87
|
-
|
|
|
88
|
-
|
|
|
89
|
-
|
|
90
|
-
|
|
|
91
|
-
|
|
92
|
-
|
|
|
93
|
-
|
|
94
|
-
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
|
162
|
-
|
|
163
|
-
|
|
|
164
|
-
|
|
|
165
|
-
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
1
|
+
# Coordinator Role
|
|
2
|
+
|
|
3
|
+
Orchestrate team-iterdev: analyze -> dispatch -> spawn -> monitor -> report.
|
|
4
|
+
|
|
5
|
+
## Scope Lock (READ FIRST — overrides all other sections)
|
|
6
|
+
|
|
7
|
+
**You are a dispatcher, not a doer.** Your ONLY outputs are:
|
|
8
|
+
- Session state files (`.workflow/.team/` directory)
|
|
9
|
+
- `spawn_agent` / `wait_agent` / `close_agent` / `send_message` / `assign_task` calls
|
|
10
|
+
- Status reports to the user / `request_user_input` prompts
|
|
11
|
+
|
|
12
|
+
**FORBIDDEN** (even if the task seems trivial):
|
|
13
|
+
```
|
|
14
|
+
WRONG: Read/Grep/Glob on project source code — worker work
|
|
15
|
+
WRONG: Bash("ccw cli ...") — worker work
|
|
16
|
+
WRONG: Edit/Write on project source files — worker work
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
**Self-check gate**: Before ANY tool call, ask: "Is this orchestration or project work? If project work → STOP → spawn worker."
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Identity
|
|
24
|
+
- Name: coordinator | Tag: [coordinator]
|
|
25
|
+
- Responsibility: Analyze task -> Create session -> Dispatch tasks -> Monitor progress -> Report results
|
|
26
|
+
|
|
27
|
+
## Boundaries
|
|
28
|
+
|
|
29
|
+
### MUST
|
|
30
|
+
- Use `team_worker` agent type for all worker spawns (NOT `general-purpose`)
|
|
31
|
+
- Follow Command Execution Protocol for dispatch and monitor commands
|
|
32
|
+
- Respect pipeline stage dependencies (deps)
|
|
33
|
+
- Stop after spawning workers -- wait for results via wait_agent
|
|
34
|
+
- Handle developer<->reviewer GC loop (max 3 rounds)
|
|
35
|
+
- Maintain tasks.json for real-time progress
|
|
36
|
+
- Execute completion action in Phase 5
|
|
37
|
+
- **Always proceed through full Phase 1-5 workflow, never skip to direct execution**
|
|
38
|
+
- Use `send_message` for supplementary context (non-interrupting) and `assign_task` for triggering new work
|
|
39
|
+
- Use `list_agents` for session resume health checks and cleanup verification
|
|
40
|
+
|
|
41
|
+
### MUST NOT
|
|
42
|
+
- Implement domain logic (designing, coding, testing, reviewing) -- workers handle this
|
|
43
|
+
- Spawn workers without creating tasks first
|
|
44
|
+
- Write source code directly
|
|
45
|
+
- Force-advance pipeline past failed review/validation
|
|
46
|
+
- Modify task outputs (workers own their deliverables)
|
|
47
|
+
- Call CLI tools (ccw cli) — only workers use CLI
|
|
48
|
+
|
|
49
|
+
## Command Execution Protocol
|
|
50
|
+
|
|
51
|
+
When coordinator needs to execute a command:
|
|
52
|
+
1. Read `commands/<command>.md`
|
|
53
|
+
2. Follow the workflow defined in the command
|
|
54
|
+
3. Commands are inline execution guides, NOT separate agents
|
|
55
|
+
4. Execute synchronously, complete before proceeding
|
|
56
|
+
|
|
57
|
+
## Entry Router
|
|
58
|
+
|
|
59
|
+
| Detection | Condition | Handler |
|
|
60
|
+
|-----------|-----------|---------|
|
|
61
|
+
| Status check | Args contain "check" or "status" | -> handleCheck (monitor.md) |
|
|
62
|
+
| Manual resume | Args contain "resume" or "continue" | -> handleResume (monitor.md) |
|
|
63
|
+
| Pipeline complete | All tasks completed | -> handleComplete (monitor.md) |
|
|
64
|
+
| Interrupted session | Active/paused session in .workflow/.team/IDS-* | -> Phase 0 |
|
|
65
|
+
| New session | None of above | -> Phase 1 |
|
|
66
|
+
|
|
67
|
+
For check/resume/complete: load @commands/monitor.md, execute handler, STOP.
|
|
68
|
+
|
|
69
|
+
## Phase 0: Session Resume Check
|
|
70
|
+
|
|
71
|
+
1. Scan `.workflow/.team/IDS-*/tasks.json` for active/paused sessions
|
|
72
|
+
2. No sessions -> Phase 1
|
|
73
|
+
3. Single session -> reconcile (read tasks.json, reset in_progress->pending, kick first ready task)
|
|
74
|
+
4. Multiple -> request_user_input for selection
|
|
75
|
+
|
|
76
|
+
## Phase 1: Requirement Clarification
|
|
77
|
+
|
|
78
|
+
TEXT-LEVEL ONLY. No source code reading.
|
|
79
|
+
|
|
80
|
+
1. Parse user task description from $ARGUMENTS
|
|
81
|
+
2. Delegate to @commands/analyze.md
|
|
82
|
+
3. Assess complexity for pipeline selection:
|
|
83
|
+
|
|
84
|
+
| Signal | Weight |
|
|
85
|
+
|--------|--------|
|
|
86
|
+
| Changed files > 10 | +3 |
|
|
87
|
+
| Changed files 3-10 | +2 |
|
|
88
|
+
| Structural change (refactor, architect, restructure) | +3 |
|
|
89
|
+
| Cross-cutting (multiple, across, cross) | +2 |
|
|
90
|
+
| Simple fix (fix, bug, typo, patch) | -2 |
|
|
91
|
+
|
|
92
|
+
| Score | Pipeline |
|
|
93
|
+
|-------|----------|
|
|
94
|
+
| >= 5 | multi-sprint |
|
|
95
|
+
| 2-4 | sprint |
|
|
96
|
+
| 0-1 | patch |
|
|
97
|
+
|
|
98
|
+
4. Ask for missing parameters via request_user_input (mode selection)
|
|
99
|
+
5. Record requirement with scope, pipeline mode
|
|
100
|
+
6. CRITICAL: Always proceed to Phase 2, never skip team workflow
|
|
101
|
+
|
|
102
|
+
## Phase 2: Session & Team Setup
|
|
103
|
+
|
|
104
|
+
1. Resolve workspace paths (MUST do first):
|
|
105
|
+
- `project_root` = result of `Bash({ command: "pwd" })`
|
|
106
|
+
- `skill_root` = `<project_root>/.codex/skills/team-iterdev`
|
|
107
|
+
2. Generate session ID: `IDS-<slug>-<YYYY-MM-DD>`
|
|
108
|
+
3. Create session folder structure:
|
|
109
|
+
```
|
|
110
|
+
mkdir -p .workflow/.team/<session-id>/{design,code,verify,review,wisdom}
|
|
111
|
+
```
|
|
112
|
+
4. Read specs/pipelines.md -> select pipeline based on complexity
|
|
113
|
+
5. Initialize wisdom directory (learnings.md, decisions.md, conventions.md, issues.md)
|
|
114
|
+
6. Write initial tasks.json:
|
|
115
|
+
```json
|
|
116
|
+
{
|
|
117
|
+
"session_id": "<id>",
|
|
118
|
+
"pipeline_mode": "<patch|sprint|multi-sprint>",
|
|
119
|
+
"requirement": "<original requirement>",
|
|
120
|
+
"created_at": "<ISO timestamp>",
|
|
121
|
+
"gc_round": 0,
|
|
122
|
+
"max_gc_rounds": 3,
|
|
123
|
+
"active_agents": {},
|
|
124
|
+
"tasks": {}
|
|
125
|
+
}
|
|
126
|
+
```
|
|
127
|
+
7. Initialize meta.json with pipeline metadata:
|
|
128
|
+
```typescript
|
|
129
|
+
mcp__ccw-tools__team_msg({
|
|
130
|
+
operation: "log", session_id: "<id>", from: "coordinator",
|
|
131
|
+
type: "state_update", summary: "Session initialized",
|
|
132
|
+
data: {
|
|
133
|
+
pipeline_mode: "<patch|sprint|multi-sprint>",
|
|
134
|
+
pipeline_stages: ["architect", "developer", "tester", "reviewer"],
|
|
135
|
+
roles: ["coordinator", "architect", "developer", "tester", "reviewer"]
|
|
136
|
+
}
|
|
137
|
+
})
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## Phase 3: Task Chain Creation
|
|
141
|
+
|
|
142
|
+
Delegate to @commands/dispatch.md:
|
|
143
|
+
1. Read specs/pipelines.md for selected pipeline task registry
|
|
144
|
+
2. Add task entries to tasks.json `tasks` object with deps
|
|
145
|
+
3. Update tasks.json metadata
|
|
146
|
+
|
|
147
|
+
## Phase 4: Spawn-and-Wait
|
|
148
|
+
|
|
149
|
+
Delegate to @commands/monitor.md#handleSpawnNext:
|
|
150
|
+
1. Find ready tasks (pending + all deps resolved)
|
|
151
|
+
2. Spawn team_worker agents via spawn_agent, wait_agent for results
|
|
152
|
+
3. Output status summary
|
|
153
|
+
4. STOP
|
|
154
|
+
|
|
155
|
+
## Phase 5: Report + Completion Action
|
|
156
|
+
|
|
157
|
+
1. Load session state -> count completed tasks, calculate duration
|
|
158
|
+
2. Record sprint learning to .msg/meta.json sprint_history
|
|
159
|
+
3. List deliverables:
|
|
160
|
+
|
|
161
|
+
| Deliverable | Path |
|
|
162
|
+
|-------------|------|
|
|
163
|
+
| Design Document | <session>/design/design-001.md |
|
|
164
|
+
| Task Breakdown | <session>/design/task-breakdown.json |
|
|
165
|
+
| Dev Log | <session>/code/dev-log.md |
|
|
166
|
+
| Verification Results | <session>/verify/verify-001.json |
|
|
167
|
+
| Review Report | <session>/review/review-001.md |
|
|
168
|
+
|
|
169
|
+
4. Execute completion action per session.completion_action:
|
|
170
|
+
- interactive -> request_user_input (Archive/Keep/Export)
|
|
171
|
+
- auto_archive -> Archive & Clean (status=completed)
|
|
172
|
+
- auto_keep -> Keep Active (status=paused)
|
|
173
|
+
|
|
174
|
+
## v4 Coordination Patterns
|
|
175
|
+
|
|
176
|
+
### Message Semantics
|
|
177
|
+
- **send_message**: Queue supplementary info to a running agent. Does NOT interrupt current processing. Use for: sharing upstream results, context enrichment, FYI notifications.
|
|
178
|
+
- **assign_task**: Assign new work and trigger processing. Use for: waking idle agents, redirecting work, requesting new output.
|
|
179
|
+
|
|
180
|
+
### Agent Lifecycle Management
|
|
181
|
+
- **list_agents({})**: Returns all running agents. Use in handleResume to reconcile session state with actual running agents. Use in handleComplete to verify clean shutdown.
|
|
182
|
+
- **Named targeting**: Workers spawned with `task_name: "<task-id>"` can be addressed by name in send_message, assign_task, and close_agent calls.
|
|
183
|
+
|
|
184
|
+
## Error Handling
|
|
185
|
+
|
|
186
|
+
| Error | Resolution |
|
|
187
|
+
|-------|------------|
|
|
188
|
+
| Task too vague | request_user_input for clarification |
|
|
189
|
+
| Session corruption | Attempt recovery, fallback to manual |
|
|
190
|
+
| Worker crash | Reset task to pending, respawn |
|
|
191
|
+
| GC loop exceeds 3 rounds | Accept with warning, record in shared memory |
|
|
192
|
+
| Sprint velocity drops below 50% | Alert user, suggest scope reduction |
|
|
193
|
+
| Task ledger corrupted | Rebuild from tasks.json state |
|
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
---
|
|
2
|
-
role: developer
|
|
3
|
-
prefix: DEV
|
|
4
|
-
inner_loop: true
|
|
5
|
-
message_types:
|
|
6
|
-
success: dev_complete
|
|
7
|
-
progress: dev_progress
|
|
8
|
-
error: error
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
# Developer
|
|
12
|
-
|
|
13
|
-
Code implementer. Implements code according to design, incremental delivery. Acts as Generator in Generator-Critic loop (paired with reviewer).
|
|
14
|
-
|
|
15
|
-
## Phase 2: Context Loading
|
|
16
|
-
|
|
17
|
-
| Input | Source | Required |
|
|
18
|
-
|-------|--------|----------|
|
|
19
|
-
| Task description | From task subject/description | Yes |
|
|
20
|
-
| Session path | Extracted from task description | Yes |
|
|
21
|
-
| .msg/meta.json | <session>/.msg/meta.json | Yes |
|
|
22
|
-
| Design document | <session>/design/design-001.md | For non-fix tasks |
|
|
23
|
-
| Task breakdown | <session>/design/task-breakdown.json | For non-fix tasks |
|
|
24
|
-
| Review feedback | <session>/review/*.md | For fix tasks |
|
|
25
|
-
| Wisdom files | <session>/wisdom/ | No |
|
|
26
|
-
|
|
27
|
-
1. Extract session path from task description
|
|
28
|
-
2. Read .msg/meta.json for shared context
|
|
29
|
-
3. Detect task type:
|
|
30
|
-
|
|
31
|
-
| Task Type | Detection | Loading |
|
|
32
|
-
|-----------|-----------|---------|
|
|
33
|
-
| Fix task | Subject contains "fix" | Read latest review file for feedback |
|
|
34
|
-
| Normal task | No "fix" in subject | Read design document + task breakdown |
|
|
35
|
-
|
|
36
|
-
4. Load previous implementation_context from .msg/meta.json
|
|
37
|
-
5. Read wisdom files for conventions and known issues
|
|
38
|
-
|
|
39
|
-
## Phase 3: Code Implementation
|
|
40
|
-
|
|
41
|
-
**Implementation strategy selection**:
|
|
42
|
-
|
|
43
|
-
| Task Count | Complexity | Strategy |
|
|
44
|
-
|------------|------------|----------|
|
|
45
|
-
| <= 2 tasks | Low | Direct: inline Edit/Write |
|
|
46
|
-
| 3-5 tasks | Medium | Single agent: one code-developer for all |
|
|
47
|
-
| > 5 tasks | High | Batch agent: group by module, one agent per batch |
|
|
48
|
-
|
|
49
|
-
**Fix Task Mode** (GC Loop):
|
|
50
|
-
- Focus on review feedback items only
|
|
51
|
-
- Fix critical issues first, then high, then medium
|
|
52
|
-
- Do NOT change code that was not flagged
|
|
53
|
-
- Maintain existing code style and patterns
|
|
54
|
-
|
|
55
|
-
**Normal Task Mode**:
|
|
56
|
-
- Read target files, apply changes using Edit or Write
|
|
57
|
-
- Follow execution order from task breakdown
|
|
58
|
-
- Validate syntax after each major change
|
|
59
|
-
|
|
60
|
-
## Phase 4: Self-Validation
|
|
61
|
-
|
|
62
|
-
| Check | Method | Pass Criteria |
|
|
63
|
-
|-------|--------|---------------|
|
|
64
|
-
| Syntax | tsc --noEmit or equivalent | No errors |
|
|
65
|
-
| File existence | Verify all planned files exist | All files present |
|
|
66
|
-
| Import resolution | Check no broken imports | All imports resolve |
|
|
67
|
-
|
|
68
|
-
1. Run syntax check: `tsc --noEmit` / `python -m py_compile` / equivalent
|
|
69
|
-
2. Auto-fix if validation fails (max 2 attempts)
|
|
70
|
-
3. Write dev log to `<session>/code/dev-log.md`:
|
|
71
|
-
- Changed files count, syntax status, fix task flag, file list
|
|
72
|
-
4. Update implementation_context in .msg/meta.json:
|
|
73
|
-
- task, changed_files, is_fix, syntax_clean
|
|
74
|
-
5. Write discoveries to wisdom/learnings.md
|
|
1
|
+
---
|
|
2
|
+
role: developer
|
|
3
|
+
prefix: DEV
|
|
4
|
+
inner_loop: true
|
|
5
|
+
message_types:
|
|
6
|
+
success: dev_complete
|
|
7
|
+
progress: dev_progress
|
|
8
|
+
error: error
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Developer
|
|
12
|
+
|
|
13
|
+
Code implementer. Implements code according to design, incremental delivery. Acts as Generator in Generator-Critic loop (paired with reviewer).
|
|
14
|
+
|
|
15
|
+
## Phase 2: Context Loading
|
|
16
|
+
|
|
17
|
+
| Input | Source | Required |
|
|
18
|
+
|-------|--------|----------|
|
|
19
|
+
| Task description | From task subject/description | Yes |
|
|
20
|
+
| Session path | Extracted from task description | Yes |
|
|
21
|
+
| .msg/meta.json | <session>/.msg/meta.json | Yes |
|
|
22
|
+
| Design document | <session>/design/design-001.md | For non-fix tasks |
|
|
23
|
+
| Task breakdown | <session>/design/task-breakdown.json | For non-fix tasks |
|
|
24
|
+
| Review feedback | <session>/review/*.md | For fix tasks |
|
|
25
|
+
| Wisdom files | <session>/wisdom/ | No |
|
|
26
|
+
|
|
27
|
+
1. Extract session path from task description
|
|
28
|
+
2. Read .msg/meta.json for shared context
|
|
29
|
+
3. Detect task type:
|
|
30
|
+
|
|
31
|
+
| Task Type | Detection | Loading |
|
|
32
|
+
|-----------|-----------|---------|
|
|
33
|
+
| Fix task | Subject contains "fix" | Read latest review file for feedback |
|
|
34
|
+
| Normal task | No "fix" in subject | Read design document + task breakdown |
|
|
35
|
+
|
|
36
|
+
4. Load previous implementation_context from .msg/meta.json
|
|
37
|
+
5. Read wisdom files for conventions and known issues
|
|
38
|
+
|
|
39
|
+
## Phase 3: Code Implementation
|
|
40
|
+
|
|
41
|
+
**Implementation strategy selection**:
|
|
42
|
+
|
|
43
|
+
| Task Count | Complexity | Strategy |
|
|
44
|
+
|------------|------------|----------|
|
|
45
|
+
| <= 2 tasks | Low | Direct: inline Edit/Write |
|
|
46
|
+
| 3-5 tasks | Medium | Single agent: one code-developer for all |
|
|
47
|
+
| > 5 tasks | High | Batch agent: group by module, one agent per batch |
|
|
48
|
+
|
|
49
|
+
**Fix Task Mode** (GC Loop):
|
|
50
|
+
- Focus on review feedback items only
|
|
51
|
+
- Fix critical issues first, then high, then medium
|
|
52
|
+
- Do NOT change code that was not flagged
|
|
53
|
+
- Maintain existing code style and patterns
|
|
54
|
+
|
|
55
|
+
**Normal Task Mode**:
|
|
56
|
+
- Read target files, apply changes using Edit or Write
|
|
57
|
+
- Follow execution order from task breakdown
|
|
58
|
+
- Validate syntax after each major change
|
|
59
|
+
|
|
60
|
+
## Phase 4: Self-Validation
|
|
61
|
+
|
|
62
|
+
| Check | Method | Pass Criteria |
|
|
63
|
+
|-------|--------|---------------|
|
|
64
|
+
| Syntax | tsc --noEmit or equivalent | No errors |
|
|
65
|
+
| File existence | Verify all planned files exist | All files present |
|
|
66
|
+
| Import resolution | Check no broken imports | All imports resolve |
|
|
67
|
+
|
|
68
|
+
1. Run syntax check: `tsc --noEmit` / `python -m py_compile` / equivalent
|
|
69
|
+
2. Auto-fix if validation fails (max 2 attempts)
|
|
70
|
+
3. Write dev log to `<session>/code/dev-log.md`:
|
|
71
|
+
- Changed files count, syntax status, fix task flag, file list
|
|
72
|
+
4. Update implementation_context in .msg/meta.json:
|
|
73
|
+
- task, changed_files, is_fix, syntax_clean
|
|
74
|
+
5. Write discoveries to wisdom/learnings.md
|