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.
Files changed (181) hide show
  1. package/.codex/skills/team-arch-opt/SKILL.md +242 -175
  2. package/.codex/skills/team-arch-opt/roles/analyzer/role.md +78 -78
  3. package/.codex/skills/team-arch-opt/roles/coordinator/commands/analyze.md +57 -57
  4. package/.codex/skills/team-arch-opt/roles/coordinator/commands/monitor.md +246 -204
  5. package/.codex/skills/team-arch-opt/roles/coordinator/role.md +196 -184
  6. package/.codex/skills/team-arch-opt/roles/designer/role.md +115 -115
  7. package/.codex/skills/team-arch-opt/roles/refactorer/role.md +102 -102
  8. package/.codex/skills/team-arch-opt/roles/reviewer/role.md +111 -111
  9. package/.codex/skills/team-arch-opt/roles/validator/role.md +115 -115
  10. package/.codex/skills/team-arch-opt/specs/pipelines.md +102 -102
  11. package/.codex/skills/team-brainstorm/SKILL.md +72 -4
  12. package/.codex/skills/team-brainstorm/roles/challenger/role.md +61 -61
  13. package/.codex/skills/team-brainstorm/roles/coordinator/commands/analyze.md +58 -58
  14. package/.codex/skills/team-brainstorm/roles/coordinator/commands/monitor.md +212 -171
  15. package/.codex/skills/team-brainstorm/roles/coordinator/role.md +172 -160
  16. package/.codex/skills/team-brainstorm/roles/evaluator/role.md +56 -56
  17. package/.codex/skills/team-brainstorm/roles/ideator/role.md +69 -69
  18. package/.codex/skills/team-brainstorm/roles/synthesizer/role.md +57 -57
  19. package/.codex/skills/team-brainstorm/specs/pipelines.md +72 -72
  20. package/.codex/skills/team-coordinate/SKILL.md +71 -3
  21. package/.codex/skills/team-coordinate/roles/coordinator/commands/monitor.md +45 -5
  22. package/.codex/skills/team-coordinate/roles/coordinator/role.md +402 -389
  23. package/.codex/skills/team-coordinate/specs/knowledge-transfer.md +111 -111
  24. package/.codex/skills/team-coordinate/specs/pipelines.md +97 -97
  25. package/.codex/skills/team-coordinate/specs/quality-gates.md +112 -112
  26. package/.codex/skills/team-designer/SKILL.md +153 -153
  27. package/.codex/skills/team-designer/phases/01-requirements-analysis.md +250 -250
  28. package/.codex/skills/team-designer/phases/02-scaffold-generation.md +228 -228
  29. package/.codex/skills/team-designer/phases/03-content-generation.md +330 -330
  30. package/.codex/skills/team-designer/phases/04-validation.md +320 -320
  31. package/.codex/skills/team-executor/SKILL.md +29 -2
  32. package/.codex/skills/team-executor/roles/executor/commands/monitor.md +23 -15
  33. package/.codex/skills/team-frontend/SKILL.md +77 -3
  34. package/.codex/skills/team-frontend/roles/analyst/role.md +92 -92
  35. package/.codex/skills/team-frontend/roles/architect/role.md +86 -86
  36. package/.codex/skills/team-frontend/roles/coordinator/commands/analyze.md +52 -52
  37. package/.codex/skills/team-frontend/roles/coordinator/commands/monitor.md +222 -188
  38. package/.codex/skills/team-frontend/roles/coordinator/role.md +189 -177
  39. package/.codex/skills/team-frontend/roles/developer/role.md +93 -93
  40. package/.codex/skills/team-frontend/roles/qa/role.md +79 -79
  41. package/.codex/skills/team-frontend/specs/pipelines.md +76 -76
  42. package/.codex/skills/team-frontend-debug/SKILL.md +66 -3
  43. package/.codex/skills/team-frontend-debug/roles/analyzer/role.md +208 -208
  44. package/.codex/skills/team-frontend-debug/roles/coordinator/commands/analyze.md +174 -174
  45. package/.codex/skills/team-frontend-debug/roles/coordinator/commands/dispatch.md +198 -198
  46. package/.codex/skills/team-frontend-debug/roles/coordinator/commands/monitor.md +177 -143
  47. package/.codex/skills/team-frontend-debug/roles/coordinator/role.md +164 -152
  48. package/.codex/skills/team-frontend-debug/roles/fixer/role.md +147 -147
  49. package/.codex/skills/team-frontend-debug/roles/reproducer/role.md +147 -147
  50. package/.codex/skills/team-frontend-debug/roles/tester/role.md +231 -231
  51. package/.codex/skills/team-frontend-debug/roles/verifier/role.md +172 -172
  52. package/.codex/skills/team-frontend-debug/specs/debug-tools.md +215 -215
  53. package/.codex/skills/team-frontend-debug/specs/pipelines.md +94 -94
  54. package/.codex/skills/team-issue/SKILL.md +83 -4
  55. package/.codex/skills/team-issue/roles/coordinator/commands/analyze.md +64 -64
  56. package/.codex/skills/team-issue/roles/coordinator/commands/dispatch.md +273 -273
  57. package/.codex/skills/team-issue/roles/coordinator/commands/monitor.md +235 -194
  58. package/.codex/skills/team-issue/roles/coordinator/role.md +206 -194
  59. package/.codex/skills/team-issue/roles/explorer/role.md +94 -94
  60. package/.codex/skills/team-issue/roles/implementer/role.md +87 -87
  61. package/.codex/skills/team-issue/roles/integrator/role.md +84 -84
  62. package/.codex/skills/team-issue/roles/planner/role.md +81 -81
  63. package/.codex/skills/team-issue/roles/reviewer/role.md +86 -86
  64. package/.codex/skills/team-issue/specs/pipelines.md +124 -124
  65. package/.codex/skills/team-iterdev/SKILL.md +64 -3
  66. package/.codex/skills/team-iterdev/roles/architect/role.md +65 -65
  67. package/.codex/skills/team-iterdev/roles/coordinator/commands/analyze.md +62 -62
  68. package/.codex/skills/team-iterdev/roles/coordinator/commands/monitor.md +227 -186
  69. package/.codex/skills/team-iterdev/roles/coordinator/role.md +193 -181
  70. package/.codex/skills/team-iterdev/roles/developer/role.md +74 -74
  71. package/.codex/skills/team-iterdev/roles/reviewer/role.md +66 -66
  72. package/.codex/skills/team-iterdev/roles/tester/role.md +88 -88
  73. package/.codex/skills/team-iterdev/specs/pipelines.md +94 -94
  74. package/.codex/skills/team-lifecycle-v4/MIGRATION-PLAN.md +6 -6
  75. package/.codex/skills/team-lifecycle-v4/SKILL.md +305 -242
  76. package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +1 -1
  77. package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +66 -24
  78. package/.codex/skills/team-lifecycle-v4/roles/coordinator/role.md +13 -1
  79. package/.codex/skills/team-lifecycle-v4/roles/supervisor/role.md +1 -1
  80. package/.codex/skills/team-lifecycle-v4/templates/architecture.md +254 -254
  81. package/.codex/skills/team-lifecycle-v4/templates/epics.md +196 -196
  82. package/.codex/skills/team-lifecycle-v4/templates/product-brief.md +133 -133
  83. package/.codex/skills/team-lifecycle-v4/templates/requirements.md +224 -224
  84. package/.codex/skills/team-perf-opt/SKILL.md +68 -3
  85. package/.codex/skills/team-perf-opt/roles/benchmarker/role.md +89 -89
  86. package/.codex/skills/team-perf-opt/roles/coordinator/commands/analyze.md +61 -61
  87. package/.codex/skills/team-perf-opt/roles/coordinator/commands/monitor.md +35 -1
  88. package/.codex/skills/team-perf-opt/roles/coordinator/role.md +179 -167
  89. package/.codex/skills/team-perf-opt/roles/optimizer/role.md +97 -97
  90. package/.codex/skills/team-perf-opt/roles/profiler/role.md +73 -73
  91. package/.codex/skills/team-perf-opt/roles/reviewer/role.md +75 -75
  92. package/.codex/skills/team-perf-opt/roles/strategist/role.md +94 -94
  93. package/.codex/skills/team-perf-opt/specs/pipelines.md +65 -65
  94. package/.codex/skills/team-planex/SKILL.md +65 -3
  95. package/.codex/skills/team-planex/roles/coordinator/commands/analyze.md +52 -52
  96. package/.codex/skills/team-planex/roles/coordinator/commands/monitor.md +210 -164
  97. package/.codex/skills/team-planex/roles/coordinator/role.md +171 -159
  98. package/.codex/skills/team-planex/roles/executor/role.md +91 -91
  99. package/.codex/skills/team-planex/roles/planner/role.md +112 -112
  100. package/.codex/skills/team-planex/specs/pipelines.md +93 -93
  101. package/.codex/skills/team-quality-assurance/SKILL.md +60 -3
  102. package/.codex/skills/team-quality-assurance/roles/analyst/role.md +80 -80
  103. package/.codex/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -72
  104. package/.codex/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +108 -108
  105. package/.codex/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +243 -209
  106. package/.codex/skills/team-quality-assurance/roles/coordinator/role.md +176 -164
  107. package/.codex/skills/team-quality-assurance/roles/executor/role.md +66 -66
  108. package/.codex/skills/team-quality-assurance/roles/generator/role.md +68 -68
  109. package/.codex/skills/team-quality-assurance/roles/scout/role.md +67 -67
  110. package/.codex/skills/team-quality-assurance/roles/strategist/role.md +71 -71
  111. package/.codex/skills/team-quality-assurance/specs/pipelines.md +115 -115
  112. package/.codex/skills/team-review/SKILL.md +58 -3
  113. package/.codex/skills/team-review/roles/coordinator/commands/analyze.md +71 -71
  114. package/.codex/skills/team-review/roles/coordinator/commands/dispatch.md +90 -90
  115. package/.codex/skills/team-review/roles/coordinator/commands/monitor.md +225 -185
  116. package/.codex/skills/team-review/roles/coordinator/role.md +175 -163
  117. package/.codex/skills/team-review/roles/fixer/role.md +76 -76
  118. package/.codex/skills/team-review/roles/reviewer/role.md +68 -68
  119. package/.codex/skills/team-review/roles/scanner/role.md +71 -71
  120. package/.codex/skills/team-review/specs/pipelines.md +102 -102
  121. package/.codex/skills/team-roadmap-dev/SKILL.md +55 -3
  122. package/.codex/skills/team-roadmap-dev/roles/coordinator/commands/analyze.md +61 -61
  123. package/.codex/skills/team-roadmap-dev/roles/coordinator/commands/monitor.md +502 -468
  124. package/.codex/skills/team-roadmap-dev/roles/coordinator/role.md +335 -322
  125. package/.codex/skills/team-roadmap-dev/roles/executor/role.md +71 -71
  126. package/.codex/skills/team-roadmap-dev/roles/planner/role.md +76 -76
  127. package/.codex/skills/team-roadmap-dev/roles/verifier/role.md +74 -74
  128. package/.codex/skills/team-roadmap-dev/specs/pipelines.md +93 -93
  129. package/.codex/skills/team-tech-debt/SKILL.md +56 -3
  130. package/.codex/skills/team-tech-debt/roles/assessor/role.md +69 -69
  131. package/.codex/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -47
  132. package/.codex/skills/team-tech-debt/roles/coordinator/commands/monitor.md +272 -231
  133. package/.codex/skills/team-tech-debt/roles/coordinator/role.md +172 -160
  134. package/.codex/skills/team-tech-debt/roles/executor/role.md +76 -76
  135. package/.codex/skills/team-tech-debt/roles/planner/role.md +69 -69
  136. package/.codex/skills/team-tech-debt/roles/scanner/role.md +82 -82
  137. package/.codex/skills/team-tech-debt/roles/validator/role.md +75 -75
  138. package/.codex/skills/team-tech-debt/specs/pipelines.md +47 -47
  139. package/.codex/skills/team-testing/SKILL.md +72 -3
  140. package/.codex/skills/team-testing/roles/analyst/role.md +95 -95
  141. package/.codex/skills/team-testing/roles/coordinator/commands/analyze.md +70 -70
  142. package/.codex/skills/team-testing/roles/coordinator/commands/dispatch.md +106 -106
  143. package/.codex/skills/team-testing/roles/coordinator/commands/monitor.md +283 -242
  144. package/.codex/skills/team-testing/roles/coordinator/role.md +184 -172
  145. package/.codex/skills/team-testing/roles/executor/role.md +96 -96
  146. package/.codex/skills/team-testing/roles/generator/role.md +95 -95
  147. package/.codex/skills/team-testing/roles/strategist/role.md +83 -83
  148. package/.codex/skills/team-testing/specs/pipelines.md +101 -101
  149. package/.codex/skills/team-uidesign/SKILL.md +65 -3
  150. package/.codex/skills/team-uidesign/roles/coordinator/commands/analyze.md +59 -59
  151. package/.codex/skills/team-uidesign/roles/coordinator/commands/dispatch.md +156 -156
  152. package/.codex/skills/team-uidesign/roles/coordinator/commands/monitor.md +234 -194
  153. package/.codex/skills/team-uidesign/roles/coordinator/role.md +211 -199
  154. package/.codex/skills/team-uidesign/roles/designer/role.md +69 -69
  155. package/.codex/skills/team-uidesign/roles/implementer/role.md +72 -72
  156. package/.codex/skills/team-uidesign/roles/researcher/role.md +82 -82
  157. package/.codex/skills/team-uidesign/roles/reviewer/role.md +67 -67
  158. package/.codex/skills/team-uidesign/specs/pipelines.md +76 -76
  159. package/.codex/skills/team-ultra-analyze/SKILL.md +73 -3
  160. package/.codex/skills/team-ultra-analyze/roles/analyst/role.md +90 -90
  161. package/.codex/skills/team-ultra-analyze/roles/coordinator/commands/analyze.md +73 -73
  162. package/.codex/skills/team-ultra-analyze/roles/coordinator/commands/monitor.md +50 -9
  163. package/.codex/skills/team-ultra-analyze/roles/coordinator/role.md +255 -243
  164. package/.codex/skills/team-ultra-analyze/roles/discussant/role.md +104 -104
  165. package/.codex/skills/team-ultra-analyze/roles/explorer/role.md +74 -74
  166. package/.codex/skills/team-ultra-analyze/roles/synthesizer/role.md +78 -78
  167. package/.codex/skills/team-ultra-analyze/specs/pipelines.md +64 -64
  168. package/.codex/skills/team-ux-improve/SKILL.md +64 -3
  169. package/.codex/skills/team-ux-improve/roles/coordinator/commands/analyze.md +62 -62
  170. package/.codex/skills/team-ux-improve/roles/coordinator/commands/dispatch.md +233 -233
  171. package/.codex/skills/team-ux-improve/roles/coordinator/commands/monitor.md +195 -160
  172. package/.codex/skills/team-ux-improve/roles/coordinator/role.md +170 -158
  173. package/.codex/skills/team-ux-improve/roles/designer/role.md +122 -122
  174. package/.codex/skills/team-ux-improve/roles/diagnoser/role.md +93 -93
  175. package/.codex/skills/team-ux-improve/roles/explorer/role.md +77 -77
  176. package/.codex/skills/team-ux-improve/roles/implementer/role.md +102 -102
  177. package/.codex/skills/team-ux-improve/roles/scanner/role.md +93 -93
  178. package/.codex/skills/team-ux-improve/roles/tester/role.md +84 -84
  179. package/.codex/skills/team-ux-improve/specs/pipelines.md +54 -54
  180. package/README.md +1 -0
  181. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: team-executor
