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,67 +1,67 @@
1
- ---
2
- role: scout
3
- prefix: SCOUT
4
- inner_loop: false
5
- message_types:
6
- success: scan_ready
7
- error: error
8
- issues: issues_found
9
- ---
10
-
11
- # Multi-Perspective Scout
12
-
13
- Scan codebase from multiple perspectives (bug, security, test-coverage, code-quality, UX) to discover potential issues. Produce structured scan results with severity-ranked findings.
14
-
15
- ## Phase 2: Context & Scope Assessment
16
-
17
- | Input | Source | Required |
18
- |-------|--------|----------|
19
- | Task description | From task subject/description | Yes |
20
- | Session path | Extracted from task description | Yes |
21
- | .msg/meta.json | <session>/wisdom/.msg/meta.json | No |
22
-
23
- 1. Extract session path and target scope from task description
24
- 2. Determine scan scope: explicit scope from task or `**/*` default
25
- 3. Get recent changed files: `git diff --name-only HEAD~5 2>/dev/null || echo ""`
26
- 4. Read .msg/meta.json for historical defect patterns (`defect_patterns`)
27
- 5. Select scan perspectives based on task description:
28
- - Default: `["bug", "security", "test-coverage", "code-quality"]`
29
- - Add `"ux"` if task mentions UX/UI
30
- 6. Assess complexity to determine scan strategy:
31
-
32
- | Complexity | Condition | Strategy |
33
- |------------|-----------|----------|
34
- | Low | < 5 changed files, no specific keywords | ACE search + Grep inline |
35
- | Medium | 5-15 files or specific perspective requested | CLI fan-out (3 core perspectives) |
36
- | High | > 15 files or full-project scan | CLI fan-out (all perspectives) |
37
-
38
- ## Phase 3: Multi-Perspective Scan
39
-
40
- **Low complexity**: Use `mcp__ace-tool__search_context` for quick pattern-based scan.
41
-
42
- **Medium/High complexity**: CLI fan-out -- one `ccw cli --mode analysis` per perspective:
43
-
44
- For each active perspective, build prompt:
45
- ```
46
- PURPOSE: Scan code from <perspective> perspective to discover potential issues
47
- TASK: Analyze code patterns for <perspective> problems, identify anti-patterns, check for common issues
48
- MODE: analysis
49
- CONTEXT: @<scan-scope>
50
- EXPECTED: List of findings with severity (critical/high/medium/low), file:line references, description
51
- CONSTRAINTS: Focus on actionable findings only
52
- ```
53
- Execute via: `ccw cli -p "<prompt>" --tool gemini --mode analysis`
54
-
55
- After all perspectives complete:
56
- - Parse CLI outputs into structured findings
57
- - Deduplicate by file:line (merge perspectives for same location)
58
- - Compare against known defect patterns from .msg/meta.json
59
- - Rank by severity: critical > high > medium > low
60
-
61
- ## Phase 4: Result Aggregation
62
-
63
- 1. Build `discoveredIssues` array from critical + high findings (with id, severity, perspective, file, line, description)
64
- 2. Write scan results to `<session>/scan/scan-results.json`:
65
- - scan_date, perspectives scanned, total findings, by_severity counts, findings detail, issues_created count
66
- 3. Update `<session>/wisdom/.msg/meta.json`: merge `discovered_issues` field
67
- 4. Contribute to wisdom/issues.md if new patterns found
1
+ ---
2
+ role: scout
3
+ prefix: SCOUT
4
+ inner_loop: false
5
+ message_types:
6
+ success: scan_ready
7
+ error: error
8
+ issues: issues_found
9
+ ---
10
+
11
+ # Multi-Perspective Scout
12
+
13
+ Scan codebase from multiple perspectives (bug, security, test-coverage, code-quality, UX) to discover potential issues. Produce structured scan results with severity-ranked findings.
14
+
15
+ ## Phase 2: Context & Scope Assessment
16
+
17
+ | Input | Source | Required |
18
+ |-------|--------|----------|
19
+ | Task description | From task subject/description | Yes |
20
+ | Session path | Extracted from task description | Yes |
21
+ | .msg/meta.json | <session>/wisdom/.msg/meta.json | No |
22
+
23
+ 1. Extract session path and target scope from task description
24
+ 2. Determine scan scope: explicit scope from task or `**/*` default
25
+ 3. Get recent changed files: `git diff --name-only HEAD~5 2>/dev/null || echo ""`
26
+ 4. Read .msg/meta.json for historical defect patterns (`defect_patterns`)
27
+ 5. Select scan perspectives based on task description:
28
+ - Default: `["bug", "security", "test-coverage", "code-quality"]`
29
+ - Add `"ux"` if task mentions UX/UI
30
+ 6. Assess complexity to determine scan strategy:
31
+
32
+ | Complexity | Condition | Strategy |
33
+ |------------|-----------|----------|
34
+ | Low | < 5 changed files, no specific keywords | ACE search + Grep inline |
35
+ | Medium | 5-15 files or specific perspective requested | CLI fan-out (3 core perspectives) |
36
+ | High | > 15 files or full-project scan | CLI fan-out (all perspectives) |
37
+
38
+ ## Phase 3: Multi-Perspective Scan
39
+
40
+ **Low complexity**: Use `mcp__ace-tool__search_context` for quick pattern-based scan.
41
+
42
+ **Medium/High complexity**: CLI fan-out -- one `ccw cli --mode analysis` per perspective:
43
+
44
+ For each active perspective, build prompt:
45
+ ```
46
+ PURPOSE: Scan code from <perspective> perspective to discover potential issues
47
+ TASK: Analyze code patterns for <perspective> problems, identify anti-patterns, check for common issues
48
+ MODE: analysis
49
+ CONTEXT: @<scan-scope>
50
+ EXPECTED: List of findings with severity (critical/high/medium/low), file:line references, description
51
+ CONSTRAINTS: Focus on actionable findings only
52
+ ```
53
+ Execute via: `ccw cli -p "<prompt>" --tool gemini --mode analysis`
54
+
55
+ After all perspectives complete:
56
+ - Parse CLI outputs into structured findings
57
+ - Deduplicate by file:line (merge perspectives for same location)
58
+ - Compare against known defect patterns from .msg/meta.json
59
+ - Rank by severity: critical > high > medium > low
60
+
61
+ ## Phase 4: Result Aggregation
62
+
63
+ 1. Build `discoveredIssues` array from critical + high findings (with id, severity, perspective, file, line, description)
64
+ 2. Write scan results to `<session>/scan/scan-results.json`:
65
+ - scan_date, perspectives scanned, total findings, by_severity counts, findings detail, issues_created count
66
+ 3. Update `<session>/wisdom/.msg/meta.json`: merge `discovered_issues` field
67
+ 4. Contribute to wisdom/issues.md if new patterns found
@@ -1,71 +1,71 @@
1
- ---
2
- role: strategist
3
- prefix: QASTRAT
4
- inner_loop: false
5
- message_types:
6
- success: strategy_ready
7
- error: error
8
- ---
9
-
10
- # Test Strategist
11
-
12
- Analyze change scope, determine test layers (L1-L3), define coverage targets, and generate test strategy document. Create targeted test plans based on scout discoveries and code changes.
13
-
14
- ## Phase 2: Context & Change Analysis
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 | Yes |
21
- | Discovered issues | meta.json -> discovered_issues | No |
22
- | Defect patterns | meta.json -> defect_patterns | No |
23
-
24
- 1. Extract session path from task description
25
- 2. Read .msg/meta.json for scout discoveries and historical patterns
26
- 3. Analyze change scope: `git diff --name-only HEAD~5`
27
- 4. Categorize changed files:
28
-
29
- | Category | Pattern |
30
- |----------|---------|
31
- | Source | `\.(ts|tsx|js|jsx|py|java|go|rs)$` |
32
- | Test | `\.(test|spec)\.(ts|tsx|js|jsx)$` or `test_` |
33
- | Config | `\.(json|yaml|yml|toml|env)$` |
34
-
35
- 5. Detect test framework from package.json / project files
36
- 6. Check existing coverage baseline from `coverage/coverage-summary.json`
37
- 7. Select analysis mode:
38
-
39
- | Total Scope | Mode |
40
- |-------------|------|
41
- | <= 5 files + issues | Direct inline analysis |
42
- | 6-15 | Single CLI analysis |
43
- | > 15 | Multi-dimension CLI analysis |
44
-
45
- ## Phase 3: Strategy Generation
46
-
47
- **Layer Selection Logic**:
48
-
49
- | Condition | Layer | Target |
50
- |-----------|-------|--------|
51
- | Has source file changes | L1: Unit Tests | 80% |
52
- | >= 3 source files OR critical issues | L2: Integration Tests | 60% |
53
- | >= 3 critical/high severity issues | L3: E2E Tests | 40% |
54
- | No changes but has scout issues | L1 focused on issue files | 80% |
55
-
56
- For CLI-assisted analysis, use:
57
- ```
58
- PURPOSE: Analyze code changes and scout findings to determine optimal test strategy
59
- TASK: Classify changed files by risk, map issues to test requirements, identify integration points, recommend test layers with coverage targets
60
- MODE: analysis
61
- ```
62
-
63
- Build strategy document with: scope analysis, layer configs (level, name, target_coverage, focus_files, rationale), priority issues list.
64
-
65
- **Validation**: Verify strategy has layers, targets > 0, covers discovered issues, and framework detected.
66
-
67
- ## Phase 4: Output & Persistence
68
-
69
- 1. Write strategy to `<session>/strategy/test-strategy.md`
70
- 2. Update `<session>/wisdom/.msg/meta.json`: merge `test_strategy` field with scope, layers, coverage_targets, test_framework
71
- 3. Contribute to wisdom/decisions.md with layer selection rationale
1
+ ---
2
+ role: strategist
3
+ prefix: QASTRAT
4
+ inner_loop: false
5
+ message_types:
6
+ success: strategy_ready
7
+ error: error
8
+ ---
9
+
10
+ # Test Strategist
11
+
12
+ Analyze change scope, determine test layers (L1-L3), define coverage targets, and generate test strategy document. Create targeted test plans based on scout discoveries and code changes.
13
+
14
+ ## Phase 2: Context & Change Analysis
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 | Yes |
21
+ | Discovered issues | meta.json -> discovered_issues | No |
22
+ | Defect patterns | meta.json -> defect_patterns | No |
23
+
24
+ 1. Extract session path from task description
25
+ 2. Read .msg/meta.json for scout discoveries and historical patterns
26
+ 3. Analyze change scope: `git diff --name-only HEAD~5`
27
+ 4. Categorize changed files:
28
+
29
+ | Category | Pattern |
30
+ |----------|---------|
31
+ | Source | `\.(ts|tsx|js|jsx|py|java|go|rs)$` |
32
+ | Test | `\.(test|spec)\.(ts|tsx|js|jsx)$` or `test_` |
33
+ | Config | `\.(json|yaml|yml|toml|env)$` |
34
+
35
+ 5. Detect test framework from package.json / project files
36
+ 6. Check existing coverage baseline from `coverage/coverage-summary.json`
37
+ 7. Select analysis mode:
38
+
39
+ | Total Scope | Mode |
40
+ |-------------|------|
41
+ | <= 5 files + issues | Direct inline analysis |
42
+ | 6-15 | Single CLI analysis |
43
+ | > 15 | Multi-dimension CLI analysis |
44
+
45
+ ## Phase 3: Strategy Generation
46
+
47
+ **Layer Selection Logic**:
48
+
49
+ | Condition | Layer | Target |
50
+ |-----------|-------|--------|
51
+ | Has source file changes | L1: Unit Tests | 80% |
52
+ | >= 3 source files OR critical issues | L2: Integration Tests | 60% |
53
+ | >= 3 critical/high severity issues | L3: E2E Tests | 40% |
54
+ | No changes but has scout issues | L1 focused on issue files | 80% |
55
+
56
+ For CLI-assisted analysis, use:
57
+ ```
58
+ PURPOSE: Analyze code changes and scout findings to determine optimal test strategy
59
+ TASK: Classify changed files by risk, map issues to test requirements, identify integration points, recommend test layers with coverage targets
60
+ MODE: analysis
61
+ ```
62
+
63
+ Build strategy document with: scope analysis, layer configs (level, name, target_coverage, focus_files, rationale), priority issues list.
64
+
65
+ **Validation**: Verify strategy has layers, targets > 0, covers discovered issues, and framework detected.
66
+
67
+ ## Phase 4: Output & Persistence
68
+
69
+ 1. Write strategy to `<session>/strategy/test-strategy.md`
70
+ 2. Update `<session>/wisdom/.msg/meta.json`: merge `test_strategy` field with scope, layers, coverage_targets, test_framework
71
+ 3. Contribute to wisdom/decisions.md with layer selection rationale
@@ -1,115 +1,115 @@
1
- # QA Pipelines
2
-
3
- Pipeline definitions and task registry for team-quality-assurance.
4
-
5
- ## Pipeline Modes
6
-
7
- | Mode | Description | Entry Role |
8
- |------|-------------|------------|
9
- | discovery | Scout-first: issue discovery then testing | scout |
10
- | testing | Skip scout, direct test pipeline | strategist |
11
- | full | Complete QA closed loop + regression scan | scout |
12
-
13
- ## Pipeline Definitions
14
-
15
- ### Discovery Mode (5 tasks, serial)
16
-
17
- ```
18
- SCOUT-001 -> QASTRAT-001 -> QAGEN-001 -> QARUN-001 -> QAANA-001
19
- ```
20
-
21
- | Task ID | Role | Dependencies | Description |
22
- |---------|------|-------------|-------------|
23
- | SCOUT-001 | scout | (none) | Multi-perspective issue scanning |
24
- | QASTRAT-001 | strategist | SCOUT-001 | Change scope analysis + test strategy |
25
- | QAGEN-001 | generator | QASTRAT-001 | L1 unit test generation |
26
- | QARUN-001 | executor | QAGEN-001 | L1 test execution + fix cycles |
27
- | QAANA-001 | analyst | QARUN-001 | Defect pattern analysis + quality report |
28
-
29
- ### Testing Mode (6 tasks, progressive layers)
30
-
31
- ```
32
- QASTRAT-001 -> QAGEN-L1-001 -> QARUN-L1-001 -> QAGEN-L2-001 -> QARUN-L2-001 -> QAANA-001
33
- ```
34
-
35
- | Task ID | Role | Dependencies | Layer | Description |
36
- |---------|------|-------------|-------|-------------|
37
- | QASTRAT-001 | strategist | (none) | — | Test strategy formulation |
38
- | QAGEN-L1-001 | generator | QASTRAT-001 | L1 | L1 unit test generation |
39
- | QARUN-L1-001 | executor | QAGEN-L1-001 | L1 | L1 test execution + fix cycles |
40
- | QAGEN-L2-001 | generator | QARUN-L1-001 | L2 | L2 integration test generation |
41
- | QARUN-L2-001 | executor | QAGEN-L2-001 | L2 | L2 test execution + fix cycles |
42
- | QAANA-001 | analyst | QARUN-L2-001 | — | Quality analysis report |
43
-
44
- ### Full Mode (8 tasks, parallel windows + regression)
45
-
46
- ```
47
- SCOUT-001 -> QASTRAT-001 -> [QAGEN-L1-001 || QAGEN-L2-001] -> [QARUN-L1-001 || QARUN-L2-001] -> QAANA-001 -> SCOUT-002
48
- ```
49
-
50
- | Task ID | Role | Dependencies | Layer | Description |
51
- |---------|------|-------------|-------|-------------|
52
- | SCOUT-001 | scout | (none) | — | Multi-perspective issue scanning |
53
- | QASTRAT-001 | strategist | SCOUT-001 | — | Test strategy formulation |
54
- | QAGEN-L1-001 | generator-1 | QASTRAT-001 | L1 | L1 unit test generation (parallel) |
55
- | QAGEN-L2-001 | generator-2 | QASTRAT-001 | L2 | L2 integration test generation (parallel) |
56
- | QARUN-L1-001 | executor-1 | QAGEN-L1-001 | L1 | L1 test execution + fix cycles (parallel) |
57
- | QARUN-L2-001 | executor-2 | QAGEN-L2-001 | L2 | L2 test execution + fix cycles (parallel) |
58
- | QAANA-001 | analyst | QARUN-L1-001, QARUN-L2-001 | — | Quality analysis report |
59
- | SCOUT-002 | scout | QAANA-001 | — | Regression scan after fixes |
60
-
61
- ## GC Loop
62
-
63
- Generator-Executor iterate per test layer until coverage targets are met:
64
-
65
- ```
66
- QAGEN -> QARUN -> (if coverage < target) -> QAGEN-fix -> QARUN-gc
67
- (if coverage >= target) -> next layer or QAANA
68
- ```
69
-
70
- - Max iterations: 3 per layer
71
- - After 3 iterations: accept current coverage with warning
72
-
73
- ## Coverage Targets
74
-
75
- | Layer | Name | Default Target |
76
- |-------|------|----------------|
77
- | L1 | Unit Tests | 80% |
78
- | L2 | Integration Tests | 60% |
79
- | L3 | E2E Tests | 40% |
80
-
81
- ## Scan Perspectives
82
-
83
- | Perspective | Focus |
84
- |-------------|-------|
85
- | bug | Logic errors, crash paths, null references |
86
- | security | Vulnerabilities, auth bypass, data exposure |
87
- | test-coverage | Untested code paths, missing assertions |
88
- | code-quality | Anti-patterns, complexity, maintainability |
89
- | ux | User-facing issues, accessibility (optional) |
90
-
91
- ## Session Directory
92
-
93
- ```
94
- .workflow/.team/QA-<slug>-<YYYY-MM-DD>/
95
- ├── .msg/messages.jsonl # Message bus log
96
- ├── .msg/meta.json # Session state + cross-role state
97
- ├── wisdom/ # Cross-task knowledge
98
- │ ├── learnings.md
99
- │ ├── decisions.md
100
- │ ├── conventions.md
101
- │ └── issues.md
102
- ├── scan/ # Scout output
103
- │ └── scan-results.json
104
- ├── strategy/ # Strategist output
105
- │ └── test-strategy.md
106
- ├── tests/ # Generator output
107
- │ ├── L1-unit/
108
- │ ├── L2-integration/
109
- │ └── L3-e2e/
110
- ├── results/ # Executor output
111
- │ ├── run-001.json
112
- │ └── coverage-001.json
113
- └── analysis/ # Analyst output
114
- └── quality-report.md
115
- ```
1
+ # QA Pipelines
2
+
3
+ Pipeline definitions and task registry for team-quality-assurance.
4
+
5
+ ## Pipeline Modes
6
+
7
+ | Mode | Description | Entry Role |
8
+ |------|-------------|------------|
9
+ | discovery | Scout-first: issue discovery then testing | scout |
10
+ | testing | Skip scout, direct test pipeline | strategist |
11
+ | full | Complete QA closed loop + regression scan | scout |
12
+
13
+ ## Pipeline Definitions
14
+
15
+ ### Discovery Mode (5 tasks, serial)
16
+
17
+ ```
18
+ SCOUT-001 -> QASTRAT-001 -> QAGEN-001 -> QARUN-001 -> QAANA-001
19
+ ```
20
+
21
+ | Task ID | Role | Dependencies | Description |
22
+ |---------|------|-------------|-------------|
23
+ | SCOUT-001 | scout | (none) | Multi-perspective issue scanning |
24
+ | QASTRAT-001 | strategist | SCOUT-001 | Change scope analysis + test strategy |
25
+ | QAGEN-001 | generator | QASTRAT-001 | L1 unit test generation |
26
+ | QARUN-001 | executor | QAGEN-001 | L1 test execution + fix cycles |
27
+ | QAANA-001 | analyst | QARUN-001 | Defect pattern analysis + quality report |
28
+
29
+ ### Testing Mode (6 tasks, progressive layers)
30
+
31
+ ```
32
+ QASTRAT-001 -> QAGEN-L1-001 -> QARUN-L1-001 -> QAGEN-L2-001 -> QARUN-L2-001 -> QAANA-001
33
+ ```
34
+
35
+ | Task ID | Role | Dependencies | Layer | Description |
36
+ |---------|------|-------------|-------|-------------|
37
+ | QASTRAT-001 | strategist | (none) | — | Test strategy formulation |
38
+ | QAGEN-L1-001 | generator | QASTRAT-001 | L1 | L1 unit test generation |
39
+ | QARUN-L1-001 | executor | QAGEN-L1-001 | L1 | L1 test execution + fix cycles |
40
+ | QAGEN-L2-001 | generator | QARUN-L1-001 | L2 | L2 integration test generation |
41
+ | QARUN-L2-001 | executor | QAGEN-L2-001 | L2 | L2 test execution + fix cycles |
42
+ | QAANA-001 | analyst | QARUN-L2-001 | — | Quality analysis report |
43
+
44
+ ### Full Mode (8 tasks, parallel windows + regression)
45
+
46
+ ```
47
+ SCOUT-001 -> QASTRAT-001 -> [QAGEN-L1-001 || QAGEN-L2-001] -> [QARUN-L1-001 || QARUN-L2-001] -> QAANA-001 -> SCOUT-002
48
+ ```
49
+
50
+ | Task ID | Role | Dependencies | Layer | Description |
51
+ |---------|------|-------------|-------|-------------|
52
+ | SCOUT-001 | scout | (none) | — | Multi-perspective issue scanning |
53
+ | QASTRAT-001 | strategist | SCOUT-001 | — | Test strategy formulation |
54
+ | QAGEN-L1-001 | generator-1 | QASTRAT-001 | L1 | L1 unit test generation (parallel) |
55
+ | QAGEN-L2-001 | generator-2 | QASTRAT-001 | L2 | L2 integration test generation (parallel) |
56
+ | QARUN-L1-001 | executor-1 | QAGEN-L1-001 | L1 | L1 test execution + fix cycles (parallel) |
57
+ | QARUN-L2-001 | executor-2 | QAGEN-L2-001 | L2 | L2 test execution + fix cycles (parallel) |
58
+ | QAANA-001 | analyst | QARUN-L1-001, QARUN-L2-001 | — | Quality analysis report |
59
+ | SCOUT-002 | scout | QAANA-001 | — | Regression scan after fixes |
60
+
61
+ ## GC Loop
62
+
63
+ Generator-Executor iterate per test layer until coverage targets are met:
64
+
65
+ ```
66
+ QAGEN -> QARUN -> (if coverage < target) -> QAGEN-fix -> QARUN-gc
67
+ (if coverage >= target) -> next layer or QAANA
68
+ ```
69
+
70
+ - Max iterations: 3 per layer
71
+ - After 3 iterations: accept current coverage with warning
72
+
73
+ ## Coverage Targets
74
+
75
+ | Layer | Name | Default Target |
76
+ |-------|------|----------------|
77
+ | L1 | Unit Tests | 80% |
78
+ | L2 | Integration Tests | 60% |
79
+ | L3 | E2E Tests | 40% |
80
+
81
+ ## Scan Perspectives
82
+
83
+ | Perspective | Focus |
84
+ |-------------|-------|
85
+ | bug | Logic errors, crash paths, null references |
86
+ | security | Vulnerabilities, auth bypass, data exposure |
87
+ | test-coverage | Untested code paths, missing assertions |
88
+ | code-quality | Anti-patterns, complexity, maintainability |
89
+ | ux | User-facing issues, accessibility (optional) |
90
+
91
+ ## Session Directory
92
+
93
+ ```
94
+ .workflow/.team/QA-<slug>-<YYYY-MM-DD>/
95
+ ├── .msg/messages.jsonl # Message bus log
96
+ ├── .msg/meta.json # Session state + cross-role state
97
+ ├── wisdom/ # Cross-task knowledge
98
+ │ ├── learnings.md
99
+ │ ├── decisions.md
100
+ │ ├── conventions.md
101
+ │ └── issues.md
102
+ ├── scan/ # Scout output
103
+ │ └── scan-results.json
104
+ ├── strategy/ # Strategist output
105
+ │ └── test-strategy.md
106
+ ├── tests/ # Generator output
107
+ │ ├── L1-unit/
108
+ │ ├── L2-integration/
109
+ │ └── L3-e2e/
110
+ ├── results/ # Executor output
111
+ │ ├── run-001.json
112
+ │ └── coverage-001.json
113
+ └── analysis/ # Analyst output
114
+ └── quality-report.md
115
+ ```
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: team-review
3
3
  description: "Unified team skill for code review. 3-role pipeline: scanner, reviewer, fixer. Triggers on team-review."
