maestro-flow 0.4.11 → 0.4.12

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 (166) hide show
  1. package/.agents/agents/cli-explore-agent.md +1 -3
  2. package/.agents/agents/cross-role-reviewer.md +173 -0
  3. package/.agents/agents/role-design-author.md +218 -0
  4. package/.agents/agents/ui-design-agent.md +1 -18
  5. package/.agents/agents/workflow-analyzer.md +1 -1
  6. package/.agents/agents/workflow-external-researcher.md +1 -1
  7. package/.agents/skills/maestro/SKILL.md +61 -27
  8. package/.agents/skills/maestro-analyze/SKILL.md +30 -4
  9. package/.agents/skills/maestro-blueprint/SKILL.md +132 -0
  10. package/.agents/skills/maestro-brainstorm/SKILL.md +119 -103
  11. package/.agents/skills/maestro-help/SKILL.md +48 -14
  12. package/.agents/skills/maestro-help/index/catalog.json +29 -11
  13. package/.agents/skills/maestro-help/phases/01-parse-intent.md +1 -1
  14. package/.agents/skills/maestro-help/phases/02-search-present.md +6 -4
  15. package/.agents/skills/maestro-help/phases/03-workflow-guide.md +60 -33
  16. package/.agents/skills/maestro-init/SKILL.md +3 -3
  17. package/.agents/skills/maestro-milestone-audit/SKILL.md +5 -3
  18. package/.agents/skills/maestro-milestone-complete/SKILL.md +7 -5
  19. package/.agents/skills/maestro-plan/SKILL.md +14 -4
  20. package/.agents/skills/maestro-ralph/SKILL.md +297 -226
  21. package/.agents/skills/maestro-ralph-execute/SKILL.md +81 -67
  22. package/.agents/skills/maestro-roadmap/SKILL.md +42 -81
  23. package/.agents/skills/quality-auto-test/SKILL.md +1 -1
  24. package/.agents/skills/team-lifecycle-v4/roles/analyst/role.md +1 -1
  25. package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
  26. package/.agents/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  27. package/.agents/skills/team-lifecycle-v4/templates/architecture.md +3 -3
  28. package/.agents/skills/team-lifecycle-v4/templates/epics.md +2 -2
  29. package/.agents/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
  30. package/.agents/skills/team-lifecycle-v4/templates/requirements.md +2 -2
  31. package/.agy/agents/cli-explore-agent.md +1 -3
  32. package/.agy/agents/cross-role-reviewer.md +170 -0
  33. package/.agy/agents/role-design-author.md +215 -0
  34. package/.agy/agents/ui-design-agent.md +1 -18
  35. package/.agy/agents/workflow-analyzer.md +1 -1
  36. package/.agy/agents/workflow-external-researcher.md +1 -1
  37. package/.agy/skills/maestro/SKILL.md +61 -27
  38. package/.agy/skills/maestro-analyze/SKILL.md +30 -4
  39. package/.agy/skills/maestro-blueprint/SKILL.md +132 -0
  40. package/.agy/skills/maestro-brainstorm/SKILL.md +119 -103
  41. package/.agy/skills/maestro-help/SKILL.md +48 -14
  42. package/.agy/skills/maestro-help/index/catalog.json +29 -11
  43. package/.agy/skills/maestro-help/phases/01-parse-intent.md +1 -1
  44. package/.agy/skills/maestro-help/phases/02-search-present.md +6 -4
  45. package/.agy/skills/maestro-help/phases/03-workflow-guide.md +60 -33
  46. package/.agy/skills/maestro-init/SKILL.md +3 -3
  47. package/.agy/skills/maestro-milestone-audit/SKILL.md +5 -3
  48. package/.agy/skills/maestro-milestone-complete/SKILL.md +7 -5
  49. package/.agy/skills/maestro-plan/SKILL.md +14 -4
  50. package/.agy/skills/maestro-ralph/SKILL.md +297 -226
  51. package/.agy/skills/maestro-ralph-execute/SKILL.md +81 -67
  52. package/.agy/skills/maestro-roadmap/SKILL.md +42 -81
  53. package/.agy/skills/quality-auto-test/SKILL.md +1 -1
  54. package/.agy/skills/team-lifecycle-v4/roles/analyst/role.md +1 -1
  55. package/.agy/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
  56. package/.agy/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  57. package/.agy/skills/team-lifecycle-v4/templates/architecture.md +3 -3
  58. package/.agy/skills/team-lifecycle-v4/templates/epics.md +2 -2
  59. package/.agy/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
  60. package/.agy/skills/team-lifecycle-v4/templates/requirements.md +2 -2
  61. package/.claude/agents/cli-explore-agent.md +1 -3
  62. package/.claude/agents/cross-role-reviewer.md +171 -0
  63. package/.claude/agents/role-design-author.md +216 -0
  64. package/.claude/agents/ui-design-agent.md +1 -18
  65. package/.claude/agents/workflow-analyzer.md +1 -1
  66. package/.claude/agents/workflow-external-researcher.md +1 -1
  67. package/.claude/commands/maestro-analyze.md +30 -4
  68. package/.claude/commands/maestro-blueprint.md +130 -0
  69. package/.claude/commands/maestro-brainstorm.md +132 -116
  70. package/.claude/commands/maestro-init.md +3 -3
  71. package/.claude/commands/maestro-milestone-audit.md +5 -3
  72. package/.claude/commands/maestro-milestone-complete.md +7 -5
  73. package/.claude/commands/maestro-plan.md +14 -4
  74. package/.claude/commands/maestro-ralph-execute.md +81 -67
  75. package/.claude/commands/maestro-ralph.md +297 -226
  76. package/.claude/commands/maestro-roadmap.md +42 -81
  77. package/.claude/commands/maestro.md +61 -27
  78. package/.claude/commands/quality-auto-test.md +1 -1
  79. package/.claude/skills/maestro-help/SKILL.md +48 -14
  80. package/.claude/skills/maestro-help/index/catalog.json +29 -11
  81. package/.claude/skills/maestro-help/phases/01-parse-intent.md +1 -1
  82. package/.claude/skills/maestro-help/phases/02-search-present.md +6 -4
  83. package/.claude/skills/maestro-help/phases/03-workflow-guide.md +60 -33
  84. package/.claude/skills/team-lifecycle-v4/roles/analyst/role.md +1 -1
  85. package/.claude/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
  86. package/.claude/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  87. package/.claude/skills/team-lifecycle-v4/templates/architecture.md +3 -3
  88. package/.claude/skills/team-lifecycle-v4/templates/epics.md +2 -2
  89. package/.claude/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
  90. package/.claude/skills/team-lifecycle-v4/templates/requirements.md +2 -2
  91. package/.codex/skills/maestro/SKILL.md +75 -38
  92. package/.codex/skills/maestro-amend/SKILL.md +157 -0
  93. package/.codex/skills/maestro-analyze/SKILL.md +71 -23
  94. package/.codex/skills/maestro-blueprint/SKILL.md +122 -0
  95. package/.codex/skills/maestro-brainstorm/SKILL.md +135 -45
  96. package/.codex/skills/maestro-composer/SKILL.md +1 -1
  97. package/.codex/skills/maestro-execute/SKILL.md +13 -4
  98. package/.codex/skills/maestro-help/SKILL.md +28 -18
  99. package/.codex/skills/maestro-help/catalog.json +29 -11
  100. package/.codex/skills/maestro-init/SKILL.md +7 -7
  101. package/.codex/skills/maestro-plan/SKILL.md +27 -9
  102. package/.codex/skills/maestro-ralph/SKILL.md +740 -601
  103. package/.codex/skills/maestro-roadmap/SKILL.md +55 -72
  104. package/.codex/skills/maestro-update/SKILL.md +169 -0
  105. package/.codex/skills/maestro-verify/SKILL.md +11 -2
  106. package/.codex/skills/manage-codebase-rebuild/SKILL.md +2 -2
  107. package/.codex/skills/manage-harvest/SKILL.md +10 -2
  108. package/.codex/skills/quality-retrospective/SKILL.md +9 -2
  109. package/.codex/skills/team-lifecycle-v4/roles/analyst/role.md +2 -2
  110. package/.codex/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
  111. package/.codex/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  112. package/.codex/skills/team-lifecycle-v4/templates/architecture.md +3 -3
  113. package/.codex/skills/team-lifecycle-v4/templates/epics.md +2 -2
  114. package/.codex/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
  115. package/.codex/skills/team-lifecycle-v4/templates/requirements.md +2 -2
  116. package/README.md +8 -8
  117. package/README.zh-CN.md +8 -8
  118. package/dashboard/dist-server/dashboard/src/server/routes/settings.js +3 -3
  119. package/dashboard/dist-server/dashboard/src/server/routes/settings.js.map +1 -1
  120. package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
  121. package/dist/src/agents/cli-agent-runner.js +13 -7
  122. package/dist/src/agents/cli-agent-runner.js.map +1 -1
  123. package/dist/src/commands/spec.d.ts.map +1 -1
  124. package/dist/src/commands/spec.js +8 -1
  125. package/dist/src/commands/spec.js.map +1 -1
  126. package/dist/src/tools/spec-init.d.ts +16 -2
  127. package/dist/src/tools/spec-init.d.ts.map +1 -1
  128. package/dist/src/tools/spec-init.js +58 -187
  129. package/dist/src/tools/spec-init.js.map +1 -1
  130. package/dist/src/tools/spec-loader.d.ts.map +1 -1
  131. package/dist/src/tools/spec-loader.js +16 -16
  132. package/dist/src/tools/spec-loader.js.map +1 -1
  133. package/dist/src/tools/spec-seeds.d.ts +33 -0
  134. package/dist/src/tools/spec-seeds.d.ts.map +1 -0
  135. package/dist/src/tools/spec-seeds.js +200 -0
  136. package/dist/src/tools/spec-seeds.js.map +1 -0
  137. package/dist/src/tools/spec-writer.d.ts.map +1 -1
  138. package/dist/src/tools/spec-writer.js +7 -9
  139. package/dist/src/tools/spec-writer.js.map +1 -1
  140. package/dist/src/utils/update-notices.js +12 -0
  141. package/dist/src/utils/update-notices.js.map +1 -1
  142. package/package.json +1 -1
  143. package/templates/business-test-report.json +1 -1
  144. package/templates/index.json +1 -1
  145. package/templates/roadmap.md +15 -9
  146. package/templates/state.json +18 -17
  147. package/workflows/analyze.md +79 -11
  148. package/workflows/auto-test.md +6 -6
  149. package/workflows/blueprint.md +431 -0
  150. package/workflows/brainstorm.md +603 -496
  151. package/workflows/business-test.md +7 -7
  152. package/workflows/codebase-rebuild.md +4 -4
  153. package/workflows/harvest.md +184 -10
  154. package/workflows/init.md +9 -8
  155. package/workflows/maestro.md +1 -1
  156. package/workflows/milestone-audit.md +12 -4
  157. package/workflows/milestone-complete.md +11 -6
  158. package/workflows/plan.md +88 -22
  159. package/workflows/roadmap-common.md +1 -1
  160. package/workflows/roadmap.md +13 -3
  161. package/workflows/spec-generate.md +24 -13
  162. package/workflows/ui-design.md +2 -2
  163. package/workflows/ui-style.md +1 -1
  164. package/.agents/agents/conceptual-planning-agent.md +0 -247
  165. package/.agy/agents/conceptual-planning-agent.md +0 -244
  166. package/.claude/agents/conceptual-planning-agent.md +0 -245