3
3
  description: Lightweight session execution skill. Resumes existing team-coordinate sessions for pure execution via team-worker agents. No analysis, no role generation -- only loads and executes. Session path required. Triggers on "Team Executor".
4
- allowed-tools: spawn_agent(*), wait_agent(*), send_input(*), close_agent(*), report_agent_job_result(*), request_user_input(*), Read(*), Write(*), Edit(*), Bash(*), Glob(*), Grep(*)
4
+ allowed-tools: spawn_agent(*), wait_agent(*), send_message(*), assign_task(*), close_agent(*), list_agents(*), report_agent_job_result(*), request_user_input(*), Read(*), Write(*), Edit(*), Bash(*), Glob(*), Grep(*)
5
5
  ---
6
6
 
7
7
  # Team Executor
@@ -109,6 +109,8 @@ When executor spawns workers, use `team-worker` agent with role-spec path:
109
109
  ```
110
110
  spawn_agent({
111
111
  agent_type: "team_worker",
112
+ task_name: "<task-id>",
113
+ fork_context: false,
112
114
  items: [
113
115
  { type: "text", text: `## Role Assignment
114
116
  role: <role>
@@ -132,10 +134,35 @@ pipeline_phase: <pipeline-phase>` },
132
134
  })
133
135
  ```
