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.
- 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 +126 -126
- package/.claude/commands/maestro-brainstorm.md +100 -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 +150 -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 +9 -3
- 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 +1 -1
- package/.claude/commands/quality-debug.md +121 -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 +103 -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 +4 -3
- package/.codex/skills/maestro-brainstorm/SKILL.md +442 -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 +19 -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 +681 -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 +547 -547
- package/.codex/skills/quality-debug/SKILL.md +339 -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 +498 -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/delegate-protocol.codex.md +65 -0
|
@@ -1,114 +1,120 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: maestro-execute
|
|
3
|
-
description: Execute plan with
|
|
4
|
-
argument-hint: "[phase] [--auto-commit] [--method agent|cli|auto] [--executor <tool>] [--dir <path>] [-y]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Edit
|
|
9
|
-
- Bash
|
|
10
|
-
- Glob
|
|
11
|
-
- Grep
|
|
12
|
-
- Agent
|
|
13
|
-
- AskUserQuestion
|
|
14
|
-
---
|
|
15
|
-
<purpose>
|
|
16
|
-
Execute all tasks in a plan using wave-based parallel execution with dependency-aware ordering. Each plan is executed independently (plans串行, plan内wave并行). Task summaries are written to the plan's scratch directory under `.summaries/`. Registers EXC artifact in state.json.
|
|
17
|
-
|
|
18
|
-
Invoked after /maestro-plan produces a confirmed plan. When called without args on a milestone, finds all pending plans and executes them sequentially.
|
|
19
|
-
</purpose>
|
|
20
|
-
|
|
21
|
-
<required_reading>
|
|
22
|
-
@~/.maestro/workflows/execute.md
|
|
23
|
-
</required_reading>
|
|
24
|
-
|
|
25
|
-
<deferred_reading>
|
|
26
|
-
- [task.json](~/.maestro/templates/task.json) — read when reading task definitions
|
|
27
|
-
- [state.json](~/.maestro/templates/state.json) — read when registering artifact
|
|
28
|
-
</deferred_reading>
|
|
29
|
-
|
|
30
|
-
<context>
|
|
31
|
-
$ARGUMENTS — phase number, or no args for milestone-wide execution, with optional flags.
|
|
32
|
-
|
|
33
|
-
Scope routing, flags, resolution logic, output directory format, artifact registration schema, and incremental learning extraction are defined in workflow `execute.md`.
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
→ Ask: "
|
|
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
|
-
|
|
1
|
+
---
|
|
2
|
+
name: maestro-execute
|
|
3
|
+
description: Execute plan with parallel waves and atomic commits
|
|
4
|
+
argument-hint: "[phase] [--auto-commit] [--method agent|cli|auto] [--executor <tool>] [--dir <path>] [-y]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Edit
|
|
9
|
+
- Bash
|
|
10
|
+
- Glob
|
|
11
|
+
- Grep
|
|
12
|
+
- Agent
|
|
13
|
+
- AskUserQuestion
|
|
14
|
+
---
|
|
15
|
+
<purpose>
|
|
16
|
+
Execute all tasks in a plan using wave-based parallel execution with dependency-aware ordering. Each plan is executed independently (plans串行, plan内wave并行). Task summaries are written to the plan's scratch directory under `.summaries/`. Registers EXC artifact in state.json.
|
|
17
|
+
|
|
18
|
+
Invoked after /maestro-plan produces a confirmed plan. When called without args on a milestone, finds all pending plans and executes them sequentially.
|
|
19
|
+
</purpose>
|
|
20
|
+
|
|
21
|
+
<required_reading>
|
|
22
|
+
@~/.maestro/workflows/execute.md
|
|
23
|
+
</required_reading>
|
|
24
|
+
|
|
25
|
+
<deferred_reading>
|
|
26
|
+
- [task.json](~/.maestro/templates/task.json) — read when reading task definitions
|
|
27
|
+
- [state.json](~/.maestro/templates/state.json) — read when registering artifact
|
|
28
|
+
</deferred_reading>
|
|
29
|
+
|
|
30
|
+
<context>
|
|
31
|
+
$ARGUMENTS — phase number, or no args for milestone-wide execution, with optional flags.
|
|
32
|
+
|
|
33
|
+
Scope routing, flags, resolution logic, output directory format, artifact registration schema, and incremental learning extraction are defined in workflow `execute.md`.
|
|
34
|
+
|
|
35
|
+
### Pre-load context (before task execution)
|
|
36
|
+
|
|
37
|
+
1. **Codebase docs**: If `.workflow/codebase/doc-index.json` exists, read `ARCHITECTURE.md` for module boundaries. Pass as shared context to executor agents.
|
|
38
|
+
2. **Wiki knowledge**: Run `maestro wiki search "<phase keywords>" --json 2>/dev/null`. If results found, extract top 5 entries as prior knowledge context for agents.
|
|
39
|
+
3. Both are optional — proceed without if unavailable (log warning).
|
|
40
|
+
</context>
|
|
41
|
+
|
|
42
|
+
<execution>
|
|
43
|
+
### Pre-flight: team conflict check
|
|
44
|
+
|
|
45
|
+
Before any task execution, run:
|
|
46
|
+
```
|
|
47
|
+
Bash("maestro collab preflight --phase <phase-number>")
|
|
48
|
+
```
|
|
49
|
+
If exit code is 1, present warnings and ask whether to proceed.
|
|
50
|
+
|
|
51
|
+
Follow '~/.maestro/workflows/execute.md' completely.
|
|
52
|
+
|
|
53
|
+
### Post-task Knowledge Inquiry
|
|
54
|
+
|
|
55
|
+
After each task completes, evaluate inquiry triggers:
|
|
56
|
+
|
|
57
|
+
1. **Execution deviation**: If task summary mentions approach change, dependency swap, or plan deviation:
|
|
58
|
+
→ Ask: "TASK-{NNN} deviated from the plan. Should this decision be recorded as an architecture constraint? (`/spec-add arch`)"
|
|
59
|
+
|
|
60
|
+
2. **Retry success**: If task required ≥2 retries before completion:
|
|
61
|
+
→ Ask: "TASK-{NNN} succeeded after {N} retries. Should this fix pattern be documented? (`/spec-add debug`)"
|
|
62
|
+
|
|
63
|
+
3. **Implicit knowledge**: If task summary contains design rationale ("chose X because", "rejected Y due to"):
|
|
64
|
+
→ Ask: "Design decision detected. Should it be recorded as a learning? (`/spec-add learning`)"
|
|
65
|
+
|
|
66
|
+
If user confirms, invoke `Skill({ skill: "spec-add", args: "<category> <content>" })` with extracted content.
|
|
67
|
+
|
|
68
|
+
### Issue Status Sync
|
|
69
|
+
|
|
70
|
+
On each task completion, if `task.issue_id` exists, sync status back to the issue in `.workflow/issues/issues.jsonl`:
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
For each completed/failed TASK with issue_id:
|
|
74
|
+
Read issue from issues.jsonl by issue_id
|
|
75
|
+
Collect all task_refs[] statuses for that issue:
|
|
76
|
+
all task_refs completed → issue.status = "resolved"
|
|
77
|
+
any task_ref failed → issue.status = "in_progress"
|
|
78
|
+
Append history entry: { action: "executed", at: <ISO>, by: "maestro-execute", summary: "TASK-{NNN} {status}" }
|
|
79
|
+
Write updated issue back to issues.jsonl
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
**Report format on completion:**
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
=== EXECUTION COMPLETE ===
|
|
86
|
+
Plans executed: {plans_count}
|
|
87
|
+
Completed: {completed_count}/{total_count} tasks
|
|
88
|
+
Failed: {failed_count} tasks
|
|
89
|
+
|
|
90
|
+
Summaries: {plan_dir}/.summaries/
|
|
91
|
+
Tasks: {plan_dir}/.task/
|
|
92
|
+
|
|
93
|
+
Next steps:
|
|
94
|
+
/maestro-verify -- Verify execution results
|
|
95
|
+
/maestro-verify --dir {dir} -- Verify specific plan
|
|
96
|
+
/manage-status -- View project dashboard
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
If failed tasks exist, suggest /quality-debug for investigation.
|
|
100
|
+
</execution>
|
|
101
|
+
|
|
102
|
+
<error_codes>
|
|
103
|
+
| Code | Severity | Condition | Recovery |
|
|
104
|
+
|------|----------|-----------|----------|
|
|
105
|
+
| E001 | error | No pending plans found | Verify plans exist, run maestro-plan first |
|
|
106
|
+
| E002 | error | Plan directory not found | Check --dir path |
|
|
107
|
+
| E003 | error | plan.json not found in directory | Verify plan.json exists, run maestro-plan first |
|
|
108
|
+
| E004 | error | No pending tasks, all tasks already completed | Check task statuses, reset if needed |
|
|
109
|
+
| W001 | warning | Executor completed with partial failures | Check task dependencies, retry failed wave |
|
|
110
|
+
</error_codes>
|
|
111
|
+
|
|
112
|
+
<success_criteria>
|
|
113
|
+
- [ ] All pending plans identified and executed sequentially
|
|
114
|
+
- [ ] Within each plan: waves executed in parallel, waves串行
|
|
115
|
+
- [ ] `.summaries/TASK-{NNN}-summary.md` written for each completed task
|
|
116
|
+
- [ ] `.task/TASK-{NNN}.json` statuses updated (completed|blocked)
|
|
117
|
+
- [ ] EXC artifact registered in state.json for each plan executed
|
|
118
|
+
- [ ] Incremental learnings extracted to specs/learnings.md
|
|
119
|
+
- [ ] state.json updated with execution progress
|
|
120
|
+
</success_criteria>
|
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: maestro-fork
|
|
3
|
-
description: Create
|
|
4
|
-
argument-hint: "-m <milestone-number> [--base <branch>] [--sync]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Edit
|
|
9
|
-
- Bash
|
|
10
|
-
- Glob
|
|
11
|
-
- Grep
|
|
12
|
-
- Agent
|
|
13
|
-
- AskUserQuestion
|
|
14
|
-
---
|
|
15
|
-
<purpose>
|
|
16
|
-
Create a git worktree for an entire milestone, enabling inter-milestone parallel development. The worktree scope is milestone-level — all scratch artifacts for that milestone are owned by the worktree.
|
|
17
|
-
|
|
18
|
-
Since `.workflow/` is gitignored, this command explicitly copies project context and existing milestone scratch artifacts into the worktree. Per-phase parallelism within a milestone is NOT supported.
|
|
19
|
-
|
|
20
|
-
Also supports `--sync` mode to pull latest main branch changes and shared artifacts into an active worktree (prevents source and artifact drift for long-lived worktrees).
|
|
21
|
-
|
|
22
|
-
Produces `.workflow/worktrees.json` registry in the main worktree and `.workflow/worktree-scope.json` marker in the worktree.
|
|
23
|
-
</purpose>
|
|
24
|
-
|
|
25
|
-
<required_reading>
|
|
26
|
-
@~/.maestro/workflows/fork.md
|
|
27
|
-
</required_reading>
|
|
28
|
-
|
|
29
|
-
<deferred_reading>
|
|
30
|
-
- [worktrees.json](~/.maestro/templates/worktrees.json) — read when updating registry
|
|
31
|
-
- [worktree-scope.json](~/.maestro/templates/worktree-scope.json) — read when writing scope marker
|
|
32
|
-
</deferred_reading>
|
|
33
|
-
|
|
34
|
-
<context>
|
|
35
|
-
$ARGUMENTS -- milestone number and optional flags.
|
|
36
|
-
|
|
37
|
-
Modes (`Fork` / `Sync`), flags (`-m`, `--base`, `--sync`), milestone resolution, worktree layout, and artifact scoping are defined in workflow `fork.md`.
|
|
38
|
-
</context>
|
|
39
|
-
|
|
40
|
-
<execution>
|
|
41
|
-
Follow '~/.maestro/workflows/fork.md' completely.
|
|
42
|
-
|
|
43
|
-
Fork and sync algorithm steps are defined in workflow `fork.md`.
|
|
44
|
-
|
|
45
|
-
**Next-step routing on completion:**
|
|
46
|
-
|
|
47
|
-
Fork mode:
|
|
48
|
-
- Enter worktree → `cd {wt.path} && /maestro-analyze`
|
|
49
|
-
- Automated → `maestro delegate "run full lifecycle for milestone" --cd {wt.path} --mode write`
|
|
50
|
-
- Status → Skill({ skill: "manage-status" })
|
|
51
|
-
|
|
52
|
-
Sync mode:
|
|
53
|
-
- Sync complete → resume work in worktree
|
|
54
|
-
- Conflicts found → resolve manually, then retry
|
|
55
|
-
</execution>
|
|
56
|
-
|
|
57
|
-
<error_codes>
|
|
58
|
-
| Code | Severity | Condition | Recovery |
|
|
59
|
-
|------|----------|-----------|----------|
|
|
60
|
-
| E001 | error | Project not initialized | Run maestro-init first |
|
|
61
|
-
| E002 | error | No roadmap found | Run maestro-roadmap first |
|
|
62
|
-
| E003 | error | Running inside a worktree | Run from main worktree |
|
|
63
|
-
| E004 | error | No milestone number provided | Provide `-m <N>` |
|
|
64
|
-
| E005 | error | No milestones defined in state.json | Run maestro-roadmap first |
|
|
65
|
-
| E006 | error | Milestone number out of range | Check available milestones |
|
|
66
|
-
| E007 | error | No active worktree for milestone (--sync) | Check worktrees.json |
|
|
67
|
-
| E008 | error | Milestone already has active worktree | Merge or cleanup first |
|
|
68
|
-
</error_codes>
|
|
69
|
-
|
|
70
|
-
<success_criteria>
|
|
71
|
-
Fork mode:
|
|
72
|
-
- [ ] Milestone resolved from state.json.milestones[]
|
|
73
|
-
- [ ] Git worktree created with branch (`milestone/{slug}`)
|
|
74
|
-
- [ ] Shared `.workflow/` files copied (project.md, roadmap.md, config.json, specs/)
|
|
75
|
-
- [ ] Milestone scratch artifacts copied (filtered from artifact registry)
|
|
76
|
-
- [ ] `worktree-scope.json` written with milestone scope
|
|
77
|
-
- [ ] Scoped `state.json` written (only this milestone's artifacts)
|
|
78
|
-
- [ ] `worktrees.json` registry updated in main worktree
|
|
79
|
-
- [ ] Milestone marked as `"forked"` in main `state.json.milestones[]`
|
|
80
|
-
- [ ] Summary displayed with next-step commands
|
|
81
|
-
|
|
82
|
-
Sync mode:
|
|
83
|
-
- [ ] Git merge main into worktree branch
|
|
84
|
-
- [ ] Shared artifacts re-copied (project.md, roadmap.md, config.json, specs/)
|
|
85
|
-
- [ ] Conflicts reported if any
|
|
86
|
-
</success_criteria>
|
|
1
|
+
---
|
|
2
|
+
name: maestro-fork
|
|
3
|
+
description: Create or sync milestone worktree for parallel dev
|
|
4
|
+
argument-hint: "-m <milestone-number> [--base <branch>] [--sync]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Edit
|
|
9
|
+
- Bash
|
|
10
|
+
- Glob
|
|
11
|
+
- Grep
|
|
12
|
+
- Agent
|
|
13
|
+
- AskUserQuestion
|
|
14
|
+
---
|
|
15
|
+
<purpose>
|
|
16
|
+
Create a git worktree for an entire milestone, enabling inter-milestone parallel development. The worktree scope is milestone-level — all scratch artifacts for that milestone are owned by the worktree.
|
|
17
|
+
|
|
18
|
+
Since `.workflow/` is gitignored, this command explicitly copies project context and existing milestone scratch artifacts into the worktree. Per-phase parallelism within a milestone is NOT supported.
|
|
19
|
+
|
|
20
|
+
Also supports `--sync` mode to pull latest main branch changes and shared artifacts into an active worktree (prevents source and artifact drift for long-lived worktrees).
|
|
21
|
+
|
|
22
|
+
Produces `.workflow/worktrees.json` registry in the main worktree and `.workflow/worktree-scope.json` marker in the worktree.
|
|
23
|
+
</purpose>
|
|
24
|
+
|
|
25
|
+
<required_reading>
|
|
26
|
+
@~/.maestro/workflows/fork.md
|
|
27
|
+
</required_reading>
|
|
28
|
+
|
|
29
|
+
<deferred_reading>
|
|
30
|
+
- [worktrees.json](~/.maestro/templates/worktrees.json) — read when updating registry
|
|
31
|
+
- [worktree-scope.json](~/.maestro/templates/worktree-scope.json) — read when writing scope marker
|
|
32
|
+
</deferred_reading>
|
|
33
|
+
|
|
34
|
+
<context>
|
|
35
|
+
$ARGUMENTS -- milestone number and optional flags.
|
|
36
|
+
|
|
37
|
+
Modes (`Fork` / `Sync`), flags (`-m`, `--base`, `--sync`), milestone resolution, worktree layout, and artifact scoping are defined in workflow `fork.md`.
|
|
38
|
+
</context>
|
|
39
|
+
|
|
40
|
+
<execution>
|
|
41
|
+
Follow '~/.maestro/workflows/fork.md' completely.
|
|
42
|
+
|
|
43
|
+
Fork and sync algorithm steps are defined in workflow `fork.md`.
|
|
44
|
+
|
|
45
|
+
**Next-step routing on completion:**
|
|
46
|
+
|
|
47
|
+
Fork mode:
|
|
48
|
+
- Enter worktree → `cd {wt.path} && /maestro-analyze`
|
|
49
|
+
- Automated → `maestro delegate "run full lifecycle for milestone" --cd {wt.path} --mode write`
|
|
50
|
+
- Status → Skill({ skill: "manage-status" })
|
|
51
|
+
|
|
52
|
+
Sync mode:
|
|
53
|
+
- Sync complete → resume work in worktree
|
|
54
|
+
- Conflicts found → resolve manually, then retry
|
|
55
|
+
</execution>
|
|
56
|
+
|
|
57
|
+
<error_codes>
|
|
58
|
+
| Code | Severity | Condition | Recovery |
|
|
59
|
+
|------|----------|-----------|----------|
|
|
60
|
+
| E001 | error | Project not initialized | Run maestro-init first |
|
|
61
|
+
| E002 | error | No roadmap found | Run maestro-roadmap first |
|
|
62
|
+
| E003 | error | Running inside a worktree | Run from main worktree |
|
|
63
|
+
| E004 | error | No milestone number provided | Provide `-m <N>` |
|
|
64
|
+
| E005 | error | No milestones defined in state.json | Run maestro-roadmap first |
|
|
65
|
+
| E006 | error | Milestone number out of range | Check available milestones |
|
|
66
|
+
| E007 | error | No active worktree for milestone (--sync) | Check worktrees.json |
|
|
67
|
+
| E008 | error | Milestone already has active worktree | Merge or cleanup first |
|
|
68
|
+
</error_codes>
|
|
69
|
+
|
|
70
|
+
<success_criteria>
|
|
71
|
+
Fork mode:
|
|
72
|
+
- [ ] Milestone resolved from state.json.milestones[]
|
|
73
|
+
- [ ] Git worktree created with branch (`milestone/{slug}`)
|
|
74
|
+
- [ ] Shared `.workflow/` files copied (project.md, roadmap.md, config.json, specs/)
|
|
75
|
+
- [ ] Milestone scratch artifacts copied (filtered from artifact registry)
|
|
76
|
+
- [ ] `worktree-scope.json` written with milestone scope
|
|
77
|
+
- [ ] Scoped `state.json` written (only this milestone's artifacts)
|
|
78
|
+
- [ ] `worktrees.json` registry updated in main worktree
|
|
79
|
+
- [ ] Milestone marked as `"forked"` in main `state.json.milestones[]`
|
|
80
|
+
- [ ] Summary displayed with next-step commands
|
|
81
|
+
|
|
82
|
+
Sync mode:
|
|
83
|
+
- [ ] Git merge main into worktree branch
|
|
84
|
+
- [ ] Shared artifacts re-copied (project.md, roadmap.md, config.json, specs/)
|
|
85
|
+
- [ ] Conflicts reported if any
|
|
86
|
+
</success_criteria>
|
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: maestro-init
|
|
3
|
-
description: Initialize project with auto state detection
|
|
4
|
-
argument-hint: "[-y] [--from-brainstorm SESSION-ID]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Bash
|
|
9
|
-
- Glob
|
|
10
|
-
- Grep
|
|
11
|
-
- Agent
|
|
12
|
-
- AskUserQuestion
|
|
13
|
-
---
|
|
14
|
-
<purpose>
|
|
15
|
-
Initialize a new project through auto state detection and unified flow. Invoked when starting a fresh project or onboarding an existing codebase into workflow management. Produces the `.workflow/` directory structure with project.md, state.json, config.json, and specs. Does NOT create roadmap — use maestro-roadmap (light mode, default) or maestro-roadmap --mode full (spec package) as the next step.
|
|
16
|
-
</purpose>
|
|
17
|
-
|
|
18
|
-
<required_reading>
|
|
19
|
-
@~/.maestro/workflows/init.md
|
|
20
|
-
@~/.maestro/templates/project.md
|
|
21
|
-
@~/.maestro/templates/state.json
|
|
22
|
-
@~/.maestro/templates/config.json
|
|
23
|
-
</required_reading>
|
|
24
|
-
|
|
25
|
-
<context>
|
|
26
|
-
**Flags:**
|
|
27
|
-
- `-y` -- Automatic mode. After config questions, runs research without further interaction. Expects idea document via @ reference.
|
|
28
|
-
- `--from-brainstorm SESSION-ID` -- Import from a brainstorm session. Reads guidance-specification.md to pre-fill project vision, goals, constraints, and terminology. Skips interactive questioning.
|
|
29
|
-
|
|
30
|
-
**Load project state if exists:**
|
|
31
|
-
Check for `.workflow/state.json` -- loads context if project already initialized.
|
|
32
|
-
</context>
|
|
33
|
-
|
|
34
|
-
<execution>
|
|
35
|
-
Follow '~/.maestro/workflows/init.md' completely.
|
|
36
|
-
|
|
37
|
-
**Report format on completion:**
|
|
38
|
-
|
|
39
|
-
```
|
|
40
|
-
=== WORKFLOW INITIALIZED ===
|
|
41
|
-
Project: {project_name}
|
|
42
|
-
State: .workflow/state.json (active)
|
|
43
|
-
|
|
44
|
-
Created:
|
|
45
|
-
.workflow/project.md
|
|
46
|
-
.workflow/state.json
|
|
47
|
-
.workflow/config.json
|
|
48
|
-
.workflow/specs/
|
|
49
|
-
|
|
50
|
-
Next steps (choose one path to create roadmap):
|
|
51
|
-
/maestro-roadmap <requirement> -- Direct interactive roadmap (light, default)
|
|
52
|
-
/maestro-roadmap --mode full <idea> -- Full spec package + roadmap (heavy)
|
|
53
|
-
|
|
54
|
-
Other commands:
|
|
55
|
-
/manage-status -- View project dashboard
|
|
56
|
-
/maestro-brainstorm <topic> -- Explore ideas first
|
|
57
|
-
/maestro-quick <task> -- Quick ad-hoc task
|
|
58
|
-
```
|
|
59
|
-
</execution>
|
|
60
|
-
|
|
61
|
-
<error_codes>
|
|
62
|
-
| Code | Severity | Condition | Recovery |
|
|
63
|
-
|------|----------|-----------|----------|
|
|
64
|
-
| E001 | error | No arguments provided when -y requires @ reference | Check arguments format, re-run with correct input |
|
|
65
|
-
| E002 | error | .workflow/ already exists for greenfield init | Check .workflow/ directory state, resolve conflicts |
|
|
66
|
-
| E003 | error | Brainstorm session not found (--from-brainstorm) | Check arguments format, re-run with correct input |
|
|
67
|
-
| W001 | warning | Research agent failed, continuing with partial results | Retry research or proceed with partial results |
|
|
68
|
-
</error_codes>
|
|
69
|
-
|
|
70
|
-
<success_criteria>
|
|
71
|
-
- [ ] Deep questioning completed (threads followed, not rushed) — or extracted from document/brainstorm
|
|
72
|
-
- [ ] `.workflow/project.md` created with Core Value, Requirements (Validated/Active/Out of Scope), Key Decisions
|
|
73
|
-
- [ ] `.workflow/state.json` created with artifacts[] array, initialized to idle state
|
|
74
|
-
- [ ] `.workflow/config.json` created with user-selected granularity, workflow agents, gate preferences
|
|
75
|
-
- [ ] `.workflow/specs/` initialized with convention files
|
|
76
|
-
- [ ] Research completed (if enabled) — 4 parallel agents spawned
|
|
77
|
-
- [ ] User knows next step is `/maestro-roadmap` (light) or `/maestro-roadmap --mode full` (spec package)
|
|
78
|
-
</success_criteria>
|
|
1
|
+
---
|
|
2
|
+
name: maestro-init
|
|
3
|
+
description: Initialize project with auto state detection
|
|
4
|
+
argument-hint: "[-y] [--from-brainstorm SESSION-ID]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
- Agent
|
|
12
|
+
- AskUserQuestion
|
|
13
|
+
---
|
|
14
|
+
<purpose>
|
|
15
|
+
Initialize a new project through auto state detection and unified flow. Invoked when starting a fresh project or onboarding an existing codebase into workflow management. Produces the `.workflow/` directory structure with project.md, state.json, config.json, and specs. Does NOT create roadmap — use maestro-roadmap (light mode, default) or maestro-roadmap --mode full (spec package) as the next step.
|
|
16
|
+
</purpose>
|
|
17
|
+
|
|
18
|
+
<required_reading>
|
|
19
|
+
@~/.maestro/workflows/init.md
|
|
20
|
+
@~/.maestro/templates/project.md
|
|
21
|
+
@~/.maestro/templates/state.json
|
|
22
|
+
@~/.maestro/templates/config.json
|
|
23
|
+
</required_reading>
|
|
24
|
+
|
|
25
|
+
<context>
|
|
26
|
+
**Flags:**
|
|
27
|
+
- `-y` -- Automatic mode. After config questions, runs research without further interaction. Expects idea document via @ reference.
|
|
28
|
+
- `--from-brainstorm SESSION-ID` -- Import from a brainstorm session. Reads guidance-specification.md to pre-fill project vision, goals, constraints, and terminology. Skips interactive questioning.
|
|
29
|
+
|
|
30
|
+
**Load project state if exists:**
|
|
31
|
+
Check for `.workflow/state.json` -- loads context if project already initialized.
|
|
32
|
+
</context>
|
|
33
|
+
|
|
34
|
+
<execution>
|
|
35
|
+
Follow '~/.maestro/workflows/init.md' completely.
|
|
36
|
+
|
|
37
|
+
**Report format on completion:**
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
=== WORKFLOW INITIALIZED ===
|
|
41
|
+
Project: {project_name}
|
|
42
|
+
State: .workflow/state.json (active)
|
|
43
|
+
|
|
44
|
+
Created:
|
|
45
|
+
.workflow/project.md
|
|
46
|
+
.workflow/state.json
|
|
47
|
+
.workflow/config.json
|
|
48
|
+
.workflow/specs/
|
|
49
|
+
|
|
50
|
+
Next steps (choose one path to create roadmap):
|
|
51
|
+
/maestro-roadmap <requirement> -- Direct interactive roadmap (light, default)
|
|
52
|
+
/maestro-roadmap --mode full <idea> -- Full spec package + roadmap (heavy)
|
|
53
|
+
|
|
54
|
+
Other commands:
|
|
55
|
+
/manage-status -- View project dashboard
|
|
56
|
+
/maestro-brainstorm <topic> -- Explore ideas first
|
|
57
|
+
/maestro-quick <task> -- Quick ad-hoc task
|
|
58
|
+
```
|
|
59
|
+
</execution>
|
|
60
|
+
|
|
61
|
+
<error_codes>
|
|
62
|
+
| Code | Severity | Condition | Recovery |
|
|
63
|
+
|------|----------|-----------|----------|
|
|
64
|
+
| E001 | error | No arguments provided when -y requires @ reference | Check arguments format, re-run with correct input |
|
|
65
|
+
| E002 | error | .workflow/ already exists for greenfield init | Check .workflow/ directory state, resolve conflicts |
|
|
66
|
+
| E003 | error | Brainstorm session not found (--from-brainstorm) | Check arguments format, re-run with correct input |
|
|
67
|
+
| W001 | warning | Research agent failed, continuing with partial results | Retry research or proceed with partial results |
|
|
68
|
+
</error_codes>
|
|
69
|
+
|
|
70
|
+
<success_criteria>
|
|
71
|
+
- [ ] Deep questioning completed (threads followed, not rushed) — or extracted from document/brainstorm
|
|
72
|
+
- [ ] `.workflow/project.md` created with Core Value, Requirements (Validated/Active/Out of Scope), Key Decisions
|
|
73
|
+
- [ ] `.workflow/state.json` created with artifacts[] array, initialized to idle state
|
|
74
|
+
- [ ] `.workflow/config.json` created with user-selected granularity, workflow agents, gate preferences
|
|
75
|
+
- [ ] `.workflow/specs/` initialized with convention files
|
|
76
|
+
- [ ] Research completed (if enabled) — 4 parallel agents spawned
|
|
77
|
+
- [ ] User knows next step is `/maestro-roadmap` (light) or `/maestro-roadmap --mode full` (spec package)
|
|
78
|
+
</success_criteria>
|