maestro-flow 0.4.11 → 0.4.13

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 (253) 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 +220 -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/learn-decompose/SKILL.md +6 -6
  8. package/.agents/skills/learn-follow/SKILL.md +4 -4
  9. package/.agents/skills/learn-investigate/SKILL.md +6 -6
  10. package/.agents/skills/learn-retro/SKILL.md +7 -7
  11. package/.agents/skills/learn-second-opinion/SKILL.md +4 -4
  12. package/.agents/skills/maestro/SKILL.md +61 -27
  13. package/.agents/skills/maestro-amend/SKILL.md +1 -0
  14. package/.agents/skills/maestro-analyze/SKILL.md +37 -4
  15. package/.agents/skills/maestro-blueprint/SKILL.md +133 -0
  16. package/.agents/skills/maestro-brainstorm/SKILL.md +120 -103
  17. package/.agents/skills/maestro-fork/SKILL.md +1 -1
  18. package/.agents/skills/maestro-guard/SKILL.md +3 -2
  19. package/.agents/skills/maestro-help/SKILL.md +48 -14
  20. package/.agents/skills/maestro-help/index/catalog.json +29 -11
  21. package/.agents/skills/maestro-help/phases/01-parse-intent.md +1 -1
  22. package/.agents/skills/maestro-help/phases/02-search-present.md +6 -4
  23. package/.agents/skills/maestro-help/phases/03-workflow-guide.md +60 -33
  24. package/.agents/skills/maestro-impeccable/SKILL.md +13 -11
  25. package/.agents/skills/maestro-init/SKILL.md +3 -3
  26. package/.agents/skills/maestro-milestone-audit/SKILL.md +5 -3
  27. package/.agents/skills/maestro-milestone-complete/SKILL.md +7 -5
  28. package/.agents/skills/maestro-milestone-release/SKILL.md +1 -1
  29. package/.agents/skills/maestro-plan/SKILL.md +16 -4
  30. package/.agents/skills/maestro-ralph/SKILL.md +297 -226
  31. package/.agents/skills/maestro-ralph-execute/SKILL.md +82 -67
  32. package/.agents/skills/maestro-roadmap/SKILL.md +43 -81
  33. package/.agents/skills/manage-harvest/SKILL.md +1 -0
  34. package/.agents/skills/manage-issue-discover/SKILL.md +1 -1
  35. package/.agents/skills/manage-knowhow/SKILL.md +1 -1
  36. package/.agents/skills/manage-learn/SKILL.md +4 -4
  37. package/.agents/skills/quality-auto-test/SKILL.md +6 -6
  38. package/.agents/skills/quality-refactor/SKILL.md +1 -1
  39. package/.agents/skills/quality-retrospective/SKILL.md +2 -2
  40. package/.agents/skills/security-audit/SKILL.md +24 -0
  41. package/.agents/skills/spec-remove/SKILL.md +6 -2
  42. package/.agents/skills/team-lifecycle-v4/roles/analyst/role.md +1 -1
  43. package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
  44. package/.agents/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  45. package/.agents/skills/team-lifecycle-v4/templates/architecture.md +3 -3
  46. package/.agents/skills/team-lifecycle-v4/templates/epics.md +2 -2
  47. package/.agents/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
  48. package/.agents/skills/team-lifecycle-v4/templates/requirements.md +2 -2
  49. package/.agy/agents/cli-explore-agent.md +1 -3
  50. package/.agy/agents/cross-role-reviewer.md +170 -0
  51. package/.agy/agents/role-design-author.md +217 -0
  52. package/.agy/agents/ui-design-agent.md +1 -18
  53. package/.agy/agents/workflow-analyzer.md +1 -1
  54. package/.agy/agents/workflow-external-researcher.md +1 -1
  55. package/.agy/skills/learn-decompose/SKILL.md +6 -6
  56. package/.agy/skills/learn-follow/SKILL.md +4 -4
  57. package/.agy/skills/learn-investigate/SKILL.md +6 -6
  58. package/.agy/skills/learn-retro/SKILL.md +7 -7
  59. package/.agy/skills/learn-second-opinion/SKILL.md +4 -4
  60. package/.agy/skills/maestro/SKILL.md +61 -27
  61. package/.agy/skills/maestro-amend/SKILL.md +1 -0
  62. package/.agy/skills/maestro-analyze/SKILL.md +37 -4
  63. package/.agy/skills/maestro-blueprint/SKILL.md +133 -0
  64. package/.agy/skills/maestro-brainstorm/SKILL.md +120 -103
  65. package/.agy/skills/maestro-fork/SKILL.md +1 -1
  66. package/.agy/skills/maestro-guard/SKILL.md +3 -2
  67. package/.agy/skills/maestro-help/SKILL.md +48 -14
  68. package/.agy/skills/maestro-help/index/catalog.json +29 -11
  69. package/.agy/skills/maestro-help/phases/01-parse-intent.md +1 -1
  70. package/.agy/skills/maestro-help/phases/02-search-present.md +6 -4
  71. package/.agy/skills/maestro-help/phases/03-workflow-guide.md +60 -33
  72. package/.agy/skills/maestro-impeccable/SKILL.md +13 -11
  73. package/.agy/skills/maestro-init/SKILL.md +3 -3
  74. package/.agy/skills/maestro-milestone-audit/SKILL.md +5 -3
  75. package/.agy/skills/maestro-milestone-complete/SKILL.md +7 -5
  76. package/.agy/skills/maestro-milestone-release/SKILL.md +1 -1
  77. package/.agy/skills/maestro-plan/SKILL.md +16 -4
  78. package/.agy/skills/maestro-ralph/SKILL.md +297 -226
  79. package/.agy/skills/maestro-ralph-execute/SKILL.md +82 -67
  80. package/.agy/skills/maestro-roadmap/SKILL.md +43 -81
  81. package/.agy/skills/manage-harvest/SKILL.md +1 -0
  82. package/.agy/skills/manage-issue-discover/SKILL.md +1 -1
  83. package/.agy/skills/manage-knowhow/SKILL.md +1 -1
  84. package/.agy/skills/manage-learn/SKILL.md +4 -4
  85. package/.agy/skills/quality-auto-test/SKILL.md +6 -6
  86. package/.agy/skills/quality-refactor/SKILL.md +1 -1
  87. package/.agy/skills/quality-retrospective/SKILL.md +2 -2
  88. package/.agy/skills/security-audit/SKILL.md +24 -0
  89. package/.agy/skills/spec-remove/SKILL.md +6 -2
  90. package/.agy/skills/team-lifecycle-v4/roles/analyst/role.md +1 -1
  91. package/.agy/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
  92. package/.agy/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  93. package/.agy/skills/team-lifecycle-v4/templates/architecture.md +3 -3
  94. package/.agy/skills/team-lifecycle-v4/templates/epics.md +2 -2
  95. package/.agy/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
  96. package/.agy/skills/team-lifecycle-v4/templates/requirements.md +2 -2
  97. package/.claude/agents/cli-explore-agent.md +1 -3
  98. package/.claude/agents/cross-role-reviewer.md +171 -0
  99. package/.claude/agents/role-design-author.md +218 -0
  100. package/.claude/agents/ui-design-agent.md +1 -18
  101. package/.claude/agents/workflow-analyzer.md +1 -1
  102. package/.claude/agents/workflow-external-researcher.md +1 -1
  103. package/.claude/commands/learn-decompose.md +6 -6
  104. package/.claude/commands/learn-follow.md +4 -4
  105. package/.claude/commands/learn-investigate.md +6 -6
  106. package/.claude/commands/learn-retro.md +7 -7
  107. package/.claude/commands/learn-second-opinion.md +4 -4
  108. package/.claude/commands/maestro-amend.md +1 -0
  109. package/.claude/commands/maestro-analyze.md +37 -4
  110. package/.claude/commands/maestro-blueprint.md +131 -0
  111. package/.claude/commands/maestro-brainstorm.md +133 -116
  112. package/.claude/commands/maestro-fork.md +1 -1
  113. package/.claude/commands/maestro-guard.md +3 -2
  114. package/.claude/commands/maestro-impeccable.md +13 -11
  115. package/.claude/commands/maestro-init.md +3 -3
  116. package/.claude/commands/maestro-milestone-audit.md +5 -3
  117. package/.claude/commands/maestro-milestone-complete.md +7 -5
  118. package/.claude/commands/maestro-milestone-release.md +1 -1
  119. package/.claude/commands/maestro-plan.md +16 -4
  120. package/.claude/commands/maestro-ralph-execute.md +82 -67
  121. package/.claude/commands/maestro-ralph.md +297 -226
  122. package/.claude/commands/maestro-roadmap.md +43 -81
  123. package/.claude/commands/maestro.md +61 -27
  124. package/.claude/commands/manage-harvest.md +1 -0
  125. package/.claude/commands/manage-issue-discover.md +1 -1
  126. package/.claude/commands/manage-knowhow.md +1 -1
  127. package/.claude/commands/manage-learn.md +4 -4
  128. package/.claude/commands/quality-auto-test.md +6 -6
  129. package/.claude/commands/quality-refactor.md +1 -1
  130. package/.claude/commands/quality-retrospective.md +2 -2
  131. package/.claude/commands/security-audit.md +24 -0
  132. package/.claude/commands/spec-remove.md +6 -2
  133. package/.claude/skills/maestro-help/SKILL.md +48 -14
  134. package/.claude/skills/maestro-help/index/catalog.json +29 -11
  135. package/.claude/skills/maestro-help/phases/01-parse-intent.md +1 -1
  136. package/.claude/skills/maestro-help/phases/02-search-present.md +6 -4
  137. package/.claude/skills/maestro-help/phases/03-workflow-guide.md +60 -33
  138. package/.claude/skills/team-lifecycle-v4/roles/analyst/role.md +1 -1
  139. package/.claude/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
  140. package/.claude/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  141. package/.claude/skills/team-lifecycle-v4/templates/architecture.md +3 -3
  142. package/.claude/skills/team-lifecycle-v4/templates/epics.md +2 -2
  143. package/.claude/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
  144. package/.claude/skills/team-lifecycle-v4/templates/requirements.md +2 -2
  145. package/.codex/skills/learn-decompose/SKILL.md +4 -4
  146. package/.codex/skills/learn-follow/SKILL.md +3 -3
  147. package/.codex/skills/learn-investigate/SKILL.md +3 -3
  148. package/.codex/skills/learn-retro/SKILL.md +3 -3
  149. package/.codex/skills/learn-second-opinion/SKILL.md +3 -3
  150. package/.codex/skills/maestro/SKILL.md +75 -38
  151. package/.codex/skills/maestro-amend/SKILL.md +157 -0
  152. package/.codex/skills/maestro-analyze/SKILL.md +72 -23
  153. package/.codex/skills/maestro-blueprint/SKILL.md +123 -0
  154. package/.codex/skills/maestro-brainstorm/SKILL.md +277 -46
  155. package/.codex/skills/maestro-composer/SKILL.md +1 -1
  156. package/.codex/skills/maestro-execute/SKILL.md +13 -4
  157. package/.codex/skills/maestro-fork/SKILL.md +2 -0
  158. package/.codex/skills/maestro-guard/SKILL.md +3 -2
  159. package/.codex/skills/maestro-help/SKILL.md +28 -18
  160. package/.codex/skills/maestro-help/catalog.json +29 -11
  161. package/.codex/skills/maestro-impeccable/SKILL.md +13 -11
  162. package/.codex/skills/maestro-init/SKILL.md +7 -7
  163. package/.codex/skills/maestro-plan/SKILL.md +27 -9
  164. package/.codex/skills/maestro-ralph/SKILL.md +740 -601
  165. package/.codex/skills/maestro-roadmap/SKILL.md +56 -72
  166. package/.codex/skills/maestro-update/SKILL.md +169 -0
  167. package/.codex/skills/maestro-verify/SKILL.md +11 -2
  168. package/.codex/skills/manage-codebase-rebuild/SKILL.md +9 -5
  169. package/.codex/skills/manage-harvest/SKILL.md +11 -3
  170. package/.codex/skills/manage-issue-discover/SKILL.md +1 -1
  171. package/.codex/skills/manage-knowhow/SKILL.md +1 -1
  172. package/.codex/skills/manage-learn/SKILL.md +3 -3
  173. package/.codex/skills/quality-refactor/SKILL.md +2 -2
  174. package/.codex/skills/quality-retrospective/SKILL.md +12 -5
  175. package/.codex/skills/security-audit/SKILL.md +24 -0
  176. package/.codex/skills/spec-remove/SKILL.md +8 -2
  177. package/.codex/skills/team-lifecycle-v4/roles/analyst/role.md +2 -2
  178. package/.codex/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
  179. package/.codex/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  180. package/.codex/skills/team-lifecycle-v4/templates/architecture.md +3 -3
  181. package/.codex/skills/team-lifecycle-v4/templates/epics.md +2 -2
  182. package/.codex/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
  183. package/.codex/skills/team-lifecycle-v4/templates/requirements.md +2 -2
  184. package/README.md +8 -8
  185. package/README.zh-CN.md +8 -8
  186. package/dashboard/dist-server/dashboard/src/server/routes/settings.js +3 -3
  187. package/dashboard/dist-server/dashboard/src/server/routes/settings.js.map +1 -1
  188. package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
  189. package/dist/src/agents/cli-agent-runner.js +13 -7
  190. package/dist/src/agents/cli-agent-runner.js.map +1 -1
  191. package/dist/src/commands/spec.d.ts.map +1 -1
  192. package/dist/src/commands/spec.js +8 -1
  193. package/dist/src/commands/spec.js.map +1 -1
  194. package/dist/src/tools/spec-init.d.ts +16 -2
  195. package/dist/src/tools/spec-init.d.ts.map +1 -1
  196. package/dist/src/tools/spec-init.js +58 -187
  197. package/dist/src/tools/spec-init.js.map +1 -1
  198. package/dist/src/tools/spec-loader.d.ts.map +1 -1
  199. package/dist/src/tools/spec-loader.js +16 -16
  200. package/dist/src/tools/spec-loader.js.map +1 -1
  201. package/dist/src/tools/spec-seeds.d.ts +33 -0
  202. package/dist/src/tools/spec-seeds.d.ts.map +1 -0
  203. package/dist/src/tools/spec-seeds.js +200 -0
  204. package/dist/src/tools/spec-seeds.js.map +1 -0
  205. package/dist/src/tools/spec-writer.d.ts.map +1 -1
  206. package/dist/src/tools/spec-writer.js +7 -9
  207. package/dist/src/tools/spec-writer.js.map +1 -1
  208. package/dist/src/utils/update-notices.js +12 -0
  209. package/dist/src/utils/update-notices.js.map +1 -1
  210. package/package.json +1 -1
  211. package/templates/business-test-report.json +1 -1
  212. package/templates/index.json +1 -1
  213. package/templates/roadmap.md +15 -9
  214. package/templates/state.json +18 -17
  215. package/workflows/agy-instructions.md +2 -0
  216. package/workflows/analyze.md +79 -11
  217. package/workflows/auto-test.md +12 -7
  218. package/workflows/blueprint.md +431 -0
  219. package/workflows/brainstorm.md +617 -496
  220. package/workflows/business-test.md +7 -7
  221. package/workflows/claude-instructions.md +2 -0
  222. package/workflows/codebase-rebuild.md +4 -4
  223. package/workflows/codex-instructions.md +16 -83
  224. package/workflows/debug.md +1 -1
  225. package/workflows/harvest.md +184 -10
  226. package/workflows/impeccable.md +2 -0
  227. package/workflows/init.md +9 -8
  228. package/workflows/issue-analyze.md +14 -100
  229. package/workflows/issue-discover.md +2 -3
  230. package/workflows/issue-execute.md +1 -1
  231. package/workflows/issue-gaps-analyze.md +2 -0
  232. package/workflows/learn.md +1 -1
  233. package/workflows/maestro-chain-execute.md +10 -228
  234. package/workflows/maestro.md +2 -1
  235. package/workflows/milestone-audit.md +12 -4
  236. package/workflows/milestone-complete.md +14 -9
  237. package/workflows/milestone-release.md +82 -0
  238. package/workflows/plan.md +91 -25
  239. package/workflows/retrospective.md +1 -1
  240. package/workflows/roadmap-common.md +1 -1
  241. package/workflows/roadmap.md +14 -4
  242. package/workflows/spec-generate.md +26 -13
  243. package/workflows/specs-add.md +6 -1
  244. package/workflows/specs-load.md +6 -1
  245. package/workflows/specs-setup.md +6 -1
  246. package/workflows/sync.md +13 -0
  247. package/workflows/tools-spec.md +4 -0
  248. package/workflows/ui-design.md +5 -5
  249. package/workflows/ui-style.md +1 -1
  250. package/workflows/wiki-manage.md +2 -0
  251. package/.agents/agents/conceptual-planning-agent.md +0 -247
  252. package/.agy/agents/conceptual-planning-agent.md +0 -244
  253. package/.claude/agents/conceptual-planning-agent.md +0 -245
