maestro-flow 0.3.38 → 0.3.39

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/.claude/agents/workflow-analyzer.md +2 -0
  2. package/.claude/agents/workflow-debugger.md +2 -0
  3. package/.claude/agents/workflow-executor.md +2 -0
  4. package/.claude/agents/workflow-integration-checker.md +1 -0
  5. package/.claude/agents/workflow-nyquist-auditor.md +1 -0
  6. package/.claude/agents/workflow-planner.md +2 -0
  7. package/.claude/agents/workflow-reviewer.md +2 -0
  8. package/.claude/agents/workflow-verifier.md +2 -0
  9. package/.claude/commands/learn-decompose.md +176 -176
  10. package/.claude/commands/learn-follow.md +167 -167
  11. package/.claude/commands/learn-investigate.md +221 -221
  12. package/.claude/commands/learn-retro.md +303 -303
  13. package/.claude/commands/learn-second-opinion.md +167 -167
  14. package/.claude/commands/maestro-amend.md +300 -300
  15. package/.claude/commands/maestro-analyze.md +126 -126
  16. package/.claude/commands/maestro-brainstorm.md +100 -100
  17. package/.claude/commands/maestro-composer.md +354 -354
  18. package/.claude/commands/maestro-execute.md +120 -114
  19. package/.claude/commands/maestro-fork.md +86 -86
  20. package/.claude/commands/maestro-init.md +78 -78
  21. package/.claude/commands/maestro-learn.md +140 -140
  22. package/.claude/commands/maestro-link-coordinate.md +1 -1
  23. package/.claude/commands/maestro-merge.md +61 -61
  24. package/.claude/commands/maestro-milestone-release.md +96 -96
  25. package/.claude/commands/maestro-overlay.md +178 -178
  26. package/.claude/commands/maestro-plan.md +150 -138
  27. package/.claude/commands/maestro-player.md +404 -404
  28. package/.claude/commands/maestro-quick.md +56 -56
  29. package/.claude/commands/maestro-ralph-execute.md +7 -18
  30. package/.claude/commands/maestro-ralph.md +9 -3
  31. package/.claude/commands/maestro-roadmap.md +1 -1
  32. package/.claude/commands/maestro-ui-design.md +93 -93
  33. package/.claude/commands/maestro-update.md +176 -176
  34. package/.claude/commands/maestro-verify.md +96 -90
  35. package/.claude/commands/maestro.md +121 -121
  36. package/.claude/commands/manage-codebase-rebuild.md +75 -75
  37. package/.claude/commands/manage-codebase-refresh.md +57 -57
  38. package/.claude/commands/manage-harvest.md +94 -94
  39. package/.claude/commands/manage-issue-discover.md +77 -77
  40. package/.claude/commands/manage-issue.md +73 -73
  41. package/.claude/commands/manage-knowhow-capture.md +193 -193
  42. package/.claude/commands/manage-knowhow.md +77 -77
  43. package/.claude/commands/manage-learn.md +67 -67
  44. package/.claude/commands/manage-status.md +51 -51
  45. package/.claude/commands/manage-wiki.md +62 -62
  46. package/.claude/commands/quality-auto-test.md +1 -1
  47. package/.claude/commands/quality-debug.md +121 -115
  48. package/.claude/commands/quality-refactor.md +55 -55
  49. package/.claude/commands/quality-retrospective.md +78 -78
  50. package/.claude/commands/quality-review.md +114 -108
  51. package/.claude/commands/quality-sync.md +51 -51
  52. package/.claude/commands/quality-test.md +103 -103
  53. package/.claude/commands/spec-add.md +49 -49
  54. package/.claude/commands/spec-load.md +51 -51
  55. package/.claude/commands/spec-remove.md +51 -51
  56. package/.claude/commands/spec-setup.md +51 -51
  57. package/.claude/commands/wiki-connect.md +62 -62
  58. package/.claude/commands/wiki-digest.md +69 -69
  59. package/.codex/skills/learn-decompose/SKILL.md +113 -113
  60. package/.codex/skills/learn-follow/SKILL.md +1 -1
  61. package/.codex/skills/learn-investigate/SKILL.md +83 -83
  62. package/.codex/skills/learn-retro/SKILL.md +83 -83
  63. package/.codex/skills/learn-second-opinion/SKILL.md +86 -86
  64. package/.codex/skills/maestro/SKILL.md +304 -304
  65. package/.codex/skills/maestro-analyze/SKILL.md +4 -3
  66. package/.codex/skills/maestro-brainstorm/SKILL.md +442 -397
  67. package/.codex/skills/maestro-composer/SKILL.md +213 -213
  68. package/.codex/skills/maestro-execute/SKILL.md +346 -318
  69. package/.codex/skills/maestro-fork/SKILL.md +56 -2
  70. package/.codex/skills/maestro-init/SKILL.md +40 -16
  71. package/.codex/skills/maestro-learn/SKILL.md +80 -80
  72. package/.codex/skills/maestro-link-coordinate/SKILL.md +257 -257
  73. package/.codex/skills/maestro-merge/SKILL.md +1 -1
  74. package/.codex/skills/maestro-milestone-audit/SKILL.md +1 -1
  75. package/.codex/skills/maestro-milestone-complete/SKILL.md +40 -9
  76. package/.codex/skills/maestro-milestone-release/SKILL.md +70 -70
  77. package/.codex/skills/maestro-overlay/SKILL.md +1 -1
  78. package/.codex/skills/maestro-plan/SKILL.md +19 -4
  79. package/.codex/skills/maestro-player/SKILL.md +323 -323
  80. package/.codex/skills/maestro-quick/SKILL.md +1 -1
  81. package/.codex/skills/maestro-ralph/SKILL.md +681 -578
  82. package/.codex/skills/maestro-roadmap/SKILL.md +518 -468
  83. package/.codex/skills/maestro-ui-design/SKILL.md +109 -12
  84. package/.codex/skills/maestro-verify/SKILL.md +27 -9
  85. package/.codex/skills/manage-codebase-rebuild/SKILL.md +3 -2
  86. package/.codex/skills/manage-codebase-refresh/SKILL.md +1 -1
  87. package/.codex/skills/manage-harvest/SKILL.md +91 -91
  88. package/.codex/skills/manage-issue/SKILL.md +19 -6
  89. package/.codex/skills/manage-issue-discover/SKILL.md +1 -1
  90. package/.codex/skills/manage-knowhow/SKILL.md +95 -95
  91. package/.codex/skills/manage-knowhow-capture/SKILL.md +110 -110
  92. package/.codex/skills/manage-learn/SKILL.md +1 -1
  93. package/.codex/skills/manage-status/SKILL.md +1 -1
  94. package/.codex/skills/manage-wiki/SKILL.md +55 -55
  95. package/.codex/skills/quality-auto-test/SKILL.md +547 -547
  96. package/.codex/skills/quality-debug/SKILL.md +339 -334
  97. package/.codex/skills/quality-refactor/SKILL.md +1 -1
  98. package/.codex/skills/quality-retrospective/SKILL.md +292 -292
  99. package/.codex/skills/quality-review/SKILL.md +365 -364
  100. package/.codex/skills/quality-sync/SKILL.md +1 -1
  101. package/.codex/skills/quality-test/SKILL.md +498 -498
  102. package/.codex/skills/spec-add/SKILL.md +101 -101
  103. package/.codex/skills/spec-load/SKILL.md +77 -77
  104. package/.codex/skills/spec-map/SKILL.md +1 -1
  105. package/.codex/skills/spec-remove/SKILL.md +69 -69
  106. package/.codex/skills/spec-setup/SKILL.md +1 -1
  107. package/.codex/skills/team-coordinate/SKILL.md +2 -1
  108. package/.codex/skills/team-executor/SKILL.md +116 -115
  109. package/.codex/skills/team-lifecycle-v4/SKILL.md +2 -1
  110. package/.codex/skills/team-lifecycle-v4/instructions/agent-instruction.md +14 -6
  111. package/.codex/skills/team-lifecycle-v4/roles/analyst/role.md +16 -4
  112. package/.codex/skills/team-lifecycle-v4/roles/executor/commands/implement.md +7 -1
  113. package/.codex/skills/team-lifecycle-v4/roles/planner/role.md +16 -4
  114. package/.codex/skills/team-lifecycle-v4/roles/writer/role.md +8 -2
  115. package/.codex/skills/team-quality-assurance/SKILL.md +2 -1
  116. package/.codex/skills/team-quality-assurance/roles/scout/role.md +9 -2
  117. package/.codex/skills/team-review/SKILL.md +2 -1
  118. package/.codex/skills/team-review/roles/reviewer/role.md +10 -1
  119. package/.codex/skills/team-review/roles/scanner/role.md +10 -1
  120. package/.codex/skills/team-tech-debt/SKILL.md +144 -143
  121. package/.codex/skills/team-tech-debt/roles/executor/role.md +9 -5
  122. package/.codex/skills/team-tech-debt/roles/scanner/role.md +10 -0
  123. package/.codex/skills/team-tech-debt/roles/validator/role.md +8 -2
  124. package/.codex/skills/team-testing/SKILL.md +2 -1
  125. package/.codex/skills/team-testing/roles/executor/role.md +8 -2
  126. package/.codex/skills/team-testing/roles/generator/role.md +8 -2
  127. package/.codex/skills/wiki-connect/SKILL.md +73 -73
  128. package/.codex/skills/wiki-digest/SKILL.md +87 -87
  129. package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js +4 -0
  130. package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js.map +1 -1
  131. package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js +6 -0
  132. package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js.map +1 -1
  133. package/dashboard/dist-server/shared/agent-types.d.ts +2 -0
  134. package/dashboard/dist-server/src/agents/cli-agent-runner.d.ts +2 -0
  135. package/dashboard/dist-server/src/agents/cli-agent-runner.js +4 -0
  136. package/dashboard/dist-server/src/agents/cli-agent-runner.js.map +1 -1
  137. package/dashboard/dist-server/src/commands/delegate.d.ts +2 -0
  138. package/dashboard/dist-server/src/commands/delegate.js +18 -0
  139. package/dashboard/dist-server/src/commands/delegate.js.map +1 -1
  140. package/dashboard/dist-server/src/config/cli-tools-config.d.ts +6 -0
  141. package/dashboard/dist-server/src/config/cli-tools-config.js +2 -0
  142. package/dashboard/dist-server/src/config/cli-tools-config.js.map +1 -1
  143. package/dist/shared/agent-types.d.ts +2 -0
  144. package/dist/shared/agent-types.d.ts.map +1 -1
  145. package/dist/src/agents/cli-agent-runner.d.ts +2 -0
  146. package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
  147. package/dist/src/agents/cli-agent-runner.js +4 -0
  148. package/dist/src/agents/cli-agent-runner.js.map +1 -1
  149. package/dist/src/commands/config.d.ts.map +1 -1
  150. package/dist/src/commands/config.js +29 -1
  151. package/dist/src/commands/config.js.map +1 -1
  152. package/dist/src/commands/delegate.d.ts +2 -0
  153. package/dist/src/commands/delegate.d.ts.map +1 -1
  154. package/dist/src/commands/delegate.js +18 -0
  155. package/dist/src/commands/delegate.js.map +1 -1
  156. package/dist/src/commands/launcher.d.ts.map +1 -1
  157. package/dist/src/commands/launcher.js +27 -4
  158. package/dist/src/commands/launcher.js.map +1 -1
  159. package/dist/src/config/cli-tools-config.d.ts +6 -0
  160. package/dist/src/config/cli-tools-config.d.ts.map +1 -1
  161. package/dist/src/config/cli-tools-config.js +2 -0
  162. package/dist/src/config/cli-tools-config.js.map +1 -1
  163. package/dist/src/core/overlay/applier.d.ts.map +1 -1
  164. package/dist/src/core/overlay/applier.js +65 -5
  165. package/dist/src/core/overlay/applier.js.map +1 -1
  166. package/dist/src/core/overlay/loader.d.ts.map +1 -1
  167. package/dist/src/core/overlay/loader.js +9 -4
  168. package/dist/src/core/overlay/loader.js.map +1 -1
  169. package/dist/src/core/overlay/types.d.ts +2 -0
  170. package/dist/src/core/overlay/types.d.ts.map +1 -1
  171. package/dist/src/core/overlay/types.js +2 -0
  172. package/dist/src/core/overlay/types.js.map +1 -1
  173. package/dist/src/tui/tools-ui/ToolsDashboard.d.ts.map +1 -1
  174. package/dist/src/tui/tools-ui/ToolsDashboard.js +1 -1
  175. package/dist/src/tui/tools-ui/ToolsDashboard.js.map +1 -1
  176. package/dist/src/tui/tools-ui/ToolsOverview.d.ts.map +1 -1
  177. package/dist/src/tui/tools-ui/ToolsOverview.js +51 -4
  178. package/dist/src/tui/tools-ui/ToolsOverview.js.map +1 -1
  179. package/package.json +1 -1
  180. package/shared/agent-types.ts +2 -0
  181. package/workflows/delegate-protocol.codex.md +65 -0
