pi-maestro-flow 0.2.0

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 (179) hide show
  1. package/README.md +124 -0
  2. package/agents/aggregator.md +27 -0
  3. package/agents/cli-explore-agent.md +188 -0
  4. package/agents/cross-role-reviewer.md +171 -0
  5. package/agents/delegate.md +19 -0
  6. package/agents/explorer.md +23 -0
  7. package/agents/impeccable-agent.md +99 -0
  8. package/agents/ralph-executor.md +81 -0
  9. package/agents/reference.md +24 -0
  10. package/agents/role-design-author.md +220 -0
  11. package/agents/team-supervisor.md +143 -0
  12. package/agents/team-worker.md +237 -0
  13. package/agents/ui-design-agent.md +270 -0
  14. package/agents/workflow-analyzer.md +116 -0
  15. package/agents/workflow-codebase-mapper.md +77 -0
  16. package/agents/workflow-collab-planner.md +147 -0
  17. package/agents/workflow-debugger.md +104 -0
  18. package/agents/workflow-executor.md +133 -0
  19. package/agents/workflow-external-researcher.md +86 -0
  20. package/agents/workflow-integration-checker.md +83 -0
  21. package/agents/workflow-nyquist-auditor.md +85 -0
  22. package/agents/workflow-phase-researcher.md +85 -0
  23. package/agents/workflow-plan-checker.md +100 -0
  24. package/agents/workflow-planner.md +200 -0
  25. package/agents/workflow-project-researcher.md +74 -0
  26. package/agents/workflow-research-synthesizer.md +70 -0
  27. package/agents/workflow-reviewer.md +82 -0
  28. package/agents/workflow-roadmapper.md +81 -0
  29. package/agents/workflow-verifier.md +120 -0
  30. package/package.json +58 -0
  31. package/skills/codify-to-knowhow/SKILL.md +167 -0
  32. package/skills/delegation-check/SKILL.md +297 -0
  33. package/skills/domain-add/SKILL.md +75 -0
  34. package/skills/insight-challenge/SKILL.md +226 -0
  35. package/skills/learn-decompose/SKILL.md +124 -0
  36. package/skills/learn-follow/SKILL.md +163 -0
  37. package/skills/learn-investigate/SKILL.md +160 -0
  38. package/skills/learn-second-opinion/SKILL.md +128 -0
  39. package/skills/maestro/SKILL.md +239 -0
  40. package/skills/maestro-amend/SKILL.md +169 -0
  41. package/skills/maestro-analyze/SKILL.md +173 -0
  42. package/skills/maestro-blueprint/SKILL.md +159 -0
  43. package/skills/maestro-brainstorm/SKILL.md +193 -0
  44. package/skills/maestro-collab/SKILL.md +181 -0
  45. package/skills/maestro-companion/SKILL.md +536 -0
  46. package/skills/maestro-composer/SKILL.md +192 -0
  47. package/skills/maestro-execute/SKILL.md +193 -0
  48. package/skills/maestro-fork/SKILL.md +104 -0
  49. package/skills/maestro-grill/SKILL.md +151 -0
  50. package/skills/maestro-guard/SKILL.md +124 -0
  51. package/skills/maestro-help/SKILL.md +328 -0
  52. package/skills/maestro-impeccable/SKILL.md +302 -0
  53. package/skills/maestro-init/SKILL.md +151 -0
  54. package/skills/maestro-merge/SKILL.md +90 -0
  55. package/skills/maestro-milestone-audit/SKILL.md +117 -0
  56. package/skills/maestro-milestone-complete/SKILL.md +133 -0
  57. package/skills/maestro-milestone-release/SKILL.md +131 -0
  58. package/skills/maestro-next/SKILL.md +269 -0
  59. package/skills/maestro-overlay/SKILL.md +203 -0
  60. package/skills/maestro-plan/SKILL.md +194 -0
  61. package/skills/maestro-player/SKILL.md +184 -0
  62. package/skills/maestro-quick/SKILL.md +117 -0
  63. package/skills/maestro-ralph/SKILL.md +905 -0
  64. package/skills/maestro-ralph-cli/SKILL.md +976 -0
  65. package/skills/maestro-ralph-cli-execute/SKILL.md +229 -0
  66. package/skills/maestro-ralph-execute/SKILL.md +409 -0
  67. package/skills/maestro-ralph-v2/SKILL.md +1198 -0
  68. package/skills/maestro-roadmap/SKILL.md +157 -0
  69. package/skills/maestro-swarm-workflow/SKILL.md +272 -0
  70. package/skills/maestro-tools-execute/SKILL.md +143 -0
  71. package/skills/maestro-tools-register/SKILL.md +192 -0
  72. package/skills/maestro-ui-codify/SKILL.md +127 -0
  73. package/skills/maestro-universal-workflow/SKILL.md +622 -0
  74. package/skills/maestro-update/SKILL.md +156 -0
  75. package/skills/manage-codebase-rebuild/SKILL.md +111 -0
  76. package/skills/manage-drift-realign/SKILL.md +159 -0
  77. package/skills/manage-harvest/SKILL.md +121 -0
  78. package/skills/manage-issue/SKILL.md +88 -0
  79. package/skills/manage-issue-discover/SKILL.md +104 -0
  80. package/skills/manage-kg-extractors/SKILL.md +147 -0
  81. package/skills/manage-knowhow/SKILL.md +102 -0
  82. package/skills/manage-knowhow-capture/SKILL.md +109 -0
  83. package/skills/manage-knowledge-audit/SKILL.md +147 -0
  84. package/skills/manage-status/SKILL.md +80 -0
  85. package/skills/manage-wiki/SKILL.md +104 -0
  86. package/skills/odyssey-debug/SKILL.md +344 -0
  87. package/skills/odyssey-improve/SKILL.md +423 -0
  88. package/skills/odyssey-planex/SKILL.md +542 -0
  89. package/skills/odyssey-review-test-fix/SKILL.md +392 -0
  90. package/skills/odyssey-ui/SKILL.md +388 -0
  91. package/skills/prompt-generator/SKILL.md +470 -0
  92. package/skills/quality-auto-test/SKILL.md +168 -0
  93. package/skills/quality-debug/SKILL.md +176 -0
  94. package/skills/quality-refactor/SKILL.md +108 -0
  95. package/skills/quality-retrospective/SKILL.md +134 -0
  96. package/skills/quality-review/SKILL.md +169 -0
  97. package/skills/quality-sync/SKILL.md +90 -0
  98. package/skills/quality-test/SKILL.md +183 -0
  99. package/skills/scholar-anti-ai-writing/SKILL.md +173 -0
  100. package/skills/scholar-anti-ai-writing/references/patterns-chinese.md +242 -0
  101. package/skills/scholar-anti-ai-writing/references/patterns-english.md +242 -0
  102. package/skills/scholar-citation-verify/SKILL.md +166 -0
  103. package/skills/scholar-citation-verify/references/api-usage.md +372 -0
  104. package/skills/scholar-citation-verify/references/common-errors.md +384 -0
  105. package/skills/scholar-citation-verify/references/verification-rules.md +399 -0
  106. package/skills/scholar-experiment/SKILL.md +321 -0
  107. package/skills/scholar-ideation/SKILL.md +288 -0
  108. package/skills/scholar-latex-organizer/SKILL.md +186 -0
  109. package/skills/scholar-publish/SKILL.md +220 -0
  110. package/skills/scholar-rebuttal-pro/README.md +313 -0
  111. package/skills/scholar-rebuttal-pro/SKILL.md +511 -0
  112. package/skills/scholar-review/SKILL.md +227 -0
  113. package/skills/scholar-thesis-docx/README.md +111 -0
  114. package/skills/scholar-thesis-docx/README_EN.md +108 -0
  115. package/skills/scholar-thesis-docx/SKILL.md +212 -0
  116. package/skills/scholar-thesis-docx/references/failure-patterns-and-quality-gates.md +178 -0
  117. package/skills/scholar-thesis-docx/references/figure-and-code-rules.md +33 -0
  118. package/skills/scholar-thesis-docx/references/paper-format-workflow.md +68 -0
  119. package/skills/scholar-thesis-docx/references/script-usage.md +157 -0
  120. package/skills/scholar-thesis-docx/scripts/audit_docx_ooxml.py +429 -0
  121. package/skills/scholar-thesis-docx/scripts/check_word_com.ps1 +50 -0
  122. package/skills/scholar-thesis-docx/scripts/export_word_pdf.ps1 +62 -0
  123. package/skills/scholar-thesis-docx/scripts/normalize_word_styles.ps1 +498 -0
  124. package/skills/scholar-thesis-docx/scripts/render_mermaid_figure.ps1 +148 -0
  125. package/skills/scholar-writing/SKILL.md +296 -0
  126. package/skills/security-audit/SKILL.md +244 -0
  127. package/skills/skill-generator/SKILL.md +472 -0
  128. package/skills/skill-iter-tune/SKILL.md +382 -0
  129. package/skills/skill-simplify/SKILL.md +63 -0
  130. package/skills/skill-tuning/SKILL.md +174 -0
  131. package/skills/spec-add/SKILL.md +105 -0
  132. package/skills/spec-load/SKILL.md +98 -0
  133. package/skills/spec-remove/SKILL.md +74 -0
  134. package/skills/spec-setup/SKILL.md +75 -0
  135. package/skills/team-adversarial-swarm/SKILL.md +233 -0
  136. package/skills/team-adversarial-swarm/scripts/__pycache__/pheromone.cpython-313.pyc +0 -0
  137. package/skills/team-adversarial-swarm/scripts/__pycache__/scoring.cpython-313.pyc +0 -0
  138. package/skills/team-adversarial-swarm/scripts/aco.py +473 -0
  139. package/skills/team-adversarial-swarm/scripts/pheromone.py +144 -0
  140. package/skills/team-adversarial-swarm/scripts/scoring.py +92 -0
  141. package/skills/team-adversarial-swarm/scripts/test_aco.py +475 -0
  142. package/skills/team-arch-opt/SKILL.md +158 -0
  143. package/skills/team-brainstorm/SKILL.md +171 -0
  144. package/skills/team-coordinate/SKILL.md +266 -0
  145. package/skills/team-designer/SKILL.md +160 -0
  146. package/skills/team-executor/SKILL.md +189 -0
  147. package/skills/team-frontend/SKILL.md +136 -0
  148. package/skills/team-frontend-debug/SKILL.md +198 -0
  149. package/skills/team-interactive-craft/SKILL.md +141 -0
  150. package/skills/team-issue/SKILL.md +171 -0
  151. package/skills/team-lifecycle-v4/SKILL.md +209 -0
  152. package/skills/team-motion-design/SKILL.md +142 -0
  153. package/skills/team-perf-opt/SKILL.md +175 -0
  154. package/skills/team-planex/SKILL.md +137 -0
  155. package/skills/team-quality-assurance/SKILL.md +147 -0
  156. package/skills/team-review/SKILL.md +147 -0
  157. package/skills/team-roadmap-dev/SKILL.md +169 -0
  158. package/skills/team-swarm/SKILL.md +178 -0
  159. package/skills/team-swarm/scripts/aco.py +473 -0
  160. package/skills/team-swarm/scripts/pheromone.py +144 -0
  161. package/skills/team-swarm/scripts/scoring.py +92 -0
  162. package/skills/team-swarm/scripts/test_aco.py +475 -0
  163. package/skills/team-tech-debt/SKILL.md +128 -0
  164. package/skills/team-testing/SKILL.md +143 -0
  165. package/skills/team-ui-polish/SKILL.md +141 -0
  166. package/skills/team-uidesign/SKILL.md +144 -0
  167. package/skills/team-ultra-analyze/SKILL.md +173 -0
  168. package/skills/team-ux-improve/SKILL.md +151 -0
  169. package/skills/team-visual-a11y/SKILL.md +156 -0
  170. package/skills/workflow-skill-designer/SKILL.md +496 -0
  171. package/src/extension/index.ts +222 -0
  172. package/src/extension/schemas.ts +131 -0
  173. package/src/providers/cli-tools-loader.ts +74 -0
  174. package/src/providers/provider-registry.ts +130 -0
  175. package/src/tools/delegate.ts +85 -0
  176. package/src/tools/explore.ts +134 -0
  177. package/src/tools/moa.ts +213 -0
  178. package/src/tools/status.ts +99 -0
  179. package/src/tools/wait.ts +166 -0
