maestro-flow 0.3.4 → 0.3.6

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 (105) hide show
  1. package/.claude/commands/maestro-brainstorm.md +10 -1
  2. package/.claude/commands/maestro-milestone-audit.md +1 -1
  3. package/.claude/commands/maestro-milestone-complete.md +2 -1
  4. package/.claude/commands/maestro-milestone-release.md +96 -0
  5. package/.claude/commands/maestro-phase-add.md +9 -1
  6. package/.claude/commands/maestro-phase-transition.md +9 -1
  7. package/.claude/commands/maestro.md +6 -0
  8. package/.claude/commands/manage-codebase-rebuild.md +76 -50
  9. package/.claude/commands/manage-codebase-refresh.md +9 -1
  10. package/.claude/commands/quality-refactor.md +1 -1
  11. package/.claude/commands/quality-sync.md +9 -1
  12. package/.claude/commands/spec-setup.md +1 -1
  13. package/.codex/skills/maestro-coordinate/SKILL.md +20 -6
  14. package/.codex/skills/maestro-init/SKILL.md +167 -167
  15. package/.codex/skills/maestro-phase-add/SKILL.md +154 -154
  16. package/.codex/skills/maestro-phase-transition/SKILL.md +173 -173
  17. package/.codex/skills/maestro-verify/SKILL.md +566 -566
  18. package/.codex/skills/manage-codebase-rebuild/SKILL.md +5 -5
  19. package/.codex/skills/manage-codebase-refresh/SKILL.md +5 -5
  20. package/.codex/skills/manage-issue/SKILL.md +7 -7
  21. package/.codex/skills/manage-issue-analyze/SKILL.md +8 -8
  22. package/.codex/skills/manage-issue-discover/SKILL.md +503 -503
  23. package/.codex/skills/manage-issue-execute/SKILL.md +9 -9
  24. package/.codex/skills/manage-issue-plan/SKILL.md +8 -8
  25. package/.codex/skills/manage-learn/SKILL.md +7 -7
  26. package/.codex/skills/manage-memory/SKILL.md +72 -72
  27. package/.codex/skills/manage-memory-capture/SKILL.md +86 -86
  28. package/.codex/skills/manage-status/SKILL.md +2 -2
  29. package/.codex/skills/quality-business-test/SKILL.md +8 -8
  30. package/.codex/skills/quality-debug/SKILL.md +5 -5
  31. package/.codex/skills/quality-integration-test/SKILL.md +544 -544
  32. package/.codex/skills/quality-refactor/SKILL.md +6 -6
  33. package/.codex/skills/quality-retrospective/SKILL.md +13 -13
  34. package/.codex/skills/quality-review/SKILL.md +408 -408
  35. package/.codex/skills/quality-sync/SKILL.md +6 -6
  36. package/.codex/skills/quality-test/SKILL.md +5 -5
  37. package/.codex/skills/quality-test-gen/SKILL.md +447 -447
  38. package/.codex/skills/spec-add/SKILL.md +5 -5
  39. package/.codex/skills/spec-load/SKILL.md +5 -5
  40. package/.codex/skills/spec-map/SKILL.md +5 -5
  41. package/.codex/skills/spec-setup/SKILL.md +2 -2
  42. package/.codex/skills/team-coordinate/SKILL.md +1 -1
  43. package/.codex/skills/team-coordinate/roles/coordinator/commands/monitor.md +19 -10
  44. package/.codex/skills/team-coordinate/roles/coordinator/role.md +2 -2
  45. package/.codex/skills/team-executor/SKILL.md +1 -1
  46. package/.codex/skills/team-executor/roles/executor/commands/monitor.md +20 -9
  47. package/.codex/skills/team-lifecycle-v4/SKILL.md +2 -2
  48. package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +31 -12
  49. package/.codex/skills/team-lifecycle-v4/roles/coordinator/role.md +1 -1
  50. package/.codex/skills/team-quality-assurance/SKILL.md +1 -1
  51. package/.codex/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +20 -9
  52. package/.codex/skills/team-quality-assurance/roles/coordinator/role.md +1 -1
  53. package/.codex/skills/team-review/SKILL.md +1 -1
  54. package/.codex/skills/team-review/roles/coordinator/commands/monitor.md +20 -9
  55. package/.codex/skills/team-review/roles/coordinator/role.md +1 -1
  56. package/.codex/skills/team-tech-debt/SKILL.md +1 -1
  57. package/.codex/skills/team-tech-debt/roles/coordinator/commands/monitor.md +20 -9
  58. package/.codex/skills/team-tech-debt/roles/coordinator/role.md +1 -1
  59. package/.codex/skills/team-testing/SKILL.md +2 -2
  60. package/.codex/skills/team-testing/roles/coordinator/commands/monitor.md +20 -9
  61. package/.codex/skills/team-testing/roles/coordinator/role.md +1 -1
  62. package/chains/singles/spec-map.json +2 -2
  63. package/dashboard/dist-server/dashboard/src/server/agents/codex-app-server-adapter.d.ts +4 -0
  64. package/dashboard/dist-server/dashboard/src/server/agents/codex-app-server-adapter.js +47 -1
  65. package/dashboard/dist-server/dashboard/src/server/agents/codex-app-server-adapter.js.map +1 -1
  66. package/dashboard/dist-server/src/commands/delegate.d.ts +23 -0
  67. package/dashboard/dist-server/src/commands/delegate.js +91 -55
  68. package/dashboard/dist-server/src/commands/delegate.js.map +1 -1
  69. package/dist/src/brainstorm-visualize/frame.d.ts +8 -0
  70. package/dist/src/brainstorm-visualize/frame.d.ts.map +1 -0
  71. package/dist/src/brainstorm-visualize/frame.js +655 -0
  72. package/dist/src/brainstorm-visualize/frame.js.map +1 -0
  73. package/dist/src/brainstorm-visualize/server.d.ts +2 -0
  74. package/dist/src/brainstorm-visualize/server.d.ts.map +1 -0
  75. package/dist/src/brainstorm-visualize/server.js +180 -0
  76. package/dist/src/brainstorm-visualize/server.js.map +1 -0
  77. package/dist/src/cli.js +11 -1
  78. package/dist/src/cli.js.map +1 -1
  79. package/dist/src/commands/brainstorm-visualize.d.ts +3 -0
  80. package/dist/src/commands/brainstorm-visualize.d.ts.map +1 -0
  81. package/dist/src/commands/brainstorm-visualize.js +337 -0
  82. package/dist/src/commands/brainstorm-visualize.js.map +1 -0
  83. package/dist/src/commands/core-memory.d.ts +3 -0
  84. package/dist/src/commands/core-memory.d.ts.map +1 -0
  85. package/dist/src/commands/core-memory.js +101 -0
  86. package/dist/src/commands/core-memory.js.map +1 -0
  87. package/dist/src/commands/delegate.d.ts +23 -0
  88. package/dist/src/commands/delegate.d.ts.map +1 -1
  89. package/dist/src/commands/delegate.js +91 -55
  90. package/dist/src/commands/delegate.js.map +1 -1
  91. package/dist/src/commands/install-backend.d.ts.map +1 -1
  92. package/dist/src/commands/install-backend.js +5 -2
  93. package/dist/src/commands/install-backend.js.map +1 -1
  94. package/dist/src/mcp/delegate-channel-relay.d.ts.map +1 -1
  95. package/dist/src/mcp/delegate-channel-relay.js +6 -0
  96. package/dist/src/mcp/delegate-channel-relay.js.map +1 -1
  97. package/dist/src/mcp/server.d.ts.map +1 -1
  98. package/dist/src/mcp/server.js +28 -1
  99. package/dist/src/mcp/server.js.map +1 -1
  100. package/dist/src/tools/index.d.ts +1 -6
  101. package/dist/src/tools/index.d.ts.map +1 -1
  102. package/dist/src/tools/index.js +1 -460
  103. package/dist/src/tools/index.js.map +1 -1
  104. package/package.json +2 -1
  105. package/.claude/commands/spec-map.md +0 -82
