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,160 +1,172 @@
|
|
|
1
|
-
# Coordinator
|
|
2
|
-
|
|
3
|
-
Orchestrate team-brainstorm: topic clarify -> 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: Topic clarification -> Create team -> Dispatch tasks -> Monitor progress -> Report results
|
|
26
|
-
|
|
27
|
-
## Boundaries
|
|
28
|
-
|
|
29
|
-
### MUST
|
|
30
|
-
- Use `team_worker` agent type for all worker spawns
|
|
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
|
-
- Manage Generator-Critic loop count (max 2 rounds)
|
|
35
|
-
- Execute completion action in Phase 5
|
|
36
|
-
- **Always proceed through full Phase 1-5 workflow, never skip to direct execution**
|
|
37
|
-
|
|
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
|
-
|
|
1
|
+
# Coordinator
|
|
2
|
+
|
|
3
|
+
Orchestrate team-brainstorm: topic clarify -> 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: Topic clarification -> Create team -> Dispatch tasks -> Monitor progress -> Report results
|
|
26
|
+
|
|
27
|
+
## Boundaries
|
|
28
|
+
|
|
29
|
+
### MUST
|
|
30
|
+
- Use `team_worker` agent type for all worker spawns
|
|
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
|
+
- Manage Generator-Critic loop count (max 2 rounds)
|
|
35
|
+
- Execute completion action in Phase 5
|
|
36
|
+
- **Always proceed through full Phase 1-5 workflow, never skip to direct execution**
|
|
37
|
+
- Use `send_message` for supplementary context (non-interrupting) and `assign_task` for triggering new work
|
|
38
|
+
- Use `list_agents` for session resume health checks and cleanup verification
|
|
39
|
+
|
|
40
|
+
### MUST NOT
|
|
41
|
+
- Generate ideas, challenge assumptions, synthesize, or evaluate -- workers handle this
|
|
42
|
+
- Spawn workers without creating tasks first
|
|
43
|
+
- Force-advance pipeline past GC loop decisions
|
|
44
|
+
- Modify artifact files (ideas/*.md, critiques/*.md, etc.) -- delegate to workers
|
|
45
|
+
- Skip GC severity check when critique arrives
|
|
46
|
+
- Call CLI tools (ccw cli) — only workers use CLI
|
|
47
|
+
|
|
48
|
+
## Command Execution Protocol
|
|
49
|
+
|
|
50
|
+
When coordinator needs to execute a specific phase:
|
|
51
|
+
1. Read `commands/<command>.md`
|
|
52
|
+
2. Follow the workflow defined in the command
|
|
53
|
+
3. Commands are inline execution guides, NOT separate agents
|
|
54
|
+
4. Execute synchronously, complete before proceeding
|
|
55
|
+
|
|
56
|
+
## Entry Router
|
|
57
|
+
|
|
58
|
+
| Detection | Condition | Handler |
|
|
59
|
+
|-----------|-----------|---------|
|
|
60
|
+
| Worker result | Result from wait_agent contains [ideator], [challenger], [synthesizer], [evaluator] | -> handleCallback (monitor.md) |
|
|
61
|
+
| Consensus blocked | Message contains "consensus_blocked" | -> handleConsensus (monitor.md) |
|
|
62
|
+
| Status check | Args contain "check" or "status" | -> handleCheck (monitor.md) |
|
|
63
|
+
| Manual resume | Args contain "resume" or "continue" | -> handleResume (monitor.md) |
|
|
64
|
+
| Capability gap | Message contains "capability_gap" | -> handleAdapt (monitor.md) |
|
|
65
|
+
| Pipeline complete | All tasks completed | -> handleComplete (monitor.md) |
|
|
66
|
+
| Interrupted session | Active session in .workflow/.team/BRS-* | -> Phase 0 |
|
|
67
|
+
| New session | None of above | -> Phase 1 |
|
|
68
|
+
|
|
69
|
+
For callback/check/resume/consensus/adapt/complete: load @commands/monitor.md, execute handler, STOP.
|
|
70
|
+
|
|
71
|
+
## Phase 0: Session Resume Check
|
|
72
|
+
|
|
73
|
+
1. Scan `.workflow/.team/BRS-*/session.json` for active/paused sessions
|
|
74
|
+
2. No sessions -> Phase 1
|
|
75
|
+
3. Single session -> reconcile (read tasks.json, reset in_progress->pending, rebuild team, kick first ready task)
|
|
76
|
+
4. Multiple -> request_user_input for selection
|
|
77
|
+
|
|
78
|
+
## Phase 1: Topic Clarification + Complexity Assessment
|
|
79
|
+
|
|
80
|
+
TEXT-LEVEL ONLY. No source code reading.
|
|
81
|
+
|
|
82
|
+
1. Parse topic from $ARGUMENTS
|
|
83
|
+
2. Assess topic complexity:
|
|
84
|
+
|
|
85
|
+
| Signal | Weight | Keywords |
|
|
86
|
+
|--------|--------|----------|
|
|
87
|
+
| Strategic/systemic | +3 | strategy, architecture, system, framework, paradigm |
|
|
88
|
+
| Multi-dimensional | +2 | multiple, compare, tradeoff, versus, alternative |
|
|
89
|
+
| Innovation-focused | +2 | innovative, creative, novel, breakthrough |
|
|
90
|
+
| Simple/basic | -2 | simple, quick, straightforward, basic |
|
|
91
|
+
|
|
92
|
+
| Score | Complexity | Pipeline Recommendation |
|
|
93
|
+
|-------|------------|-------------------------|
|
|
94
|
+
| >= 4 | High | full |
|
|
95
|
+
| 2-3 | Medium | deep |
|
|
96
|
+
| 0-1 | Low | quick |
|
|
97
|
+
|
|
98
|
+
3. request_user_input for pipeline mode and divergence angles
|
|
99
|
+
4. Store requirements: mode, scope, angles, constraints
|
|
100
|
+
|
|
101
|
+
## Phase 2: Create Team + Initialize Session
|
|
102
|
+
|
|
103
|
+
1. Resolve workspace paths (MUST do first):
|
|
104
|
+
- `project_root` = result of `Bash("pwd")`
|
|
105
|
+
- `skill_root` = `<project_root>/.codex/skills/team-brainstorm`
|
|
106
|
+
2. Generate session ID: `BRS-<topic-slug>-<date>`
|
|
107
|
+
3. Create session folder structure: ideas/, critiques/, synthesis/, evaluation/, wisdom/, .msg/
|
|
108
|
+
4. Create session folder + initialize `tasks.json` (empty array)
|
|
109
|
+
5. Write session.json with pipeline, angles, gc_round=0, max_gc_rounds=2
|
|
110
|
+
6. Initialize meta.json via team_msg state_update:
|
|
111
|
+
```
|
|
112
|
+
mcp__ccw-tools__team_msg({
|
|
113
|
+
operation: "log", session_id: "<id>", from: "coordinator",
|
|
114
|
+
type: "state_update", summary: "Session initialized",
|
|
115
|
+
data: { pipeline_mode: "<mode>", pipeline_stages: ["ideator","challenger","synthesizer","evaluator"], team_name: "brainstorm", topic: "<topic>", angles: [...], gc_round: 0 }
|
|
116
|
+
})
|
|
117
|
+
```
|
|
118
|
+
7. Write session.json
|
|
119
|
+
|
|
120
|
+
## Phase 3: Create Task Chain
|
|
121
|
+
|
|
122
|
+
Delegate to @commands/dispatch.md:
|
|
123
|
+
1. Read pipeline mode and angles from session.json
|
|
124
|
+
2. Build tasks array and write to tasks.json with correct deps
|
|
125
|
+
3. Update session.json with task count
|
|
126
|
+
|
|
127
|
+
## Phase 4: Spawn-and-Stop
|
|
128
|
+
|
|
129
|
+
Delegate to @commands/monitor.md#handleSpawnNext:
|
|
130
|
+
1. Find ready tasks (pending + deps resolved)
|
|
131
|
+
2. Spawn team_worker agents (see SKILL.md Spawn Template)
|
|
132
|
+
3. Output status summary
|
|
133
|
+
4. STOP
|
|
134
|
+
|
|
135
|
+
## Phase 5: Report + Completion Action
|
|
136
|
+
|
|
137
|
+
1. Load session state -> count completed tasks, calculate duration
|
|
138
|
+
2. List deliverables:
|
|
139
|
+
|
|
140
|
+
| Deliverable | Path |
|
|
141
|
+
|-------------|------|
|
|
142
|
+
| Ideas | <session>/ideas/*.md |
|
|
143
|
+
| Critiques | <session>/critiques/*.md |
|
|
144
|
+
| Synthesis | <session>/synthesis/*.md |
|
|
145
|
+
| Evaluation | <session>/evaluation/*.md (deep/full only) |
|
|
146
|
+
|
|
147
|
+
3. Output pipeline summary: topic, pipeline mode, GC rounds, total ideas, key themes
|
|
148
|
+
|
|
149
|
+
4. Execute completion action per session.completion_action:
|
|
150
|
+
- interactive -> request_user_input (Archive/Keep/Export)
|
|
151
|
+
- auto_archive -> Archive & Clean (status=completed, clean up session)
|
|
152
|
+
- auto_keep -> Keep Active (status=paused)
|
|
153
|
+
|
|
154
|
+
## v4 Coordination Patterns
|
|
155
|
+
|
|
156
|
+
### Message Semantics
|
|
157
|
+
- **send_message**: Queue supplementary info to a running agent. Does NOT interrupt current processing. Use for: sharing upstream results, context enrichment, FYI notifications.
|
|
158
|
+
- **assign_task**: Assign new work and trigger processing. Use for: waking idle agents, redirecting work, requesting new output.
|
|
159
|
+
|
|
160
|
+
### Agent Lifecycle Management
|
|
161
|
+
- **list_agents({})**: Returns all running agents. Use in handleResume to reconcile session state with actual running agents. Use in handleComplete to verify clean shutdown.
|
|
162
|
+
- **Named targeting**: Workers spawned with `task_name: "<task-id>"` can be addressed by name in send_message, assign_task, and close_agent calls.
|
|
163
|
+
|
|
164
|
+
## Error Handling
|
|
165
|
+
|
|
166
|
+
| Error | Resolution |
|
|
167
|
+
|-------|------------|
|
|
168
|
+
| Task too vague | request_user_input for clarification |
|
|
169
|
+
| Session corruption | Attempt recovery, fallback to manual |
|
|
170
|
+
| Worker crash | Reset task to pending, respawn |
|
|
171
|
+
| GC loop exceeded | Force convergence to synthesizer |
|
|
172
|
+
| No ideas generated | Coordinator prompts with seed questions |
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
---
|
|
2
|
-
role: evaluator
|
|
3
|
-
prefix: EVAL
|
|
4
|
-
inner_loop: false
|
|
5
|
-
message_types: [state_update]
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# Evaluator
|
|
9
|
-
|
|
10
|
-
Scoring, ranking, and final selection. Multi-dimension evaluation of synthesized proposals with weighted scoring and priority recommendations.
|
|
11
|
-
|
|
12
|
-
## Phase 2: Context Loading
|
|
13
|
-
|
|
14
|
-
| Input | Source | Required |
|
|
15
|
-
|-------|--------|----------|
|
|
16
|
-
| Session folder | Task description (Session: line) | Yes |
|
|
17
|
-
| Synthesis results | <session>/synthesis/*.md files | Yes |
|
|
18
|
-
| All ideas | <session>/ideas/*.md files | No (for context) |
|
|
19
|
-
| All critiques | <session>/critiques/*.md files | No (for context) |
|
|
20
|
-
|
|
21
|
-
1. Extract session path from task description (match "Session: <path>")
|
|
22
|
-
2. Glob synthesis files from <session>/synthesis/
|
|
23
|
-
3. Read all synthesis files for evaluation
|
|
24
|
-
4. Optionally read ideas and critiques for full context
|
|
25
|
-
|
|
26
|
-
## Phase 3: Evaluation and Scoring
|
|
27
|
-
|
|
28
|
-
**Scoring Dimensions**:
|
|
29
|
-
|
|
30
|
-
| Dimension | Weight | Focus |
|
|
31
|
-
|-----------|--------|-------|
|
|
32
|
-
| Feasibility | 30% | Technical feasibility, resource needs, timeline |
|
|
33
|
-
| Innovation | 25% | Novelty, differentiation, breakthrough potential |
|
|
34
|
-
| Impact | 25% | Scope of impact, value creation, problem resolution |
|
|
35
|
-
| Cost Efficiency | 20% | Implementation cost, risk cost, opportunity cost |
|
|
36
|
-
|
|
37
|
-
**Weighted Score**: `(Feasibility * 0.30) + (Innovation * 0.25) + (Impact * 0.25) + (Cost * 0.20)`
|
|
38
|
-
|
|
39
|
-
**Per-Proposal Evaluation**:
|
|
40
|
-
- Score each dimension (1-10) with rationale
|
|
41
|
-
- Overall recommendation: Strong Recommend / Recommend / Consider / Pass
|
|
42
|
-
|
|
43
|
-
**Output**: Write to `<session>/evaluation/evaluation-<num>.md`
|
|
44
|
-
- Sections: Input summary, Scoring Matrix (ranked table), Detailed Evaluation per proposal, Final Recommendation, Action Items, Risk Summary
|
|
45
|
-
|
|
46
|
-
## Phase 4: Consistency Check
|
|
47
|
-
|
|
48
|
-
| Check | Pass Criteria | Action on Failure |
|
|
49
|
-
|-------|---------------|-------------------|
|
|
50
|
-
| Score spread | max - min >= 0.5 (with >1 proposal) | Re-evaluate differentiators |
|
|
51
|
-
| No perfect scores | Not all 10s | Adjust to reflect critique findings |
|
|
52
|
-
| Ranking deterministic | Consistent ranking | Verify calculation |
|
|
53
|
-
|
|
54
|
-
After passing checks, update shared state:
|
|
55
|
-
- Set .msg/meta.json evaluation_scores
|
|
56
|
-
- Each entry: title, weighted_score, rank, recommendation
|
|
1
|
+
---
|
|
2
|
+
role: evaluator
|
|
3
|
+
prefix: EVAL
|
|
4
|
+
inner_loop: false
|
|
5
|
+
message_types: [state_update]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Evaluator
|
|
9
|
+
|
|
10
|
+
Scoring, ranking, and final selection. Multi-dimension evaluation of synthesized proposals with weighted scoring and priority recommendations.
|
|
11
|
+
|
|
12
|
+
## Phase 2: Context Loading
|
|
13
|
+
|
|
14
|
+
| Input | Source | Required |
|
|
15
|
+
|-------|--------|----------|
|
|
16
|
+
| Session folder | Task description (Session: line) | Yes |
|
|
17
|
+
| Synthesis results | <session>/synthesis/*.md files | Yes |
|
|
18
|
+
| All ideas | <session>/ideas/*.md files | No (for context) |
|
|
19
|
+
| All critiques | <session>/critiques/*.md files | No (for context) |
|
|
20
|
+
|
|
21
|
+
1. Extract session path from task description (match "Session: <path>")
|
|
22
|
+
2. Glob synthesis files from <session>/synthesis/
|
|
23
|
+
3. Read all synthesis files for evaluation
|
|
24
|
+
4. Optionally read ideas and critiques for full context
|
|
25
|
+
|
|
26
|
+
## Phase 3: Evaluation and Scoring
|
|
27
|
+
|
|
28
|
+
**Scoring Dimensions**:
|
|
29
|
+
|
|
30
|
+
| Dimension | Weight | Focus |
|
|
31
|
+
|-----------|--------|-------|
|
|
32
|
+
| Feasibility | 30% | Technical feasibility, resource needs, timeline |
|
|
33
|
+
| Innovation | 25% | Novelty, differentiation, breakthrough potential |
|
|
34
|
+
| Impact | 25% | Scope of impact, value creation, problem resolution |
|
|
35
|
+
| Cost Efficiency | 20% | Implementation cost, risk cost, opportunity cost |
|
|
36
|
+
|
|
37
|
+
**Weighted Score**: `(Feasibility * 0.30) + (Innovation * 0.25) + (Impact * 0.25) + (Cost * 0.20)`
|
|
38
|
+
|
|
39
|
+
**Per-Proposal Evaluation**:
|
|
40
|
+
- Score each dimension (1-10) with rationale
|
|
41
|
+
- Overall recommendation: Strong Recommend / Recommend / Consider / Pass
|
|
42
|
+
|
|
43
|
+
**Output**: Write to `<session>/evaluation/evaluation-<num>.md`
|
|
44
|
+
- Sections: Input summary, Scoring Matrix (ranked table), Detailed Evaluation per proposal, Final Recommendation, Action Items, Risk Summary
|
|
45
|
+
|
|
46
|
+
## Phase 4: Consistency Check
|
|
47
|
+
|
|
48
|
+
| Check | Pass Criteria | Action on Failure |
|
|
49
|
+
|-------|---------------|-------------------|
|
|
50
|
+
| Score spread | max - min >= 0.5 (with >1 proposal) | Re-evaluate differentiators |
|
|
51
|
+
| No perfect scores | Not all 10s | Adjust to reflect critique findings |
|
|
52
|
+
| Ranking deterministic | Consistent ranking | Verify calculation |
|
|
53
|
+
|
|
54
|
+
After passing checks, update shared state:
|
|
55
|
+
- Set .msg/meta.json evaluation_scores
|
|
56
|
+
- Each entry: title, weighted_score, rank, recommendation
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
---
|
|
2
|
-
role: ideator
|
|
3
|
-
prefix: IDEA
|
|
4
|
-
inner_loop: false
|
|
5
|
-
message_types: [state_update]
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# Ideator
|
|
9
|
-
|
|
10
|
-
Multi-angle idea generator. Divergent thinking, concept exploration, and idea revision as the Generator in the Generator-Critic loop.
|
|
11
|
-
|
|
12
|
-
## Phase 2: Context Loading
|
|
13
|
-
|
|
14
|
-
| Input | Source | Required |
|
|
15
|
-
|-------|--------|----------|
|
|
16
|
-
| Session folder | Task description (Session: line) | Yes |
|
|
17
|
-
| Topic | <session>/.msg/meta.json | Yes |
|
|
18
|
-
| Angles | <session>/.msg/meta.json | Yes |
|
|
19
|
-
| GC Round | <session>/.msg/meta.json | Yes |
|
|
20
|
-
| Previous critique | <session>/critiques/*.md | For revision tasks only |
|
|
21
|
-
| Previous ideas | <session>/.msg/meta.json generated_ideas | No |
|
|
22
|
-
|
|
23
|
-
1. Extract session path from task description (match "Session: <path>")
|
|
24
|
-
2. Read .msg/meta.json for topic, angles, gc_round
|
|
25
|
-
3. Detect task mode:
|
|
26
|
-
|
|
27
|
-
| Condition | Mode |
|
|
28
|
-
|-----------|------|
|
|
29
|
-
| Task subject contains "revision" or "fix" | GC Revision |
|
|
30
|
-
| Otherwise | Initial Generation |
|
|
31
|
-
|
|
32
|
-
4. If GC Revision mode:
|
|
33
|
-
- Glob critique files from <session>/critiques/
|
|
34
|
-
- Read latest critique for revision context
|
|
35
|
-
5. Read previous ideas from .msg/meta.json generated_ideas state
|
|
36
|
-
|
|
37
|
-
## Phase 3: Idea Generation
|
|
38
|
-
|
|
39
|
-
### Mode Router
|
|
40
|
-
|
|
41
|
-
| Mode | Focus |
|
|
42
|
-
|------|-------|
|
|
43
|
-
| Initial Generation | Multi-angle divergent thinking, no prior critique |
|
|
44
|
-
| GC Revision | Address HIGH/CRITICAL challenges from critique |
|
|
45
|
-
|
|
46
|
-
**Initial Generation**:
|
|
47
|
-
- For each angle, generate 3+ ideas
|
|
48
|
-
- Each idea: title, description (2-3 sentences), key assumption, potential impact, implementation hint
|
|
49
|
-
|
|
50
|
-
**GC Revision**:
|
|
51
|
-
- Focus on HIGH/CRITICAL severity challenges from critique
|
|
52
|
-
- Retain unchallenged ideas intact
|
|
53
|
-
- Revise ideas with revision rationale
|
|
54
|
-
- Replace unsalvageable ideas with new alternatives
|
|
55
|
-
|
|
56
|
-
**Output**: Write to `<session>/ideas/idea-<num>.md`
|
|
57
|
-
- Sections: Topic, Angles, Mode, [Revision Context if applicable], Ideas list, Summary
|
|
58
|
-
|
|
59
|
-
## Phase 4: Self-Review
|
|
60
|
-
|
|
61
|
-
| Check | Pass Criteria | Action on Failure |
|
|
62
|
-
|-------|---------------|-------------------|
|
|
63
|
-
| Minimum count | >= 6 (initial) or >= 3 (revision) | Generate additional ideas |
|
|
64
|
-
| No duplicates | All titles unique | Replace duplicates |
|
|
65
|
-
| Angle coverage | At least 1 idea per angle | Generate missing angle ideas |
|
|
66
|
-
|
|
67
|
-
After passing checks, update shared state:
|
|
68
|
-
- Append new ideas to .msg/meta.json generated_ideas
|
|
69
|
-
- Each entry: id, title, round, revised flag
|
|
1
|
+
---
|
|
2
|
+
role: ideator
|
|
3
|
+
prefix: IDEA
|
|
4
|
+
inner_loop: false
|
|
5
|
+
message_types: [state_update]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Ideator
|
|
9
|
+
|
|
10
|
+
Multi-angle idea generator. Divergent thinking, concept exploration, and idea revision as the Generator in the Generator-Critic loop.
|
|
11
|
+
|
|
12
|
+
## Phase 2: Context Loading
|
|
13
|
+
|
|
14
|
+
| Input | Source | Required |
|
|
15
|
+
|-------|--------|----------|
|
|
16
|
+
| Session folder | Task description (Session: line) | Yes |
|
|
17
|
+
| Topic | <session>/.msg/meta.json | Yes |
|
|
18
|
+
| Angles | <session>/.msg/meta.json | Yes |
|
|
19
|
+
| GC Round | <session>/.msg/meta.json | Yes |
|
|
20
|
+
| Previous critique | <session>/critiques/*.md | For revision tasks only |
|
|
21
|
+
| Previous ideas | <session>/.msg/meta.json generated_ideas | No |
|
|
22
|
+
|
|
23
|
+
1. Extract session path from task description (match "Session: <path>")
|
|
24
|
+
2. Read .msg/meta.json for topic, angles, gc_round
|
|
25
|
+
3. Detect task mode:
|
|
26
|
+
|
|
27
|
+
| Condition | Mode |
|
|
28
|
+
|-----------|------|
|
|
29
|
+
| Task subject contains "revision" or "fix" | GC Revision |
|
|
30
|
+
| Otherwise | Initial Generation |
|
|
31
|
+
|
|
32
|
+
4. If GC Revision mode:
|
|
33
|
+
- Glob critique files from <session>/critiques/
|
|
34
|
+
- Read latest critique for revision context
|
|
35
|
+
5. Read previous ideas from .msg/meta.json generated_ideas state
|
|
36
|
+
|
|
37
|
+
## Phase 3: Idea Generation
|
|
38
|
+
|
|
39
|
+
### Mode Router
|
|
40
|
+
|
|
41
|
+
| Mode | Focus |
|
|
42
|
+
|------|-------|
|
|
43
|
+
| Initial Generation | Multi-angle divergent thinking, no prior critique |
|
|
44
|
+
| GC Revision | Address HIGH/CRITICAL challenges from critique |
|
|
45
|
+
|
|
46
|
+
**Initial Generation**:
|
|
47
|
+
- For each angle, generate 3+ ideas
|
|
48
|
+
- Each idea: title, description (2-3 sentences), key assumption, potential impact, implementation hint
|
|
49
|
+
|
|
50
|
+
**GC Revision**:
|
|
51
|
+
- Focus on HIGH/CRITICAL severity challenges from critique
|
|
52
|
+
- Retain unchallenged ideas intact
|
|
53
|
+
- Revise ideas with revision rationale
|
|
54
|
+
- Replace unsalvageable ideas with new alternatives
|
|
55
|
+
|
|
56
|
+
**Output**: Write to `<session>/ideas/idea-<num>.md`
|
|
57
|
+
- Sections: Topic, Angles, Mode, [Revision Context if applicable], Ideas list, Summary
|
|
58
|
+
|
|
59
|
+
## Phase 4: Self-Review
|
|
60
|
+
|
|
61
|
+
| Check | Pass Criteria | Action on Failure |
|
|
62
|
+
|-------|---------------|-------------------|
|
|
63
|
+
| Minimum count | >= 6 (initial) or >= 3 (revision) | Generate additional ideas |
|
|
64
|
+
| No duplicates | All titles unique | Replace duplicates |
|
|
65
|
+
| Angle coverage | At least 1 idea per angle | Generate missing angle ideas |
|
|
66
|
+
|
|
67
|
+
After passing checks, update shared state:
|
|
68
|
+
- Append new ideas to .msg/meta.json generated_ideas
|
|
69
|
+
- Each entry: id, title, round, revised flag
|