@@ -0,0 +1,175 @@
1
+ ---
2
+ name: team-perf-opt
3
+ description: "Unified team skill for performance optimization. Coordinator orchestrates pipeline, workers are team-worker agents. Supports single/fan-out/independent parallel modes. Triggers on \"team perf-opt\"."
4
+ allowed-tools: Agent TaskCreate TaskList TaskGet TaskUpdate TeamCreate TeamDelete SendMessage AskUserQuestion Read Write Edit Bash Glob Grep mcp__maestro__team_msg
5
+ ---
6
+
7
+ # Team Performance Optimization
8
+
9
+ Profile application performance, identify bottlenecks, design optimization strategies, implement changes, benchmark improvements, and review code quality.
10
+
11
+ ## Architecture
12
+
13
+ ```
14
+ Skill(skill="team-perf-opt", args="<task-description>")
15
+ |
16
+ SKILL.md (this file) = Router
17
+ |
18
+ +--------------+--------------+
19
+ | |
20
+ no --role flag --role <name>
21
+ | |
22
+ Coordinator Worker
23
+ roles/coordinator/role.md roles/<name>/role.md
24
+ |
25
+ +-- analyze -> dispatch -> spawn workers -> STOP
26
+ |
27
+ +-------+-------+-------+-------+-------+
28
+ v v v v v
29
+ [profiler] [strategist] [optimizer] [benchmarker] [reviewer]
30
+ (team-worker agents)
31
+
32
+ Pipeline (Single mode):
33
+ PROFILE-001 -> STRATEGY-001 -> IMPL-001 -> BENCH-001 + REVIEW-001 (fix cycle)
34
+
35
+ Pipeline (Fan-out mode):
36
+ PROFILE-001 -> STRATEGY-001 -> [IMPL-B01..N](parallel) -> BENCH+REVIEW per branch
37
+
38
+ Pipeline (Independent mode):
39
+ [Pipeline A: PROFILE-A->STRATEGY-A->IMPL-A->BENCH-A+REVIEW-A]
40
+ [Pipeline B: PROFILE-B->STRATEGY-B->IMPL-B->BENCH-B+REVIEW-B] (parallel)
41
+ ```
42
+
43
+ ## Role Registry
44
+
45
+ | Role | Path | Prefix | Inner Loop |
46
+ |------|------|--------|------------|
47
+ | coordinator | [roles/coordinator/role.md](roles/coordinator/role.md) | — | — |
48
+ | profiler | [roles/profiler/role.md](roles/profiler/role.md) | PROFILE-* | false |
49
+ | strategist | [roles/strategist/role.md](roles/strategist/role.md) | STRATEGY-* | false |
50
+ | optimizer | [roles/optimizer/role.md](roles/optimizer/role.md) | IMPL-*, FIX-* | true |
51
+ | benchmarker | [roles/benchmarker/role.md](roles/benchmarker/role.md) | BENCH-* | false |
52
+ | reviewer | [roles/reviewer/role.md](roles/reviewer/role.md) | REVIEW-*, QUALITY-* | false |
53
+
54
+
55
+ ## Pre-load (coordinator, before dispatch)
56
+
57
+ 1. **Codebase docs**: If `.workflow/codebase/ARCHITECTURE.md` exists, read for module boundaries
58
+ 2. **Specs (coding)**: `maestro load --type spec --category coding` — load coding constraints as shared context
59
+ 3. **Wiki knowledge**: `maestro search "performance optimization profiling" --json` — top 5 entries as prior context
60
+ 4. All optional — proceed without if unavailable
61
+ ## Role Router
62
+
63
+ Parse `$ARGUMENTS`:
64
+ - Has `--role <name>` → Read `roles/<name>/role.md`, execute Phase 2-4
65
+ - No `--role` → `@roles/coordinator/role.md`, execute entry router
66
+
67
+ ## Shared Constants
68
+
69
+ - **Session prefix**: `PERF-OPT`
70
+ - **Session path**: `.workflow/.team/PERF-OPT-<slug>-<date>/`
71
+ - **Team name**: `perf-opt`
72
+ - **CLI tools**: `maestro delegate --mode analysis` (read-only), `maestro delegate --mode write` (modifications)
73
+ - **Message bus**: `mcp__maestro__team_msg(session_id=<session-id>, ...)`
74
+
75
+ ## Worker Spawn Template
76
+
77
+ Coordinator spawns workers using this template:
78
+
79
+ ```
80
+ Agent({
81
+ subagent_type: "team-worker",
82
+ description: "Spawn <role> worker",
83
+ team_name: "perf-opt",
84
+ name: "<role>",
85
+ run_in_background: true,
86
+ prompt: `## Role Assignment
87
+ role: <role>
88
+ role_spec: <skill_root>/roles/<role>/role.md
89
+ session: <session-folder>
90
+ session_id: <session-id>
91
+ team_name: perf-opt
92
+ requirement: <task-description>
93
+ inner_loop: <true|false>
94
+
95
+ ## Progress Milestones
96
+ session_id: <session-id>
97
+ Report progress via team_msg at natural phase boundaries (context loaded -> core work done -> verification).
98
+ Report blockers immediately via team_msg type="blocker".
99
+ Report completion via team_msg type="task_complete" after final SendMessage.
100
+
101
+ Read role_spec file (@<skill_root>/roles/<role>/role.md) to load Phase 2-4 domain instructions.
102
+ Execute built-in Phase 1 (task discovery) -> role Phase 2-4 -> built-in Phase 5 (report).`
103
+ })
104
+ ```
105
+
106
+ **Inner Loop roles** (optimizer): Set `inner_loop` dynamically — `true` for single mode, `false` for fan-out/independent (parallel branches).
107
+ **Single-task roles** (profiler, strategist, benchmarker, reviewer): Set `inner_loop: false`.
108
+
109
+ ## User Commands
110
+
111
+ | Command | Action |
112
+ |---------|--------|
113
+ | `check` / `status` | Output execution status graph (branch-grouped), no advancement |
114
+ | `resume` / `continue` | Check worker states, advance next step |
115
+ | `revise <TASK-ID> [feedback]` | Create revision task + cascade downstream (scoped to branch) |
116
+ | `feedback <text>` | Analyze feedback impact, create targeted revision chain |
117
+ | `recheck` | Re-run quality check |
118
+ | `improve [dimension]` | Auto-improve weakest dimension |
119
+
120
+ ## Session Directory
121
+
122
+ ```
123
+ .workflow/.team/PERF-OPT-<slug>-<date>/
124
+ +-- session.json # Session metadata + status + parallel_mode
125
+ +-- artifacts/
126
+ | +-- baseline-metrics.json # Profiler: before-optimization metrics
127
+ | +-- bottleneck-report.md # Profiler: ranked bottleneck findings
128
+ | +-- optimization-plan.md # Strategist: prioritized optimization plan
129
+ | +-- benchmark-results.json # Benchmarker: after-optimization metrics
130
+ | +-- review-report.md # Reviewer: code review findings
131
+ | +-- branches/B01/... # Fan-out branch artifacts
132
+ | +-- pipelines/A/... # Independent pipeline artifacts
133
+ +-- explorations/ # Shared explore cache
134
+ +-- wisdom/patterns.md # Discovered patterns and conventions
135
+ +-- discussions/ # Discussion records
136
+ +-- .msg/messages.jsonl # Team message bus
137
+ +-- .msg/meta.json # Session metadata
138
+ ```
139
+
140
+ ## Completion Action
141
+
142
+ When the pipeline completes:
143
+
144
+ ```
145
+ AskUserQuestion({
146
+ questions: [{
147
+ question: "Team pipeline complete. What would you like to do?",
148
+ header: "Completion",
149
+ multiSelect: false,
150
+ options: [
151
+ { label: "Archive & Clean (Recommended)", description: "Archive session, clean up tasks and team resources" },
152
+ { label: "Keep Active", description: "Keep session active for follow-up work or inspection" },
153
+ { label: "Export Results", description: "Export deliverables to a specified location, then clean" }
154
+ ]
155
+ }]
156
+ })
157
+ ```
158
+
159
+ ## Specs Reference
160
+
161
+ - [specs/pipelines.md](specs/pipelines.md) — Pipeline definitions and task registry
162
+ - [specs/team-config.json](specs/team-config.json) — Team configuration
163
+
164
+ ## Error Handling
165
+
166
+ | Scenario | Resolution |
167
+ |----------|------------|
168
+ | Unknown --role value | Error with role registry list |
169
+ | Role file not found | Error with expected path (roles/{name}/role.md) |
170
+ | Profiling tool not available | Fallback to static analysis methods |
171
+ | Benchmark regression detected | Auto-create FIX task with regression details |
172
+ | Review-fix cycle exceeds 3 iterations | Escalate to user |
173
+ | One branch IMPL fails | Mark that branch failed, other branches continue |
174
+ | Fast-advance conflict | Coordinator reconciles on next callback |
175
+ | Completion action fails | Default to Keep Active |
@@ -0,0 +1,137 @@
1
+ ---
2
+ name: team-planex
3
+ description: "Unified team skill for plan-and-execute pipeline. Pure router — coordinator always. Beat model is coordinator-only in monitor.md. Triggers on \"team planex\"."
4
+ allowed-tools: Agent TaskCreate TaskList TaskGet TaskUpdate TeamCreate TeamDelete SendMessage AskUserQuestion Read Write Edit Bash Glob Grep mcp__maestro__team_msg
5
+ ---
6
+
7
+ # Team PlanEx
8
+
9
+ Unified team skill: plan-and-execute pipeline for issue-based development. Built on **team-worker agent architecture** — coordinator orchestrates, workers are team-worker agents loading role-specific instructions from `roles/<role>/role.md`.
10
+
11
+ ## Architecture
12
+
13
+ ```
14
+ Skill(skill="team-planex", args="task description")
15
+ |
16
+ SKILL.md (this file) = Router
17
+ |
18
+ +--------------+--------------+
19
+ | |
20
+ no --role flag --role <name>
21
+ | |
22
+ Coordinator Worker
23
+ roles/coordinator/role.md roles/<name>/role.md
24
+ |
25
+ +-- analyze -> dispatch -> spawn workers -> STOP
26
+ |
27
+ +---------------+---------------+
28
+ v v
29
+ [planner] [executor]
30
+ (team-worker agent, (team-worker agent,
31
+ loads roles/planner/role.md) loads roles/executor/role.md)
32
+ ```
33
+
34
+ ## Role Registry
35
+
36
+ | Role | Path | Prefix | Inner Loop |
37
+ |------|------|--------|------------|
38
+ | coordinator | [roles/coordinator/role.md](roles/coordinator/role.md) | — | — |
39
+ | planner | [roles/planner/role.md](roles/planner/role.md) | PLAN-* | true |
40
+ | executor | [roles/executor/role.md](roles/executor/role.md) | EXEC-* | true |
41
+
42
+
43
+ ## Pre-load (coordinator, before dispatch)
44
+
45
+ 1. **Codebase docs**: If `.workflow/codebase/ARCHITECTURE.md` exists, read for module boundaries
46
+ 2. **Specs (arch)**: `maestro load --type spec --category arch` — load arch constraints as shared context
47
+ 3. **Specs (coding)**: `maestro load --type spec --category coding` — load coding constraints as shared context
48
+ 4. **Wiki knowledge**: `maestro search "plan execute implementation" --json` — top 5 entries as prior context
49
+ 5. All optional — proceed without if unavailable
50
+ ## Role Router
51
+
52
+ Parse `$ARGUMENTS`:
53
+ - Has `--role <name>` → Read `roles/<name>/role.md`, execute Phase 2-4
54
+ - No `--role` → `@roles/coordinator/role.md`, execute entry router
55
+
56
+ ## Shared Constants
57
+
58
+ - **Session prefix**: `PEX`
59
+ - **Session path**: `.workflow/.team/PEX-<slug>-<date>/`
60
+ - **CLI tools**: `maestro delegate --mode analysis` (read-only), `maestro delegate --mode write` (modifications)
61
+ - **Message bus**: `mcp__maestro__team_msg(session_id=<session-id>, ...)`
62
+
63
+ ## Worker Spawn Template
64
+
65
+ Coordinator spawns workers using this template:
66
+
67
+ ```
68
+ Agent({
69
+ subagent_type: "team-worker",
70
+ description: "Spawn <role> worker",
71
+ team_name: "planex",
72
+ name: "<role>",
73
+ run_in_background: true,
74
+ prompt: `## Role Assignment
75
+ role: <role>
76
+ role_spec: <skill_root>/roles/<role>/role.md
77
+ session: <session-folder>
78
+ session_id: <session-id>
79
+ team_name: planex
80
+ requirement: <task-description>
81
+ inner_loop: <true|false>
82
+ execution_method: <codex|agy>
83
+
84
+ ## Progress Milestones
85
+ session_id: <session-id>
86
+ Report progress via team_msg at natural phase boundaries (context loaded -> core work done -> verification).
87
+ Report blockers immediately via team_msg type="blocker".
88
+ Report completion via team_msg type="task_complete" after final SendMessage.
89
+
90
+ Read role_spec file (@<skill_root>/roles/<role>/role.md) to load Phase 2-4 domain instructions.
91
+ Execute built-in Phase 1 (task discovery) -> role Phase 2-4 -> built-in Phase 5 (report).`
92
+ })
93
+ ```
94
+
95
+ ## User Commands
96
+
97
+ | Command | Action |
98
+ |---------|--------|
99
+ | `check` / `status` | View execution status graph |
100
+ | `resume` / `continue` | Advance to next step |
101
+ | `add <issue-ids or --text '...' or --plan path>` | Append new tasks to planner queue |
102
+
103
+ ## Session Directory
104
+
105
+ ```
106
+ .workflow/.team/PEX-<slug>-<YYYY-MM-DD>/
107
+ ├── .msg/
108
+ │ ├── messages.jsonl # Message bus log
109
+ │ └── meta.json # Session state
110
+ ├── task-analysis.json # Coordinator analyze output
111
+ ├── artifacts/
112
+ │ └── solutions/ # Planner solution output per issue
113
+ │ ├── <issueId-1>.json
114
+ │ └── <issueId-N>.json
115
+ └── wisdom/ # Cross-task knowledge
116
+ ├── learnings.md
117
+ ├── decisions.md
118
+ ├── conventions.md
119
+ └── issues.md
120
+ ```
121
+
122
+ ## Specs Reference
123
+
124
+ - [specs/pipelines.md](specs/pipelines.md) — Pipeline definitions, task metadata registry, execution method selection
125
+
126
+ ## Error Handling
127
+
128
+ | Scenario | Resolution |
129
+ |----------|------------|
130
+ | Unknown command | Error with available command list |
131
+ | Role not found | Error with role registry |
132
+ | Role spec file not found | Error with expected path (roles/<name>/role.md) |
133
+ | team-worker agent unavailable | Error: requires .claude/agents/team-worker.md |
134
+ | Planner issue planning failure | Retry once, then skip to next issue |
135
+ | Executor impl failure | Report to coordinator, continue with next EXEC-* task |
136
+ | Pipeline stall | Coordinator monitors, escalate to user |
137
+ | Worker no response | Report waiting task, suggest user `resume` |
@@ -0,0 +1,147 @@
1
+ ---
2
+ name: team-quality-assurance
3
+ description: "Unified team skill for quality assurance. Full closed-loop QA combining issue discovery and software testing. Triggers on \"team quality-assurance\", \"team qa\"."
4
+ allowed-tools: TeamCreate TeamDelete SendMessage TaskCreate TaskUpdate TaskList TaskGet Agent AskUserQuestion Read Write Edit Bash Glob Grep mcp__maestro__team_msg
5
+ ---
6
+
7
+ # Team Quality Assurance
8
+
9
+ Orchestrate multi-agent QA: scout -> strategist -> generator -> executor -> analyst. Supports discovery, testing, and full closed-loop modes with parallel generation and GC loops.
10
+
11
+ ## Architecture
12
+
13
+ ```
14
+ Skill(skill="team-quality-assurance", args="task description")
15
+ |
16
+ SKILL.md (this file) = Router
17
+ |
18
+ +--------------+--------------+
19
+ | |
20
+ no --role flag --role <name>
21
+ | |
22
+ Coordinator Worker
23
+ roles/coordinator/role.md roles/<name>/role.md
24
+ |
25
+ +-- analyze -> dispatch -> spawn workers -> STOP
26
+ |
27
+ +-------+-------+-------+-------+-------+
28
+ v v v v v
29
+ [scout] [strat] [gen] [exec] [analyst]
30
+ team-worker agents, each loads roles/<role>/role.md
31
+ ```
32
+
33
+ ## Role Registry
34
+
35
+ | Role | Path | Prefix | Inner Loop |
36
+ |------|------|--------|------------|
37
+ | coordinator | [roles/coordinator/role.md](roles/coordinator/role.md) | — | — |
38
+ | scout | [roles/scout/role.md](roles/scout/role.md) | SCOUT-* | false |
39
+ | strategist | [roles/strategist/role.md](roles/strategist/role.md) | QASTRAT-* | false |
40
+ | generator | [roles/generator/role.md](roles/generator/role.md) | QAGEN-* | false |
41
+ | executor | [roles/executor/role.md](roles/executor/role.md) | QARUN-* | true |
42
+ | analyst | [roles/analyst/role.md](roles/analyst/role.md) | QAANA-* | false |
43
+
44
+ ## Role Router
45
+
46
+ Parse `$ARGUMENTS`:
47
+ - Has `--role <name>` -> Read `roles/<name>/role.md`, execute Phase 2-4
48
+ - No `--role` -> `@roles/coordinator/role.md`, execute entry router
49
+
50
+ ## Shared Constants
51
+
52
+ - **Session prefix**: `QA`
53
+ - **Session path**: `.workflow/.team/QA-<slug>-<date>/`
54
+ - **Team name**: `quality-assurance`
55
+ - **CLI tools**: `maestro delegate --mode analysis` (read-only), `maestro delegate --mode write` (modifications)
56
+ - **Message bus**: `mcp__maestro__team_msg(session_id=<session-id>, ...)`
57
+
58
+ ## Worker Spawn Template
59
+
60
+ Coordinator spawns workers using this template:
61
+
62
+ ```
63
+ Agent({
64
+ subagent_type: "team-worker",
65
+ description: "Spawn <role> worker",
66
+ team_name: "quality-assurance",
67
+ name: "<role>",
68
+ run_in_background: true,
69
+ prompt: `## Role Assignment
70
+ role: <role>
71
+ role_spec: <skill_root>/roles/<role>/role.md
72
+ session: <session-folder>
73
+ session_id: <session-id>
74
+ team_name: quality-assurance
75
+ requirement: <task-description>
76
+ inner_loop: <true|false>
77
+
78
+ ## Progress Milestones
79
+ session_id: <session-id>
80
+ Report progress via team_msg at natural phase boundaries (context loaded -> core work done -> verification).
81
+ Report blockers immediately via team_msg type="blocker".
82
+ Report completion via team_msg type="task_complete" after final SendMessage.
83
+
84
+ Read role_spec file (@<skill_root>/roles/<role>/role.md) to load Phase 2-4 domain instructions.
85
+ Execute built-in Phase 1 (task discovery) -> role Phase 2-4 -> built-in Phase 5 (report).`
86
+ })
87
+ ```
88
+
89
+ ## User Commands
90
+
91
+ | Command | Action |
92
+ |---------|--------|
93
+ | `check` / `status` | View pipeline status graph |
94
+ | `resume` / `continue` | Advance to next step |
95
+ | `--mode=discovery` | Force discovery mode |
96
+ | `--mode=testing` | Force testing mode |
97
+ | `--mode=full` | Force full QA mode |
98
+
99
+ ## Completion Action
100
+
101
+ When pipeline completes, coordinator presents:
102
+
103
+ ```
104
+ AskUserQuestion({
105
+ questions: [{
106
+ question: "Quality Assurance pipeline complete. What would you like to do?",
107
+ header: "Completion",
108
+ multiSelect: false,
109
+ options: [
110
+ { label: "Archive & Clean (Recommended)", description: "Archive session, clean up team" },
111
+ { label: "Keep Active", description: "Keep session for follow-up work" },
112
+ { label: "Export Results", description: "Export deliverables to target directory" }
113
+ ]
114
+ }]
115
+ })
116
+ ```
117
+
118
+ ## Session Directory
119
+
120
+ ```
121
+ .workflow/.team/QA-<slug>-<date>/
122
+ ├── .msg/messages.jsonl # Team message bus
123
+ ├── .msg/meta.json # Session state + shared memory
124
+ ├── wisdom/ # Cross-task knowledge
125
+ ├── scan/ # Scout output
126
+ ├── strategy/ # Strategist output
127
+ ├── tests/ # Generator output (L1/, L2/, L3/)
128
+ ├── results/ # Executor output
129
+ └── analysis/ # Analyst output
130
+ ```
131
+
132
+ ## Specs Reference
133
+
134
+ - [specs/pipelines.md](specs/pipelines.md) — Pipeline definitions and task registry
135
+ - [specs/team-config.json](specs/team-config.json) — Team configuration and shared memory schema
136
+
137
+ ## Error Handling
138
+
139
+ | Scenario | Resolution |
140
+ |----------|------------|
141
+ | Unknown --role value | Error with available role list |
142
+ | Role not found | Error with expected path (roles/<name>/role.md) |
143
+ | CLI tool fails | Worker fallback to direct implementation |
144
+ | Scout finds no issues | Report clean scan, skip to testing mode |
145
+ | GC loop exceeded | Accept current coverage with warning |
146
+ | Fast-advance conflict | Coordinator reconciles on next callback |
147
+ | Completion action fails | Default to Keep Active |
@@ -0,0 +1,147 @@
1
+ ---
2
+ name: team-review
3
+ description: "Unified team skill for code review. 3-role pipeline: scanner, reviewer, fixer. Triggers on team-review."
4
+ allowed-tools: TeamCreate TeamDelete SendMessage TaskCreate TaskUpdate TaskList TaskGet Agent AskUserQuestion Read Write Edit Bash Glob Grep mcp__maestro__team_msg
5
+ ---
6
+
7
+ # Team Review
8
+
9
+ Orchestrate multi-agent code review: scanner -> reviewer -> fixer. Toolchain + LLM scan, deep analysis with root cause enrichment, and automated fix with rollback-on-failure.
10
+
11
+ ## Architecture
12
+
13
+ ```
14
+ Skill(skill="team-review", args="task description")
15
+ |
16
+ SKILL.md (this file) = Router
17
+ |
18
+ +--------------+--------------+
19
+ | |
20
+ no --role flag --role <name>
21
+ | |
22
+ Coordinator Worker
23
+ roles/coordinator/role.md roles/<name>/role.md
24
+ |
25
+ +-- analyze -> dispatch -> spawn workers -> STOP
26
+ |
27
+ +-------+-------+-------+
28
+ v v v
29
+ [scan] [review] [fix]
30
+ team-worker agents, each loads roles/<role>/role.md
31
+ ```
32
+
33
+ ## Role Registry
34
+
35
+ | Role | Path | Prefix | Inner Loop |
36
+ |------|------|--------|------------|
37
+ | coordinator | [roles/coordinator/role.md](roles/coordinator/role.md) | — | — |
38
+ | scanner | [roles/scanner/role.md](roles/scanner/role.md) | SCAN-* | false |
39
+ | reviewer | [roles/reviewer/role.md](roles/reviewer/role.md) | REV-* | false |
40
+ | fixer | [roles/fixer/role.md](roles/fixer/role.md) | FIX-* | true |
41
+
42
+ ## Role Router
43
+
44
+ Parse `$ARGUMENTS`:
45
+ - Has `--role <name>` -> Read `roles/<name>/role.md`, execute Phase 2-4
46
+ - No `--role` -> `@roles/coordinator/role.md`, execute entry router
47
+
48
+ ## Shared Constants
49
+
50
+ - **Session prefix**: `RV`
51
+ - **Session path**: `.workflow/.team/RV-<slug>-<date>/`
52
+ - **Team name**: `review`
53
+ - **CLI tools**: `maestro delegate --mode analysis` (read-only), `maestro delegate --mode write` (modifications)
54
+ - **Message bus**: `mcp__maestro__team_msg(session_id=<session-id>, ...)`
55
+
56
+ ## Worker Spawn Template
57
+
58
+ Coordinator spawns workers using this template:
59
+
60
+ ```
61
+ Agent({
62
+ subagent_type: "team-worker",
63
+ description: "Spawn <role> worker",
64
+ team_name: "review",
65
+ name: "<role>",
66
+ run_in_background: true,
67
+ prompt: `## Role Assignment
68
+ role: <role>
69
+ role_spec: <skill_root>/roles/<role>/role.md
70
+ session: <session-folder>
71
+ session_id: <session-id>
72
+ team_name: review
73
+ requirement: <task-description>
74
+ inner_loop: <true|false>
75
+
76
+ ## Progress Milestones
77
+ session_id: <session-id>
78
+ Report progress via team_msg at natural phase boundaries (context loaded -> core work done -> verification).
79
+ Report blockers immediately via team_msg type="blocker".
80
+ Report completion via team_msg type="task_complete" after final SendMessage.
81
+
82
+ Read role_spec file (@<skill_root>/roles/<role>/role.md) to load Phase 2-4 domain instructions.
83
+ Execute built-in Phase 1 (task discovery) -> role Phase 2-4 -> built-in Phase 5 (report).`
84
+ })
85
+ ```
86
+
87
+ ## User Commands
88
+
89
+ | Command | Action |
90
+ |---------|--------|
91
+ | `check` / `status` | View pipeline status graph |
92
+ | `resume` / `continue` | Advance to next step |
93
+ | `--full` | Enable scan + review + fix pipeline |
94
+ | `--fix` | Fix-only mode (skip scan/review) |
95
+ | `-q` / `--quick` | Quick scan only |
96
+ | `--dimensions=sec,cor,prf,mnt` | Custom dimensions |
97
+ | `-y` / `--yes` | Skip confirmations |
98
+
99
+ ## Completion Action
100
+
101
+ When pipeline completes, coordinator presents:
102
+
103
+ ```
104
+ AskUserQuestion({
105
+ questions: [{
106
+ question: "Review pipeline complete. What would you like to do?",
107
+ header: "Completion",
108
+ multiSelect: false,
109
+ options: [
110
+ { label: "Archive & Clean (Recommended)", description: "Archive session, clean up team" },
111
+ { label: "Keep Active", description: "Keep session for follow-up work" },
112
+ { label: "Export Results", description: "Export deliverables to target directory" }
113
+ ]
114
+ }]
115
+ })
116
+ ```
117
+
118
+ ## Session Directory
119
+
120
+ ```
121
+ .workflow/.team/RV-<slug>-<date>/
122
+ ├── .msg/messages.jsonl # Team message bus
123
+ ├── .msg/meta.json # Session state + cross-role state
124
+ ├── wisdom/ # Cross-task knowledge
125
+ ├── scan/ # Scanner output
126
+ ├── review/ # Reviewer output
127
+ └── fix/ # Fixer output
128
+ ```
129
+
130
+ ## Specs Reference
131
+
132
+ - [specs/pipelines.md](specs/pipelines.md) — Pipeline definitions and task registry
133
+ - [specs/dimensions.md](specs/dimensions.md) — Review dimension definitions (SEC/COR/PRF/MNT)
134
+ - [specs/finding-schema.json](specs/finding-schema.json) — Finding data schema
135
+ - [specs/team-config.json](specs/team-config.json) — Team configuration
136
+
137
+ ## Error Handling
138
+
139
+ | Scenario | Resolution |
140
+ |----------|------------|
141
+ | Unknown --role value | Error with available role list |
142
+ | Role not found | Error with expected path (roles/<name>/role.md) |
143
+ | CLI tool fails | Worker fallback to direct implementation |
144
+ | Scanner finds 0 findings | Report clean, skip review + fix |
145
+ | User declines fix | Delete FIX tasks, complete with review-only results |
146
+ | Fast-advance conflict | Coordinator reconciles on next callback |
147
+ | Completion action fails | Default to Keep Active |