@@ -1,115 +1,116 @@
1
- ---
2
- name: team-executor
3
- description: Lightweight session execution skill. Resumes existing team-coordinate sessions for pure execution via team-worker agents. No analysis, no role generation -- only loads and executes. Session path required. Triggers on "Team Executor".
4
- allowed-tools: spawn_agent(*), wait_agent(*), send_message(*), followup_task(*), close_agent(*), list_agents(*), report_agent_job_result(*), request_user_input(*), Read(*), Write(*), Edit(*), Bash(*), Glob(*), Grep(*), mcp__maestro-tools__team_msg(*)
5
- ---
6
-
7
- <purpose>
8
- Lightweight session execution skill: load session -> reconcile state -> spawn team-worker agents -> execute -> deliver. **No analysis, no role generation** -- only executes existing team-coordinate sessions.
9
-
10
- ```
11
- Skill(skill="team-executor")
12
- args="--session=<path>" [REQUIRED]
13
- |
14
- Session Validation
15
- |
16
- +-- valid? --+-- NO --> Error immediately
17
- +-- YES -> Orchestration Mode -> executor
18
- |
19
- +-------+-------+-------+
20
- v v v v
21
- [team-worker agents loaded from session role-specs]
22
- ```
23
- </purpose>
24
-
25
- <context>
26
- $ARGUMENTS — session path (required).
27
-
28
- **Parse:** `--session=<path>` — Path to team-coordinate session folder (REQUIRED)
29
-
30
- **Validation Steps:**
31
- 1. Check `--session` provided
32
- 2. Directory exists at path
33
- 3. `team-session.json` exists and valid JSON
34
- 4. `task-analysis.json` exists and valid JSON
35
- 5. `role-specs/` directory has at least one `.md` file
36
- 6. Each role in `team-session.json#roles` has corresponding `.md` in `role-specs/`
37
-
38
- **Dispatch:**
39
- | Scenario | Action |
40
- |----------|--------|
41
- | No `--session` | ERROR immediately |
42
- | `--session` invalid | ERROR with specific reason |
43
- | Valid session | Orchestration Mode -> executor |
44
-
45
- **User Commands** (wake paused executor):
46
- | Command | Action |
47
- |---------|--------|
48
- | `check` / `status` | Output execution status graph, no advancement |
49
- | `resume` / `continue` | Check worker states, advance next step |
50
-
51
- **Role Registry:**
52
- | Role | File | Type |
53
- |------|------|------|
54
- | executor | [roles/executor/role.md](roles/executor/role.md) | built-in orchestrator |
55
- | (dynamic) | `<session>/role-specs/<role-name>.md` | loaded from session |
56
-
57
- **Integration with team-coordinate:**
58
- | Scenario | Skill |
59
- |----------|-------|
60
- | New task, no session | team-coordinate |
61
- | Existing session, resume execution | **team-executor** |
62
- | Session needs new roles | team-coordinate (with resume) |
63
- | Pure execution, no analysis | **team-executor** |
64
- </context>
65
-
66
- <execution>
67
-
68
- ### Orchestration Lifecycle
69
-
70
- Validate session -> Phase 0 (reconcile state, reset interrupted tasks, detect orphans) -> Phase 1 (spawn first batch workers, STOP) -> callback loop (advance next step) -> Phase 2 (report + completion action).
71
-
72
- ### Worker Spawn Template
73
-
74
- Spawn via `team-worker` agent with role-spec path from session. Message includes: role, role_spec, session folder/id, requirement, inner_loop flag, task context, upstream context. After spawning: `wait_agent` (30 min). Timeout: STATUS_CHECK (3 min) -> FINALIZE (3 min) -> mark timed_out, close.
75
-
76
- ### Model Selection
77
-
78
- Implementation/fix roles: `reasoning_effort: "high"`. Verification/test: `"medium"`. Default: `"high"`.
79
-
80
- ### State Reconciliation
81
-
82
- On resume: compare `list_agents({})` with task-analysis.json. Reset orphaned tasks to pending.
83
-
84
- ### Worker Communication
85
-
86
- `send_message` (supplementary context), `followup_task` (assign work to inner_loop worker), `close_agent` (cleanup).
87
-
88
- ### Completion Action
89
-
90
- Present choice: **Archive & Clean** (mark completed, output summary), **Keep Active** (mark paused, output resume command), **Export Results** (prompt path, copy, archive).
91
- </execution>
92
-
93
- <error_codes>
94
- | Scenario | Resolution |
95
- |----------|------------|
96
- | No --session provided | ERROR immediately with usage message |
97
- | Session directory not found | ERROR with path, suggest checking path |
98
- | team-session.json missing | ERROR, session incomplete, suggest re-run team-coordinate |
99
- | task-analysis.json missing | ERROR, session incomplete, suggest re-run team-coordinate |
100
- | No role-specs in session | ERROR, session incomplete, suggest re-run team-coordinate |
101
- | Role-spec file not found | ERROR with expected path |
102
- | capability_gap reported | Warn only, cannot generate new role-specs |
103
- | Fast-advance spawns wrong task | Executor reconciles on next callback |
104
- | Completion action fails | Default to Keep Active, log warning |
105
- </error_codes>
106
-
107
- <success_criteria>
108
- - [ ] Session validated (all required files present)
109
- - [ ] State reconciled on resume (orphaned tasks reset)
110
- - [ ] Team-worker agents spawned with correct role-specs
111
- - [ ] Workers complete or timeout handled gracefully
112
- - [ ] Pipeline advances step-by-step through all tasks
113
- - [ ] Completion action presented and executed
114
- - [ ] Session state updated throughout lifecycle
115
- </success_criteria>
1
+ ---
2
+ name: team-executor
3
+ description: Resume team-coordinate sessions for pure execution
4
+ allowed-tools: spawn_agent(*), wait_agent(*), send_message(*), followup_task(*), close_agent(*), list_agents(*), report_agent_job_result(*), request_user_input(*), Read(*), Write(*), Edit(*), Bash(*), Glob(*), Grep(*), mcp__maestro-tools__team_msg(*)
5
+ ---
6
+
7
+ <purpose>
8
+ Lightweight session execution skill: load session -> reconcile state -> spawn team-worker agents -> execute -> deliver. **No analysis, no role generation** -- only executes existing team-coordinate sessions.
9
+
10
+ ```
11
+ Skill(skill="team-executor")
12
+ args="--session=<path>" [REQUIRED]
13
+ |
14
+ Session Validation
15
+ |
16
+ +-- valid? --+-- NO --> Error immediately
17
+ +-- YES -> Orchestration Mode -> executor
18
+ |
19
+ +-------+-------+-------+
20
+ v v v v
21
+ [team-worker agents loaded from session role-specs]
22
+ ```
23
+
24
+ </purpose>
25
+
26
+ <context>
27
+ $ARGUMENTS — session path (required).
28
+
29
+ **Parse:** `--session=<path>` — Path to team-coordinate session folder (REQUIRED)
30
+
31
+ **Validation Steps:**
32
+ 1. Check `--session` provided
33
+ 2. Directory exists at path
34
+ 3. `team-session.json` exists and valid JSON
35
+ 4. `task-analysis.json` exists and valid JSON
36
+ 5. `role-specs/` directory has at least one `.md` file
37
+ 6. Each role in `team-session.json#roles` has corresponding `.md` in `role-specs/`
38
+
39
+ **Dispatch:**
40
+ | Scenario | Action |
41
+ |----------|--------|
42
+ | No `--session` | ERROR immediately |
43
+ | `--session` invalid | ERROR with specific reason |
44
+ | Valid session | Orchestration Mode -> executor |
45
+
46
+ **User Commands** (wake paused executor):
47
+ | Command | Action |
48
+ |---------|--------|
49
+ | `check` / `status` | Output execution status graph, no advancement |
50
+ | `resume` / `continue` | Check worker states, advance next step |
51
+
52
+ **Role Registry:**
53
+ | Role | File | Type |
54
+ |------|------|------|
55
+ | executor | [roles/executor/role.md](roles/executor/role.md) | built-in orchestrator |
56
+ | (dynamic) | `<session>/role-specs/<role-name>.md` | loaded from session |
57
+
58
+ **Integration with team-coordinate:**
59
+ | Scenario | Skill |
60
+ |----------|-------|
61
+ | New task, no session | team-coordinate |
62
+ | Existing session, resume execution | **team-executor** |
63
+ | Session needs new roles | team-coordinate (with resume) |
64
+ | Pure execution, no analysis | **team-executor** |
65
+ </context>
66
+
67
+ <execution>
68
+
69
+ ### Orchestration Lifecycle
70
+
71
+ Validate session -> Phase 0 (reconcile state, reset interrupted tasks, detect orphans) -> Phase 1 (spawn first batch workers, STOP) -> callback loop (advance next step) -> Phase 2 (report + completion action).
72
+
73
+ ### Worker Spawn Template
74
+
75
+ Spawn via `team-worker` agent with role-spec path from session. Message includes: role, role_spec, session folder/id, requirement, inner_loop flag, task context, upstream context. After spawning: `wait_agent` (30 min). Timeout: STATUS_CHECK (3 min) -> FINALIZE (3 min) -> mark timed_out, close.
76
+
77
+ ### Model Selection
78
+
79
+ Implementation/fix roles: `reasoning_effort: "high"`. Verification/test: `"medium"`. Default: `"high"`.
80
+
81
+ ### State Reconciliation
82
+
83
+ On resume: compare `list_agents({})` with task-analysis.json. Reset orphaned tasks to pending.
84
+
85
+ ### Worker Communication
86
+
87
+ `send_message` (supplementary context), `followup_task` (assign work to inner_loop worker), `close_agent` (cleanup).
88
+
89
+ ### Completion Action
90
+
91
+ Present choice: **Archive & Clean** (mark completed, output summary), **Keep Active** (mark paused, output resume command), **Export Results** (prompt path, copy, archive).
92
+ </execution>
93
+
94
+ <error_codes>
95
+ | Scenario | Resolution |
96
+ |----------|------------|
97
+ | No --session provided | ERROR immediately with usage message |
98
+ | Session directory not found | ERROR with path, suggest checking path |
99
+ | team-session.json missing | ERROR, session incomplete, suggest re-run team-coordinate |
100
+ | task-analysis.json missing | ERROR, session incomplete, suggest re-run team-coordinate |
101
+ | No role-specs in session | ERROR, session incomplete, suggest re-run team-coordinate |
102
+ | Role-spec file not found | ERROR with expected path |
103
+ | capability_gap reported | Warn only, cannot generate new role-specs |
104
+ | Fast-advance spawns wrong task | Executor reconciles on next callback |
105
+ | Completion action fails | Default to Keep Active, log warning |
106
+ </error_codes>
107
+
108
+ <success_criteria>
109
+ - [ ] Session validated (all required files present)
110
+ - [ ] State reconciled on resume (orphaned tasks reset)
111
+ - [ ] Team-worker agents spawned with correct role-specs
112
+ - [ ] Workers complete or timeout handled gracefully
113
+ - [ ] Pipeline advances step-by-step through all tasks
114
+ - [ ] Completion action presented and executed
115
+ - [ ] Session state updated throughout lifecycle
116
+ </success_criteria>
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: team-lifecycle-v4
3
- description: Full lifecycle team skill with clean architecture. SKILL.md is a universal router — all roles read it. Beat model is coordinator-only. Structure is roles/ + specs/ + templates/. Triggers on "team lifecycle v4".
3
+ description: Full lifecycle team -- plan, develop, test, review
4
4
  allowed-tools: spawn_agent(*), wait_agent(*), send_message(*), followup_task(*), close_agent(*), list_agents(*), report_agent_job_result(*), Read(*), Write(*), Edit(*), Bash(*), Glob(*), Grep(*), request_user_input(*), mcp__maestro-tools__team_msg(*)