134
136
 
135
- After spawning, use `wait_agent({ ids: [...], timeout_ms: 900000 })` to collect results, then `close_agent({ id })` each worker.
137
+ After spawning, use `wait_agent({ targets: [...], timeout_ms: 900000 })` to collect results, then `close_agent({ target: <name> })` each worker.
136
138
 
137
139
  ---
138
140
 
141
+
142
+ ### Model Selection Guide
143
+
144
+ team-executor loads roles dynamically from session role-specs. Use reasoning_effort based on the role type defined in the session:
145
+ - Implementation/fix roles: `reasoning_effort: "high"`
146
+ - Verification/test roles: `reasoning_effort: "medium"`
147
+ - Default when role type is unclear: `reasoning_effort: "high"`
148
+
149
+ ## v4 Agent Coordination
150
+
151
+ ### State Reconciliation
152
+
153
+ On resume, executor reconciles session state with actual running agents:
154
+ ```
155
+ const running = list_agents({})
156
+ // Compare with session's task-analysis.json active tasks
157
+ // Reset orphaned tasks (in_progress but agent gone) to pending
158
+ ```
159
+
160
+ ### Worker Communication
161
+
162
+ - `send_message({ target: "<task-id>", items: [...] })` -- queue supplementary context
163
+ - `assign_task({ target: "<task-id>", items: [...] })` -- assign new work to inner_loop worker
164
+ - `close_agent({ target: "<task-id>" })` -- cleanup completed worker
165
+
139
166
  ## Completion Action
