maestro-flow 0.4.10 → 0.4.11

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 (226) hide show
  1. package/.agents/agents/cli-explore-agent.md +189 -0
  2. package/.agents/agents/conceptual-planning-agent.md +247 -0
  3. package/.agents/agents/impeccable-agent.md +101 -0
  4. package/.agents/agents/team-supervisor.md +145 -0
  5. package/.agents/agents/team-worker.md +239 -0
  6. package/.agents/agents/ui-design-agent.md +289 -0
  7. package/.agents/agents/workflow-analyzer.md +117 -0
  8. package/.agents/agents/workflow-codebase-mapper.md +79 -0
  9. package/.agents/agents/workflow-collab-planner.md +145 -0
  10. package/.agents/agents/workflow-debugger.md +105 -0
  11. package/.agents/agents/workflow-executor.md +134 -0
  12. package/.agents/agents/workflow-external-researcher.md +88 -0
  13. package/.agents/agents/workflow-integration-checker.md +85 -0
  14. package/.agents/agents/workflow-nyquist-auditor.md +87 -0
  15. package/.agents/agents/workflow-phase-researcher.md +87 -0
  16. package/.agents/agents/workflow-plan-checker.md +92 -0
  17. package/.agents/agents/workflow-planner.md +197 -0
  18. package/.agents/agents/workflow-project-researcher.md +76 -0
  19. package/.agents/agents/workflow-research-synthesizer.md +72 -0
  20. package/.agents/agents/workflow-reviewer.md +84 -0
  21. package/.agents/agents/workflow-roadmapper.md +83 -0
  22. package/.agents/agents/workflow-verifier.md +122 -0
  23. package/.agents/skills/codify-to-knowhow/SKILL.md +169 -0
  24. package/.agents/skills/codify-to-knowhow/phases/01-load-manifest.md +101 -0
  25. package/.agents/skills/codify-to-knowhow/phases/02-generate-knowhow.md +97 -0
  26. package/.agents/skills/codify-to-knowhow/phases/03-generate-specs.md +92 -0
  27. package/.agents/skills/codify-to-knowhow/phases/04-index-verify.md +119 -0
  28. package/.agents/skills/learn-decompose/SKILL.md +118 -0
  29. package/.agents/skills/learn-follow/SKILL.md +129 -0
  30. package/.agents/skills/learn-investigate/SKILL.md +154 -0
  31. package/.agents/skills/learn-retro/SKILL.md +159 -0
  32. package/.agents/skills/learn-second-opinion/SKILL.md +124 -0
  33. package/.agents/skills/maestro/SKILL.md +224 -0
  34. package/.agents/skills/maestro-amend/SKILL.md +165 -0
  35. package/.agents/skills/maestro-analyze/SKILL.md +135 -0
  36. package/.agents/skills/maestro-brainstorm/SKILL.md +118 -0
  37. package/.agents/skills/maestro-collab/SKILL.md +174 -0
  38. package/.agents/skills/maestro-composer/SKILL.md +181 -0
  39. package/.agents/skills/maestro-execute/SKILL.md +133 -0
  40. package/.agents/skills/maestro-fork/SKILL.md +88 -0
  41. package/.agents/skills/maestro-guard/SKILL.md +103 -0
  42. package/.agents/skills/maestro-help/SKILL.md +266 -0
  43. package/.agents/skills/maestro-help/index/catalog.json +184 -0
  44. package/.agents/skills/maestro-help/phases/01-parse-intent.md +122 -0
  45. package/.agents/skills/maestro-help/phases/02-search-present.md +181 -0
  46. package/.agents/skills/maestro-help/phases/03-workflow-guide.md +186 -0
  47. package/.agents/skills/maestro-impeccable/SKILL.md +251 -0
  48. package/.agents/skills/maestro-init/SKILL.md +80 -0
  49. package/.agents/skills/maestro-learn/SKILL.md +142 -0
  50. package/.agents/skills/maestro-merge/SKILL.md +66 -0
  51. package/.agents/skills/maestro-milestone-audit/SKILL.md +70 -0
  52. package/.agents/skills/maestro-milestone-complete/SKILL.md +77 -0
  53. package/.agents/skills/maestro-milestone-release/SKILL.md +98 -0
  54. package/.agents/skills/maestro-overlay/SKILL.md +180 -0
  55. package/.agents/skills/maestro-plan/SKILL.md +172 -0
  56. package/.agents/skills/maestro-player/SKILL.md +177 -0
  57. package/.agents/skills/maestro-quick/SKILL.md +67 -0
  58. package/.agents/skills/maestro-ralph/SKILL.md +685 -0
  59. package/.agents/skills/maestro-ralph-execute/SKILL.md +259 -0
  60. package/.agents/skills/maestro-roadmap/SKILL.md +170 -0
  61. package/.agents/skills/maestro-tools-execute/SKILL.md +119 -0
  62. package/.agents/skills/maestro-tools-register/SKILL.md +159 -0
  63. package/.agents/skills/maestro-ui-codify/SKILL.md +82 -0
  64. package/.agents/skills/maestro-update/SKILL.md +178 -0
  65. package/.agents/skills/maestro-verify/SKILL.md +111 -0
  66. package/.agents/skills/manage-codebase-rebuild/SKILL.md +77 -0
  67. package/.agents/skills/manage-codebase-refresh/SKILL.md +59 -0
  68. package/.agents/skills/manage-harvest/SKILL.md +96 -0
  69. package/.agents/skills/manage-issue/SKILL.md +75 -0
  70. package/.agents/skills/manage-issue-discover/SKILL.md +83 -0
  71. package/.agents/skills/manage-knowhow/SKILL.md +79 -0
  72. package/.agents/skills/manage-knowhow-capture/SKILL.md +81 -0
  73. package/.agents/skills/manage-learn/SKILL.md +67 -0
  74. package/.agents/skills/manage-status/SKILL.md +54 -0
  75. package/.agents/skills/manage-wiki/SKILL.md +64 -0
  76. package/.agents/skills/quality-auto-test/SKILL.md +138 -0
  77. package/.agents/skills/quality-debug/SKILL.md +122 -0
  78. package/.agents/skills/quality-refactor/SKILL.md +69 -0
  79. package/.agents/skills/quality-retrospective/SKILL.md +79 -0
  80. package/.agents/skills/quality-review/SKILL.md +130 -0
  81. package/.agents/skills/quality-sync/SKILL.md +53 -0
  82. package/.agents/skills/quality-test/SKILL.md +119 -0
  83. package/.agents/skills/security-audit/SKILL.md +157 -0
  84. package/.agents/skills/skill-iter-tune/SKILL.md +384 -0
  85. package/.agents/skills/skill-iter-tune/phases/01-setup.md +144 -0
  86. package/.agents/skills/skill-iter-tune/phases/02-execute.md +292 -0
  87. package/.agents/skills/skill-iter-tune/phases/03-evaluate.md +312 -0
  88. package/.agents/skills/skill-iter-tune/phases/04-improve.md +186 -0
  89. package/.agents/skills/skill-iter-tune/phases/05-report.md +166 -0
  90. package/.agents/skills/skill-iter-tune/specs/evaluation-criteria.md +63 -0
  91. package/.agents/skills/skill-iter-tune/templates/eval-prompt.md +134 -0
  92. package/.agents/skills/skill-iter-tune/templates/execute-prompt.md +97 -0
  93. package/.agents/skills/spec-add/SKILL.md +70 -0
  94. package/.agents/skills/spec-load/SKILL.md +73 -0
  95. package/.agents/skills/spec-remove/SKILL.md +53 -0
  96. package/.agents/skills/spec-setup/SKILL.md +50 -0
  97. package/.agents/skills/team-coordinate/SKILL.md +268 -0
  98. package/.agents/skills/team-coordinate/roles/coordinator/commands/analyze-task.md +247 -0
  99. package/.agents/skills/team-coordinate/roles/coordinator/commands/dispatch.md +131 -0
  100. package/.agents/skills/team-coordinate/roles/coordinator/commands/monitor.md +358 -0
  101. package/.agents/skills/team-coordinate/roles/coordinator/role.md +365 -0
  102. package/.agents/skills/team-coordinate/specs/knowledge-transfer.md +111 -0
  103. package/.agents/skills/team-coordinate/specs/pipelines.md +97 -0
  104. package/.agents/skills/team-coordinate/specs/quality-gates.md +112 -0
  105. package/.agents/skills/team-coordinate/specs/role-spec-template.md +198 -0
  106. package/.agents/skills/team-executor/SKILL.md +191 -0
  107. package/.agents/skills/team-executor/roles/executor/commands/monitor.md +239 -0
  108. package/.agents/skills/team-executor/roles/executor/role.md +171 -0
  109. package/.agents/skills/team-executor/specs/session-schema.md +264 -0
  110. package/.agents/skills/team-lifecycle-v4/SKILL.md +211 -0
  111. package/.agents/skills/team-lifecycle-v4/roles/analyst/role.md +96 -0
  112. package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/analyze.md +56 -0
  113. package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +56 -0
  114. package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +206 -0
  115. package/.agents/skills/team-lifecycle-v4/roles/coordinator/role.md +130 -0
  116. package/.agents/skills/team-lifecycle-v4/roles/executor/commands/fix.md +35 -0
  117. package/.agents/skills/team-lifecycle-v4/roles/executor/commands/implement.md +62 -0
  118. package/.agents/skills/team-lifecycle-v4/roles/executor/role.md +69 -0
  119. package/.agents/skills/team-lifecycle-v4/roles/planner/role.md +87 -0
  120. package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-code.md +34 -0
  121. package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +44 -0
  122. package/.agents/skills/team-lifecycle-v4/roles/reviewer/role.md +71 -0
  123. package/.agents/skills/team-lifecycle-v4/roles/supervisor/role.md +194 -0
  124. package/.agents/skills/team-lifecycle-v4/roles/tester/role.md +89 -0
  125. package/.agents/skills/team-lifecycle-v4/roles/writer/role.md +97 -0
  126. package/.agents/skills/team-lifecycle-v4/specs/knowledge-transfer.md +114 -0
  127. package/.agents/skills/team-lifecycle-v4/specs/pipelines.md +140 -0
  128. package/.agents/skills/team-lifecycle-v4/specs/quality-gates.md +130 -0
  129. package/.agents/skills/team-lifecycle-v4/templates/architecture.md +254 -0
  130. package/.agents/skills/team-lifecycle-v4/templates/epics.md +196 -0
  131. package/.agents/skills/team-lifecycle-v4/templates/product-brief.md +133 -0
  132. package/.agents/skills/team-lifecycle-v4/templates/requirements.md +224 -0
  133. package/.agents/skills/team-quality-assurance/SKILL.md +149 -0
  134. package/.agents/skills/team-quality-assurance/roles/analyst/role.md +90 -0
  135. package/.agents/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -0
  136. package/.agents/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +111 -0
  137. package/.agents/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +250 -0
  138. package/.agents/skills/team-quality-assurance/roles/coordinator/role.md +143 -0
  139. package/.agents/skills/team-quality-assurance/roles/executor/role.md +68 -0
  140. package/.agents/skills/team-quality-assurance/roles/generator/role.md +70 -0
  141. package/.agents/skills/team-quality-assurance/roles/scout/role.md +77 -0
  142. package/.agents/skills/team-quality-assurance/roles/strategist/role.md +73 -0
  143. package/.agents/skills/team-quality-assurance/specs/pipelines.md +115 -0
  144. package/.agents/skills/team-quality-assurance/specs/team-config.json +131 -0
  145. package/.agents/skills/team-review/SKILL.md +149 -0
  146. package/.agents/skills/team-review/roles/coordinator/commands/analyze.md +71 -0
  147. package/.agents/skills/team-review/roles/coordinator/commands/dispatch.md +91 -0
  148. package/.agents/skills/team-review/roles/coordinator/commands/monitor.md +224 -0
  149. package/.agents/skills/team-review/roles/coordinator/role.md +132 -0
  150. package/.agents/skills/team-review/roles/fixer/role.md +78 -0
  151. package/.agents/skills/team-review/roles/reviewer/role.md +70 -0
  152. package/.agents/skills/team-review/roles/scanner/role.md +81 -0
  153. package/.agents/skills/team-review/specs/dimensions.md +82 -0
  154. package/.agents/skills/team-review/specs/finding-schema.json +82 -0
  155. package/.agents/skills/team-review/specs/pipelines.md +102 -0
  156. package/.agents/skills/team-review/specs/team-config.json +27 -0
  157. package/.agents/skills/team-tech-debt/SKILL.md +130 -0
  158. package/.agents/skills/team-tech-debt/roles/assessor/role.md +79 -0
  159. package/.agents/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -0
  160. package/.agents/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +156 -0
  161. package/.agents/skills/team-tech-debt/roles/coordinator/commands/monitor.md +209 -0
  162. package/.agents/skills/team-tech-debt/roles/coordinator/role.md +123 -0
  163. package/.agents/skills/team-tech-debt/roles/executor/role.md +78 -0
  164. package/.agents/skills/team-tech-debt/roles/planner/role.md +71 -0
  165. package/.agents/skills/team-tech-debt/roles/scanner/role.md +92 -0
  166. package/.agents/skills/team-tech-debt/roles/validator/role.md +80 -0
  167. package/.agents/skills/team-tech-debt/specs/pipelines.md +47 -0
  168. package/.agents/skills/team-tech-debt/specs/team-config.json +129 -0
  169. package/.agents/skills/team-testing/SKILL.md +145 -0
  170. package/.agents/skills/team-testing/roles/analyst/role.md +105 -0
  171. package/.agents/skills/team-testing/roles/coordinator/commands/analyze.md +70 -0
  172. package/.agents/skills/team-testing/roles/coordinator/commands/dispatch.md +108 -0
  173. package/.agents/skills/team-testing/roles/coordinator/commands/monitor.md +257 -0
  174. package/.agents/skills/team-testing/roles/coordinator/role.md +134 -0
  175. package/.agents/skills/team-testing/roles/executor/role.md +101 -0
  176. package/.agents/skills/team-testing/roles/generator/role.md +100 -0
  177. package/.agents/skills/team-testing/roles/strategist/role.md +85 -0
  178. package/.agents/skills/team-testing/specs/pipelines.md +101 -0
  179. package/.agents/skills/team-testing/specs/team-config.json +93 -0
  180. package/.agents/skills/wiki-connect/SKILL.md +64 -0
  181. package/.agents/skills/wiki-digest/SKILL.md +70 -0
  182. package/.agents/skills/workflow-skill-designer/SKILL.md +498 -0
  183. package/.agents/skills/workflow-skill-designer/phases/01-requirements-analysis.md +356 -0
  184. package/.agents/skills/workflow-skill-designer/phases/02-orchestrator-design.md +444 -0
  185. package/.agents/skills/workflow-skill-designer/phases/03-phase-design.md +458 -0
  186. package/.agents/skills/workflow-skill-designer/phases/04-validation.md +471 -0
  187. package/.agy/skills/maestro/SKILL.md +13 -11
  188. package/.agy/skills/maestro-ralph/SKILL.md +222 -87
  189. package/.claude/commands/maestro-ralph.md +222 -87
  190. package/.claude/commands/maestro.md +13 -11
  191. package/.codex/skills/maestro/SKILL.md +23 -17
  192. package/.codex/skills/maestro-ralph/SKILL.md +177 -67
  193. package/dist/src/commands/install-backend.d.ts +12 -0
  194. package/dist/src/commands/install-backend.d.ts.map +1 -1
  195. package/dist/src/commands/install-backend.js +144 -0
  196. package/dist/src/commands/install-backend.js.map +1 -1
  197. package/dist/src/core/component-defs.d.ts +6 -0
  198. package/dist/src/core/component-defs.d.ts.map +1 -1
  199. package/dist/src/core/component-defs.js +97 -0
  200. package/dist/src/core/component-defs.js.map +1 -1
  201. package/dist/src/tui/install-ui/ExtraMcpConfig.d.ts +11 -0
  202. package/dist/src/tui/install-ui/ExtraMcpConfig.d.ts.map +1 -0
  203. package/dist/src/tui/install-ui/ExtraMcpConfig.js +61 -0
  204. package/dist/src/tui/install-ui/ExtraMcpConfig.js.map +1 -0
  205. package/dist/src/tui/install-ui/InstallConfirm.d.ts +3 -0
  206. package/dist/src/tui/install-ui/InstallConfirm.d.ts.map +1 -1
  207. package/dist/src/tui/install-ui/InstallConfirm.js +1 -1
  208. package/dist/src/tui/install-ui/InstallConfirm.js.map +1 -1
  209. package/dist/src/tui/install-ui/InstallExecution.d.ts +2 -0
  210. package/dist/src/tui/install-ui/InstallExecution.d.ts.map +1 -1
  211. package/dist/src/tui/install-ui/InstallExecution.js +14 -2
  212. package/dist/src/tui/install-ui/InstallExecution.js.map +1 -1
  213. package/dist/src/tui/install-ui/InstallFlow.d.ts +1 -1
  214. package/dist/src/tui/install-ui/InstallFlow.d.ts.map +1 -1
  215. package/dist/src/tui/install-ui/InstallFlow.js +16 -3
  216. package/dist/src/tui/install-ui/InstallFlow.js.map +1 -1
  217. package/dist/src/tui/install-ui/InstallHub.d.ts +2 -0
  218. package/dist/src/tui/install-ui/InstallHub.d.ts.map +1 -1
  219. package/dist/src/tui/install-ui/InstallHub.js +8 -0
  220. package/dist/src/tui/install-ui/InstallHub.js.map +1 -1
  221. package/dist/src/tui/install-ui/InstallResult.d.ts.map +1 -1
  222. package/dist/src/tui/install-ui/InstallResult.js +3 -1
  223. package/dist/src/tui/install-ui/InstallResult.js.map +1 -1
  224. package/dist/src/utils/update-notices.js +19 -0
  225. package/dist/src/utils/update-notices.js.map +1 -1
  226. package/package.json +5 -2