5
5
  ---
6
6
 
@@ -32,6 +32,7 @@ Skill(skill="team-lifecycle-v4", args="task description")
32
32
  |
33
33
  collect results
34
34
  ```
35
+
35
36
  </purpose>
36
37
 
37
38
  <context>
@@ -26,12 +26,16 @@ This instruction is loaded by team-worker agents when spawned with roles: `analy
26
26
  ```
27
27
 
28
28
  2. **Explore domain** (use CLI analysis tools):
29
- ```bash
30
- maestro delegate "PURPOSE: Research domain for {requirement}
29
+ ```
30
+ exec_command({
31
+ cmd: `maestro delegate "PURPOSE: Research domain for {requirement}
31
32
  TASK: • Identify problem statement • Define target users • Extract constraints • Map integration points
32
33
  CONTEXT: @**/* | Memory: {requirement}
33
34
  EXPECTED: Structured research context with problem/users/domain/constraints
34
- CONSTRAINTS: Read-only analysis" --tool gemini --mode analysis --rule analysis-trace-code-execution
35
+ CONSTRAINTS: Read-only analysis" --role analyze --mode analysis --rule analysis-trace-code-execution`,
36
+ yield_time_ms: 30000, max_output_tokens: 6000
37
+ })
38
+ // ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
35
39
  ```
36
40
 
37
41
  3. **Extract structured context**:
@@ -293,12 +297,16 @@ This instruction is loaded by team-worker agents when spawned with roles: `analy
293
297
  ```
294
298
 
295
299
  2. **Explore codebase** (use CLI analysis tools):
296
- ```bash
297
- maestro delegate "PURPOSE: Explore codebase for {requirement}
300
+ ```
301
+ exec_command({
302
+ cmd: `maestro delegate "PURPOSE: Explore codebase for {requirement}
298
303
  TASK: • Identify relevant files • Find existing patterns • Locate integration points
299
304
  CONTEXT: @**/* | Memory: {requirement}
