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,95 +1,95 @@
|
|
|
1
|
-
---
|
|
2
|
-
role: generator
|
|
3
|
-
prefix: TESTGEN
|
|
4
|
-
inner_loop: true
|
|
5
|
-
message_types:
|
|
6
|
-
success: tests_generated
|
|
7
|
-
revision: tests_revised
|
|
8
|
-
error: error
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
# Test Generator
|
|
12
|
-
|
|
13
|
-
Generate test code by layer (L1 unit / L2 integration / L3 E2E). Acts as the Generator in the Generator-Critic loop. Supports revision mode for GC loop iterations.
|
|
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
|
-
| Test strategy | <session>/strategy/test-strategy.md | Yes |
|
|
22
|
-
| .msg/meta.json | <session>/wisdom/.msg/meta.json | No |
|
|
23
|
-
|
|
24
|
-
1. Extract session path and layer from task description
|
|
25
|
-
2. Load test specs: Run `ccw spec load --category test` for test framework conventions and coverage targets
|
|
26
|
-
3. Read test strategy:
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
Read("<session>/strategy/test-strategy.md")
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
3. Read source files to test (from strategy priority_files, limit 20)
|
|
33
|
-
4. Read .msg/meta.json for framework and scope context
|
|
34
|
-
|
|
35
|
-
5. Detect revision mode:
|
|
36
|
-
|
|
37
|
-
| Condition | Mode |
|
|
38
|
-
|-----------|------|
|
|
39
|
-
| Task subject contains "fix" or "revised" | Revision -- load previous failures |
|
|
40
|
-
| Otherwise | Fresh generation |
|
|
41
|
-
|
|
42
|
-
For revision mode:
|
|
43
|
-
- Read latest result file for failure details
|
|
44
|
-
- Read effective test patterns from .msg/meta.json
|
|
45
|
-
|
|
46
|
-
6. Read wisdom files if available
|
|
47
|
-
|
|
48
|
-
## Phase 3: Test Generation
|
|
49
|
-
|
|
50
|
-
**Strategy selection by complexity**:
|
|
51
|
-
|
|
52
|
-
| File Count | Strategy |
|
|
53
|
-
|------------|----------|
|
|
54
|
-
| <= 3 files | Direct: inline Write/Edit |
|
|
55
|
-
| 3-5 files | Single code-developer agent |
|
|
56
|
-
| > 5 files | Batch: group by module, one agent per batch |
|
|
57
|
-
|
|
58
|
-
**Direct generation** (per source file):
|
|
59
|
-
1. Generate test path: `<session>/tests/<layer>/<test-file>`
|
|
60
|
-
2. Generate test code: happy path, edge cases, error handling
|
|
61
|
-
3. Write test file
|
|
62
|
-
|
|
63
|
-
**CLI delegation** (medium/high complexity):
|
|
64
|
-
|
|
65
|
-
```
|
|
66
|
-
Bash(`ccw cli -p "PURPOSE: Generate <layer> tests using <framework> to achieve coverage target; success = all priority files covered with quality tests
|
|
67
|
-
TASK: • Analyze source files • Generate test cases (happy path, edge cases, errors) • Write test files with proper structure • Ensure import resolution
|
|
68
|
-
MODE: write
|
|
69
|
-
CONTEXT: @<source-files> @<session>/strategy/test-strategy.md | Memory: Framework: <framework>, Layer: <layer>, Round: <round>
|
|
70
|
-
<if-revision: Previous failures: <failure-details>
|
|
71
|
-
Effective patterns: <patterns-from-meta>>
|
|
72
|
-
EXPECTED: Test files in <session>/tests/<layer>/ with: proper test structure, comprehensive coverage, correct imports, framework conventions
|
|
73
|
-
CONSTRAINTS: Follow test strategy priorities | Use framework best practices | <layer>-appropriate assertions
|
|
74
|
-
Source files to test:
|
|
75
|
-
<file-list-with-content>" --tool gemini --mode write --cd <session>`)
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
**Output verification**:
|
|
79
|
-
|
|
80
|
-
```
|
|
81
|
-
Glob("<session>/tests/<layer>/**/*")
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
## Phase 4: Self-Validation & State Update
|
|
85
|
-
|
|
86
|
-
**Validation checks**:
|
|
87
|
-
|
|
88
|
-
| Check | Method | Action on Fail |
|
|
89
|
-
|-------|--------|----------------|
|
|
90
|
-
| Syntax | `tsc --noEmit` or equivalent | Auto-fix imports/types |
|
|
91
|
-
| File count | Count generated files | Report issue |
|
|
92
|
-
| Import resolution | Check broken imports | Fix import paths |
|
|
93
|
-
|
|
94
|
-
Update `<session>/wisdom/.msg/meta.json` under `generator` namespace:
|
|
95
|
-
- Merge `{ "generator": { test_files, layer, round, is_revision } }`
|
|
1
|
+
---
|
|
2
|
+
role: generator
|
|
3
|
+
prefix: TESTGEN
|
|
4
|
+
inner_loop: true
|
|
5
|
+
message_types:
|
|
6
|
+
success: tests_generated
|
|
7
|
+
revision: tests_revised
|
|
8
|
+
error: error
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Test Generator
|
|
12
|
+
|
|
13
|
+
Generate test code by layer (L1 unit / L2 integration / L3 E2E). Acts as the Generator in the Generator-Critic loop. Supports revision mode for GC loop iterations.
|
|
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
|
+
| Test strategy | <session>/strategy/test-strategy.md | Yes |
|
|
22
|
+
| .msg/meta.json | <session>/wisdom/.msg/meta.json | No |
|
|
23
|
+
|
|
24
|
+
1. Extract session path and layer from task description
|
|
25
|
+
2. Load test specs: Run `ccw spec load --category test` for test framework conventions and coverage targets
|
|
26
|
+
3. Read test strategy:
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
Read("<session>/strategy/test-strategy.md")
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
3. Read source files to test (from strategy priority_files, limit 20)
|
|
33
|
+
4. Read .msg/meta.json for framework and scope context
|
|
34
|
+
|
|
35
|
+
5. Detect revision mode:
|
|
36
|
+
|
|
37
|
+
| Condition | Mode |
|
|
38
|
+
|-----------|------|
|
|
39
|
+
| Task subject contains "fix" or "revised" | Revision -- load previous failures |
|
|
40
|
+
| Otherwise | Fresh generation |
|
|
41
|
+
|
|
42
|
+
For revision mode:
|
|
43
|
+
- Read latest result file for failure details
|
|
44
|
+
- Read effective test patterns from .msg/meta.json
|
|
45
|
+
|
|
46
|
+
6. Read wisdom files if available
|
|
47
|
+
|
|
48
|
+
## Phase 3: Test Generation
|
|
49
|
+
|
|
50
|
+
**Strategy selection by complexity**:
|
|
51
|
+
|
|
52
|
+
| File Count | Strategy |
|
|
53
|
+
|------------|----------|
|
|
54
|
+
| <= 3 files | Direct: inline Write/Edit |
|
|
55
|
+
| 3-5 files | Single code-developer agent |
|
|
56
|
+
| > 5 files | Batch: group by module, one agent per batch |
|
|
57
|
+
|
|
58
|
+
**Direct generation** (per source file):
|
|
59
|
+
1. Generate test path: `<session>/tests/<layer>/<test-file>`
|
|
60
|
+
2. Generate test code: happy path, edge cases, error handling
|
|
61
|
+
3. Write test file
|
|
62
|
+
|
|
63
|
+
**CLI delegation** (medium/high complexity):
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
Bash(`ccw cli -p "PURPOSE: Generate <layer> tests using <framework> to achieve coverage target; success = all priority files covered with quality tests
|
|
67
|
+
TASK: • Analyze source files • Generate test cases (happy path, edge cases, errors) • Write test files with proper structure • Ensure import resolution
|
|
68
|
+
MODE: write
|
|
69
|
+
CONTEXT: @<source-files> @<session>/strategy/test-strategy.md | Memory: Framework: <framework>, Layer: <layer>, Round: <round>
|
|
70
|
+
<if-revision: Previous failures: <failure-details>
|
|
71
|
+
Effective patterns: <patterns-from-meta>>
|
|
72
|
+
EXPECTED: Test files in <session>/tests/<layer>/ with: proper test structure, comprehensive coverage, correct imports, framework conventions
|
|
73
|
+
CONSTRAINTS: Follow test strategy priorities | Use framework best practices | <layer>-appropriate assertions
|
|
74
|
+
Source files to test:
|
|
75
|
+
<file-list-with-content>" --tool gemini --mode write --cd <session>`)
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**Output verification**:
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
Glob("<session>/tests/<layer>/**/*")
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Phase 4: Self-Validation & State Update
|
|
85
|
+
|
|
86
|
+
**Validation checks**:
|
|
87
|
+
|
|
88
|
+
| Check | Method | Action on Fail |
|
|
89
|
+
|-------|--------|----------------|
|
|
90
|
+
| Syntax | `tsc --noEmit` or equivalent | Auto-fix imports/types |
|
|
91
|
+
| File count | Count generated files | Report issue |
|
|
92
|
+
| Import resolution | Check broken imports | Fix import paths |
|
|
93
|
+
|
|
94
|
+
Update `<session>/wisdom/.msg/meta.json` under `generator` namespace:
|
|
95
|
+
- Merge `{ "generator": { test_files, layer, round, is_revision } }`
|
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
---
|
|
2
|
-
role: strategist
|
|
3
|
-
prefix: STRATEGY
|
|
4
|
-
inner_loop: false
|
|
5
|
-
message_types:
|
|
6
|
-
success: strategy_ready
|
|
7
|
-
error: error
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
# Test Strategist
|
|
11
|
-
|
|
12
|
-
Analyze git diff, determine test layers, define coverage targets, and formulate test strategy with prioritized execution order.
|
|
13
|
-
|
|
14
|
-
## Phase 2: Context & Environment Detection
|
|
15
|
-
|
|
16
|
-
| Input | Source | Required |
|
|
17
|
-
|-------|--------|----------|
|
|
18
|
-
| Task description | From task subject/description | Yes |
|
|
19
|
-
| Session path | Extracted from task description | Yes |
|
|
20
|
-
| .msg/meta.json | <session>/wisdom/.msg/meta.json | No |
|
|
21
|
-
|
|
22
|
-
1. Extract session path and scope from task description
|
|
23
|
-
2. Get git diff for change analysis:
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
Bash("git diff HEAD~1 --name-only 2>/dev/null || git diff --cached --name-only")
|
|
27
|
-
Bash("git diff HEAD~1 -- <changed-files> 2>/dev/null || git diff --cached -- <changed-files>")
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
3. Detect test framework from project files:
|
|
31
|
-
|
|
32
|
-
| Signal File | Framework | Test Pattern |
|
|
33
|
-
|-------------|-----------|-------------|
|
|
34
|
-
| jest.config.js/ts | Jest | `**/*.test.{ts,tsx,js}` |
|
|
35
|
-
| vitest.config.ts/js | Vitest | `**/*.test.{ts,tsx}` |
|
|
36
|
-
| pytest.ini / pyproject.toml | Pytest | `**/test_*.py` |
|
|
37
|
-
| No detection | Default | Jest patterns |
|
|
38
|
-
|
|
39
|
-
4. Scan existing test patterns:
|
|
40
|
-
|
|
41
|
-
```
|
|
42
|
-
Glob("**/*.test.*")
|
|
43
|
-
Glob("**/*.spec.*")
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
5. Read .msg/meta.json if exists for session context
|
|
47
|
-
|
|
48
|
-
## Phase 3: Strategy Formulation
|
|
49
|
-
|
|
50
|
-
**Change analysis dimensions**:
|
|
51
|
-
|
|
52
|
-
| Change Type | Analysis | Priority |
|
|
53
|
-
|-------------|----------|----------|
|
|
54
|
-
| New files | Need new tests | High |
|
|
55
|
-
| Modified functions | Need updated tests | Medium |
|
|
56
|
-
| Deleted files | Need test cleanup | Low |
|
|
57
|
-
| Config changes | May need integration tests | Variable |
|
|
58
|
-
|
|
59
|
-
**Strategy output structure**:
|
|
60
|
-
|
|
61
|
-
1. **Change Analysis Table**: File, Change Type, Impact, Priority
|
|
62
|
-
2. **Test Layer Recommendations**:
|
|
63
|
-
- L1 Unit: Scope, Coverage Target, Priority Files, Patterns
|
|
64
|
-
- L2 Integration: Scope, Coverage Target, Integration Points
|
|
65
|
-
- L3 E2E: Scope, Coverage Target, User Scenarios
|
|
66
|
-
3. **Risk Assessment**: Risk, Probability, Impact, Mitigation
|
|
67
|
-
4. **Test Execution Order**: Prioritized sequence
|
|
68
|
-
|
|
69
|
-
Write strategy to `<session>/strategy/test-strategy.md`
|
|
70
|
-
|
|
71
|
-
**Self-validation**:
|
|
72
|
-
|
|
73
|
-
| Check | Criteria | Fallback |
|
|
74
|
-
|-------|----------|----------|
|
|
75
|
-
| Has L1 scope | L1 scope not empty | Default to all changed files |
|
|
76
|
-
| Has coverage targets | L1 target > 0 | Use defaults (80/60/40) |
|
|
77
|
-
| Has priority files | List not empty | Use all changed files |
|
|
78
|
-
|
|
79
|
-
## Phase 4: Wisdom & State Update
|
|
80
|
-
|
|
81
|
-
1. Write discoveries to `<session>/wisdom/conventions.md` (detected framework, patterns)
|
|
82
|
-
2. Update `<session>/wisdom/.msg/meta.json` under `strategist` namespace:
|
|
83
|
-
- Read existing -> merge `{ "strategist": { framework, layers, coverage_targets, priority_files, risks } }` -> write back
|
|
1
|
+
---
|
|
2
|
+
role: strategist
|
|
3
|
+
prefix: STRATEGY
|
|
4
|
+
inner_loop: false
|
|
5
|
+
message_types:
|
|
6
|
+
success: strategy_ready
|
|
7
|
+
error: error
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Test Strategist
|
|
11
|
+
|
|
12
|
+
Analyze git diff, determine test layers, define coverage targets, and formulate test strategy with prioritized execution order.
|
|
13
|
+
|
|
14
|
+
## Phase 2: Context & Environment Detection
|
|
15
|
+
|
|
16
|
+
| Input | Source | Required |
|
|
17
|
+
|-------|--------|----------|
|
|
18
|
+
| Task description | From task subject/description | Yes |
|
|
19
|
+
| Session path | Extracted from task description | Yes |
|
|
20
|
+
| .msg/meta.json | <session>/wisdom/.msg/meta.json | No |
|
|
21
|
+
|
|
22
|
+
1. Extract session path and scope from task description
|
|
23
|
+
2. Get git diff for change analysis:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
Bash("git diff HEAD~1 --name-only 2>/dev/null || git diff --cached --name-only")
|
|
27
|
+
Bash("git diff HEAD~1 -- <changed-files> 2>/dev/null || git diff --cached -- <changed-files>")
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
3. Detect test framework from project files:
|
|
31
|
+
|
|
32
|
+
| Signal File | Framework | Test Pattern |
|
|
33
|
+
|-------------|-----------|-------------|
|
|
34
|
+
| jest.config.js/ts | Jest | `**/*.test.{ts,tsx,js}` |
|
|
35
|
+
| vitest.config.ts/js | Vitest | `**/*.test.{ts,tsx}` |
|
|
36
|
+
| pytest.ini / pyproject.toml | Pytest | `**/test_*.py` |
|
|
37
|
+
| No detection | Default | Jest patterns |
|
|
38
|
+
|
|
39
|
+
4. Scan existing test patterns:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
Glob("**/*.test.*")
|
|
43
|
+
Glob("**/*.spec.*")
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
5. Read .msg/meta.json if exists for session context
|
|
47
|
+
|
|
48
|
+
## Phase 3: Strategy Formulation
|
|
49
|
+
|
|
50
|
+
**Change analysis dimensions**:
|
|
51
|
+
|
|
52
|
+
| Change Type | Analysis | Priority |
|
|
53
|
+
|-------------|----------|----------|
|
|
54
|
+
| New files | Need new tests | High |
|
|
55
|
+
| Modified functions | Need updated tests | Medium |
|
|
56
|
+
| Deleted files | Need test cleanup | Low |
|
|
57
|
+
| Config changes | May need integration tests | Variable |
|
|
58
|
+
|
|
59
|
+
**Strategy output structure**:
|
|
60
|
+
|
|
61
|
+
1. **Change Analysis Table**: File, Change Type, Impact, Priority
|
|
62
|
+
2. **Test Layer Recommendations**:
|
|
63
|
+
- L1 Unit: Scope, Coverage Target, Priority Files, Patterns
|
|
64
|
+
- L2 Integration: Scope, Coverage Target, Integration Points
|
|
65
|
+
- L3 E2E: Scope, Coverage Target, User Scenarios
|
|
66
|
+
3. **Risk Assessment**: Risk, Probability, Impact, Mitigation
|
|
67
|
+
4. **Test Execution Order**: Prioritized sequence
|
|
68
|
+
|
|
69
|
+
Write strategy to `<session>/strategy/test-strategy.md`
|
|
70
|
+
|
|
71
|
+
**Self-validation**:
|
|
72
|
+
|
|
73
|
+
| Check | Criteria | Fallback |
|
|
74
|
+
|-------|----------|----------|
|
|
75
|
+
| Has L1 scope | L1 scope not empty | Default to all changed files |
|
|
76
|
+
| Has coverage targets | L1 target > 0 | Use defaults (80/60/40) |
|
|
77
|
+
| Has priority files | List not empty | Use all changed files |
|
|
78
|
+
|
|
79
|
+
## Phase 4: Wisdom & State Update
|
|
80
|
+
|
|
81
|
+
1. Write discoveries to `<session>/wisdom/conventions.md` (detected framework, patterns)
|
|
82
|
+
2. Update `<session>/wisdom/.msg/meta.json` under `strategist` namespace:
|
|
83
|
+
- Read existing -> merge `{ "strategist": { framework, layers, coverage_targets, priority_files, risks } }` -> write back
|
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
# Testing Pipelines
|
|
2
|
-
|
|
3
|
-
Pipeline definitions and task registry for team-testing.
|
|
4
|
-
|
|
5
|
-
## Pipeline Selection
|
|
6
|
-
|
|
7
|
-
| Condition | Pipeline |
|
|
8
|
-
|-----------|----------|
|
|
9
|
-
| fileCount <= 3 AND moduleCount <= 1 | targeted |
|
|
10
|
-
| fileCount <= 10 AND moduleCount <= 3 | standard |
|
|
11
|
-
| Otherwise | comprehensive |
|
|
12
|
-
|
|
13
|
-
## Pipeline Definitions
|
|
14
|
-
|
|
15
|
-
### Targeted Pipeline (3 tasks, serial)
|
|
16
|
-
|
|
17
|
-
```
|
|
18
|
-
STRATEGY-001 -> TESTGEN-001 -> TESTRUN-001
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
| Task ID | Role | Dependencies | Layer | Description |
|
|
22
|
-
|---------|------|-------------|-------|-------------|
|
|
23
|
-
| STRATEGY-001 | strategist | (none) | — | Analyze changes, define test strategy |
|
|
24
|
-
| TESTGEN-001 | generator | STRATEGY-001 | L1 | Generate L1 unit tests |
|
|
25
|
-
| TESTRUN-001 | executor | TESTGEN-001 | L1 | Execute L1 tests, collect coverage |
|
|
26
|
-
|
|
27
|
-
### Standard Pipeline (6 tasks, progressive layers)
|
|
28
|
-
|
|
29
|
-
```
|
|
30
|
-
STRATEGY-001 -> TESTGEN-001 -> TESTRUN-001 -> TESTGEN-002 -> TESTRUN-002 -> TESTANA-001
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
| Task ID | Role | Dependencies | Layer | Description |
|
|
34
|
-
|---------|------|-------------|-------|-------------|
|
|
35
|
-
| STRATEGY-001 | strategist | (none) | — | Analyze changes, define test strategy |
|
|
36
|
-
| TESTGEN-001 | generator | STRATEGY-001 | L1 | Generate L1 unit tests |
|
|
37
|
-
| TESTRUN-001 | executor | TESTGEN-001 | L1 | Execute L1 tests, collect coverage |
|
|
38
|
-
| TESTGEN-002 | generator | TESTRUN-001 | L2 | Generate L2 integration tests |
|
|
39
|
-
| TESTRUN-002 | executor | TESTGEN-002 | L2 | Execute L2 tests, collect coverage |
|
|
40
|
-
| TESTANA-001 | analyst | TESTRUN-002 | — | Defect pattern analysis, quality report |
|
|
41
|
-
|
|
42
|
-
### Comprehensive Pipeline (8 tasks, parallel windows)
|
|
43
|
-
|
|
44
|
-
```
|
|
45
|
-
STRATEGY-001 -> [TESTGEN-001 || TESTGEN-002] -> [TESTRUN-001 || TESTRUN-002] -> TESTGEN-003 -> TESTRUN-003 -> TESTANA-001
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
| Task ID | Role | Dependencies | Layer | Description |
|
|
49
|
-
|---------|------|-------------|-------|-------------|
|
|
50
|
-
| STRATEGY-001 | strategist | (none) | — | Analyze changes, define test strategy |
|
|
51
|
-
| TESTGEN-001 | generator-1 | STRATEGY-001 | L1 | Generate L1 unit tests (parallel) |
|
|
52
|
-
| TESTGEN-002 | generator-2 | STRATEGY-001 | L2 | Generate L2 integration tests (parallel) |
|
|
53
|
-
| TESTRUN-001 | executor-1 | TESTGEN-001 | L1 | Execute L1 tests (parallel) |
|
|
54
|
-
| TESTRUN-002 | executor-2 | TESTGEN-002 | L2 | Execute L2 tests (parallel) |
|
|
55
|
-
| TESTGEN-003 | generator | TESTRUN-001, TESTRUN-002 | L3 | Generate L3 E2E tests |
|
|
56
|
-
| TESTRUN-003 | executor | TESTGEN-003 | L3 | Execute L3 tests, collect coverage |
|
|
57
|
-
| TESTANA-001 | analyst | TESTRUN-003 | — | Defect pattern analysis, quality report |
|
|
58
|
-
|
|
59
|
-
## GC Loop (Generator-Critic)
|
|
60
|
-
|
|
61
|
-
Generator and executor iterate per test layer:
|
|
62
|
-
|
|
63
|
-
```
|
|
64
|
-
TESTGEN -> TESTRUN -> (if pass_rate < 0.95 OR coverage < target) -> TESTGEN-fix -> TESTRUN-fix
|
|
65
|
-
(if pass_rate >= 0.95 AND coverage >= target) -> next layer or TESTANA
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
- Max iterations: 3 per layer
|
|
69
|
-
- After 3 iterations: accept current state with warning
|
|
70
|
-
|
|
71
|
-
## Coverage Targets
|
|
72
|
-
|
|
73
|
-
| Layer | Name | Default Target |
|
|
74
|
-
|-------|------|----------------|
|
|
75
|
-
| L1 | Unit Tests | 80% |
|
|
76
|
-
| L2 | Integration Tests | 60% |
|
|
77
|
-
| L3 | E2E Tests | 40% |
|
|
78
|
-
|
|
79
|
-
## Session Directory
|
|
80
|
-
|
|
81
|
-
```
|
|
82
|
-
.workflow/.team/TST-<slug>-<YYYY-MM-DD>/
|
|
83
|
-
├── .msg/messages.jsonl # Message bus log
|
|
84
|
-
├── .msg/meta.json # Session metadata
|
|
85
|
-
├── wisdom/ # Cross-task knowledge
|
|
86
|
-
│ ├── learnings.md
|
|
87
|
-
│ ├── decisions.md
|
|
88
|
-
│ ├── conventions.md
|
|
89
|
-
│ └── issues.md
|
|
90
|
-
├── strategy/ # Strategist output
|
|
91
|
-
│ └── test-strategy.md
|
|
92
|
-
├── tests/ # Generator output
|
|
93
|
-
│ ├── L1-unit/
|
|
94
|
-
│ ├── L2-integration/
|
|
95
|
-
│ └── L3-e2e/
|
|
96
|
-
├── results/ # Executor output
|
|
97
|
-
│ ├── run-001.json
|
|
98
|
-
│ └── coverage-001.json
|
|
99
|
-
└── analysis/ # Analyst output
|
|
100
|
-
└── quality-report.md
|
|
101
|
-
```
|
|
1
|
+
# Testing Pipelines
|
|
2
|
+
|
|
3
|
+
Pipeline definitions and task registry for team-testing.
|
|
4
|
+
|
|
5
|
+
## Pipeline Selection
|
|
6
|
+
|
|
7
|
+
| Condition | Pipeline |
|
|
8
|
+
|-----------|----------|
|
|
9
|
+
| fileCount <= 3 AND moduleCount <= 1 | targeted |
|
|
10
|
+
| fileCount <= 10 AND moduleCount <= 3 | standard |
|
|
11
|
+
| Otherwise | comprehensive |
|
|
12
|
+
|
|
13
|
+
## Pipeline Definitions
|
|
14
|
+
|
|
15
|
+
### Targeted Pipeline (3 tasks, serial)
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
STRATEGY-001 -> TESTGEN-001 -> TESTRUN-001
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
| Task ID | Role | Dependencies | Layer | Description |
|
|
22
|
+
|---------|------|-------------|-------|-------------|
|
|
23
|
+
| STRATEGY-001 | strategist | (none) | — | Analyze changes, define test strategy |
|
|
24
|
+
| TESTGEN-001 | generator | STRATEGY-001 | L1 | Generate L1 unit tests |
|
|
25
|
+
| TESTRUN-001 | executor | TESTGEN-001 | L1 | Execute L1 tests, collect coverage |
|
|
26
|
+
|
|
27
|
+
### Standard Pipeline (6 tasks, progressive layers)
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
STRATEGY-001 -> TESTGEN-001 -> TESTRUN-001 -> TESTGEN-002 -> TESTRUN-002 -> TESTANA-001
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
| Task ID | Role | Dependencies | Layer | Description |
|
|
34
|
+
|---------|------|-------------|-------|-------------|
|
|
35
|
+
| STRATEGY-001 | strategist | (none) | — | Analyze changes, define test strategy |
|
|
36
|
+
| TESTGEN-001 | generator | STRATEGY-001 | L1 | Generate L1 unit tests |
|
|
37
|
+
| TESTRUN-001 | executor | TESTGEN-001 | L1 | Execute L1 tests, collect coverage |
|
|
38
|
+
| TESTGEN-002 | generator | TESTRUN-001 | L2 | Generate L2 integration tests |
|
|
39
|
+
| TESTRUN-002 | executor | TESTGEN-002 | L2 | Execute L2 tests, collect coverage |
|
|
40
|
+
| TESTANA-001 | analyst | TESTRUN-002 | — | Defect pattern analysis, quality report |
|
|
41
|
+
|
|
42
|
+
### Comprehensive Pipeline (8 tasks, parallel windows)
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
STRATEGY-001 -> [TESTGEN-001 || TESTGEN-002] -> [TESTRUN-001 || TESTRUN-002] -> TESTGEN-003 -> TESTRUN-003 -> TESTANA-001
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
| Task ID | Role | Dependencies | Layer | Description |
|
|
49
|
+
|---------|------|-------------|-------|-------------|
|
|
50
|
+
| STRATEGY-001 | strategist | (none) | — | Analyze changes, define test strategy |
|
|
51
|
+
| TESTGEN-001 | generator-1 | STRATEGY-001 | L1 | Generate L1 unit tests (parallel) |
|
|
52
|
+
| TESTGEN-002 | generator-2 | STRATEGY-001 | L2 | Generate L2 integration tests (parallel) |
|
|
53
|
+
| TESTRUN-001 | executor-1 | TESTGEN-001 | L1 | Execute L1 tests (parallel) |
|
|
54
|
+
| TESTRUN-002 | executor-2 | TESTGEN-002 | L2 | Execute L2 tests (parallel) |
|
|
55
|
+
| TESTGEN-003 | generator | TESTRUN-001, TESTRUN-002 | L3 | Generate L3 E2E tests |
|
|
56
|
+
| TESTRUN-003 | executor | TESTGEN-003 | L3 | Execute L3 tests, collect coverage |
|
|
57
|
+
| TESTANA-001 | analyst | TESTRUN-003 | — | Defect pattern analysis, quality report |
|
|
58
|
+
|
|
59
|
+
## GC Loop (Generator-Critic)
|
|
60
|
+
|
|
61
|
+
Generator and executor iterate per test layer:
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
TESTGEN -> TESTRUN -> (if pass_rate < 0.95 OR coverage < target) -> TESTGEN-fix -> TESTRUN-fix
|
|
65
|
+
(if pass_rate >= 0.95 AND coverage >= target) -> next layer or TESTANA
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
- Max iterations: 3 per layer
|
|
69
|
+
- After 3 iterations: accept current state with warning
|
|
70
|
+
|
|
71
|
+
## Coverage Targets
|
|
72
|
+
|
|
73
|
+
| Layer | Name | Default Target |
|
|
74
|
+
|-------|------|----------------|
|
|
75
|
+
| L1 | Unit Tests | 80% |
|
|
76
|
+
| L2 | Integration Tests | 60% |
|
|
77
|
+
| L3 | E2E Tests | 40% |
|
|
78
|
+
|
|
79
|
+
## Session Directory
|
|
80
|
+
|
|
81
|
+
```
|
|
82
|
+
.workflow/.team/TST-<slug>-<YYYY-MM-DD>/
|
|
83
|
+
├── .msg/messages.jsonl # Message bus log
|
|
84
|
+
├── .msg/meta.json # Session metadata
|
|
85
|
+
├── wisdom/ # Cross-task knowledge
|
|
86
|
+
│ ├── learnings.md
|
|
87
|
+
│ ├── decisions.md
|
|
88
|
+
│ ├── conventions.md
|
|
89
|
+
│ └── issues.md
|
|
90
|
+
├── strategy/ # Strategist output
|
|
91
|
+
│ └── test-strategy.md
|
|
92
|
+
├── tests/ # Generator output
|
|
93
|
+
│ ├── L1-unit/
|
|
94
|
+
│ ├── L2-integration/
|
|
95
|
+
│ └── L3-e2e/
|
|
96
|
+
├── results/ # Executor output
|
|
97
|
+
│ ├── run-001.json
|
|
98
|
+
│ └── coverage-001.json
|
|
99
|
+
└── analysis/ # Analyst output
|
|
100
|
+
└── quality-report.md
|
|
101
|
+
```
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: team-uidesign
|
|
3
3
|
description: Unified team skill for UI design team. Research -> design tokens -> audit -> implementation. Uses team-worker agent architecture with roles/ for domain logic. Coordinator orchestrates dual-track pipeline with GC loops and sync points. Triggers on "team ui design", "ui design team".
|
|
4
|
-
allowed-tools: spawn_agent(*), wait_agent(*),
|
|
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(*), mcp__ace-tool__search_context(*), mcp__ccw-tools__read_file(*), mcp__ccw-tools__write_file(*), mcp__ccw-tools__edit_file(*), mcp__ccw-tools__team_msg(*)
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Team UI Design
|
|
@@ -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`, `
|
|
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 |
|
|
@@ -85,6 +86,8 @@ Coordinator spawns workers using this template:
|
|
|
85
86
|
```
|
|
86
87
|
spawn_agent({
|
|
87
88
|
agent_type: "team_worker",
|
|
89
|
+
task_name: "<task-id>",
|
|
90
|
+
fork_context: false,
|
|
88
91
|
items: [
|
|
89
92
|
{ type: "text", text: `## Role Assignment
|
|
90
93
|
role: <role>
|
|
@@ -108,7 +111,38 @@ pipeline_phase: <pipeline-phase>` },
|
|
|
108
111
|
})
|
|
109
112
|
```
|
|
110
113
|
|
|
111
|
-
After spawning, use `wait_agent({
|
|
114
|
+
After spawning, use `wait_agent({ targets: [...], timeout_ms: 900000 })` to collect results, then `close_agent({ target })` each worker.
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
### Model Selection Guide
|
|
118
|
+
|
|
119
|
+
UI design is a creative pipeline where research findings inform design decisions. Researcher needs thorough analysis, designer needs creative reasoning.
|
|
120
|
+
|
|
121
|
+
| Role | reasoning_effort | Rationale |
|
|
122
|
+
|------|-------------------|-----------|
|
|
123
|
+
| researcher | high | Deep analysis of existing design systems and patterns |
|
|
124
|
+
| designer | high | Creative design token/component spec generation |
|
|
125
|
+
| reviewer | high | Design audit must catch consistency and accessibility issues |
|
|
126
|
+
| implementer | medium | Implementation follows defined design specs |
|
|
127
|
+
|
|
128
|
+
### Research-to-Design Context Flow
|
|
129
|
+
|
|
130
|
+
Researcher findings must reach designer via coordinator's upstream context:
|
|
131
|
+
```
|
|
132
|
+
// After RESEARCH-001 completes, coordinator sends findings to designer
|
|
133
|
+
spawn_agent({
|
|
134
|
+
agent_type: "team_worker",
|
|
135
|
+
task_name: "DESIGN-001",
|
|
136
|
+
fork_context: false,
|
|
137
|
+
items: [
|
|
138
|
+
...,
|
|
139
|
+
{ type: "text", text: `## Upstream Context
|
|
140
|
+
Research findings: <session>/research/design-intelligence.json
|
|
141
|
+
Component inventory: <session>/research/component-inventory.json
|
|
142
|
+
Accessibility audit: <session>/research/accessibility-audit.json` }
|
|
143
|
+
]
|
|
144
|
+
})
|
|
145
|
+
```
|
|
112
146
|
|
|
113
147
|
## User Commands
|
|
114
148
|
|
|
@@ -145,6 +179,34 @@ After spawning, use `wait_agent({ ids: [...], timeout_ms: 900000 })` to collect
|
|
|
145
179
|
└── wisdom/ # Cross-task knowledge
|
|
146
180
|
```
|
|
147
181
|
|
|
182
|
+
## v4 Agent Coordination
|
|
183
|
+
|
|
184
|
+
### Message Semantics
|
|
185
|
+
|
|
186
|
+
| Intent | API | Example |
|
|
187
|
+
|--------|-----|---------|
|
|
188
|
+
| Queue supplementary info (don't interrupt) | `send_message` | Send research findings to running designer |
|
|
189
|
+
| Assign build from reviewed specs | `assign_task` | Assign BUILD task after audit passes |
|
|
190
|
+
| Check running agents | `list_agents` | Verify agent health during resume |
|
|
191
|
+
|
|
192
|
+
### Agent Health Check
|
|
193
|
+
|
|
194
|
+
Use `list_agents({})` in handleResume and handleComplete:
|
|
195
|
+
|
|
196
|
+
```
|
|
197
|
+
// Reconcile session state with actual running agents
|
|
198
|
+
const running = list_agents({})
|
|
199
|
+
// Compare with meta.json active tasks
|
|
200
|
+
// Reset orphaned tasks (in_progress but agent gone) to pending
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Named Agent Targeting
|
|
204
|
+
|
|
205
|
+
Workers are spawned with `task_name: "<task-id>"` enabling direct addressing:
|
|
206
|
+
- `send_message({ target: "DESIGN-001", items: [...] })` -- send additional research findings to designer
|
|
207
|
+
- `assign_task({ target: "BUILD-001", items: [...] })` -- assign implementation from reviewed design specs
|
|
208
|
+
- `close_agent({ target: "AUDIT-001" })` -- cleanup after design audit
|
|
209
|
+
|
|
148
210
|
## Error Handling
|
|
149
211
|
|
|
150
212
|
| Scenario | Resolution |
|