@@ -2,7 +2,7 @@
2
2
 
3
3
  Multi-lens 复盘 of completed phase artifacts. Consumes existing execution outputs (verification.json, review.json, issues.jsonl, .summaries/, state.json, uat.md, plan.json) and routes distilled insights into the spec / note / issue / knowhow stores.
4
4
 
5
- This is a **post-execution analysis** workflow. It reads only — until the routing stage, where it writes new spec stubs, issue rows, memory entries, and knowhow entries. It never modifies existing phase artifacts.
5
+ This is a **post-execution analysis** workflow. It reads only — until the routing stage, where it writes new spec stubs, issue rows, memory entries, and knowhow entries. It **does not modify existing phase artifacts**; it writes to the spec / issue / knowhow stores as configured outputs (new entries appended; pre-existing phase outputs such as verification.json, review.json, uat.md, .summaries/ are never altered).
6
6
 
7
7
  ---
8
8
 
@@ -1,6 +1,6 @@
1
1
  # Workflow: Roadmap Common
2
2
 
3
- Shared logic for roadmap generation — used by both light mode (roadmap.md) and full mode (spec-generate.md).
3
+ Shared logic for roadmap generation — used by roadmap.md.
4
4
 
5
5
  ---
6
6
 
@@ -12,14 +12,18 @@ Parse flags from `$ARGUMENTS`:
12
12
  - `--yes` / `-y` → auto mode