@@ -1,173 +1,173 @@
1
- ---
2
- name: maestro-phase-transition
3
- description: Mark current or specified phase as complete, extract learnings, advance to next phase
4
- argument-hint: "[phase-number] [--force]"
5
- allowed-tools: Read, Write, Edit, Bash, Glob, Grep
6
- ---
7
-
8
- # Maestro Phase Transition (Single Agent)
9
-
10
- ## Usage
11
-
12
- ```bash
13
- $maestro-phase-transition ""
14
- $maestro-phase-transition "2"
15
- $maestro-phase-transition "3 --force"
16
- ```
17
-
18
- **Flags**:
19
- - `[phase-number]`: Phase to transition from (defaults to current_phase from state.json)
20
- - `--force`: Skip gap checks and force transition even with warnings
21
-
22
- **Output**: Updated state.json, completed phase index.json, initialized next phase, learnings extracted
23
-
24
- ---
25
-
26
- ## Overview
27
-
28
- State-machine transition skill. Validates that the current phase meets completion criteria (tasks done, verification passed, no unresolved gaps), marks it complete, extracts learnings, and advances to the next phase. Creates next phase directory if needed.
29
-
30
- ---
31
-
32
- ## Implementation
33
-
34
- ### Step 1: Parse Arguments
35
-
36
- Extract:
37
- - Phase number (optional, integer)
38
- - `--force` flag
39
-
40
- ### Step 2: Load State
41
-
42
- ```bash
43
- cat .workflow/state.json
44
- ```
45
-
46
- Determine phase number:
47
- - If provided: use specified phase
48
- - If omitted: use `current_phase` from state.json
49
- - If neither: error E001
50
-
51
- ### Step 3: Resolve Phase Directory
52
-
53
- ```bash
54
- ls -d .workflow/phases/*/ | grep "^.workflow/phases/0*{N}-"
55
- ```
56
-
57
- Read phase files:
58
- - `.workflow/phases/{NN}-{slug}/index.json` — phase metadata, task statuses
59
- - `.workflow/phases/{NN}-{slug}/verification.json` — verification results (if exists)
60
- - `.workflow/phases/{NN}-{slug}/review.json` — code review results (if exists)
61
-
62
- ### Step 4: Validate Completion
63
-
64
- Check the following (skip all if `--force`):
65
-
66
- 1. **Task completion**: All tasks in index.json have status "completed" or "skipped"
67
- 2. **Verification passed**: verification.json exists and verdict is not "FAIL" (E002 if failed)
68
- 3. **No critical gaps**: No unresolved critical gaps in verification results (E003)
69
- 4. **Review status**: Check review.json if exists
70
- - BLOCK verdict → W003 (warning, suggest quality-review fix)
71
- - No review.json → W004 (warning, suggest running quality-review)
72
- 5. **UAT status**: Check for test failures → W002
73
-
74
- If warnings only (no errors) and not `--force`: display warnings and ask user to confirm.
75
-
76
- ### Step 5: Mark Phase Complete
77
-
78
- Update `.workflow/phases/{NN}-{slug}/index.json`:
79
- ```json
80
- {
81
- "status": "complete",
82
- "completed_at": "<ISO timestamp>"
83
- }
84
- ```
85
-
86
- ### Step 6: Extract Learnings
87
-
88
- Analyze phase artifacts for learnings:
89
- 1. Read verification.json gaps and resolutions
90
- 2. Read review.json feedback patterns
91
- 3. Read task summaries for recurring themes
92
- 4. Identify patterns: what worked, what didn't, what to carry forward
93
-
94
- Append to `.workflow/specs/learnings.md`:
95
- ```markdown
96
- ## Phase {N}: {slug}
97
- **Completed**: {date}
98
-
99
- ### What Worked
100
- - {items}
101
-
102
- ### Challenges
103
- - {items}
104
-
105
- ### Carry Forward
106
- - {items}
107
- ```
108
-
109
- ### Step 7: Initialize Next Phase
110
-
111
- Determine next phase number = N + 1.
112
-
113
- Check if next phase directory exists:
114
- - If exists: verify index.json has status "pending", update to "active"
115
- - If not exists: create directory and initialize
116
-
117
- ```bash
118
- mkdir -p .workflow/phases/{NN+1}-{next_slug}
119
- ```
120
-
121
- Write `index.json` for next phase (read template from `~/.maestro/templates/index.json` if available):
122
- ```json
123
- {
124
- "phase": <N+1>,
125
- "status": "active",
126
- "created_at": "<ISO timestamp>"
127
- }
128
- ```
129
-
130
- ### Step 8: Update Project State
131
-
132
- Update `.workflow/state.json`:
133
- - `current_phase`: N + 1
134
- - `phases_completed`: append phase N
135
-
136
- ### Step 9: Completion Report
137
-
138
- ```
139
- === PHASE TRANSITION ===
140
- From: Phase {N} ({slug}) → COMPLETE
141
- To: Phase {N+1} ({next_slug}) → ACTIVE
142
-
143
- Learnings extracted: .workflow/specs/learnings.md
144
- State updated: .workflow/state.json
145
-
146
- Next steps:
147
- $maestro-plan "" -- Plan tasks for Phase {N+1}
148
- $maestro-status -- View project dashboard
149
- ```
150
-
151
- ---
152
-
153
- ## Error Handling
154
-
155
- | Code | Severity | Description | Recovery |
156
- |------|----------|-------------|----------|
157
- | E001 | error | Phase number required and could not determine | Specify phase number explicitly |
158
- | E002 | error | Phase has not passed verification | Run maestro-verify first |
159
- | E003 | error | Phase has unresolved critical gaps | Fix gaps, re-verify |
160
- | W001 | warning | Phase has warnings but no blockers | Proceed with confirmation |
161
- | W002 | warning | UAT test failures exist | Review recommended |
162
- | W003 | warning | Code review verdict is BLOCK | Fix review findings first |
163
- | W004 | warning | Code review not yet run | Run quality-review first |
164
-
165
- ---
166
-
167
- ## Core Rules
168
-
169
- 1. **Verify before transition** — refuse to transition without verification (unless --force)
170
- 2. **Learnings are mandatory** — always extract and persist learnings, even if minimal
171
- 3. **Next phase must be ready** — create directory and index.json before reporting success
172
- 4. **State consistency** — state.json and index.json must agree at all times
173
- 5. **Warnings need acknowledgment** — display warnings and require user confirmation (unless --force)
1
+ ---
2
+ name: maestro-phase-transition
3
+ description: Mark current or specified phase as complete, extract learnings, advance to next phase
4
+ argument-hint: "[phase-number] [--force]"
5
+ allowed-tools: Read, Write, Edit, Bash, Glob, Grep
6
+ ---
7
+
8
+ # Maestro Phase Transition (Single Agent)
9
+
10
+ ## Usage
11
+
12
+ ```bash
13
+ $maestro-phase-transition ""
14
+ $maestro-phase-transition "2"
15
+ $maestro-phase-transition "3 --force"
16
+ ```
17
+
18
+ **Flags**:
19
+ - `[phase-number]`: Phase to transition from (defaults to current_phase from state.json)
20
+ - `--force`: Skip gap checks and force transition even with warnings
21
+
22
+ **Output**: Updated state.json, completed phase index.json, initialized next phase, learnings extracted
23
+
24
+ ---
25
+
26
+ ## Overview
27
+
28
+ State-machine transition skill. Validates that the current phase meets completion criteria (tasks done, verification passed, no unresolved gaps), marks it complete, extracts learnings, and advances to the next phase. Creates next phase directory if needed.
29
+
30
+ ---
31
+
32
+ ## Implementation
33
+
34
+ ### Step 1: Parse Arguments
35
+
36
+ Extract:
37
+ - Phase number (optional, integer)
38
+ - `--force` flag
39
+
40
+ ### Step 2: Load State
41
+
42
+ ```bash
43
+ cat .workflow/state.json
44
+ ```
45
+
46
+ Determine phase number:
47
+ - If provided: use specified phase
48
+ - If omitted: use `current_phase` from state.json
49
+ - If neither: error E001
50
+
51
+ ### Step 3: Resolve Phase Directory
52
+
53
+ ```bash
54
+ ls -d .workflow/phases/*/ | grep "^.workflow/phases/0*{N}-"
55
+ ```
56
+
57
+ Read phase files:
58
+ - `.workflow/phases/{NN}-{slug}/index.json` — phase metadata, task statuses
59
+ - `.workflow/phases/{NN}-{slug}/verification.json` — verification results (if exists)
60
+ - `.workflow/phases/{NN}-{slug}/review.json` — code review results (if exists)
61
+
62
+ ### Step 4: Validate Completion
63
+
64
+ Check the following (skip all if `--force`):
65
+
66
+ 1. **Task completion**: All tasks in index.json have status "completed" or "skipped"
67
+ 2. **Verification passed**: verification.json exists and verdict is not "FAIL" (E002 if failed)
68
+ 3. **No critical gaps**: No unresolved critical gaps in verification results (E003)
69
+ 4. **Review status**: Check review.json if exists
70
+ - BLOCK verdict → W003 (warning, suggest quality-review fix)
71
+ - No review.json → W004 (warning, suggest running quality-review)
72
+ 5. **UAT status**: Check for test failures → W002
73
+
74
+ If warnings only (no errors) and not `--force`: display warnings and ask user to confirm.
75
+
76
+ ### Step 5: Mark Phase Complete
77
+
78
+ Update `.workflow/phases/{NN}-{slug}/index.json`:
79
+ ```json
80
+ {
81
+ "status": "complete",
82
+ "completed_at": "<ISO timestamp>"
83
+ }
84
+ ```
85
+
86
+ ### Step 6: Extract Learnings
87
+
88
+ Analyze phase artifacts for learnings:
89
+ 1. Read verification.json gaps and resolutions
90
+ 2. Read review.json feedback patterns
91
+ 3. Read task summaries for recurring themes
92
+ 4. Identify patterns: what worked, what didn't, what to carry forward
93
+
94
+ Append to `.workflow/specs/learnings.md`:
95
+ ```markdown
96
+ ## Phase {N}: {slug}
97
+ **Completed**: {date}
98
+
99
+ ### What Worked
100
+ - {items}
101
+
102
+ ### Challenges
103
+ - {items}
104
+
105
+ ### Carry Forward
106
+ - {items}
107
+ ```
108
+
109
+ ### Step 7: Initialize Next Phase
110
+
111
+ Determine next phase number = N + 1.
112
+
113
+ Check if next phase directory exists:
114
+ - If exists: verify index.json has status "pending", update to "active"
115
+ - If not exists: create directory and initialize
116
+
117
+ ```bash
118
+ mkdir -p .workflow/phases/{NN+1}-{next_slug}
119
+ ```
120
+
121
+ Write `index.json` for next phase (read template from `~/.maestro/templates/index.json` if available):
122
+ ```json
123
+ {
124
+ "phase": <N+1>,
125
+ "status": "active",
126
+ "created_at": "<ISO timestamp>"
127
+ }
128
+ ```
129
+
130
+ ### Step 8: Update Project State
131
+
132
+ Update `.workflow/state.json`:
133
+ - `current_phase`: N + 1
134
+ - `phases_completed`: append phase N
135
+
136
+ ### Step 9: Completion Report
137
+
138
+ ```
139
+ === PHASE TRANSITION ===
140
+ From: Phase {N} ({slug}) → COMPLETE
141
+ To: Phase {N+1} ({next_slug}) → ACTIVE
142
+
143
+ Learnings extracted: .workflow/specs/learnings.md
144
+ State updated: .workflow/state.json
145
+
146
+ Next steps:
147
+ $maestro-plan "" -- Plan tasks for Phase {N+1}
148
+ $manage-status -- View project dashboard
149
+ ```
150
+
151
+ ---
152
+
153
+ ## Error Handling
154
+
155
+ | Code | Severity | Description | Recovery |
156
+ |------|----------|-------------|----------|
157
+ | E001 | error | Phase number required and could not determine | Specify phase number explicitly |
158
+ | E002 | error | Phase has not passed verification | Run maestro-verify first |
159
+ | E003 | error | Phase has unresolved critical gaps | Fix gaps, re-verify |
160
+ | W001 | warning | Phase has warnings but no blockers | Proceed with confirmation |
161
+ | W002 | warning | UAT test failures exist | Review recommended |
162
+ | W003 | warning | Code review verdict is BLOCK | Fix review findings first |
163
+ | W004 | warning | Code review not yet run | Run quality-review first |
164
+
165
+ ---
166
+
167
+ ## Core Rules
168
+
169
+ 1. **Verify before transition** — refuse to transition without verification (unless --force)
170
+ 2. **Learnings are mandatory** — always extract and persist learnings, even if minimal
171
+ 3. **Next phase must be ready** — create directory and index.json before reporting success
172
+ 4. **State consistency** — state.json and index.json must agree at all times
173
+ 5. **Warnings need acknowledgment** — display warnings and require user confirmation (unless --force)