maestro-flow 0.3.38 → 0.3.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/workflow-analyzer.md +2 -0
- package/.claude/agents/workflow-debugger.md +2 -0
- package/.claude/agents/workflow-executor.md +2 -0
- package/.claude/agents/workflow-integration-checker.md +1 -0
- package/.claude/agents/workflow-nyquist-auditor.md +1 -0
- package/.claude/agents/workflow-planner.md +2 -0
- package/.claude/agents/workflow-reviewer.md +2 -0
- package/.claude/agents/workflow-verifier.md +2 -0
- package/.claude/commands/learn-decompose.md +176 -176
- package/.claude/commands/learn-follow.md +167 -167
- package/.claude/commands/learn-investigate.md +221 -221
- package/.claude/commands/learn-retro.md +303 -303
- package/.claude/commands/learn-second-opinion.md +167 -167
- package/.claude/commands/maestro-amend.md +300 -300
- package/.claude/commands/maestro-analyze.md +130 -126
- package/.claude/commands/maestro-brainstorm.md +104 -100
- package/.claude/commands/maestro-composer.md +354 -354
- package/.claude/commands/maestro-execute.md +120 -114
- package/.claude/commands/maestro-fork.md +86 -86
- package/.claude/commands/maestro-init.md +78 -78
- package/.claude/commands/maestro-learn.md +140 -140
- package/.claude/commands/maestro-link-coordinate.md +1 -1
- package/.claude/commands/maestro-merge.md +61 -61
- package/.claude/commands/maestro-milestone-release.md +96 -96
- package/.claude/commands/maestro-overlay.md +178 -178
- package/.claude/commands/maestro-plan.md +154 -138
- package/.claude/commands/maestro-player.md +404 -404
- package/.claude/commands/maestro-quick.md +56 -56
- package/.claude/commands/maestro-ralph-execute.md +7 -18
- package/.claude/commands/maestro-ralph.md +48 -12
- package/.claude/commands/maestro-roadmap.md +1 -1
- package/.claude/commands/maestro-ui-design.md +93 -93
- package/.claude/commands/maestro-update.md +176 -176
- package/.claude/commands/maestro-verify.md +96 -90
- package/.claude/commands/maestro.md +121 -121
- package/.claude/commands/manage-codebase-rebuild.md +75 -75
- package/.claude/commands/manage-codebase-refresh.md +57 -57
- package/.claude/commands/manage-harvest.md +94 -94
- package/.claude/commands/manage-issue-discover.md +77 -77
- package/.claude/commands/manage-issue.md +73 -73
- package/.claude/commands/manage-knowhow-capture.md +193 -193
- package/.claude/commands/manage-knowhow.md +77 -77
- package/.claude/commands/manage-learn.md +67 -67
- package/.claude/commands/manage-status.md +51 -51
- package/.claude/commands/manage-wiki.md +62 -62
- package/.claude/commands/quality-auto-test.md +5 -1
- package/.claude/commands/quality-debug.md +125 -115
- package/.claude/commands/quality-refactor.md +55 -55
- package/.claude/commands/quality-retrospective.md +78 -78
- package/.claude/commands/quality-review.md +114 -108
- package/.claude/commands/quality-sync.md +51 -51
- package/.claude/commands/quality-test.md +107 -103
- package/.claude/commands/spec-add.md +49 -49
- package/.claude/commands/spec-load.md +51 -51
- package/.claude/commands/spec-remove.md +51 -51
- package/.claude/commands/spec-setup.md +51 -51
- package/.claude/commands/wiki-connect.md +62 -62
- package/.claude/commands/wiki-digest.md +69 -69
- package/.codex/skills/learn-decompose/SKILL.md +113 -113
- package/.codex/skills/learn-follow/SKILL.md +1 -1
- package/.codex/skills/learn-investigate/SKILL.md +83 -83
- package/.codex/skills/learn-retro/SKILL.md +83 -83
- package/.codex/skills/learn-second-opinion/SKILL.md +86 -86
- package/.codex/skills/maestro/SKILL.md +304 -304
- package/.codex/skills/maestro-analyze/SKILL.md +11 -3
- package/.codex/skills/maestro-brainstorm/SKILL.md +451 -397
- package/.codex/skills/maestro-composer/SKILL.md +213 -213
- package/.codex/skills/maestro-execute/SKILL.md +346 -318
- package/.codex/skills/maestro-fork/SKILL.md +56 -2
- package/.codex/skills/maestro-init/SKILL.md +40 -16
- package/.codex/skills/maestro-learn/SKILL.md +80 -80
- package/.codex/skills/maestro-link-coordinate/SKILL.md +257 -257
- package/.codex/skills/maestro-merge/SKILL.md +1 -1
- package/.codex/skills/maestro-milestone-audit/SKILL.md +1 -1
- package/.codex/skills/maestro-milestone-complete/SKILL.md +40 -9
- package/.codex/skills/maestro-milestone-release/SKILL.md +70 -70
- package/.codex/skills/maestro-overlay/SKILL.md +1 -1
- package/.codex/skills/maestro-plan/SKILL.md +29 -4
- package/.codex/skills/maestro-player/SKILL.md +323 -323
- package/.codex/skills/maestro-quick/SKILL.md +1 -1
- package/.codex/skills/maestro-ralph/SKILL.md +693 -578
- package/.codex/skills/maestro-roadmap/SKILL.md +518 -468
- package/.codex/skills/maestro-ui-design/SKILL.md +109 -12
- package/.codex/skills/maestro-verify/SKILL.md +27 -9
- package/.codex/skills/manage-codebase-rebuild/SKILL.md +3 -2
- package/.codex/skills/manage-codebase-refresh/SKILL.md +1 -1
- package/.codex/skills/manage-harvest/SKILL.md +91 -91
- package/.codex/skills/manage-issue/SKILL.md +19 -6
- package/.codex/skills/manage-issue-discover/SKILL.md +1 -1
- package/.codex/skills/manage-knowhow/SKILL.md +95 -95
- package/.codex/skills/manage-knowhow-capture/SKILL.md +110 -110
- package/.codex/skills/manage-learn/SKILL.md +1 -1
- package/.codex/skills/manage-status/SKILL.md +1 -1
- package/.codex/skills/manage-wiki/SKILL.md +55 -55
- package/.codex/skills/quality-auto-test/SKILL.md +553 -547
- package/.codex/skills/quality-debug/SKILL.md +345 -334
- package/.codex/skills/quality-refactor/SKILL.md +1 -1
- package/.codex/skills/quality-retrospective/SKILL.md +292 -292
- package/.codex/skills/quality-review/SKILL.md +365 -364
- package/.codex/skills/quality-sync/SKILL.md +1 -1
- package/.codex/skills/quality-test/SKILL.md +507 -498
- package/.codex/skills/spec-add/SKILL.md +101 -101
- package/.codex/skills/spec-load/SKILL.md +77 -77
- package/.codex/skills/spec-map/SKILL.md +1 -1
- package/.codex/skills/spec-remove/SKILL.md +69 -69
- package/.codex/skills/spec-setup/SKILL.md +1 -1
- package/.codex/skills/team-coordinate/SKILL.md +2 -1
- package/.codex/skills/team-executor/SKILL.md +116 -115
- package/.codex/skills/team-lifecycle-v4/SKILL.md +2 -1
- package/.codex/skills/team-lifecycle-v4/instructions/agent-instruction.md +14 -6
- package/.codex/skills/team-lifecycle-v4/roles/analyst/role.md +16 -4
- package/.codex/skills/team-lifecycle-v4/roles/executor/commands/implement.md +7 -1
- package/.codex/skills/team-lifecycle-v4/roles/planner/role.md +16 -4
- package/.codex/skills/team-lifecycle-v4/roles/writer/role.md +8 -2
- package/.codex/skills/team-quality-assurance/SKILL.md +2 -1
- package/.codex/skills/team-quality-assurance/roles/scout/role.md +9 -2
- package/.codex/skills/team-review/SKILL.md +2 -1
- package/.codex/skills/team-review/roles/reviewer/role.md +10 -1
- package/.codex/skills/team-review/roles/scanner/role.md +10 -1
- package/.codex/skills/team-tech-debt/SKILL.md +144 -143
- package/.codex/skills/team-tech-debt/roles/executor/role.md +9 -5
- package/.codex/skills/team-tech-debt/roles/scanner/role.md +10 -0
- package/.codex/skills/team-tech-debt/roles/validator/role.md +8 -2
- package/.codex/skills/team-testing/SKILL.md +2 -1
- package/.codex/skills/team-testing/roles/executor/role.md +8 -2
- package/.codex/skills/team-testing/roles/generator/role.md +8 -2
- package/.codex/skills/wiki-connect/SKILL.md +73 -73
- package/.codex/skills/wiki-digest/SKILL.md +87 -87
- package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js +4 -0
- package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js +6 -0
- package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js.map +1 -1
- package/dashboard/dist-server/shared/agent-types.d.ts +2 -0
- package/dashboard/dist-server/src/agents/cli-agent-runner.d.ts +2 -0
- package/dashboard/dist-server/src/agents/cli-agent-runner.js +4 -0
- package/dashboard/dist-server/src/agents/cli-agent-runner.js.map +1 -1
- package/dashboard/dist-server/src/commands/delegate.d.ts +2 -0
- package/dashboard/dist-server/src/commands/delegate.js +18 -0
- package/dashboard/dist-server/src/commands/delegate.js.map +1 -1
- package/dashboard/dist-server/src/config/cli-tools-config.d.ts +6 -0
- package/dashboard/dist-server/src/config/cli-tools-config.js +2 -0
- package/dashboard/dist-server/src/config/cli-tools-config.js.map +1 -1
- package/dist/shared/agent-types.d.ts +2 -0
- package/dist/shared/agent-types.d.ts.map +1 -1
- package/dist/src/agents/cli-agent-runner.d.ts +2 -0
- package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
- package/dist/src/agents/cli-agent-runner.js +4 -0
- package/dist/src/agents/cli-agent-runner.js.map +1 -1
- package/dist/src/commands/config.d.ts.map +1 -1
- package/dist/src/commands/config.js +29 -1
- package/dist/src/commands/config.js.map +1 -1
- package/dist/src/commands/delegate.d.ts +2 -0
- package/dist/src/commands/delegate.d.ts.map +1 -1
- package/dist/src/commands/delegate.js +18 -0
- package/dist/src/commands/delegate.js.map +1 -1
- package/dist/src/commands/launcher.d.ts.map +1 -1
- package/dist/src/commands/launcher.js +27 -4
- package/dist/src/commands/launcher.js.map +1 -1
- package/dist/src/config/cli-tools-config.d.ts +6 -0
- package/dist/src/config/cli-tools-config.d.ts.map +1 -1
- package/dist/src/config/cli-tools-config.js +2 -0
- package/dist/src/config/cli-tools-config.js.map +1 -1
- package/dist/src/core/overlay/applier.d.ts.map +1 -1
- package/dist/src/core/overlay/applier.js +65 -5
- package/dist/src/core/overlay/applier.js.map +1 -1
- package/dist/src/core/overlay/loader.d.ts.map +1 -1
- package/dist/src/core/overlay/loader.js +9 -4
- package/dist/src/core/overlay/loader.js.map +1 -1
- package/dist/src/core/overlay/types.d.ts +2 -0
- package/dist/src/core/overlay/types.d.ts.map +1 -1
- package/dist/src/core/overlay/types.js +2 -0
- package/dist/src/core/overlay/types.js.map +1 -1
- package/dist/src/tui/tools-ui/ToolsDashboard.d.ts.map +1 -1
- package/dist/src/tui/tools-ui/ToolsDashboard.js +1 -1
- package/dist/src/tui/tools-ui/ToolsDashboard.js.map +1 -1
- package/dist/src/tui/tools-ui/ToolsOverview.d.ts.map +1 -1
- package/dist/src/tui/tools-ui/ToolsOverview.js +51 -4
- package/dist/src/tui/tools-ui/ToolsOverview.js.map +1 -1
- package/package.json +1 -1
- package/shared/agent-types.ts +2 -0
- package/workflows/analyze.md +24 -2
- package/workflows/auto-test.md +12 -0
- package/workflows/brainstorm.md +11 -1
- package/workflows/debug.md +13 -4
- package/workflows/delegate-protocol.codex.md +65 -0
- package/workflows/plan.md +14 -4
- package/workflows/test.md +10 -0
|
@@ -1,115 +1,116 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: team-executor
|
|
3
|
-
description:
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
| `--session`
|
|
43
|
-
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
| `
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
|
62
|
-
|
|
|
63
|
-
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
|
98
|
-
|
|
|
99
|
-
|
|
|
100
|
-
|
|
|
101
|
-
|
|
|
102
|
-
|
|
|
103
|
-
|
|
|
104
|
-
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
- [ ]
|
|
110
|
-
- [ ]
|
|
111
|
-
- [ ]
|
|
112
|
-
- [ ]
|
|
113
|
-
- [ ]
|
|
114
|
-
- [ ]
|
|
115
|
-
|
|
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
|
|
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
|
-
```
|
|
30
|
-
|
|
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" --
|
|
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
|
-
```
|
|
297
|
-
|
|
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" --
|
|
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
|
-
|
|
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[]" --
|
|
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
|
-
|
|
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[]" --
|
|
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
|
-
|
|
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
|
-
|
|
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[]" --
|
|
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
|
-
|
|
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" --
|
|
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
|
-
|
|
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" --
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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
|
|
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
|
|
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
|
|