300
305
  EXPECTED: Exploration findings with file paths and patterns
301
- CONSTRAINTS: Read-only analysis" --tool gemini --mode analysis --rule analysis-trace-code-execution
306
+ CONSTRAINTS: Read-only analysis" --role explore --mode analysis --rule analysis-trace-code-execution`,
307
+ yield_time_ms: 30000, max_output_tokens: 6000
308
+ })
309
+ // ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
302
310
  ```
303
311
 
304
312
  3. **Generate implementation plan**:
@@ -36,12 +36,18 @@ Research and codebase exploration for context gathering.
36
36
  4. If topic references file (@path or .md/.txt) -> read it
37
37
  5. CLI seed analysis:
38
38
  ```
39
- Bash({ command: `maestro delegate "PURPOSE: Analyze topic, extract structured seed info.
39
+ exec_command({
40
+ cmd: `maestro delegate "PURPOSE: Analyze topic, extract structured seed info.
40
41
  TASK: * Extract problem statement * Identify target users * Determine domain
41
42
  * List constraints * Identify 3-5 exploration dimensions
42
43
  TOPIC: <topic-content>
43
44
  MODE: analysis
44
- EXPECTED: JSON with: problem_statement, target_users[], domain, constraints[], exploration_dimensions[]" --tool gemini --mode analysis`)
45
+ EXPECTED: JSON with: problem_statement, target_users[], domain, constraints[], exploration_dimensions[]" --role analyze --mode analysis`,
46
+ yield_time_ms: 30000,
47
+ max_output_tokens: 6000
48
+ })
49
+ // ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
50
+ // NEVER skip — seed analysis result is required for context packaging
45
51
  ```
46
52
  6. Parse result JSON
47
53
 
@@ -54,11 +60,17 @@ Research and codebase exploration for context gathering.
54
60
 
55
61
  When project detected:
56
62
  ```