@@ -70,7 +70,7 @@
70
70
  | 命令 | Guide 文档 |
71
71
  |------|-----------|
72
72
  | maestro-analyze/plan/execute/verify | `guide/command-usage-guide.md` (主干管线) |
73
- | maestro-init/roadmap | `guide/quick-start-guide.md` |
73
+ | maestro-init/roadmap/blueprint | `guide/quick-start-guide.md` |
74
74
  | maestro-ralph | `guide/maestro-ralph-guide.md` |
75
75
  | maestro (协调器) | `guide/maestro-coordinator-guide.md` |
76
76
  | manage-* | `guide/command-usage-guide.md` (管理) |
@@ -91,9 +91,11 @@
91
91
  | 当前状态 | 推荐命令 | 原因 |
92
92
  |---------|---------|------|
93
93
  | 无 .workflow/ | `/maestro-init` | 项目未初始化,需要先创建工作区 |
94
- | init 完成,无 roadmap | `/maestro-roadmap` | 需要路线图指导后续 Phase |
95
- | roadmap 完成,phase=pending | `/maestro-analyze` | 准备开始分析阶段 |
96
- | analyze 完成 | `/maestro-plan` | 分析完成,进入规划 |
94
+ | init 完成,无上游 context | `/maestro-brainstorm` 或 `/maestro-analyze "topic"` | 先探索再规划;brainstorm 用于发散,analyze 宏观用于代码库分析 |
95
+ | analyze 完成,scope_verdict=large | `/maestro-roadmap --from analyze:ANL-xxx` | 大范围需求,需要 Milestone > Phase 分解 |
96
+ | analyze 完成,scope_verdict=medium/small | `/maestro-plan --from analyze:ANL-xxx` | 跳过 roadmap,直接规划(Path C) |
97
+ | roadmap 完成,phase=pending | `/maestro-analyze 1` | 微观分析:Phase 级深入探索 |
98
+ | analyze (微观) 完成 | `/maestro-plan 1` | Phase 级规划 |
97
99
  | plan 完成 | `/maestro-execute` | 规划完成,开始执行 |