13
13
  - `--continue` / `-c` → resume from last state
14
14
  - `--mode` / `-m` → `progressive|direct|auto` (default: auto)
15
- - `--from-brainstorm <SESSION-ID>` → import brainstorm session
15
+ - `--from <source>` → load upstream context package (brainstorm:ID, @file, or path). Alias: `--from-brainstorm` (backward compat)
16
16
  - Remaining text → requirement (slugified for directory name)
17
17
 
18
18
  **Session directory**: `.workflow/.roadmap/RMAP-{slug}-{date}/`
19
19
 
20
20
  **Continue mode**: If `-c` and session exists, resume from last state.
21
21
 
22
- **Brainstorm import**: If `--from-brainstorm`, read `guidance-specification.md` for enriched context (problem statement, features, non-goals, terminology).
22
+ **Context import**: If `--from`, resolve source to `context-package.json`:
23
+ - `brainstorm:ID` → `state.json.artifacts[type=brainstorm, id=ID].context_package` → load
24
+ - `@file` → create import session → delegate extraction → load context-package.json
25
+ - `path/` → load `path/context-package.json` (generate if missing)
26
+ - `--from-brainstorm SESSION-ID` → alias for `--from brainstorm:{resolve(SESSION-ID)}`
23
27
 
24
28
  ---