57
- Bash({ command: `maestro delegate "PURPOSE: Explore codebase for context
63
+ exec_command({
64
+ cmd: `maestro delegate "PURPOSE: Explore codebase for context
58
65
  TASK: * Identify tech stack * Map architecture patterns * Document conventions * List integration points
59
66
  MODE: analysis
60
67
  CONTEXT: @**/*
61
- EXPECTED: JSON with: tech_stack[], architecture_patterns[], conventions[], integration_points[]" --tool gemini --mode analysis`)
68
+ EXPECTED: JSON with: tech_stack[], architecture_patterns[], conventions[], integration_points[]" --role explore --mode analysis`,
69
+ yield_time_ms: 30000,
70
+ max_output_tokens: 6000
71
+ })
72
+ // ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
73
+ // NEVER skip — codebase context is required for downstream roles
62
74
  ```
63
75
 
64
76
  ## Phase 4: Context Packaging
@@ -51,7 +51,13 @@ CONSTRAINTS: Only modify listed files | Follow existing patterns
51
51
 
52
52
  CLI call:
53
53
  ```
54
- Bash(`maestro delegate "<prompt>" --to <tool> --mode write --rule development-implement-feature`)
54
+ exec_command({
55
+ cmd: `maestro delegate "<prompt>" --role implement --mode write --rule development-implement-feature`,
56
+ yield_time_ms: 30000,
57
+ max_output_tokens: 6000
58
+ })
59
+ // ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
60
+ // NEVER skip — implementation must complete before convergence check
55
61
  ```
56
62
 
57
63
  Resume strategy:
@@ -36,11 +36,17 @@ Codebase-informed implementation planning with complexity assessment.
36
36
  3. Check <session>/explorations/cache-index.json for cached explorations
37
37
  4. Explore codebase (cache-aware):
38
38
  ```
39
- Bash({ command: `maestro delegate "PURPOSE: Explore codebase to inform planning
39
+ exec_command({
40
+ cmd: `maestro delegate "PURPOSE: Explore codebase to inform planning
40
41
  TASK: * Search for relevant patterns * Identify files to modify * Document integration points
41
42
  MODE: analysis
42
43
  CONTEXT: @**/*
43
- EXPECTED: JSON with: relevant_files[], patterns[], integration_points[], recommendations[]" --tool gemini --mode analysis`)
44
+ EXPECTED: JSON with: relevant_files[], patterns[], integration_points[], recommendations[]" --role explore --mode analysis`,
45
+ yield_time_ms: 30000,
46
+ max_output_tokens: 6000
47
+ })
48
+ // ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
49
+ // NEVER skip — delegate result is required for plan generation
44
50
  ```
45
51
  5. Store results in <session>/explorations/
46
52
 
@@ -48,12 +54,18 @@ Codebase-informed implementation planning with complexity assessment.
48
54
 
49
55
  Generate plan.json + .task/TASK-*.json:
50
56
  ```