98
100
  | execute 完成 | `/maestro-verify` | 执行完成,验证成果 |
99
101
  | verify 有 gaps | `/maestro-analyze --gaps` | 发现差距,重新分析 |
@@ -33,36 +33,46 @@ const taskPatterns = [
33
33
 
34
34
  #### Step 4.2: 推荐工作流
35
35
 
36
- **新项目** (复杂度: 高):
36
+ **新项目 — Path A** (复杂度: 高):
37
37
 
38
38
  ```markdown
39
39
  ## 新项目工作流
40
40
 
41
- ### 路径 1: 最简路径(适合快速启动)
42
- 1. `/maestro-init` — 初始化 .workflow/ 目录
43
- 2. `/maestro-roadmap "项目目标" -y` — 生成路线图
44
- 3. 按里程碑执行: analyze → plan → execute → verify
41
+ ### 路径 A: 完整新项目
42
+ 1. `/maestro-brainstorm "项目描述"` — 发散探索,多角色创意
43
+ 2. `/maestro-blueprint` (可选) 7-phase 正式规格文档化
44
+ 3. `/maestro-init --from brainstorm:ID`
45
+ 4. `/maestro-analyze "topic"` — 宏观分析,探索影响面 → scope_verdict
46
+ 5. `/maestro-roadmap --from analyze:ANL-xxx` — 纯编排,Milestone > Phase 分解
47
+ 6. `/maestro-analyze 1` — 微观分析,Phase 级深入
48
+ 7. `/maestro-plan 1` → `/maestro-execute` → `/maestro-verify`
45
49
 
46
- ### 路径 2: 从头脑风暴开始(适合需要创意探索)
47
- 1. `/maestro-brainstorm "项目描述"` — 多角色头脑风暴
48
- 2. `/maestro-init --from-brainstorm ANL-xxx` — 基于分析初始化
49
- 3. `/maestro-roadmap "创建路线图" -y`
50
+ ### 路径 E: 纯规格文档(不进执行链)
51
+ 1. `/maestro-blueprint "project idea"` — 供人阅读和决策
50
52
 
51
- ### 路径 3: 完整规范链(适合大型项目)
52
- 1. `/maestro-init`
53
- 2. `/maestro-spec-generate` — 7 阶段规范生成
53
+ ### 路径 F: 纯探索(不进执行链)
54
+ 1. `/maestro-brainstorm "idea"` — 供人决策
54
55
  ```
55
56
 
56
- **功能开发** (复杂度: ):
57
+ **旧项目大功能 — Path B** (复杂度: ):
57
58
 
58
59
  ```markdown
59
- ## 功能开发工作流
60
+ ## 旧项目大功能工作流
60
61
 
61
- ### 主干管线(标准流程)
62
- 1. `/maestro-analyze [phase]` — 分析需求和现有代码
63
- 2. `/maestro-plan [phase]` — 生成执行计划
64
- 3. `/maestro-execute [phase]` 执行实现
65
- 4. `/maestro-verify [phase]` — 验证成果
62
+ 1. `/maestro-analyze "feature X"` — 宏观分析 → scope_verdict=large
63
+ 2. `/maestro-roadmap --from analyze:ANL-xxx` — Milestone > Phase 分解
64
+ 3. `/maestro-analyze 1` — 微观分析
65
+ 4. `/maestro-plan 1` `/maestro-execute` → `/maestro-verify`
66
+ ```
67
+
68
+ **中等功能 — Path C** (复杂度: 中,跳过 roadmap):
69
+
70
+ ```markdown
71
+ ## 中等功能工作流
72
+
73
+ 1. `/maestro-analyze "feature X"` — 宏观分析 → scope_verdict=medium
74
+ 2. `/maestro-plan --from analyze:ANL-xxx` — 直达规划,跳过 roadmap
75
+ 3. `/maestro-execute` → `/maestro-verify`
66
76
 
67
77
  ### 快速渠道(简单功能)
68
78
  1. `/maestro-quick "功能描述"` — 一键完成
@@ -71,13 +81,22 @@ const taskPatterns = [
71
81
  1. `/maestro -y "功能描述"` — 自动选择并执行完整流程
72
82
  ```
73
83
 
74
- **Bug 修复** (复杂度: 低-中):
84
+ **小改动 — Path D** (复杂度: ):
75
85
 
76
86
  ```markdown
77
- ## Bug 修复工作流
87
+ ## 小改动工作流
88
+
89
+ 1. `/maestro-plan "fix auth bug"` — 直接规划
90
+ 2. `/maestro-execute` → `/maestro-verify`
78
91
 
79
92
  ### 快速修复(已知问题)
80
93
  1. `/maestro-quick "修复 Bug 描述"`
94
+ ```
95
+
96
+ **Bug 追踪** (Issue 闭环):
97
+
98
+ ```markdown
99
+ ## Bug 追踪工作流
81
100
 
82
101
  ### Issue 闭环(需要追踪)
83
102
  1. `/manage-issue-discover by-prompt "问题描述"` — 发现 Issue
@@ -109,7 +128,10 @@ const taskPatterns = [
109
128
  对需要全景视角的用户,展示 Mermaid 图:
110
129
 
111
130
  ```
112
- 主干管线: analyze plan → execute → verify → quality (review/test) → milestone-audit → milestone-complete
131
+ 上游起源: brainstorm(发散) | blueprint(收敛) → 可选
132
+ 理解层: analyze "topic"(宏观) → scope_verdict 路由
133
+ 编排层: roadmap(可选,仅 scope_verdict=large 时建议)
134
+ 执行层: plan → execute → verify → quality → milestone-audit → milestone-complete
113
135
  快速渠道: maestro-quick → (直接完成)
114
136
  Issue 闭环: discover → create → analyze --gaps → plan --gaps → execute → close
115
137
  全自动: /maestro -y → (自动路由)
@@ -122,11 +144,16 @@ Issue 闭环: discover → create → analyze --gaps → plan --gaps → execute
122
144
  ```markdown
123
145
  ## 核心概念
124
146
 
125
- - **Milestone**: 项目阶段,包含多个 Phase
126
- - **Phase**: 单个工作单元,走 analyze → plan → execute → verify 生命周期
147
+ - **Roadmap**: 项目级常驻规划文档,包含多个 Milestone
148
+ - **Milestone**: 可独立交付的版本节点(v0.1.0-rc1),包含多个 Phase
149
+ - **Phase**: Milestone 内的同步屏障执行阶段,走 analyze → plan → execute → verify 生命周期
150
+ - **Task**: Phase 内的具体代码修改单元(wave DAG 管理并行)
151
+ - **Blueprint**: 正式规格文档化命令(7-phase 收敛),与 brainstorm 并列作为上游起源
152
+ - **Analyze 双层**: 宏观(文本参数)探索影响面产出 scope_verdict;微观(数字参数)Phase 级深入分析
153
+ - **scope_verdict**: analyze 宏观完成后的路由建议 — large→roadmap, medium/small→直达 plan
127
154
  - **Overlay**: 非侵入式命令补丁,扩展命令行为而不修改源文件
128
155
  - **Delegate**: 将子任务委派给外部 AI 工具(Gemini/Claude/Codex)
129
- - **Spec**: 项目规范,自动注入到工作流中作为约束
156
+ - **Spec**: 项目约束规则(coding/arch/debug/test),自动注入到工作流
130
157
  - **Wiki**: 知识图谱,存储详细技术文档
131
158
  - **Ralph**: 自适应决策引擎,动态调整执行链
132
159
  ```
@@ -146,14 +173,14 @@ Issue 闭环: discover → create → analyze --gaps → plan --gaps → execute
146
173
  |---|------|------|---------|
147
174
  | 1 | `/maestro` | 智能协调器 | 不确定用哪个命令时,告诉它你的目标 |
148
175
  | 2 | `/maestro-init` | 初始化项目 | 首次使用,创建 .workflow/ 结构 |
149
- | 3 | `/maestro-roadmap` | 生成路线图 | 初始化后,规划里程碑 |
150
- | 4 | `/maestro-analyze` | 分析 | 开始一个 Phase 的分析 |
151
- | 5 | `/maestro-plan` | 规划 | 分析完成后,生成执行计划 |
152
- | 6 | `/maestro-execute` | 执行 | 计划完成后,执行实现 |
153
- | 7 | `/maestro-verify` | 验证 | 执行完成后,检查成果 |
154
- | 8 | `/maestro-quick` | 快速任务 | 简单任务跳过管线 |
155
- | 9 | `/quality-review` | 代码审查 | 执行后进行质量检查 |
156
- | 10 | `/manage-issue` | Issue 管理 | 追踪和解决 Bug |
176
+ | 3 | `/maestro-brainstorm` | 头脑风暴 | 新项目发散探索、多角色创意 |
177
+ | 4 | `/maestro-blueprint` | 规格文档化 | 正式 7-phase 收敛规格链 |
178
+ | 5 | `/maestro-analyze` | 双层分析 | 宏观: `"topic"` 探索影响面;微观: `1` Phase 级深入 |
179
+ | 6 | `/maestro-roadmap` | 路线图编排 | scope_verdict=large 时,Milestone > Phase 分解 |
180
+ | 7 | `/maestro-plan` | 规划 | 分析完成后生成执行计划,支持 `--from analyze:ANL-xxx` 直达 |
181
+ | 8 | `/maestro-execute` | 执行 | 计划完成后,执行实现 |
182
+ | 9 | `/maestro-verify` | 验证 | 执行完成后,检查成果 |
183
+ | 10 | `/maestro-quick` | 快速任务 | 简单任务跳过管线 |
157
184
  ```
158
185
 
159
186
  #### Step 5.2: 快速入门路径
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: maestro-init
3
3
  description: Initialize project with auto state detection
4
- argument-hint: "[-y] [--from-brainstorm SESSION-ID]"
4
+ argument-hint: "[-y] [--from <source>]"
5
5
  allowed-tools:
6
6
  - read_file
7
7
  - write_file
@@ -27,7 +27,7 @@ Initialize a new project through auto state detection and unified flow. Invoked
27
27
  <context>
28
28
  **Flags:**
29
29
  - `-y` -- Automatic mode. After config questions, runs research without further interaction. Expects idea document via @ reference.
30
- - `--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.
30
+ - `--from <source>` -- Load upstream context package (brainstorm:ID, @file, or path). Consumes context-package.json to pre-fill project vision, goals, constraints, and terminology. Skips interactive questioning. Alias: `--from-brainstorm`
31
31
 
32
32
  **Load project state if exists:**
33
33
  Check for `.workflow/state.json` -- loads context if project already initialized.
@@ -65,7 +65,7 @@ Other commands:
65
65
  |------|----------|-----------|----------|
66
66
  | E001 | error | No arguments provided when -y requires @ reference | Check arguments format, re-run with correct input |
67
67
  | E002 | error | .workflow/ already exists for greenfield init | Check .workflow/ directory state, resolve conflicts |
68
- | E003 | error | Brainstorm session not found (--from-brainstorm) | Check arguments format, re-run with correct input |
68
+ | E003 | error | Context source not found (--from / --from-brainstorm) | Check arguments format, re-run with correct input |
69
69
  | W001 | warning | Research agent failed, continuing with partial results | Retry research or proceed with partial results |
70
70
  </error_codes>
71
71
 
@@ -36,8 +36,10 @@ Milestone: $ARGUMENTS (optional -- defaults to current_milestone from state.json
36
36
 
37
37
  **Data source:**
38
38
  - `.workflow/state.json` — artifacts[], current_milestone, milestones[]
39
- - `.workflow/roadmap.md` — milestone-to-phase mapping
39
+ - `.workflow/roadmap.md` — milestone-to-phase mapping (standard milestones only)
40
40
  - Plan scratch dirs — for task status verification
41
+
42
+ **Adhoc milestone support (D-008):** When the target milestone has `type == "adhoc"` (or `type` field is missing, defaulting to `"standard"`), the audit skips roadmap.md parsing and phase coverage checks. It only validates artifact chain completeness (PLN→EXC exists) and runs integration checks.
41
43
  </context>
42
44
 
43
45
  <execution>
@@ -61,8 +63,8 @@ Audit checklist steps (phase coverage, ad-hoc completeness, execution completene
61
63
  </error_codes>
62
64
 
63
65
  <success_criteria>
64
- - [ ] All phases in milestone identified from roadmap
65
- - [ ] Artifact chains verified (ANL→PLN→EXC) per phase
66
+ - [ ] All phases in milestone identified from roadmap (standard) or milestone_obj.phases (adhoc)
67
+ - [ ] Artifact chains verified: ANL→PLN→EXC per phase (standard) or PLN→EXC exists (adhoc)
66
68
  - [ ] Ad-hoc artifacts checked for completion
67
69
  - [ ] Integration check completed (shared interfaces, data contracts)
68
70
  - [ ] Audit report written with clear PASS/FAIL verdict
@@ -28,8 +28,8 @@ Milestone: $ARGUMENTS (optional -- defaults to current_milestone from state.json
28
28
  **Requires:** `/maestro-milestone-audit` should have passed.
29
29
 
30
30
  **State files:**
31
- - `.workflow/state.json` — artifacts[], milestones[], current_milestone, milestone_history[]
32
- - `.workflow/roadmap.md` — milestone structure
31
+ - `.workflow/state.json` — artifacts[], milestones[] (with `type` field: `"standard"` | `"adhoc"`), current_milestone, milestone_history[]
32
+ - `.workflow/roadmap.md` — milestone structure (standard milestones only; adhoc milestones may not have roadmap)
33
33
  - `.workflow/milestones/{milestone}/audit-report.md` — audit results
34
34
  </context>
35
35
 
@@ -54,8 +54,10 @@ If user confirms promotion, invoke `invoke_skill({ skill: "spec-add", args: "<ca
54
54
 
55
55
  **Next-step routing on completion:**
56
56
  - Cut a release → `/maestro-milestone-release`
57
- - Next milestone → `/maestro-analyze` or `/maestro-plan 1`
57
+ - Next milestone → `/maestro-analyze` or `/maestro-plan 1` (standard milestones only)
58
58
  - View state → `/manage-status`
59
+
60
+ **Adhoc milestone (D-008):** When completing an adhoc milestone, skip roadmap snapshot and do not advance to next milestone. Set `current_milestone = null`, `status = "idle"`. Adhoc milestones are self-contained — no successor in roadmap chain.
59
61
  </execution>
60
62
 
61
63
  <error_codes>
@@ -71,7 +73,7 @@ If user confirms promotion, invoke `invoke_skill({ skill: "spec-add", args: "<ca
71
73
  - [ ] Scratch artifacts moved to milestones/{M}/artifacts/
72
74
  - [ ] Artifact entries archived to milestone_history
73
75
  - [ ] Knowhow extracted to specs/learnings.md
74
- - [ ] state.json updated: next milestone as current, artifacts[] cleared
75
- - [ ] Roadmap snapshot saved
76
+ - [ ] state.json updated: next milestone as current (standard) or current_milestone=null (adhoc), artifacts[] cleared
77
+ - [ ] Roadmap snapshot saved (standard only; adhoc skips)
76
78
  - [ ] project.md Context updated with milestone summary
77
79
  </success_criteria>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: maestro-plan
3
3
  description: Use when creating, revising, or verifying an execution plan for a phase or task
4
- argument-hint: "[phase] [--collab] [--spec SPEC-xxx] [-y] [--gaps] [--tdd] [--dir <path>] [--revise [instructions]] [--check <plan-dir>]"
4
+ argument-hint: "[phase] [--collab] [--spec SPEC-xxx] [-y] [--gaps] [--tdd] [--dir <path>] [--from <source>] [--revise [instructions]] [--check <plan-dir>]"
5
5
  allowed-tools:
6
6
  - read_file
7
7
  - write_file
@@ -41,12 +41,22 @@ $ARGUMENTS — phase number, or no args for milestone-wide planning, with option
41
41
  Scope routing, base flags (`--collab`, `--spec`, `-y`, `--gaps`, `--dir`), output directory format, and artifact registration are defined in workflow plan.md.
42
42
 
43
43
  **Command-level flags** (extensions beyond workflow base):
44
+ - `--from <source>`: Load upstream context directly (bypasses roadmap requirement):
45
+ - `analyze:ANL-xxx` → CONTEXT_DIR = artifact path, scope = "standalone"
46
+ - `blueprint:BLP-xxx` → CONTEXT_DIR = blueprint path, scope = "standalone"
47
+ - `@file` or `path/` → load context-package.json from path
44
48
  - `--revise [instructions]` -- See workflow plan.md § Revise Mode
45
49
  - `--check <plan-dir>` -- See workflow plan.md § Check Mode
46
50
 
47
- **Upstream context:**
48
- - Reads `context.md` from prior analyze artifact (auto-discovered from state.json or via --dir)
49
- - Reads `conclusions.json` if available (implementation_scope seeds task generation)
51
+ **Upstream context (resolution priority):**
52
+ 1. `--from analyze:ANL-xxx` uses analyze conclusions.implementation_scope directly
53
+ 2. `--from blueprint:BLP-xxx` uses blueprint requirements + architecture
54
+ 3. `--dir <path>` → explicit context directory (unchanged)
55
+ 4. Numeric arg → scope = "phase", resolve from roadmap (unchanged)
56
+ 5. No args + roadmap → scope = "milestone" (unchanged)
57
+ 6. No args + no roadmap → search state.json for latest analyze artifact, fallback standalone
58
+
59
+ **Ad-hoc milestone (D-008):** When scope resolves to "standalone" and `current_milestone == null`, plan auto-creates an adhoc milestone (`type: "adhoc"`) in state.json before proceeding. This ensures downstream milestone-audit/complete have a valid milestone context. See workflow plan.md § "Ad-hoc Milestone Auto-Creation".
50
60
 
51
61
  ### Role Knowledge
52
62
  `maestro wiki list --category arch` → select relevant → `maestro wiki load`