140
167
 
141
168
  When pipeline completes (all tasks done), executor presents an interactive choice:
@@ -167,22 +167,30 @@ After spawning all ready tasks:
167
167
  const agentIds = Object.values(state.active_agents)
168
168
  .filter(a => !a.resident)
169
169
  .map(a => a.agentId)
170
- wait_agent({ ids: agentIds, timeout_ms: 900000 })
171
-
172
- // Collect results from discoveries/{task_id}.json
173
- for (const [taskId, agent] of Object.entries(state.active_agents)) {
174
- if (agent.resident) continue
175
- try {
176
- const disc = JSON.parse(Read(`${sessionFolder}/discoveries/${taskId}.json`))
177
- state.tasks[taskId].status = disc.status || 'completed'
178
- state.tasks[taskId].findings = disc.findings || ''
179
- state.tasks[taskId].error = disc.error || null
180
- } catch {
181
- state.tasks[taskId].status = 'failed'
182
- state.tasks[taskId].error = 'No discovery file produced'
170
+ const waitResult = wait_agent({ targets: agentIds, timeout_ms: 900000 })
171
+ if (waitResult.timed_out) {
172
+ for (const [taskId, agent] of Object.entries(state.active_agents)) {
173
+ if (agent.resident) continue
174
+ state.tasks[taskId].status = 'timed_out'
175
+ close_agent({ target: agent.agentId })
176
+ delete state.active_agents[taskId]
177
+ }
178
+ } else {
179
+ // Collect results from discoveries/{task_id}.json
180
+ for (const [taskId, agent] of Object.entries(state.active_agents)) {
181
+ if (agent.resident) continue
182
+ try {
183
+ const disc = JSON.parse(Read(`${sessionFolder}/discoveries/${taskId}.json`))
184
+ state.tasks[taskId].status = disc.status || 'completed'
185
+ state.tasks[taskId].findings = disc.findings || ''
186
+ state.tasks[taskId].error = disc.error || null
187
+ } catch {
188
+ state.tasks[taskId].status = 'failed'
189
+ state.tasks[taskId].error = 'No discovery file produced'
190
+ }
191
+ close_agent({ target: agent.agentId })
192
+ delete state.active_agents[taskId]
183
193
  }
184
- close_agent({ id: agent.agentId })
185
- delete state.active_agents[taskId]
186
194
  }
187
195
  ```
188
196
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: team-frontend
3
3
  description: Unified team skill for frontend development. Pure router — all roles read this file. Beat model is coordinator-only in monitor.md. Built-in ui-ux-pro-max design intelligence. Triggers on "team frontend".
4
- allowed-tools: spawn_agent(*), wait_agent(*), send_input(*), close_agent(*), report_agent_job_result(*), request_user_input(*), Read(*), Write(*), Edit(*), Bash(*), Glob(*), Grep(*), WebFetch(*), WebSearch(*), mcp__ace-tool__search_context(*)
4
+ allowed-tools: spawn_agent(*), wait_agent(*), send_message(*), assign_task(*), close_agent(*), list_agents(*), report_agent_job_result(*), request_user_input(*), Read(*), Write(*), Edit(*), Bash(*), Glob(*), Grep(*), WebFetch(*), WebSearch(*), mcp__ace-tool__search_context(*)
5
5
  ---
6
6
 
7
7
  # Team Frontend Development
@@ -54,7 +54,8 @@ Before calling ANY tool, apply this check:
54
54
 
55
55
  | Tool Call | Verdict | Reason |
56
56
  |-----------|---------|--------|
57
- | `spawn_agent`, `wait_agent`, `close_agent`, `send_input` | ALLOWED | Orchestration |
57
+ | `spawn_agent`, `wait_agent`, `close_agent`, `send_message`, `assign_task` | ALLOWED | Orchestration |
58
+ | `list_agents` | ALLOWED | Agent health check |
58
59
  | `request_user_input` | ALLOWED | User interaction |
59
60
  | `mcp__ccw-tools__team_msg` | ALLOWED | Message bus |
60
61
  | `Read/Write` on `.workflow/.team/` files | ALLOWED | Session state |
@@ -84,6 +85,8 @@ Coordinator spawns workers using this template:
84
85
  ```
85
86
  spawn_agent({
86
87
  agent_type: "team_worker",
88
+ task_name: "<task-id>",
89
+ fork_context: false,
87
90
  items: [
88
91
  { type: "text", text: `## Role Assignment
89
92
  role: <role>
@@ -107,7 +110,29 @@ pipeline_phase: <pipeline-phase>` },
107
110
  })
108
111
  ```
109
112
 
110
- After spawning, use `wait_agent({ ids: [...], timeout_ms: 900000 })` to collect results, then `close_agent({ id })` each worker.
113
+ After spawning, use `wait_agent({ targets: [...], timeout_ms: 900000 })` to collect results, then `close_agent({ target })` each worker.
114
+
115
+
116
+ ### Model Selection Guide
117
+
118
+ | Role | model | reasoning_effort | Rationale |
119
+ |------|-------|-------------------|-----------|
120
+ | Analyst (ANALYZE-*) | (default) | high | Design intelligence requires deep UI/UX reasoning |
121
+ | Architect (ARCH-*) | (default) | high | Component spec and design token generation needs precision |
122
+ | Developer (DEV-*) | (default) | high | Frontend code generation needs full reasoning |
123
+ | QA (QA-*) | (default) | high | 5-dimension audit requires thorough analysis |
124
+
125
+ Override model/reasoning_effort in spawn_agent when cost optimization is needed:
126
+ ```
127
+ spawn_agent({
128
+ agent_type: "team_worker",
129
+ task_name: "<task-id>",
130
+ fork_context: false,
131
+ model: "<model-override>",
132
+ reasoning_effort: "<effort-level>",
133
+ items: [...]
134
+ })
135
+ ```
111
136
 
112
137
  ## User Commands
113
138
 
@@ -141,6 +166,55 @@ After spawning, use `wait_agent({ ids: [...], timeout_ms: 900000 })` to collect
141
166
 
142
167
  - [specs/pipelines.md](specs/pipelines.md) — Pipeline definitions and task registry
143
168
 
169
+ ## v4 Agent Coordination
170
+
171
+ ### Message Semantics
172
+
173
+ | Intent | API | Example |
174
+ |--------|-----|---------|
175
+ | Send architecture specs to running developer | `send_message` | Queue design tokens and component specs to DEV-* |
176
+ | Not used in this skill | `assign_task` | No resident agents -- all workers are one-shot |
177
+ | Check running agents | `list_agents` | Verify agent health during resume |
178
+
179
+ ### Pipeline Pattern
180
+
181
+ Sequential pipeline with GC loops: analyst -> architect -> developer -> QA. In **system mode**, architect revision (ARCH-002) and developer (DEV-001) may run in parallel after QA-001 arch review.
182
+
183
+ ### fork_context Consideration
184
+
185
+ Developer workers (DEV-*) benefit from `fork_context: true` when the coordinator has accumulated significant design context (analysis results, architecture specs, design tokens). This avoids the developer needing to re-read all upstream artifacts:
186
+
187
+ ```
188
+ // Consider fork_context: true for developer in feature/system modes
189
+ spawn_agent({
190
+ agent_type: "team_worker",
191
+ task_name: "DEV-001",
192
+ fork_context: true, // Developer gets full coordinator context including design decisions
193
+ items: [...]
194
+ })
195
+ ```
196
+
197
+ ### GC Loop (QA Fix Cycle)
198
+
199
+ QA may flag FIX_REQUIRED, creating DEV-fix + QA-recheck tasks (max 2 rounds). If QA score remains < 6 after 2 rounds, escalate to user.
200
+
201
+ ### Agent Health Check
202
+
203
+ Use `list_agents({})` in handleResume and handleComplete:
204
+
205
+ ```
206
+ // Reconcile session state with actual running agents
207
+ const running = list_agents({})
208
+ // Compare with tasks.json active_agents
209
+ // Reset orphaned tasks (in_progress but agent gone) to pending
210
+ ```
211
+
212
+ ### Named Agent Targeting
213
+
214
+ Workers are spawned with `task_name: "<task-id>"` enabling direct addressing:
215
+ - `send_message({ target: "DEV-001", items: [...] })` -- queue architecture specs to running developer
216
+ - `close_agent({ target: "ARCH-001" })` -- cleanup by name after completion
217
+
144
218
  ## Error Handling
145
219
 
146
220
  | Scenario | Resolution |
@@ -1,92 +1,92 @@
1
- ---
2
- role: analyst
3
- prefix: ANALYZE
4
- inner_loop: false
5
- message_types:
6
- success: analyze_ready
7
- error: error
8
- ---
9
-
10
- # Requirements Analyst
11
-
12
- Analyze frontend requirements and retrieve industry design intelligence via ui-ux-pro-max skill. Produce design-intelligence.json and requirements.md for downstream consumption by architect and developer roles.
13
-
14
- ## Phase 2: Context Loading
15
-
16
- | Input | Source | Required |
17
- |-------|--------|----------|
18
- | Task description | From task subject/description | Yes |
19
- | Session path | Extracted from task description | Yes |
20
- | Industry context | Extracted from task description | Yes |
21
- | .msg/meta.json | <session>/.msg/meta.json | No |
22
-
23
- 1. Extract session path, industry type, and tech stack from task description
24
- 2. Detect existing design system:
25
-
26
- | Signal | Detection Method |
27
- |--------|-----------------|
28
- | Token files | Glob `**/*token*.*` |
29
- | CSS files | Glob `**/*.css` |
30
- | Package.json | Read for framework dependencies |
31
-
32
- 3. Detect tech stack from package.json:
33
-
34
- | Dependency | Stack |
35
- |------------|-------|
36
- | `next` | nextjs |
37
- | `react` | react |
38
- | `vue` | vue |
39
- | `svelte` | svelte |
40
- | `@shadcn/ui` | shadcn |
41
- | (none) | html-tailwind |
42
-
43
- 4. Load .msg/meta.json for shared state
44
-
45
- ## Phase 3: Design Intelligence Retrieval
46
-
47
- Retrieve design intelligence via ui-ux-pro-max skill integration.
48
-
49
- **Step 1: Invoke ui-ux-pro-max** (primary path):
50
-
51
- | Action | Invocation |
52
- |--------|------------|
53
- | Full design system | `Skill(skill="ui-ux-pro-max", args="<industry> <keywords> --design-system")` |
54
- | UX guidelines | `Skill(skill="ui-ux-pro-max", args="accessibility animation responsive --domain ux")` |
55
- | Tech stack guide | `Skill(skill="ui-ux-pro-max", args="<keywords> --stack <detected-stack>")` |
56
-
57
- **Step 2: Fallback** (if skill unavailable):
58
- - Generate design recommendations from LLM general knowledge
59
- - Log warning: `ui-ux-pro-max not installed. Install via: /plugin install ui-ux-pro-max@ui-ux-pro-max-skill`
60
-
61
- **Step 3: Analyze existing codebase** (if token/CSS files found):
62
- - Explore existing design patterns (color palette, typography scale, spacing, component patterns)
63
-
64
- **Step 4: Competitive reference** (optional, if industry is not "Other"):
65
- - `WebSearch({ query: "<industry> web design trends best practices" })`
66
-
67
- **Step 5: Compile design-intelligence.json**:
68
-
69
- | Field | Source |
70
- |-------|--------|
71
- | `_source` | "ui-ux-pro-max-skill" or "llm-general-knowledge" |
72
- | `industry` | Task description |
73
- | `detected_stack` | Phase 2 detection |
74
- | `design_system` | Skill output (colors, typography, effects) |
75
- | `ux_guidelines` | Skill UX domain output |
76
- | `stack_guidelines` | Skill stack output |
77
- | `recommendations` | Synthesized: style, anti-patterns, must-have |
78
-
79
- **Output files**:
80
- - `<session>/analysis/design-intelligence.json`
81
- - `<session>/analysis/requirements.md`
82
-
83
- ## Phase 4: Self-Review
84
-
85
- | Check | Method | Pass Criteria |
86
- |-------|--------|---------------|
87
- | JSON validity | Parse design-intelligence.json | No parse errors |
88
- | Required fields | Check _source, industry, design_system | All present |
89
- | Anti-patterns populated | Check recommendations.anti_patterns | Non-empty array |
90
- | Requirements doc exists | File check | requirements.md written |
91
-
92
- Update .msg/meta.json: merge `design_intelligence` and `industry_context` keys.
1
+ ---
2
+ role: analyst
3
+ prefix: ANALYZE
4
+ inner_loop: false
5
+ message_types:
6
+ success: analyze_ready
7
+ error: error
8
+ ---
9
+
10
+ # Requirements Analyst
11
+
12
+ Analyze frontend requirements and retrieve industry design intelligence via ui-ux-pro-max skill. Produce design-intelligence.json and requirements.md for downstream consumption by architect and developer roles.
13
+
14
+ ## Phase 2: Context Loading
15
+
16
+ | Input | Source | Required |
17
+ |-------|--------|----------|
18
+ | Task description | From task subject/description | Yes |
19
+ | Session path | Extracted from task description | Yes |
20
+ | Industry context | Extracted from task description | Yes |
21
+ | .msg/meta.json | <session>/.msg/meta.json | No |
22
+
23
+ 1. Extract session path, industry type, and tech stack from task description
24
+ 2. Detect existing design system:
25
+
26
+ | Signal | Detection Method |
27
+ |--------|-----------------|
28
+ | Token files | Glob `**/*token*.*` |
29
+ | CSS files | Glob `**/*.css` |
30
+ | Package.json | Read for framework dependencies |
31
+
32
+ 3. Detect tech stack from package.json:
33
+
34
+ | Dependency | Stack |
35
+ |------------|-------|
36
+ | `next` | nextjs |
37
+ | `react` | react |
38
+ | `vue` | vue |
39
+ | `svelte` | svelte |
40
+ | `@shadcn/ui` | shadcn |
41
+ | (none) | html-tailwind |
42
+
43
+ 4. Load .msg/meta.json for shared state
44
+
45
+ ## Phase 3: Design Intelligence Retrieval
46
+
47
+ Retrieve design intelligence via ui-ux-pro-max skill integration.
48
+
49
+ **Step 1: Invoke ui-ux-pro-max** (primary path):
50
+
51
+ | Action | Invocation |
52
+ |--------|------------|
53
+ | Full design system | `Skill(skill="ui-ux-pro-max", args="<industry> <keywords> --design-system")` |
54
+ | UX guidelines | `Skill(skill="ui-ux-pro-max", args="accessibility animation responsive --domain ux")` |
55
+ | Tech stack guide | `Skill(skill="ui-ux-pro-max", args="<keywords> --stack <detected-stack>")` |
56
+
57
+ **Step 2: Fallback** (if skill unavailable):
58
+ - Generate design recommendations from LLM general knowledge
59
+ - Log warning: `ui-ux-pro-max not installed. Install via: /plugin install ui-ux-pro-max@ui-ux-pro-max-skill`
60
+
61
+ **Step 3: Analyze existing codebase** (if token/CSS files found):
62
+ - Explore existing design patterns (color palette, typography scale, spacing, component patterns)
63
+
64
+ **Step 4: Competitive reference** (optional, if industry is not "Other"):
65
+ - `WebSearch({ query: "<industry> web design trends best practices" })`
66
+
67
+ **Step 5: Compile design-intelligence.json**:
68
+
69
+ | Field | Source |
70
+ |-------|--------|
71
+ | `_source` | "ui-ux-pro-max-skill" or "llm-general-knowledge" |
72
+ | `industry` | Task description |
73
+ | `detected_stack` | Phase 2 detection |
74
+ | `design_system` | Skill output (colors, typography, effects) |
75
+ | `ux_guidelines` | Skill UX domain output |
76
+ | `stack_guidelines` | Skill stack output |
77
+ | `recommendations` | Synthesized: style, anti-patterns, must-have |
78
+
79
+ **Output files**:
80
+ - `<session>/analysis/design-intelligence.json`
81
+ - `<session>/analysis/requirements.md`
82
+
83
+ ## Phase 4: Self-Review
84
+
85
+ | Check | Method | Pass Criteria |
86
+ |-------|--------|---------------|
87
+ | JSON validity | Parse design-intelligence.json | No parse errors |
88
+ | Required fields | Check _source, industry, design_system | All present |
89
+ | Anti-patterns populated | Check recommendations.anti_patterns | Non-empty array |
90
+ | Requirements doc exists | File check | requirements.md written |
91
+
92
+ Update .msg/meta.json: merge `design_intelligence` and `industry_context` keys.
@@ -1,86 +1,86 @@
1
- ---
2
- role: architect
3
- prefix: ARCH
4
- inner_loop: false
5
- message_types:
6
- success: arch_ready
7
- error: error
8
- ---
9
-
10
- # Frontend Architect
11
-
12
- Consume design-intelligence.json to define design token system, component architecture, and project structure. Token values prioritize ui-ux-pro-max recommendations. Produce architecture artifacts for developer consumption.
13
-
14
- ## Phase 2: Context Loading
15
-
16
- | Input | Source | Required |
17
- |-------|--------|----------|
18
- | Task description | From task subject/description | Yes |
19
- | Session path | Extracted from task description | Yes |
20
- | Scope | Extracted from task description (tokens/components/full) | No (default: full) |
21
- | Design intelligence | <session>/analysis/design-intelligence.json | Yes |
22
- | .msg/meta.json | <session>/.msg/meta.json | No |
23
-
24
- 1. Extract session path and scope from task description
25
- 2. Load design intelligence from analyst output
26
- 3. Load .msg/meta.json for shared state (industry_context, design_intelligence)
27
- 4. Detect existing project structure via Glob `src/**/*`
28
-
29
- **Fail-safe**: If design-intelligence.json not found, use default token values and log warning.
30
-
31
- ## Phase 3: Architecture Design
32
-
33
- **Scope selection**:
34
-
35
- | Scope | Output |
36
- |-------|--------|
37
- | `tokens` | Design token system only |
38
- | `components` | Component specs only |
39
- | `full` | Both tokens and components + project structure |
40
-
41
- **Step 1: Design Token System** (scope: tokens or full):
42
-
43
- Generate `<session>/architecture/design-tokens.json` with categories:
44
-
45
- | Category | Content | Source |
46
- |----------|---------|--------|
47
- | `color` | Primary, secondary, background, surface, text, CTA | ui-ux-pro-max |
48
- | `typography` | Font families, font sizes (scale) | ui-ux-pro-max |
49
- | `spacing` | xs through 2xl | Standard scale |
50
- | `border-radius` | sm, md, lg, full | Standard scale |
51
- | `shadow` | sm, md, lg | Standard elevation |
52
- | `transition` | fast, normal, slow | Standard durations |
53
-
54
- Use `$type` + `$value` format (Design Tokens Community Group). Support light/dark mode via nested values.
55
-
56
- **Step 2: Component Architecture** (scope: components or full):
57
-
58
- Generate component specs in `<session>/architecture/component-specs/`:
59
- - Design reference (style, stack)
60
- - Props table (name, type, default, description)
61
- - Variants table
62
- - Accessibility requirements (role, keyboard, ARIA, contrast)
63
- - Anti-patterns to avoid (from design intelligence)
64
-
65
- **Step 3: Project Structure** (scope: full):
66
-
67
- Generate `<session>/architecture/project-structure.md` with stack-specific layout:
68
-
69
- | Stack | Key Directories |
70
- |-------|----------------|
71
- | react | src/components/, src/pages/, src/hooks/, src/styles/ |
72
- | nextjs | app/(routes)/, app/components/, app/lib/, app/styles/ |
73
- | vue | src/components/, src/views/, src/composables/, src/styles/ |
74
- | html-tailwind | src/components/, src/pages/, src/styles/ |
75
-
76
- ## Phase 4: Self-Review
77
-
78
- | Check | Method | Pass Criteria |
79
- |-------|--------|---------------|
80
- | JSON validity | Parse design-tokens.json | No errors |
81
- | Required categories | Check color, typography, spacing | All present |
82
- | Anti-pattern compliance | Token values vs anti-patterns | No violations |
83
- | Component specs complete | Each has props + accessibility | All complete |
84
- | File existence | Verify all planned files | All present |
85
-
86
- Update .msg/meta.json: merge `design_token_registry` and `component_inventory` keys.
1
+ ---
2
+ role: architect
3
+ prefix: ARCH
4
+ inner_loop: false
5
+ message_types:
6
+ success: arch_ready
7
+ error: error
8
+ ---
9
+
10
+ # Frontend Architect
11
+
12
+ Consume design-intelligence.json to define design token system, component architecture, and project structure. Token values prioritize ui-ux-pro-max recommendations. Produce architecture artifacts for developer consumption.
13
+
14
+ ## Phase 2: Context Loading
15
+
16
+ | Input | Source | Required |
17
+ |-------|--------|----------|
18
+ | Task description | From task subject/description | Yes |
19
+ | Session path | Extracted from task description | Yes |
20
+ | Scope | Extracted from task description (tokens/components/full) | No (default: full) |
21
+ | Design intelligence | <session>/analysis/design-intelligence.json | Yes |
22
+ | .msg/meta.json | <session>/.msg/meta.json | No |
23
+
24
+ 1. Extract session path and scope from task description
25
+ 2. Load design intelligence from analyst output
26
+ 3. Load .msg/meta.json for shared state (industry_context, design_intelligence)
27
+ 4. Detect existing project structure via Glob `src/**/*`
28
+
29
+ **Fail-safe**: If design-intelligence.json not found, use default token values and log warning.
30
+
31
+ ## Phase 3: Architecture Design
32
+
33
+ **Scope selection**:
34
+
35
+ | Scope | Output |
36
+ |-------|--------|
37
+ | `tokens` | Design token system only |
38
+ | `components` | Component specs only |
39
+ | `full` | Both tokens and components + project structure |
40
+
41
+ **Step 1: Design Token System** (scope: tokens or full):
42
+
43
+ Generate `<session>/architecture/design-tokens.json` with categories:
44
+
45
+ | Category | Content | Source |
46
+ |----------|---------|--------|
47
+ | `color` | Primary, secondary, background, surface, text, CTA | ui-ux-pro-max |
48
+ | `typography` | Font families, font sizes (scale) | ui-ux-pro-max |
49
+ | `spacing` | xs through 2xl | Standard scale |
50
+ | `border-radius` | sm, md, lg, full | Standard scale |
51
+ | `shadow` | sm, md, lg | Standard elevation |
52
+ | `transition` | fast, normal, slow | Standard durations |
53
+
54
+ Use `$type` + `$value` format (Design Tokens Community Group). Support light/dark mode via nested values.
55
+
56
+ **Step 2: Component Architecture** (scope: components or full):
57
+
58
+ Generate component specs in `<session>/architecture/component-specs/`:
59
+ - Design reference (style, stack)
60
+ - Props table (name, type, default, description)
61
+ - Variants table
62
+ - Accessibility requirements (role, keyboard, ARIA, contrast)
63
+ - Anti-patterns to avoid (from design intelligence)
64
+
65
+ **Step 3: Project Structure** (scope: full):
66
+
67
+ Generate `<session>/architecture/project-structure.md` with stack-specific layout:
68
+
69
+ | Stack | Key Directories |
70
+ |-------|----------------|
71
+ | react | src/components/, src/pages/, src/hooks/, src/styles/ |
72
+ | nextjs | app/(routes)/, app/components/, app/lib/, app/styles/ |
73
+ | vue | src/components/, src/views/, src/composables/, src/styles/ |
74
+ | html-tailwind | src/components/, src/pages/, src/styles/ |
75
+
76
+ ## Phase 4: Self-Review
77
+
78
+ | Check | Method | Pass Criteria |
79
+ |-------|--------|---------------|
80
+ | JSON validity | Parse design-tokens.json | No errors |
81
+ | Required categories | Check color, typography, spacing | All present |
82
+ | Anti-pattern compliance | Token values vs anti-patterns | No violations |
83
+ | Component specs complete | Each has props + accessibility | All complete |
84
+ | File existence | Verify all planned files | All present |
85
+
86
+ Update .msg/meta.json: merge `design_token_registry` and `component_inventory` keys.