51
- Bash({ command: `maestro delegate "PURPOSE: Generate implementation plan from exploration results
57
+ exec_command({
58
+ cmd: `maestro delegate "PURPOSE: Generate implementation plan from exploration results
52
59
  TASK: * Create plan.json overview * Generate TASK-*.json files (2-7 tasks) * Define dependencies * Set convergence criteria
53
60
  MODE: write
54
61
  CONTEXT: @<session>/explorations/*.json
55
62
  EXPECTED: Files: plan.json + .task/TASK-*.json
56
- CONSTRAINTS: 2-7 tasks, include id/title/files[]/convergence.criteria/depends_on" --tool gemini --mode write`)
63
+ CONSTRAINTS: 2-7 tasks, include id/title/files[]/convergence.criteria/depends_on" --role implement --mode write`,
64
+ yield_time_ms: 30000,
65
+ max_output_tokens: 6000
66
+ })
67
+ // ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
68
+ // NEVER skip — must wait for plan files to be written
57
69
  ```
58
70
 
59
71
  Output files:
@@ -61,12 +61,18 @@ Template-driven document generation with progressive dependency loading.
61
61
 
62
62
  CLI generation:
63
63
  ```
64
- Bash({ command: `maestro delegate "PURPOSE: Generate <doc-type> document following template
64
+ exec_command({
65
+ cmd: `maestro delegate "PURPOSE: Generate <doc-type> document following template
65
66
  TASK: * Load template * Apply spec config and discovery context * Integrate prior feedback * Generate all sections
66
67
  MODE: write
67
68
  CONTEXT: @<session>/spec/*.json @<template-path>
68
69
  EXPECTED: Document at <output-path> with YAML frontmatter, all sections, cross-references
69
- CONSTRAINTS: Follow document standards" --tool gemini --mode write --cd <session>`)
70
+ CONSTRAINTS: Follow document standards" --role implement --mode write --cd <session>`,
71
+ yield_time_ms: 30000,
72
+ max_output_tokens: 6000
73
+ })
74
+ // ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
75
+ // NEVER skip — document must be fully written before validation
70
76
  ```
71
77
 
72
78
  ## Phase 4: Validation
@@ -1,6 +1,6 @@
1
1
  ---
2
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".
3
+ description: Team QA combining issue discovery and testing
4
4
  allowed-tools: spawn_agent(*), wait_agent(*), send_message(*), followup_task(*), close_agent(*), list_agents(*), report_agent_job_result(*), request_user_input(*), Read(*), Write(*), Edit(*), Bash(*), Glob(*), Grep(*), mcp__maestro-tools__team_msg(*)
5
5
  ---
6
6
 
@@ -26,6 +26,7 @@ Skill(skill="team-quality-assurance", args="task description")
26
26
  [scout] [strat] [gen] [exec] [analyst]
27
27
  team-worker agents, each loads roles/<role>/role.md
28
28
  ```
29
+
29
30
  </purpose>
30
31
 
31
32
  <context>
@@ -41,7 +41,7 @@ Scan codebase from multiple perspectives (bug, security, test-coverage, code-qua
41
41
 
42
42
  **Medium/High complexity**: CLI fan-out -- one `maestro delegate --mode analysis` per perspective:
43
43
 
44
- For each active perspective, build prompt:
44
+ For each active perspective, build prompt and execute:
45
45
  ```
46
46
  PURPOSE: Scan code from <perspective> perspective to discover potential issues
47
47
  TASK: Analyze code patterns for <perspective> problems, identify anti-patterns, check for common issues
@@ -50,7 +50,14 @@ CONTEXT: @<scan-scope>
50
50
  EXPECTED: List of findings with severity (critical/high/medium/low), file:line references, description
51
51
  CONSTRAINTS: Focus on actionable findings only
52
52
  ```
53
- Execute via: `maestro delegate "<prompt>" --role analyze --mode analysis`
53
+ ```
54
+ exec_command({
55
+ cmd: `maestro delegate "<prompt>" --role analyze --mode analysis`,
56
+ yield_time_ms: 30000, max_output_tokens: 6000
57
+ })
58
+ // ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
59
+ // NEVER skip — each perspective's findings are required for aggregation
60
+ ```
54
61
 
55
62
  After all perspectives complete:
56
63
  - Parse CLI outputs into structured findings
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: team-review
3
- description: "Unified team skill for code review. 3-role pipeline: scanner, reviewer, fixer. Triggers on team-review."
3
+ description: Team code review -- scan, review, fix pipeline
4
4
  allowed-tools: spawn_agent(*), wait_agent(*), send_message(*), followup_task(*), close_agent(*), list_agents(*), report_agent_job_result(*), request_user_input(*), Read(*), Write(*), Edit(*), Bash(*), Glob(*), Grep(*), mcp__ace-tool__search_context(*), mcp__maestro-tools__team_msg(*)
5
5
  ---
6
6
 
@@ -26,6 +26,7 @@ Skill(skill="team-review", args="task description")
26
26
  [scan] [review] [fix]
27
27
  team-worker agents, each loads roles/<role>/role.md
28
28
  ```
29
+
29
30
  </purpose>
30
31
 
31
32
  <context>
@@ -52,7 +52,16 @@ Build prompt per group requesting 6 enrichment fields per finding:
52
52
  - `fix_complexity`: low / medium / high
53
53
  - `fix_dependencies`: finding IDs that must be fixed first
54
54
 
55
- Execute via `maestro delegate --role review --mode analysis --rule analysis-diagnose-bug-root-cause`. Parse JSON array responses, merge with originals (CLI-enriched replace originals, unenriched get defaults). Write `<session>/review/enriched-findings.json`.
55
+ Execute via:
56
+ ```
57
+ exec_command({
58
+ cmd: `maestro delegate "<prompt>" --role review --mode analysis --rule analysis-diagnose-bug-root-cause`,
59
+ yield_time_ms: 30000, max_output_tokens: 6000
60
+ })
61
+ // ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
62
+ // NEVER skip — enrichment results are required for report generation
63
+ ```
64
+ Parse JSON array responses, merge with originals (CLI-enriched replace originals, unenriched get defaults). Write `<session>/review/enriched-findings.json`.
56
65
 
57
66
  ## Phase 4: Report Generation
58
67
 
@@ -59,7 +59,16 @@ Build prompt with target file patterns, toolchain dedup summary, and per-dimensi
59
59
  - PRF: Algorithm complexity, N+1 queries, unnecessary sync, memory leaks, missing caching
60
60
  - MNT: Architectural coupling, abstraction leaks, convention violations, dead code
61
61
 
62
- Execute via `maestro delegate --role review --mode analysis --rule analysis-review-code-quality`. Parse JSON array response, validate required fields (dimension, title, location.file), enforce per-dimension limit (max 5 each), filter minimum severity (medium+). Write `<session>/scan/semantic-findings.json`.
62
+ Execute via:
63
+ ```
64
+ exec_command({
65
+ cmd: `maestro delegate "<prompt>" --role review --mode analysis --rule analysis-review-code-quality`,
66
+ yield_time_ms: 30000, max_output_tokens: 6000
67
+ })
68
+ // ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
69
+ // NEVER skip — semantic findings are required for aggregation
70
+ ```
71
+ Parse JSON array response, validate required fields (dimension, title, location.file), enforce per-dimension limit (max 5 each), filter minimum severity (medium+). Write `<session>/scan/semantic-findings.json`.
63
72
 
64
73
  ## Phase 4: Aggregate & Output
65
74