@@ -0,0 +1,100 @@
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
+ <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
11
+
12
+
13
+ # Test Generator
14
+
15
+ 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.
16
+
17
+ ## Phase 2: Context Loading
18
+
19
+ | Input | Source | Required |
20
+ |-------|--------|----------|
21
+ | Task description | From task subject/description | Yes |
22
+ | Session path | Extracted from task description | Yes |
23
+ | Test strategy | <session>/strategy/test-strategy.md | Yes |
24
+ | .msg/meta.json | <session>/wisdom/.msg/meta.json | No |
25
+
26
+ 1. Extract session path and layer from task description
27
+ 2. Load test specs: Run `ccw spec load --category test` for test framework conventions and coverage targets
28
+ 3. Read test strategy:
29
+
30
+ ```
31
+ read_file("<session>/strategy/test-strategy.md")
32
+ ```
33
+
34
+ 3. Read source files to test (from strategy priority_files, limit 20)
35
+ 4. Read .msg/meta.json for framework and scope context
36
+
37
+ 5. Detect revision mode:
38
+
39
+ | Condition | Mode |
40
+ |-----------|------|
41
+ | Task subject contains "fix" or "revised" | Revision -- load previous failures |
42
+ | Otherwise | Fresh generation |
43
+
44
+ For revision mode:
45
+ - Read latest result file for failure details
46
+ - Read effective test patterns from .msg/meta.json
47
+
48
+ 6. Read wisdom files if available
49
+
50
+ ## Phase 3: Test Generation
51
+
52
+ **Strategy selection by complexity**:
53
+
54
+ | File Count | Strategy |
55
+ |------------|----------|
56
+ | <= 3 files | Direct: inline Write/Edit |
57
+ | 3-5 files | Single code-developer agent |
58
+ | > 5 files | Batch: group by module, one agent per batch |
59
+
60
+ **Direct generation** (per source file):
61
+ 1. Generate test path: `<session>/tests/<layer>/<test-file>`
62
+ 2. Generate test code: happy path, edge cases, error handling
63
+ 3. Write test file
64
+
65
+ **CLI delegation** (medium/high complexity):
66
+
67
+ ```
68
+ shell({
69
+ command: `maestro delegate "PURPOSE: Generate <layer> tests using <framework> to achieve coverage target; success = all priority files covered with quality tests
70
+ TASK: • Analyze source files • Generate test cases (happy path, edge cases, errors) • Write test files with proper structure • Ensure import resolution
71
+ MODE: write
72
+ CONTEXT: @<source-files> @<session>/strategy/test-strategy.md | Memory: Framework: <framework>, Layer: <layer>, Round: <round>
73
+ <if-revision: Previous failures: <failure-details>
74
+ Effective patterns: <patterns-from-meta>>
75
+ EXPECTED: Test files in <session>/tests/<layer>/ with: proper test structure, comprehensive coverage, correct imports, framework conventions
76
+ CONSTRAINTS: Follow test strategy priorities | Use framework best practices | <layer>-appropriate assertions
77
+ Source files to test:
78
+ <file-list-with-content>" --tool gemini --mode write --cd <session>`,
79
+ run_in_background: false
80
+ })
81
+ ```
82
+
83
+ **Output verification**:
84
+
85
+ ```
86
+ find_files("<session>/tests/<layer>/**/*")
87
+ ```
88
+
89
+ ## Phase 4: Self-Validation & State Update
90
+
91
+ **Validation checks**:
92
+
93
+ | Check | Method | Action on Fail |
94
+ |-------|--------|----------------|
95
+ | Syntax | `tsc --noEmit` or equivalent | Auto-fix imports/types |
96
+ | File count | Count generated files | Report issue |
97
+ | Import resolution | Check broken imports | Fix import paths |
98
+
99
+ Update `<session>/wisdom/.msg/meta.json` under `generator` namespace:
100
+ - Merge `{ "generator": { test_files, layer, round, is_revision } }`
@@ -0,0 +1,85 @@
1
+ ---
2
+ role: strategist
3
+ prefix: STRATEGY
4
+ inner_loop: false
5
+ message_types:
6
+ success: strategy_ready
7
+ error: error
8
+ ---
9
+ <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
10
+
11
+
12
+ # Test Strategist
13
+
14
+ Analyze git diff, determine test layers, define coverage targets, and formulate test strategy with prioritized execution order.
15
+
16
+ ## Phase 2: Context & Environment Detection
17
+
18
+ | Input | Source | Required |
19
+ |-------|--------|----------|
20
+ | Task description | From task subject/description | Yes |
21
+ | Session path | Extracted from task description | Yes |
22
+ | .msg/meta.json | <session>/wisdom/.msg/meta.json | No |
23
+
24
+ 1. Extract session path and scope from task description
25
+ 2. Get git diff for change analysis:
26
+
27
+ ```
28
+ shell("git diff HEAD~1 --name-only 2>/dev/null || git diff --cached --name-only")
29
+ shell("git diff HEAD~1 -- <changed-files> 2>/dev/null || git diff --cached -- <changed-files>")
30
+ ```
31
+
32
+ 3. Detect test framework from project files:
33
+
34
+ | Signal File | Framework | Test Pattern |
35
+ |-------------|-----------|-------------|
36
+ | jest.config.js/ts | Jest | `**/*.test.{ts,tsx,js}` |
37
+ | vitest.config.ts/js | Vitest | `**/*.test.{ts,tsx}` |
38
+ | pytest.ini / pyproject.toml | Pytest | `**/test_*.py` |
39
+ | No detection | Default | Jest patterns |
40
+
41
+ 4. Scan existing test patterns:
42
+
43
+ ```
44
+ find_files("**/*.test.*")
45
+ find_files("**/*.spec.*")
46
+ ```
47
+
48
+ 5. Read .msg/meta.json if exists for session context
49
+
50
+ ## Phase 3: Strategy Formulation
51
+
52
+ **Change analysis dimensions**:
53
+
54
+ | Change Type | Analysis | Priority |
55
+ |-------------|----------|----------|
56
+ | New files | Need new tests | High |
57
+ | Modified functions | Need updated tests | Medium |
58
+ | Deleted files | Need test cleanup | Low |
59
+ | Config changes | May need integration tests | Variable |
60
+
61
+ **Strategy output structure**:
62
+
63
+ 1. **Change Analysis Table**: File, Change Type, Impact, Priority
64
+ 2. **Test Layer Recommendations**:
65
+ - L1 Unit: Scope, Coverage Target, Priority Files, Patterns
66
+ - L2 Integration: Scope, Coverage Target, Integration Points
67
+ - L3 E2E: Scope, Coverage Target, User Scenarios
68
+ 3. **Risk Assessment**: Risk, Probability, Impact, Mitigation
69
+ 4. **Test Execution Order**: Prioritized sequence
70
+
71
+ Write strategy to `<session>/strategy/test-strategy.md`
72
+
73
+ **Self-validation**:
74
+
75
+ | Check | Criteria | Fallback |
76
+ |-------|----------|----------|
77
+ | Has L1 scope | L1 scope not empty | Default to all changed files |
78
+ | Has coverage targets | L1 target > 0 | Use defaults (80/60/40) |
79
+ | Has priority files | List not empty | Use all changed files |
80
+
81
+ ## Phase 4: Wisdom & State Update
82
+
83
+ 1. Write discoveries to `<session>/wisdom/conventions.md` (detected framework, patterns)
84
+ 2. Update `<session>/wisdom/.msg/meta.json` under `strategist` namespace:
85
+ - Read existing -> merge `{ "strategist": { framework, layers, coverage_targets, priority_files, risks } }` -> write back
@@ -0,0 +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
+ ```
@@ -0,0 +1,93 @@
1
+ {
2
+ "team_name": "team-testing",
3
+ "team_display_name": "Team Testing",
4
+ "description": "Testing team with Generator-Critic loop, shared defect memory, and progressive test layers",
5
+ "version": "1.0.0",
6
+
7
+ "roles": {
8
+ "coordinator": {
9
+ "task_prefix": null,
10
+ "responsibility": "Change scope analysis, layer selection, quality gating",
11
+ "message_types": ["pipeline_selected", "gc_loop_trigger", "quality_gate", "task_unblocked", "error", "shutdown"]
12
+ },
13
+ "strategist": {
14
+ "task_prefix": "STRATEGY",
15
+ "responsibility": "Analyze git diff, determine test layers, define coverage targets",
16
+ "message_types": ["strategy_ready", "error"]
17
+ },
18
+ "generator": {
19
+ "task_prefix": "TESTGEN",
20
+ "responsibility": "Generate test cases by layer (unit/integration/E2E)",
21
+ "message_types": ["tests_generated", "tests_revised", "error"]
22
+ },
23
+ "executor": {
24
+ "task_prefix": "TESTRUN",
25
+ "responsibility": "Execute tests, collect coverage, auto-fix failures",
26
+ "message_types": ["tests_passed", "tests_failed", "coverage_report", "error"]
27
+ },
28
+ "analyst": {
29
+ "task_prefix": "TESTANA",
30
+ "responsibility": "Defect pattern analysis, coverage gap analysis, quality report",
31
+ "message_types": ["analysis_ready", "error"]
32
+ }
33
+ },
34
+
35
+ "pipelines": {
36
+ "targeted": {
37
+ "description": "Small scope: strategy → generate L1 → run",
38
+ "task_chain": ["STRATEGY-001", "TESTGEN-001", "TESTRUN-001"],
39
+ "gc_loops": 0
40
+ },
41
+ "standard": {
42
+ "description": "Progressive: L1 → L2 with analysis",
43
+ "task_chain": ["STRATEGY-001", "TESTGEN-001", "TESTRUN-001", "TESTGEN-002", "TESTRUN-002", "TESTANA-001"],
44
+ "gc_loops": 1
45
+ },
46
+ "comprehensive": {
47
+ "description": "Full coverage: parallel L1+L2, then L3 with analysis",
48
+ "task_chain": ["STRATEGY-001", "TESTGEN-001", "TESTGEN-002", "TESTRUN-001", "TESTRUN-002", "TESTGEN-003", "TESTRUN-003", "TESTANA-001"],
49
+ "gc_loops": 2,
50
+ "parallel_groups": [["TESTGEN-001", "TESTGEN-002"], ["TESTRUN-001", "TESTRUN-002"]]
51
+ }
52
+ },
53
+
54
+ "innovation_patterns": {
55
+ "generator_critic": {
56
+ "generator": "generator",
57
+ "critic": "executor",
58
+ "max_rounds": 3,
59
+ "convergence_trigger": "coverage >= target && pass_rate >= 0.95"
60
+ },
61
+ "shared_memory": {
62
+ "file": "shared-memory.json",
63
+ "fields": {
64
+ "strategist": "test_strategy",
65
+ "generator": "generated_tests",
66
+ "executor": "execution_results",
67
+ "analyst": "analysis_report"
68
+ },
69
+ "persistent_fields": ["defect_patterns", "effective_test_patterns", "coverage_history"]
70
+ },
71
+ "dynamic_pipeline": {
72
+ "selector": "coordinator",
73
+ "criteria": "changed_file_count + module_count + change_type"
74
+ }
75
+ },
76
+
77
+ "test_layers": {
78
+ "L1": { "name": "Unit Tests", "coverage_target": 80, "description": "Function-level isolation tests" },
79
+ "L2": { "name": "Integration Tests", "coverage_target": 60, "description": "Module interaction tests" },
80
+ "L3": { "name": "E2E Tests", "coverage_target": 40, "description": "User scenario end-to-end tests" }
81
+ },
82
+
83
+ "collaboration_patterns": ["CP-1", "CP-3", "CP-5"],
84
+
85
+ "session_dirs": {
86
+ "base": ".workflow/.team/TST-{slug}-{YYYY-MM-DD}/",
87
+ "strategy": "strategy/",
88
+ "tests": "tests/",
89
+ "results": "results/",
90
+ "analysis": "analysis/",
91
+ "messages": ".workflow/.team-msg/{team-name}/"
92
+ }
93
+ }
@@ -0,0 +1,64 @@
1
+ ---
2
+ name: wiki-connect
3
+ description: Find and link hidden connections in wiki graph
4
+ argument-hint: "[--scope <type>] [--min-similarity N] [--fix] [--max N]"
5
+ allowed-tools:
6
+ - read_file
7
+ - write_file
8
+ - shell
9
+ - find_files
10
+ - search
11
+ - delegate_subagent
12
+ - ask_user
13
+ ---
14
+ <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
15
+
16
+ <required_reading>
17
+ @~/.maestro/workflows/wiki-connect.md
18
+ </required_reading>
19
+
20
+ <purpose>
21
+ Knowledge graph link discovery and health improvement. Analyzes the wiki index to find orphaned entries, missing connections, and transitive link gaps, then suggests or auto-applies new `related` links to improve graph connectivity.
22
+
23
+ Leverages maestro's unique wiki graph infrastructure (BM25 search, backlinks, health scoring) — no equivalent in gstack. Directly improves the quality of all downstream wiki consumers (search, digest, follow-along).
24
+ </purpose>
25
+
26
+ <context>
27
+ Arguments: $ARGUMENTS
28
+
29
+ Flags, storage paths, and CLI commands defined in workflow wiki-connect.md.
30
+ </context>
31
+
32
+ <execution>
33
+ Follow '~/.maestro/workflows/wiki-connect.md' completely (Stages 1-6).
34
+
35
+ **Next-step routing:**
36
+ - Generate knowledge digest → `/wiki-digest <topic>`
37
+ - Follow-along on orphan → `/learn-follow <wiki-id>`
38
+ - View full graph → `maestro wiki graph`
39
+ </execution>
40
+
41
+ <error_codes>
42
+ | Code | Severity | Condition | Recovery |
43
+ |------|----------|-----------|----------|
44
+ | E001 | error | No wiki entries found (empty index) | Initialize wiki content first, or run `/maestro-init` |
45
+ | E002 | error | `maestro wiki` CLI not available | Check maestro installation |
46
+ | W001 | warning | No connection candidates found above threshold | Lower --min-similarity or check if graph is already well-connected |
47
+ | W002 | warning | Some wiki update calls failed during --fix | Partial application; retry failed entries manually |
48
+ | W003 | warning | Health score unchanged after fix | Connections may not have improved the specific health metrics |
49
+ </error_codes>
50
+
51
+ <success_criteria>
52
+ - [ ] Wiki index loaded with entry count and type distribution
53
+ - [ ] Baseline health score recorded
54
+ - [ ] Orphans identified and rescue candidates generated
55
+ - [ ] Connection candidates scored and ranked
56
+ - [ ] Results filtered by --min-similarity and limited by --max
57
+ - [ ] Suggestions displayed with scores and reasons
58
+ - [ ] If --fix: entries updated with new `related` links
59
+ - [ ] If --fix: new health score computed and delta reported
60
+ - [ ] Report written to `wiki-connections-{date}.md`
61
+ - [ ] Graph insights appended to `specs/learnings.md` as `<spec-entry>` blocks
62
+ - [ ] No unintended entry modifications (only `related` field changed)
63
+ - [ ] Summary displayed with next-step routing
64
+ </success_criteria>
@@ -0,0 +1,70 @@
1
+ ---
2
+ name: wiki-digest
3
+ description: Generate wiki digest with theme clustering and gap analysis
4
+ argument-hint: "[<topic>|--recent N] [--type <type>] [--format brief|full]"
5
+ allowed-tools:
6
+ - read_file
7
+ - write_file
8
+ - shell
9
+ - find_files
10
+ - search
11
+ - delegate_subagent
12
+ - ask_user
13
+ ---
14
+ <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
15
+
16
+ <purpose>
17
+ Knowledge synthesis command that generates actionable digests from the wiki knowledge graph. Clusters entries by semantic theme, identifies knowledge gaps, and produces a coverage heatmap. Unique to maestro — leverages the wiki graph (BM25 search, backlinks, health) to surface trends and missing knowledge.
18
+
19
+ Unlike `maestro wiki list` which shows raw entries, this command synthesizes and interprets the knowledge base, producing a curated summary with gap analysis and recommended next actions.
20
+ </purpose>
21
+
22
+ <required_reading>
23
+ @~/.maestro/workflows/wiki-digest.md
24
+ </required_reading>
25
+
26
+ <deferred_reading>
27
+ - @~/.maestro/workflows/issue.md (issues.jsonl canonical schema for `--create-issues` routing)
28
+ </deferred_reading>
29
+
30
+ <context>
31
+ Arguments: $ARGUMENTS
32
+
33
+ Flags, scope resolution, storage paths, and CLI commands defined in workflow wiki-digest.md.
34
+ </context>
35
+
36
+ <execution>
37
+ Follow '~/.maestro/workflows/wiki-digest.md' completely (Stages 1-8).
38
+
39
+ **Next-step routing:**
40
+ - Deep dive on a theme → `/learn-follow <wiki-id>`
41
+ - Fix graph gaps → `/wiki-connect --fix`
42
+ - Decompose code for missing patterns → `/learn-decompose <path>`
43
+ - Create missing entries → `maestro wiki create --type <type> --slug <slug>`
44
+ - Triage gap issues → `/manage-issue list --source wiki-digest`
45
+ </execution>
46
+
47
+ <error_codes>
48
+ | Code | Severity | Condition | Recovery |
49
+ |------|----------|-----------|----------|
50
+ | E001 | error | No wiki entries found (empty index) | Initialize wiki content first |
51
+ | E002 | error | Topic search returned 0 results | Broaden topic or check wiki content |
52
+ | W001 | warning | Too few entries (<5) for meaningful theme clustering | Digest produced but themes may be trivial |
53
+ | W002 | warning | specs/learnings.md not found — skipping cross-reference | Proceed without knowhow context |
54
+ | W003 | warning | Some entry bodies failed to load — partial summaries | Note incomplete entries in digest |
55
+ </error_codes>
56
+
57
+ <success_criteria>
58
+ - [ ] Scope parsed and entries loaded
59
+ - [ ] Baseline health score recorded
60
+ - [ ] Entries clustered into 3-5 semantic themes
61
+ - [ ] Per-theme analysis: summary, key entries, gaps, health
62
+ - [ ] Cross-reference with specs/learnings.md completed
63
+ - [ ] Coverage heatmap generated (type × theme matrix)
64
+ - [ ] Knowledge gaps identified with suggested actions
65
+ - [ ] If `--create-issues`: gap issues created in `issues.jsonl` (deduped)
66
+ - [ ] Digest written to `KNW-digest-{slug}-{date}.md`
67
+ - [ ] Meta-insights appended to `specs/learnings.md` as `<spec-entry>` blocks
68
+ - [ ] No files modified outside `.workflow/knowhow/` and `.workflow/issues/` (issues only when `--create-issues`)
69
+ - [ ] Summary displayed with key findings and next-step routing
70
+ </success_criteria>