25
29
 
@@ -29,7 +33,13 @@ Parse flags from `$ARGUMENTS`:
29
33
 
30
34
  1. **Parse Requirement**
31
35
  - Extract: goal, constraints, stakeholders, keywords
32
- - If `--from-brainstorm`: enrich from guidance-specification.md
36
+ - If `--from`: enrich from context-package.json
37
+ - `requirements[]` → feature list for decomposition input
38
+ - `constraints[locked]` → immutable constraints for phase planning
39
+ - `domain` → problem statement, terminology, audience context
40
+ - `non_goals[]` → explicit exclusions from scope
41
+ - `insights[]` → role analysis insights (data models, architecture decisions)
42
+ - `open_questions[]` → items needing further investigation
33
43
  - If `project_context` loaded: merge into requirement analysis
34
44
  - Cross-reference requirement against `already_shipped` — flag overlaps as "already done"
35
45
  - Promote `deferred_from_previous` items into active requirement scope
@@ -92,7 +102,7 @@ Follow roadmap-common.md **Roadmap Write Logic** (overwrite vs edit rules, state
92
102
  ## Step 6: Handoff
93
103
 
94
104
  Display summary (strategy, phase count, milestones, roadmap path) and offer next steps:
95
- - `maestro-init` — set up project (if not yet initialized)
105
+ - `maestro-blueprint` — generate formal spec package for the roadmap (if heavier spec is needed)
96
106
  - `maestro-plan 1` — plan first phase
97
107
  - `maestro-brainstorm 1` — explore first phase ideas
98
108
  - `manage-status` — view project dashboard
@@ -11,6 +11,8 @@ brainstorm (optional) → init (REQUIRED) → spec-generate → plan → execute
11
11
  Alternative light path: init → roadmap (light mode) → plan (skip spec-generate)
12
12
  ```
13
13
 
14
+ > **Relation to blueprint**: `spec-generate` is the full-pipeline superset of `blueprint` (adds P7 roadmap stage on top of P0–P6 spec chain). Use `blueprint` when only specs are needed; use `spec-generate` when downstream `roadmap → plan` execution is intended.
15
+
14
16
  ## Architecture
15
17
 
16
18
  ```
@@ -22,12 +24,12 @@ P6 gate: Pass (>=80%) → P7 | Review (60-79%) → P7 w/caveats | Fail (<60%)
22
24
  ## Arguments
23
25
 
24
26
  ```
25
- $ARGUMENTS: "<idea or @file> [-y] [-c] [--from-brainstorm SESSION-ID]"
27
+ $ARGUMENTS: "<idea or @file> [-y] [-c] [--from <source>]"
26
28
 
27
29
  <idea> -- Idea text or @file reference
28
30
  -y / --yes -- Auto mode, skip interactive questions
29
31
  -c / --continue -- Resume from last checkpoint
30
- --from-brainstorm -- Import brainstorm session as enriched seed
32
+ --from <source> -- Load upstream context package (brainstorm:ID, @file, or path) as enriched seed. Alias: --from-brainstorm
31
33
  ```
32
34
 
33
35
  ## Output Structure
@@ -80,12 +82,23 @@ Additional full-mode rules:
80
82
  Parse input, analyze the seed idea, optionally explore codebase, establish session.
81
83
 
82
84
  **Step 2.1: Input Parsing**
83
- - Parse $ARGUMENTS: extract idea/topic, flags (-y, -c, --from-brainstorm)
85
+ - Parse $ARGUMENTS: extract idea/topic, flags (-y, -c, --from)
84
86
  - If `-c`: read spec-config.json, resume from first incomplete phase
85
- - If `--from-brainstorm SESSION-ID`:
86
- - Locate brainstorm session directory
87
- - Read `guidance-specification.md` as enriched seed
88
- - Set `input_type: "brainstorm"` skip Phase 1.5
87
+ - If `--from <source>` (or `--from-brainstorm SESSION-ID` alias):
88
+ - Resolve source to `context-package.json`:
89
+ - `brainstorm:ID` `state.json.artifacts[type=brainstorm, id=ID].context_package`
90
+ - `@file` create import session → delegate extraction → context-package.json
91
+ - `path/` → load `path/context-package.json`
92
+ - `--from-brainstorm SESSION-ID` → alias for `--from brainstorm:{resolve(SESSION-ID)}`
93
+ - Load context-package.json as enriched seed:
94
+ - `requirements[]` → Phase 3 PRD seed requirements (skip Phase 1.5)
95
+ - `constraints[]` → Phase 4 Architecture ADR seed
96
+ - `domain.terminology[]` → Phase 2 Glossary seed
97
+ - `domain.problem_statement` → Phase 2 Product Brief context
98
+ - `non_goals[]` → Phase 2 Product Brief exclusions
99
+ - `insights[]` → Phase 4 Architecture decisions context
100
+ - `references[]` → available for deep-read when needed
101
+ - Set `input_type: "context-package"` — skip Phase 1.5
89
102
  - If `@file`: read file content as seed
90
103
  - If text: use directly as seed
91
104
  - Missing input → error E001
@@ -99,7 +112,7 @@ Output dir: .workflow/.spec/{session_id}/
99
112
  **Step 2.3: Seed Analysis via CLI**
100
113
  - Spawn CLI analysis to extract: problem_statement, target_users, domain, constraints, dimensions (3-5)
101
114
  - Assess complexity: simple (1-2 components) / moderate (3-5) / complex (6+)
102
- - For brainstorm input: enrich with feature decomposition data
115
+ - For context-package input: enrich with feature decomposition data
103
116
 
104
117
  **Step 2.4: Codebase Exploration** — follow roadmap-common.md
105
118
  - Output: `discovery-context.json` with relevant_files, patterns, tech_stack
@@ -125,7 +138,7 @@ Output dir: .workflow/.spec/{session_id}/
125
138
 
126
139
  ### Step 3: Requirement Expansion & Clarification (Phase 1.5)
127
140
 
128
- Skip if `--from-brainstorm` (requirements already in guidance-specification.md).
141
+ Skip if `--from` (requirements already in context-package.json).
129
142
 
130
143
  **Step 3.1: CLI Gap Analysis**
131
144
  - Analyze seed for completeness (score 1-10), identify missing dimensions
@@ -151,7 +164,7 @@ Generate product brief through multi-perspective CLI analysis.
151
164
  **Step 4.1: Load Context**
152
165
  - Read refined-requirements.json (preferred) or seed_analysis fallback
153
166
  - Read discovery-context.json (if codebase detected)
154
- - For brainstorm input: read guidance-specification.md sections
167
+ - For context-package input: read context-package.json domain and requirements sections
155
168
 
156
169
  **Step 4.2: Multi-CLI Parallel Analysis (3 perspectives)**
157
170
 
@@ -163,7 +176,7 @@ Generate product brief through multi-perspective CLI analysis.
163
176
 
164
177
  **Step 4.3: Synthesis**
165
178
  - Extract convergent themes (all agree), conflicts (need resolution), unique insights
166
- - For brainstorm input: cross-reference with guidance-specification decisions
179
+ - For context-package input: cross-reference with context-package insights and constraints
167
180
  - If `apiResearchContext` is set: inject API details into technical feasibility assessment
168
181
 
169
182
  **Step 4.4: Interactive Refinement**
@@ -388,7 +401,7 @@ Next: maestro-init (setup) | maestro-plan 1 (plan first phase)
388
401
  6. **Spec Type Specialization**: Templates adapt to service/api/library/platform via profiles
389
402
  7. **Terminology Consistency**: glossary.json from Phase 2 injected into all subsequent phases
390
403
  8. **Iterative Quality**: Phase 6.5 auto-fix loop (max 2 iterations)
391
- 9. **Brainstorm Integration**: `--from-brainstorm` imports guidance-specification.md as seed
404
+ 9. **Context Package Integration**: `--from` loads upstream context-package.json as seed (brainstorm:ID, @file, or path). `--from-brainstorm` retained as backward-compatible alias
392
405
 
393
406
  ## State Management
394
407
 
@@ -397,7 +410,7 @@ Next: maestro-init (setup) | maestro-plan 1 (plan first phase)
397
410
  {
398
411
  "session_id": "SPEC-xxx-2026-03-15",
399
412
  "seed_input": "User input text",
400
- "input_type": "text|file|brainstorm",
413
+ "input_type": "text|file|context-package",
401
414
  "timestamp": "ISO8601",
402
415
  "mode": "interactive|auto",
403
416
  "complexity": "simple|moderate|complex",
@@ -1,4 +1,9 @@
1
- # Workflow: specs-add
1
+ ---
2
+ name: spec-add
3
+ alias: spec-add
4
+ ---
5
+
6
+ # Workflow: spec-add
2
7
 
3
8
  Add a `<spec-entry>` closed-tag entry to a single target spec file by category.
4
9
 
@@ -1,4 +1,9 @@
1
- # Workflow: specs-load
1
+ ---
2
+ name: spec-load
3
+ alias: spec-load
4
+ ---
5
+
6
+ # Workflow: spec-load
2
7
 
3
8
  Load spec files filtered by category. Supports project, global, team, and personal scopes.
4
9
 
@@ -1,4 +1,9 @@
1
- # Workflow: specs-setup
1
+ ---
2
+ name: spec-setup
3
+ alias: spec-setup
4
+ ---
5
+
6
+ # Workflow: spec-setup
2
7
 
3
8
  System specs initialization -- scan project structure, detect tech stack, generate convention files.
4
9
 
package/workflows/sync.md CHANGED
@@ -47,6 +47,19 @@ Read .workflow/codebase/doc-index.json
47
47
  Extract: components[], features[], requirements[], architecture_decisions[]
48
48
  ```
49
49
 
50
+ **Degradation path — doc-index.json missing:**
51
+
52
+ ```
53
+ If .workflow/codebase/doc-index.json does NOT exist:
54
+ 1. Emit WARNING: "doc-index.json missing — sync cannot perform impact analysis."
55
+ 2. Prompt user with two choices:
56
+ (a) Run `/manage-codebase-rebuild` to build doc-index, then re-run sync (recommended)
57
+ (b) Fall back to git-diff-only mode: skip Steps 3-5, emit raw changed-file
58
+ list from Step 2 as the sync output (no component/feature mapping)
59
+ 3. If user picks (b): set DEGRADED_MODE = true and continue with git diff only.
60
+ 4. If user picks (a) or no answer: exit with code E002.
61
+ ```
62
+
50
63
  ### Step 4: Impact Chain Traversal
51
64
 
52
65
  For each `changed_file` in `changed_files[]`:
@@ -1,5 +1,9 @@
1
1
  # Tool Spec Reference
2
2
 
3
+ <reference>
4
+ Tool specs are a **subtype of knowhow** (`tool: true` frontmatter on knowhow documents). For the full knowhow data model, lifecycle, and management commands, see `knowhow.md`. This file documents only the tool-specific subset.
5
+ </reference>
6
+
3
7
  Shared reference for tool spec registration and execution commands.
4
8
 
5
9
  ## Storage
@@ -6,9 +6,9 @@ User reviews via compare.html, selects winner(s), design solidified as code refe
6
6
 
7
7
  Pipeline position: analyze -> **ui-design** -> plan -> execute -> verify
8
8
 
9
- > **Note:** This is the full self-contained pipeline. When ui-ux-pro-max skill is available,
10
- > the command routes to `ui-style.md` instead (lightweight delegation).
11
- > This workflow runs when the skill is absent or `--full` is explicitly requested.
9
+ > **Note:** This is the primary implementation. When the `ui-ux-pro-max` skill is available,
10
+ > the command may delegate to `ui-style.md` for a lightweight path. This workflow is the
11
+ > fallback when the skill is unavailable, and is also used when `--full` is explicitly requested.
12
12
 
13
13
  ---
14
14
 
@@ -80,8 +80,8 @@ Show: phase/topic, mode (explore|refine), styleCount, layoutCount, stack, target
80
80
 
81
81
  Gather from available sources:
82
82
  - **2a.** `${PHASE_DIR}/context.md` -- product type, industry, audience, design preferences, locked UI decisions
83
- - **2b.** `${PHASE_DIR}/brainstorm/` -- ui-designer/analysis.md, product-manager/analysis.md (visual keywords, personas)
84
- - **2c.** `spec-summary.md` + `requirements/_index.md` (if index.json.spec_ref) -- UI-relevant requirements & acceptance criteria
83
+ - **2b.** `${PHASE_DIR}/brainstorm/ui-designer/analysis.md`, `${PHASE_DIR}/brainstorm/product-manager/analysis.md` (visual keywords, personas)
84
+ - **2c.** `blueprint-summary.md` + `requirements/_index.md` (if index.json.blueprint_ref) -- UI-relevant requirements & acceptance criteria
85
85
  - **2d.** `.workflow/codebase/doc-index.json` -- existing design tokens, CSS frameworks, component libraries, brand colors
86
86
 
87
87
  **2e. Synthesize design brief:**
@@ -57,7 +57,7 @@ If argument is topic text (scratch mode):
57
57
  Gather context from available sources:
58
58
  - **2a.** Phase context.md: product type, industry, audience, preferences
59
59
  - **2b.** Brainstorm results: visual direction keywords, persona, product type
60
- - **2c.** Spec reference (index.json.spec_ref): UI-relevant requirements
60
+ - **2c.** Blueprint reference (index.json.blueprint_ref): UI-relevant requirements
61
61
 
62
62
  **2d. Synthesize design brief:** product_type, industry, style_keywords, audience.
63
63
 
@@ -44,6 +44,8 @@ Run in parallel: `maestro wiki health`, `list --json`, `orphans`, `hubs --top 5`
44
44
 
45
45
  Display: health score, entry counts by type, broken links, orphan count, top hubs. Include health status message and quick-action commands (`/wiki-connect --fix`, `/wiki-digest`, `/manage-wiki cleanup --fix`, `maestro wiki graph`).
46
46
 
47
+ > **Scope split (complementary, not conflicting):** `/wiki-connect --fix` repairs/augments `related` links between existing entries (no deletion). `/manage-wiki cleanup --fix` deletes/flags orphans and removes broken-link entries from frontmatter. Run `wiki-connect` first to maximize link recovery, then `cleanup` to handle the true residual orphans.
48
+
47
49
  ---
48
50
 
49
51
  ## Subcommand: search <query>
@@ -1,247 +0,0 @@
1
- ---
2
- name: conceptual-planning-agent
3
- description: |
4
- Multi-mode analysis agent for brainstorming sessions. Generates role-specific analysis documents,
5
- performs cross-role synthesis, and produces feature specifications. Operates in 3 modes:
6
- Role Analysis, Cross-Role Analysis, and Feature Spec Generation.
7
- allowed-tools:
8
- - read_file
9
- - write_file
10
- - find_files
11
- - search
12
- ---
13
- <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
14
-
15
-
16
- # Conceptual Planning Agent
17
-
18
- ## Role
19
- You generate structured analysis and specification documents for brainstorming workflows. You are spawned by the brainstorm orchestrator in one of three modes, determined by the `[MODE]` tag in your prompt.
20
-
21
- ## Execution Flow
22
-
23
- ```
24
- STEP 1: Identify Mode
25
- → Parse [MODE] from prompt: ROLE_ANALYSIS | CROSS_ROLE_ANALYSIS | FEATURE_SPEC_GENERATION
26
-
27
- STEP 2: Load Context
28
- → Read all inputs specified in prompt (role template, guidance-spec, feature list, etc.)
29
- → If total input > 100KB: read only analysis.md index files, not sub-documents
30
-
31
- STEP 3: Execute Mode-Specific Generation
32
- → Role Analysis: Generate analysis files per role template structure
33
- → Cross-Role Analysis: Analyze multiple role outputs, return structured text
34
- → Feature Spec Generation: Generate feature-specs/ from cross-role results
35
-
36
- STEP 4: Write Files
37
- → Write all output files to paths specified in prompt
38
- → Verify file creation
39
-
40
- STEP 5: Return Summary
41
- → Report completion with file list and key metrics
42
- ```
43
-
44
- ## Mode 1: Role Analysis [ROLE_ANALYSIS]
45
-
46
- Generate analysis for a single role perspective.
47
-
48
- ### Input
49
- - `role_name`: Role to analyze as (e.g., system-architect, ux-expert)
50
- - `role_template`: Content from `~/.maestro/templates/planning-roles/{role}.md`
51
- - `guidance_specification`: Framework context with RFC 2119 decisions
52
- - `feature_list`: Feature decomposition table (if available)
53
- - `user_context`: Answers from interactive context gathering (if available)
54
- - `design_research`: External design research context (if available)
55
- - `project_specs`: Project specs loaded via `maestro spec load`
56
- - `style_skill`: Style package path (ui-designer only)
57
-
58
- ### Process
59
- 1. Read role template and guidance-specification
60
- 2. If `design_research` provided: integrate as evidence for recommendations
61
- 3. If `feature_list` available → feature-point organization; else → fallback organization
62
- 4. Generate analysis following role template's "Brainstorming Analysis Structure"
63
- 5. Apply RFC 2119 keywords to all behavioral requirements
64
- 6. For ui-designer with `style_skill`: load style package, apply design constraints
65
- 7. Write all output files
66
-
67
- ### Output: Feature-Point Organization (when feature list available)
68
-
69
- **`{role}/analysis.md`** — Role overview INDEX only (< 1500 words):
70
- ```markdown
71
- # {Role Title} Analysis: {Topic}
72
-
73
- ## Role Perspective Overview
74
- {Brief summary of role's approach to the topic}
75
-
76
- ## Feature Point Index
77
-
78
- | Feature | Analysis File | Key Decisions |
79
- |---------|--------------|---------------|
80
- | F-001 {name} | [analysis-F-001-{slug}.md](./analysis-F-001-{slug}.md) | {1-2 key decisions} |
81
- | F-002 {name} | [analysis-F-002-{slug}.md](./analysis-F-002-{slug}.md) | {1-2 key decisions} |
82
-
83
- ## Cross-Cutting Concerns
84
- See [analysis-cross-cutting.md](./analysis-cross-cutting.md)
85
-
86
- ## Key Recommendations
87
- {Top 3-5 recommendations from this role's perspective}
88
- ```
89
-
90
- **`{role}/analysis-cross-cutting.md`** — Cross-feature decisions (< 2000 words)
91
- **`{role}/analysis-F-{id}-{slug}.md`** — Per-feature analysis (< 2000 words each)
92
-
93
- ### Output: Fallback Organization (no feature list)
94
-
95
- **`{role}/analysis.md`** — Main analysis (< 3000 words)
96
- Optional `{role}/analysis-{slug}.md` sub-documents (max 5)
97
-
98
- ### Role-Specific Requirements
99
-
100
- **system-architect** MUST include:
101
- - Data Model (3-5 entities with fields, types, constraints, relationships)
102
- - State Machine (at least 1 entity lifecycle: ASCII diagram + transition table)
103
- - Error Handling Strategy (classification + recovery mechanisms)
104
- - Observability Requirements (5+ metrics, log events, health checks)
105
- - Configuration Model (configurable parameters with validation)
106
- - Boundary Scenarios (concurrency, rate limiting, shutdown, cleanup, scalability, DR)
107
-
108
- **ui-designer** with style-skill:
109
- - Load `.claude/skills/style-{package}/SKILL.md` for design constraints
110
- - Apply design tokens, color palettes, typography from style package
111
- - Reference style package decisions in analysis
112
-
113
- **All roles**: Constraints MUST use RFC 2119 keywords (MUST, SHOULD, MAY, MUST NOT, SHOULD NOT).
114
-
115
- ## Mode 2: Cross-Role Analysis [CROSS_ROLE_ANALYSIS]
116
-
117
- Analyze multiple role outputs to find conflicts, consensus, and enhancement opportunities.
118
-
119
- ### Input
120
- - Analysis index files from all participating roles (feature mode: analysis.md only)
121
- - Feature list for cross-referencing
122
- - Original user intent from session metadata
123
-
124
- ### Process
125
- 1. Read all role analysis.md index files
126
- 2. For each feature: extract consensus, conflicts, and cross-references across roles
127
- 3. Identify enhancement opportunities (gaps, synergies, missing perspectives)
128
- 4. Classify conflicts: [RESOLVED] (clear winner), [SUGGESTED] (recommended), [UNRESOLVED] (needs user input)
129
- 5. Quality: every conflict resolution MUST be actionable, justified ("because...tradeoff:..."), and scoped
130
-
131
- ### Output (return as structured text, do NOT write files)
132
-
133
- ```markdown
134
- ## Enhancement Recommendations
135
-
136
- ### EP-001: {title}
137
- - **Rationale**: {why this enhancement adds value}
138
- - **Affected Features**: F-001, F-003
139
- - **Source Roles**: system-architect, ux-expert
140
- - **Priority**: HIGH | MEDIUM | LOW
141
-
142
- ### EP-002: ...
143
-
144
- ## Feature Conflict Map
145
-
146
- ### F-001: {feature name}
147
- - **Consensus**: {what all roles agree on}
148
- - **Conflicts**:
149
- - [RESOLVED] {topic}: {decision} (because {rationale}, tradeoff: {what's sacrificed})
150
- - [SUGGESTED] {topic}: {recommendation} (confidence: HIGH/MEDIUM)
151
- - [UNRESOLVED] {topic}: {role-A says X, role-B says Y} → [DECISION NEEDED]
152
- - **Cross-Refs**: Depends on F-003 (shared data model), integrates with F-005 (API layer)
153
-
154
- ### F-002: ...
155
- ```
156
-
157
- ## Mode 3: Feature Spec Generation [FEATURE_SPEC_GENERATION]
158
-
159
- Generate feature specifications from cross-role analysis results.
160
-
161
- ### Input
162
- - Cross-role analysis output (enhancement_recommendations + feature_conflict_map)
163
- - `selected_enhancements`: User-selected EP-IDs
164
- - `clarification_answers`: User responses to clarification questions
165
- - `original_user_intent`: From session metadata
166
- - Role analysis files for detailed reference
167
-
168
- ### Process
169
- 1. Build spec_context: selected_enhancements + clarification_answers + user_intent
170
- 2. For each feature, apply Four-Layer Aggregation:
171
- - **Layer 1: Direct Reference** — Consensus points → quote roles
172
- - **Layer 2: Structured Extraction** — Complementary findings → merge, de-duplicate
173
- - **Layer 3: Conflict Distillation** — [RESOLVED] → decision, [SUGGESTED] → recommended, [UNRESOLVED] → [DECISION NEEDED]
174
- - **Layer 4: Cross-Feature Annotation** — Dependency notes, integration points
175
- 3. Generate feature spec files (feature mode) or single synthesis-specification.md (fallback)
176
- 4. Generate feature-index.json and synthesis-changelog.md
177
- 5. Self-evaluate complexity_score (0-8 scale)
178
- 6. Write all files
179
-
180
- ### Output: Feature Mode
181
-
182
- **`feature-specs/F-{id}-{slug}.md`** per feature (7 sections, 1500-2500 words):
183
-
184
- 1. **Requirements Summary** — RFC 2119 keywords, derived from guidance-specification
185
- 2. **Design Decisions** [CORE — 40%+ of word count] — Aggregated from role analyses, conflicts resolved
186
- 3. **Interface Contract** — APIs, data formats, integration points
187
- 4. **Constraints & Risks** — Technical limits, known risks, mitigation
188
- 5. **Acceptance Criteria** — Testable conditions for feature completion
189
- 6. **Detailed Analysis References** — @-links to role analysis files (e.g., @system-architect/analysis-F-001-auth.md)
190
- 7. **Cross-Feature Dependencies** — What this feature needs from / provides to other features
191
-
192
- **`feature-index.json`**:
193
- ```json
194
- {
195
- "features": [
196
- { "id": "F-001", "slug": "auth", "title": "Authentication", "spec_path": "feature-specs/F-001-auth.md", "status": "complete", "dependencies": ["F-003"] }
197
- ],
198
- "enhancements_applied": ["EP-001", "EP-003"],
199
- "complexity_score": 5
200
- }
201
- ```
202
-
203
- **`synthesis-changelog.md`** — Audit trail: enhancements applied, clarifications resolved, conflicts resolved
204
-
205
- ### Output: Fallback Mode (no feature list)
206
-
207
- **`synthesis-specification.md`** — Single consolidated specification document
208
- **`synthesis-changelog.md`** — Same audit trail
209
-
210
- ### Complexity Score (0-8)
211
-
212
- | Factor | Score |
213
- |--------|-------|
214
- | Features > 5 | +1 |
215
- | Unresolved conflicts > 2 | +2 |
216
- | Participating roles > 4 | +1 |
217
- | Cross-feature dependencies > 3 | +1 |
218
- | Enhancement count > 4 | +1 |
219
- | Clarification rounds > 2 | +1 |
220
- | system-architect involved | +1 |
221
-
222
- If complexity_score >= 4: report `[REVIEW_RECOMMENDED]` in output for orchestrator to trigger review agent.
223
-
224
- ## Return Protocol
225
-
226
- - **TASK COMPLETE**: All output files written. Include: file list, word counts, complexity_score (Mode 3 only).
227
- - **TASK BLOCKED**: Cannot proceed (missing role template, empty guidance-specification, no analysis files). Include: blocker description.
228
-
229
- ## Rules
230
-
231
- ### ALWAYS
232
- - Follow role template "Brainstorming Analysis Structure" strictly
233
- - Use RFC 2119 keywords for all behavioral requirements
234
- - Respect word count limits per output file
235
- - Feature-point organization: analysis.md is INDEX only, not full analysis
236
- - Reference guidance-specification.md decisions, do not contradict them
237
- - Include design research findings when provided
238
- - Apply Four-Layer Aggregation for spec generation
239
- - Track conflict resolution quality: actionable + justified + scoped
240
-
241
- ### NEVER
242
- - Write files outside the output directory specified in the prompt (source code, project config, etc. are read-only context)
243
- - Overlap with other roles' focus areas in role analysis mode
244
- - Write files in cross-role analysis mode (return text only)
245
- - Exceed word count limits (hard cap)
246
- - Use interrogative sentences in specifications (all statements must be declarative)
247
- - Omit [DECISION NEEDED] markers for unresolved conflicts