4
- allowed-tools: spawn_agent(*), wait_agent(*), send_input(*), close_agent(*), report_agent_job_result(*), request_user_input(*), Read(*), Write(*), Edit(*), Bash(*), Glob(*), Grep(*), 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(*), mcp__ace-tool__search_context(*)
5
5
  ---
6
6
 
7
7
  # Team Review
@@ -53,7 +53,8 @@ Before calling ANY tool, apply this check:
53
53
 
54
54
  | Tool Call | Verdict | Reason |
55
55
  |-----------|---------|--------|
56
- | `spawn_agent`, `wait_agent`, `close_agent`, `send_input` | ALLOWED | Orchestration |
56
+ | `spawn_agent`, `wait_agent`, `close_agent`, `send_message`, `assign_task` | ALLOWED | Orchestration |
57
+ | `list_agents` | ALLOWED | Agent health check |
57
58
  | `request_user_input` | ALLOWED | User interaction |
58
59
  | `mcp__ccw-tools__team_msg` | ALLOWED | Message bus |
59
60
  | `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,28 @@ 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
+ | Scanner (SCAN-*) | (default) | medium | Toolchain scanning + pattern matching, less reasoning |
121
+ | Reviewer (REV-*) | (default) | high | Deep root cause analysis requires full reasoning |
122
+ | Fixer (FIX-*) | (default) | high | Code modification needs precision |
123
+
124
+ Override model/reasoning_effort in spawn_agent when cost optimization is needed:
125
+ ```
126
+ spawn_agent({
127
+ agent_type: "team_worker",
128
+ task_name: "<task-id>",
129
+ fork_context: false,
130
+ model: "<model-override>",
131
+ reasoning_effort: "<effort-level>",
132
+ items: [...]
133
+ })
134
+ ```
111
135
 
112
136
  ## User Commands
113
137
 
@@ -121,6 +145,37 @@ After spawning, use `wait_agent({ ids: [...], timeout_ms: 900000 })` to collect
121
145
  | `--dimensions=sec,cor,prf,mnt` | Custom dimensions |
122
146
  | `-y` / `--yes` | Skip confirmations |
123
147
 
148
+ ## v4 Agent Coordination
149
+
150
+ ### Message Semantics
151
+
152
+ | Intent | API | Example |
153
+ |--------|-----|---------|
154
+ | Send scan findings to running reviewer | `send_message` | Queue scan results to REV-* as supplementary context |
155
+ | Not used in this skill | `assign_task` | No resident agents -- sequential 3-stage pipeline |
156
+ | Check running agents | `list_agents` | Verify agent health during resume |
157
+
158
+ ### Pipeline Pattern
159
+
160
+ This is a **sequential 3-stage pipeline** (scan -> review -> fix). No parallel phases. Each stage completes before the next starts. The coordinator may skip stages (0 findings -> skip review+fix; user declines fix -> skip fix).
161
+
162
+ ### Agent Health Check
163
+
164
+ Use `list_agents({})` in handleResume and handleComplete:
165
+
166
+ ```
167
+ // Reconcile session state with actual running agents
168
+ const running = list_agents({})
169
+ // Compare with tasks.json active_agents
170
+ // Reset orphaned tasks (in_progress but agent gone) to pending
171
+ ```
172
+
173
+ ### Named Agent Targeting
174
+
175
+ Workers are spawned with `task_name: "<task-id>"` enabling direct addressing:
176
+ - `send_message({ target: "REV-001", items: [...] })` -- queue scan findings to running reviewer
177
+ - `close_agent({ target: "SCAN-001" })` -- cleanup by name after completion
178
+
124
179
  ## Completion Action
125
180
 
126
181
  When pipeline completes, coordinator presents: