maestro-flow 0.4.10 → 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 (354) hide show
  1. package/.agents/agents/cli-explore-agent.md +187 -0
  2. package/.agents/agents/cross-role-reviewer.md +173 -0
  3. package/.agents/agents/impeccable-agent.md +101 -0
  4. package/.agents/agents/role-design-author.md +218 -0
  5. package/.agents/agents/team-supervisor.md +145 -0
  6. package/.agents/agents/team-worker.md +239 -0
  7. package/.agents/agents/ui-design-agent.md +272 -0
  8. package/.agents/agents/workflow-analyzer.md +117 -0
  9. package/.agents/agents/workflow-codebase-mapper.md +79 -0
  10. package/.agents/agents/workflow-collab-planner.md +145 -0
  11. package/.agents/agents/workflow-debugger.md +105 -0
  12. package/.agents/agents/workflow-executor.md +134 -0
  13. package/.agents/agents/workflow-external-researcher.md +88 -0
  14. package/.agents/agents/workflow-integration-checker.md +85 -0
  15. package/.agents/agents/workflow-nyquist-auditor.md +87 -0
  16. package/.agents/agents/workflow-phase-researcher.md +87 -0
  17. package/.agents/agents/workflow-plan-checker.md +92 -0
  18. package/.agents/agents/workflow-planner.md +197 -0
  19. package/.agents/agents/workflow-project-researcher.md +76 -0
  20. package/.agents/agents/workflow-research-synthesizer.md +72 -0
  21. package/.agents/agents/workflow-reviewer.md +84 -0
  22. package/.agents/agents/workflow-roadmapper.md +83 -0
  23. package/.agents/agents/workflow-verifier.md +122 -0
  24. package/.agents/skills/codify-to-knowhow/SKILL.md +169 -0
  25. package/.agents/skills/codify-to-knowhow/phases/01-load-manifest.md +101 -0
  26. package/.agents/skills/codify-to-knowhow/phases/02-generate-knowhow.md +97 -0
  27. package/.agents/skills/codify-to-knowhow/phases/03-generate-specs.md +92 -0
  28. package/.agents/skills/codify-to-knowhow/phases/04-index-verify.md +119 -0
  29. package/.agents/skills/learn-decompose/SKILL.md +118 -0
  30. package/.agents/skills/learn-follow/SKILL.md +129 -0
  31. package/.agents/skills/learn-investigate/SKILL.md +154 -0
  32. package/.agents/skills/learn-retro/SKILL.md +159 -0
  33. package/.agents/skills/learn-second-opinion/SKILL.md +124 -0
  34. package/.agents/skills/maestro/SKILL.md +258 -0
  35. package/.agents/skills/maestro-amend/SKILL.md +165 -0
  36. package/.agents/skills/maestro-analyze/SKILL.md +161 -0
  37. package/.agents/skills/maestro-blueprint/SKILL.md +132 -0
  38. package/.agents/skills/maestro-brainstorm/SKILL.md +134 -0
  39. package/.agents/skills/maestro-collab/SKILL.md +174 -0
  40. package/.agents/skills/maestro-composer/SKILL.md +181 -0
  41. package/.agents/skills/maestro-execute/SKILL.md +133 -0
  42. package/.agents/skills/maestro-fork/SKILL.md +88 -0
  43. package/.agents/skills/maestro-guard/SKILL.md +103 -0
  44. package/.agents/skills/maestro-help/SKILL.md +300 -0
  45. package/.agents/skills/maestro-help/index/catalog.json +202 -0
  46. package/.agents/skills/maestro-help/phases/01-parse-intent.md +122 -0
  47. package/.agents/skills/maestro-help/phases/02-search-present.md +183 -0
  48. package/.agents/skills/maestro-help/phases/03-workflow-guide.md +213 -0
  49. package/.agents/skills/maestro-impeccable/SKILL.md +251 -0
  50. package/.agents/skills/maestro-init/SKILL.md +80 -0
  51. package/.agents/skills/maestro-learn/SKILL.md +142 -0
  52. package/.agents/skills/maestro-merge/SKILL.md +66 -0
  53. package/.agents/skills/maestro-milestone-audit/SKILL.md +72 -0
  54. package/.agents/skills/maestro-milestone-complete/SKILL.md +79 -0
  55. package/.agents/skills/maestro-milestone-release/SKILL.md +98 -0
  56. package/.agents/skills/maestro-overlay/SKILL.md +180 -0
  57. package/.agents/skills/maestro-plan/SKILL.md +182 -0
  58. package/.agents/skills/maestro-player/SKILL.md +177 -0
  59. package/.agents/skills/maestro-quick/SKILL.md +67 -0
  60. package/.agents/skills/maestro-ralph/SKILL.md +756 -0
  61. package/.agents/skills/maestro-ralph-execute/SKILL.md +273 -0
  62. package/.agents/skills/maestro-roadmap/SKILL.md +131 -0
  63. package/.agents/skills/maestro-tools-execute/SKILL.md +119 -0
  64. package/.agents/skills/maestro-tools-register/SKILL.md +159 -0
  65. package/.agents/skills/maestro-ui-codify/SKILL.md +82 -0
  66. package/.agents/skills/maestro-update/SKILL.md +178 -0
  67. package/.agents/skills/maestro-verify/SKILL.md +111 -0
  68. package/.agents/skills/manage-codebase-rebuild/SKILL.md +77 -0
  69. package/.agents/skills/manage-codebase-refresh/SKILL.md +59 -0
  70. package/.agents/skills/manage-harvest/SKILL.md +96 -0
  71. package/.agents/skills/manage-issue/SKILL.md +75 -0
  72. package/.agents/skills/manage-issue-discover/SKILL.md +83 -0
  73. package/.agents/skills/manage-knowhow/SKILL.md +79 -0
  74. package/.agents/skills/manage-knowhow-capture/SKILL.md +81 -0
  75. package/.agents/skills/manage-learn/SKILL.md +67 -0
  76. package/.agents/skills/manage-status/SKILL.md +54 -0
  77. package/.agents/skills/manage-wiki/SKILL.md +64 -0
  78. package/.agents/skills/quality-auto-test/SKILL.md +138 -0
  79. package/.agents/skills/quality-debug/SKILL.md +122 -0
  80. package/.agents/skills/quality-refactor/SKILL.md +69 -0
  81. package/.agents/skills/quality-retrospective/SKILL.md +79 -0
  82. package/.agents/skills/quality-review/SKILL.md +130 -0
  83. package/.agents/skills/quality-sync/SKILL.md +53 -0
  84. package/.agents/skills/quality-test/SKILL.md +119 -0
  85. package/.agents/skills/security-audit/SKILL.md +157 -0
  86. package/.agents/skills/skill-iter-tune/SKILL.md +384 -0
  87. package/.agents/skills/skill-iter-tune/phases/01-setup.md +144 -0
  88. package/.agents/skills/skill-iter-tune/phases/02-execute.md +292 -0
  89. package/.agents/skills/skill-iter-tune/phases/03-evaluate.md +312 -0
  90. package/.agents/skills/skill-iter-tune/phases/04-improve.md +186 -0
  91. package/.agents/skills/skill-iter-tune/phases/05-report.md +166 -0
  92. package/.agents/skills/skill-iter-tune/specs/evaluation-criteria.md +63 -0
  93. package/.agents/skills/skill-iter-tune/templates/eval-prompt.md +134 -0
  94. package/.agents/skills/skill-iter-tune/templates/execute-prompt.md +97 -0
  95. package/.agents/skills/spec-add/SKILL.md +70 -0
  96. package/.agents/skills/spec-load/SKILL.md +73 -0
  97. package/.agents/skills/spec-remove/SKILL.md +53 -0
  98. package/.agents/skills/spec-setup/SKILL.md +50 -0
  99. package/.agents/skills/team-coordinate/SKILL.md +268 -0
  100. package/.agents/skills/team-coordinate/roles/coordinator/commands/analyze-task.md +247 -0
  101. package/.agents/skills/team-coordinate/roles/coordinator/commands/dispatch.md +131 -0
  102. package/.agents/skills/team-coordinate/roles/coordinator/commands/monitor.md +358 -0
  103. package/.agents/skills/team-coordinate/roles/coordinator/role.md +365 -0
  104. package/.agents/skills/team-coordinate/specs/knowledge-transfer.md +111 -0
  105. package/.agents/skills/team-coordinate/specs/pipelines.md +97 -0
  106. package/.agents/skills/team-coordinate/specs/quality-gates.md +112 -0
  107. package/.agents/skills/team-coordinate/specs/role-spec-template.md +198 -0
  108. package/.agents/skills/team-executor/SKILL.md +191 -0
  109. package/.agents/skills/team-executor/roles/executor/commands/monitor.md +239 -0
  110. package/.agents/skills/team-executor/roles/executor/role.md +171 -0
  111. package/.agents/skills/team-executor/specs/session-schema.md +264 -0
  112. package/.agents/skills/team-lifecycle-v4/SKILL.md +211 -0
  113. package/.agents/skills/team-lifecycle-v4/roles/analyst/role.md +96 -0
  114. package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/analyze.md +56 -0
  115. package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +56 -0
  116. package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +206 -0
  117. package/.agents/skills/team-lifecycle-v4/roles/coordinator/role.md +130 -0
  118. package/.agents/skills/team-lifecycle-v4/roles/executor/commands/fix.md +35 -0
  119. package/.agents/skills/team-lifecycle-v4/roles/executor/commands/implement.md +62 -0
  120. package/.agents/skills/team-lifecycle-v4/roles/executor/role.md +69 -0
  121. package/.agents/skills/team-lifecycle-v4/roles/planner/role.md +87 -0
  122. package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-code.md +34 -0
  123. package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +44 -0
  124. package/.agents/skills/team-lifecycle-v4/roles/reviewer/role.md +71 -0
  125. package/.agents/skills/team-lifecycle-v4/roles/supervisor/role.md +194 -0
  126. package/.agents/skills/team-lifecycle-v4/roles/tester/role.md +89 -0
  127. package/.agents/skills/team-lifecycle-v4/roles/writer/role.md +97 -0
  128. package/.agents/skills/team-lifecycle-v4/specs/knowledge-transfer.md +114 -0
  129. package/.agents/skills/team-lifecycle-v4/specs/pipelines.md +140 -0
  130. package/.agents/skills/team-lifecycle-v4/specs/quality-gates.md +130 -0
  131. package/.agents/skills/team-lifecycle-v4/templates/architecture.md +254 -0
  132. package/.agents/skills/team-lifecycle-v4/templates/epics.md +196 -0
  133. package/.agents/skills/team-lifecycle-v4/templates/product-brief.md +133 -0
  134. package/.agents/skills/team-lifecycle-v4/templates/requirements.md +224 -0
  135. package/.agents/skills/team-quality-assurance/SKILL.md +149 -0
  136. package/.agents/skills/team-quality-assurance/roles/analyst/role.md +90 -0
  137. package/.agents/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -0
  138. package/.agents/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +111 -0
  139. package/.agents/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +250 -0
  140. package/.agents/skills/team-quality-assurance/roles/coordinator/role.md +143 -0
  141. package/.agents/skills/team-quality-assurance/roles/executor/role.md +68 -0
  142. package/.agents/skills/team-quality-assurance/roles/generator/role.md +70 -0
  143. package/.agents/skills/team-quality-assurance/roles/scout/role.md +77 -0
  144. package/.agents/skills/team-quality-assurance/roles/strategist/role.md +73 -0
  145. package/.agents/skills/team-quality-assurance/specs/pipelines.md +115 -0
  146. package/.agents/skills/team-quality-assurance/specs/team-config.json +131 -0
  147. package/.agents/skills/team-review/SKILL.md +149 -0
  148. package/.agents/skills/team-review/roles/coordinator/commands/analyze.md +71 -0
  149. package/.agents/skills/team-review/roles/coordinator/commands/dispatch.md +91 -0
  150. package/.agents/skills/team-review/roles/coordinator/commands/monitor.md +224 -0
  151. package/.agents/skills/team-review/roles/coordinator/role.md +132 -0
  152. package/.agents/skills/team-review/roles/fixer/role.md +78 -0
  153. package/.agents/skills/team-review/roles/reviewer/role.md +70 -0
  154. package/.agents/skills/team-review/roles/scanner/role.md +81 -0
  155. package/.agents/skills/team-review/specs/dimensions.md +82 -0
  156. package/.agents/skills/team-review/specs/finding-schema.json +82 -0
  157. package/.agents/skills/team-review/specs/pipelines.md +102 -0
  158. package/.agents/skills/team-review/specs/team-config.json +27 -0
  159. package/.agents/skills/team-tech-debt/SKILL.md +130 -0
  160. package/.agents/skills/team-tech-debt/roles/assessor/role.md +79 -0
  161. package/.agents/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -0
  162. package/.agents/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +156 -0
  163. package/.agents/skills/team-tech-debt/roles/coordinator/commands/monitor.md +209 -0
  164. package/.agents/skills/team-tech-debt/roles/coordinator/role.md +123 -0
  165. package/.agents/skills/team-tech-debt/roles/executor/role.md +78 -0
  166. package/.agents/skills/team-tech-debt/roles/planner/role.md +71 -0
  167. package/.agents/skills/team-tech-debt/roles/scanner/role.md +92 -0
  168. package/.agents/skills/team-tech-debt/roles/validator/role.md +80 -0
  169. package/.agents/skills/team-tech-debt/specs/pipelines.md +47 -0
  170. package/.agents/skills/team-tech-debt/specs/team-config.json +129 -0
  171. package/.agents/skills/team-testing/SKILL.md +145 -0
  172. package/.agents/skills/team-testing/roles/analyst/role.md +105 -0
  173. package/.agents/skills/team-testing/roles/coordinator/commands/analyze.md +70 -0
  174. package/.agents/skills/team-testing/roles/coordinator/commands/dispatch.md +108 -0
  175. package/.agents/skills/team-testing/roles/coordinator/commands/monitor.md +257 -0
  176. package/.agents/skills/team-testing/roles/coordinator/role.md +134 -0
  177. package/.agents/skills/team-testing/roles/executor/role.md +101 -0
  178. package/.agents/skills/team-testing/roles/generator/role.md +100 -0
  179. package/.agents/skills/team-testing/roles/strategist/role.md +85 -0
  180. package/.agents/skills/team-testing/specs/pipelines.md +101 -0
  181. package/.agents/skills/team-testing/specs/team-config.json +93 -0
  182. package/.agents/skills/wiki-connect/SKILL.md +64 -0
  183. package/.agents/skills/wiki-digest/SKILL.md +70 -0
  184. package/.agents/skills/workflow-skill-designer/SKILL.md +498 -0
  185. package/.agents/skills/workflow-skill-designer/phases/01-requirements-analysis.md +356 -0
  186. package/.agents/skills/workflow-skill-designer/phases/02-orchestrator-design.md +444 -0
  187. package/.agents/skills/workflow-skill-designer/phases/03-phase-design.md +458 -0
  188. package/.agents/skills/workflow-skill-designer/phases/04-validation.md +471 -0
  189. package/.agy/agents/cli-explore-agent.md +1 -3
  190. package/.agy/agents/cross-role-reviewer.md +170 -0
  191. package/.agy/agents/role-design-author.md +215 -0
  192. package/.agy/agents/ui-design-agent.md +1 -18
  193. package/.agy/agents/workflow-analyzer.md +1 -1
  194. package/.agy/agents/workflow-external-researcher.md +1 -1
  195. package/.agy/skills/maestro/SKILL.md +63 -27
  196. package/.agy/skills/maestro-analyze/SKILL.md +30 -4
  197. package/.agy/skills/maestro-blueprint/SKILL.md +132 -0
  198. package/.agy/skills/maestro-brainstorm/SKILL.md +119 -103
  199. package/.agy/skills/maestro-help/SKILL.md +48 -14
  200. package/.agy/skills/maestro-help/index/catalog.json +29 -11
  201. package/.agy/skills/maestro-help/phases/01-parse-intent.md +1 -1
  202. package/.agy/skills/maestro-help/phases/02-search-present.md +6 -4
  203. package/.agy/skills/maestro-help/phases/03-workflow-guide.md +60 -33
  204. package/.agy/skills/maestro-init/SKILL.md +3 -3
  205. package/.agy/skills/maestro-milestone-audit/SKILL.md +5 -3
  206. package/.agy/skills/maestro-milestone-complete/SKILL.md +7 -5
  207. package/.agy/skills/maestro-plan/SKILL.md +14 -4
  208. package/.agy/skills/maestro-ralph/SKILL.md +368 -162
  209. package/.agy/skills/maestro-ralph-execute/SKILL.md +81 -67
  210. package/.agy/skills/maestro-roadmap/SKILL.md +42 -81
  211. package/.agy/skills/quality-auto-test/SKILL.md +1 -1
  212. package/.agy/skills/team-lifecycle-v4/roles/analyst/role.md +1 -1
  213. package/.agy/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
  214. package/.agy/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  215. package/.agy/skills/team-lifecycle-v4/templates/architecture.md +3 -3
  216. package/.agy/skills/team-lifecycle-v4/templates/epics.md +2 -2
  217. package/.agy/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
  218. package/.agy/skills/team-lifecycle-v4/templates/requirements.md +2 -2
  219. package/.claude/agents/cli-explore-agent.md +1 -3
  220. package/.claude/agents/cross-role-reviewer.md +171 -0
  221. package/.claude/agents/role-design-author.md +216 -0
  222. package/.claude/agents/ui-design-agent.md +1 -18
  223. package/.claude/agents/workflow-analyzer.md +1 -1
  224. package/.claude/agents/workflow-external-researcher.md +1 -1
  225. package/.claude/commands/maestro-analyze.md +30 -4
  226. package/.claude/commands/maestro-blueprint.md +130 -0
  227. package/.claude/commands/maestro-brainstorm.md +132 -116
  228. package/.claude/commands/maestro-init.md +3 -3
  229. package/.claude/commands/maestro-milestone-audit.md +5 -3
  230. package/.claude/commands/maestro-milestone-complete.md +7 -5
  231. package/.claude/commands/maestro-plan.md +14 -4
  232. package/.claude/commands/maestro-ralph-execute.md +81 -67
  233. package/.claude/commands/maestro-ralph.md +368 -162
  234. package/.claude/commands/maestro-roadmap.md +42 -81
  235. package/.claude/commands/maestro.md +63 -27
  236. package/.claude/commands/quality-auto-test.md +1 -1
  237. package/.claude/skills/maestro-help/SKILL.md +48 -14
  238. package/.claude/skills/maestro-help/index/catalog.json +29 -11
  239. package/.claude/skills/maestro-help/phases/01-parse-intent.md +1 -1
  240. package/.claude/skills/maestro-help/phases/02-search-present.md +6 -4
  241. package/.claude/skills/maestro-help/phases/03-workflow-guide.md +60 -33
  242. package/.claude/skills/team-lifecycle-v4/roles/analyst/role.md +1 -1
  243. package/.claude/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
  244. package/.claude/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  245. package/.claude/skills/team-lifecycle-v4/templates/architecture.md +3 -3
  246. package/.claude/skills/team-lifecycle-v4/templates/epics.md +2 -2
  247. package/.claude/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
  248. package/.claude/skills/team-lifecycle-v4/templates/requirements.md +2 -2
  249. package/.codex/skills/maestro/SKILL.md +84 -41
  250. package/.codex/skills/maestro-amend/SKILL.md +157 -0
  251. package/.codex/skills/maestro-analyze/SKILL.md +71 -23
  252. package/.codex/skills/maestro-blueprint/SKILL.md +122 -0
  253. package/.codex/skills/maestro-brainstorm/SKILL.md +135 -45
  254. package/.codex/skills/maestro-composer/SKILL.md +1 -1
  255. package/.codex/skills/maestro-execute/SKILL.md +13 -4
  256. package/.codex/skills/maestro-help/SKILL.md +28 -18
  257. package/.codex/skills/maestro-help/catalog.json +29 -11
  258. package/.codex/skills/maestro-init/SKILL.md +7 -7
  259. package/.codex/skills/maestro-plan/SKILL.md +27 -9
  260. package/.codex/skills/maestro-ralph/SKILL.md +740 -491
  261. package/.codex/skills/maestro-roadmap/SKILL.md +55 -72
  262. package/.codex/skills/maestro-update/SKILL.md +169 -0
  263. package/.codex/skills/maestro-verify/SKILL.md +11 -2
  264. package/.codex/skills/manage-codebase-rebuild/SKILL.md +2 -2
  265. package/.codex/skills/manage-harvest/SKILL.md +10 -2
  266. package/.codex/skills/quality-retrospective/SKILL.md +9 -2
  267. package/.codex/skills/team-lifecycle-v4/roles/analyst/role.md +2 -2
  268. package/.codex/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
  269. package/.codex/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  270. package/.codex/skills/team-lifecycle-v4/templates/architecture.md +3 -3
  271. package/.codex/skills/team-lifecycle-v4/templates/epics.md +2 -2
  272. package/.codex/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
  273. package/.codex/skills/team-lifecycle-v4/templates/requirements.md +2 -2
  274. package/README.md +8 -8
  275. package/README.zh-CN.md +8 -8
  276. package/dashboard/dist-server/dashboard/src/server/routes/settings.js +3 -3
  277. package/dashboard/dist-server/dashboard/src/server/routes/settings.js.map +1 -1
  278. package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
  279. package/dist/src/agents/cli-agent-runner.js +13 -7
  280. package/dist/src/agents/cli-agent-runner.js.map +1 -1
  281. package/dist/src/commands/install-backend.d.ts +12 -0
  282. package/dist/src/commands/install-backend.d.ts.map +1 -1
  283. package/dist/src/commands/install-backend.js +144 -0
  284. package/dist/src/commands/install-backend.js.map +1 -1
  285. package/dist/src/commands/spec.d.ts.map +1 -1
  286. package/dist/src/commands/spec.js +8 -1
  287. package/dist/src/commands/spec.js.map +1 -1
  288. package/dist/src/core/component-defs.d.ts +6 -0
  289. package/dist/src/core/component-defs.d.ts.map +1 -1
  290. package/dist/src/core/component-defs.js +97 -0
  291. package/dist/src/core/component-defs.js.map +1 -1
  292. package/dist/src/tools/spec-init.d.ts +16 -2
  293. package/dist/src/tools/spec-init.d.ts.map +1 -1
  294. package/dist/src/tools/spec-init.js +58 -187
  295. package/dist/src/tools/spec-init.js.map +1 -1
  296. package/dist/src/tools/spec-loader.d.ts.map +1 -1
  297. package/dist/src/tools/spec-loader.js +16 -16
  298. package/dist/src/tools/spec-loader.js.map +1 -1
  299. package/dist/src/tools/spec-seeds.d.ts +33 -0
  300. package/dist/src/tools/spec-seeds.d.ts.map +1 -0
  301. package/dist/src/tools/spec-seeds.js +200 -0
  302. package/dist/src/tools/spec-seeds.js.map +1 -0
  303. package/dist/src/tools/spec-writer.d.ts.map +1 -1
  304. package/dist/src/tools/spec-writer.js +7 -9
  305. package/dist/src/tools/spec-writer.js.map +1 -1
  306. package/dist/src/tui/install-ui/ExtraMcpConfig.d.ts +11 -0
  307. package/dist/src/tui/install-ui/ExtraMcpConfig.d.ts.map +1 -0
  308. package/dist/src/tui/install-ui/ExtraMcpConfig.js +61 -0
  309. package/dist/src/tui/install-ui/ExtraMcpConfig.js.map +1 -0
  310. package/dist/src/tui/install-ui/InstallConfirm.d.ts +3 -0
  311. package/dist/src/tui/install-ui/InstallConfirm.d.ts.map +1 -1
  312. package/dist/src/tui/install-ui/InstallConfirm.js +1 -1
  313. package/dist/src/tui/install-ui/InstallConfirm.js.map +1 -1
  314. package/dist/src/tui/install-ui/InstallExecution.d.ts +2 -0
  315. package/dist/src/tui/install-ui/InstallExecution.d.ts.map +1 -1
  316. package/dist/src/tui/install-ui/InstallExecution.js +14 -2
  317. package/dist/src/tui/install-ui/InstallExecution.js.map +1 -1
  318. package/dist/src/tui/install-ui/InstallFlow.d.ts +1 -1
  319. package/dist/src/tui/install-ui/InstallFlow.d.ts.map +1 -1
  320. package/dist/src/tui/install-ui/InstallFlow.js +16 -3
  321. package/dist/src/tui/install-ui/InstallFlow.js.map +1 -1
  322. package/dist/src/tui/install-ui/InstallHub.d.ts +2 -0
  323. package/dist/src/tui/install-ui/InstallHub.d.ts.map +1 -1
  324. package/dist/src/tui/install-ui/InstallHub.js +8 -0
  325. package/dist/src/tui/install-ui/InstallHub.js.map +1 -1
  326. package/dist/src/tui/install-ui/InstallResult.d.ts.map +1 -1
  327. package/dist/src/tui/install-ui/InstallResult.js +3 -1
  328. package/dist/src/tui/install-ui/InstallResult.js.map +1 -1
  329. package/dist/src/utils/update-notices.js +31 -0
  330. package/dist/src/utils/update-notices.js.map +1 -1
  331. package/package.json +5 -2
  332. package/templates/business-test-report.json +1 -1
  333. package/templates/index.json +1 -1
  334. package/templates/roadmap.md +15 -9
  335. package/templates/state.json +18 -17
  336. package/workflows/analyze.md +79 -11
  337. package/workflows/auto-test.md +6 -6
  338. package/workflows/blueprint.md +431 -0
  339. package/workflows/brainstorm.md +603 -496
  340. package/workflows/business-test.md +7 -7
  341. package/workflows/codebase-rebuild.md +4 -4
  342. package/workflows/harvest.md +184 -10
  343. package/workflows/init.md +9 -8
  344. package/workflows/maestro.md +1 -1
  345. package/workflows/milestone-audit.md +12 -4
  346. package/workflows/milestone-complete.md +11 -6
  347. package/workflows/plan.md +88 -22
  348. package/workflows/roadmap-common.md +1 -1
  349. package/workflows/roadmap.md +13 -3
  350. package/workflows/spec-generate.md +24 -13
  351. package/workflows/ui-design.md +2 -2
  352. package/workflows/ui-style.md +1 -1
  353. package/.agy/agents/conceptual-planning-agent.md +0 -244
  354. package/.claude/agents/conceptual-planning-agent.md +0 -245
@@ -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
@@ -22,12 +22,12 @@ P6 gate: Pass (>=80%) → P7 | Review (60-79%) → P7 w/caveats | Fail (<60%)
22
22
  ## Arguments
23
23
 
24
24
  ```
25
- $ARGUMENTS: "<idea or @file> [-y] [-c] [--from-brainstorm SESSION-ID]"
25
+ $ARGUMENTS: "<idea or @file> [-y] [-c] [--from <source>]"
26
26
 
27
27
  <idea> -- Idea text or @file reference
28
28
  -y / --yes -- Auto mode, skip interactive questions
29
29
  -c / --continue -- Resume from last checkpoint
30
- --from-brainstorm -- Import brainstorm session as enriched seed
30
+ --from <source> -- Load upstream context package (brainstorm:ID, @file, or path) as enriched seed. Alias: --from-brainstorm
31
31
  ```
32
32
 
33
33
  ## Output Structure
@@ -80,12 +80,23 @@ Additional full-mode rules:
80
80
  Parse input, analyze the seed idea, optionally explore codebase, establish session.
81
81
 
82
82
  **Step 2.1: Input Parsing**
83
- - Parse $ARGUMENTS: extract idea/topic, flags (-y, -c, --from-brainstorm)
83
+ - Parse $ARGUMENTS: extract idea/topic, flags (-y, -c, --from)
84
84
  - 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
85
+ - If `--from <source>` (or `--from-brainstorm SESSION-ID` alias):
86
+ - Resolve source to `context-package.json`:
87
+ - `brainstorm:ID` `state.json.artifacts[type=brainstorm, id=ID].context_package`
88
+ - `@file` create import session → delegate extraction → context-package.json
89
+ - `path/` → load `path/context-package.json`
90
+ - `--from-brainstorm SESSION-ID` → alias for `--from brainstorm:{resolve(SESSION-ID)}`
91
+ - Load context-package.json as enriched seed:
92
+ - `requirements[]` → Phase 3 PRD seed requirements (skip Phase 1.5)
93
+ - `constraints[]` → Phase 4 Architecture ADR seed
94
+ - `domain.terminology[]` → Phase 2 Glossary seed
95
+ - `domain.problem_statement` → Phase 2 Product Brief context
96
+ - `non_goals[]` → Phase 2 Product Brief exclusions
97
+ - `insights[]` → Phase 4 Architecture decisions context
98
+ - `references[]` → available for deep-read when needed
99
+ - Set `input_type: "context-package"` — skip Phase 1.5
89
100
  - If `@file`: read file content as seed
90
101
  - If text: use directly as seed
91
102
  - Missing input → error E001
@@ -99,7 +110,7 @@ Output dir: .workflow/.spec/{session_id}/
99
110
  **Step 2.3: Seed Analysis via CLI**
100
111
  - Spawn CLI analysis to extract: problem_statement, target_users, domain, constraints, dimensions (3-5)
101
112
  - Assess complexity: simple (1-2 components) / moderate (3-5) / complex (6+)
102
- - For brainstorm input: enrich with feature decomposition data
113
+ - For context-package input: enrich with feature decomposition data
103
114
 
104
115
  **Step 2.4: Codebase Exploration** — follow roadmap-common.md
105
116
  - Output: `discovery-context.json` with relevant_files, patterns, tech_stack
@@ -125,7 +136,7 @@ Output dir: .workflow/.spec/{session_id}/
125
136
 
126
137
  ### Step 3: Requirement Expansion & Clarification (Phase 1.5)
127
138
 
128
- Skip if `--from-brainstorm` (requirements already in guidance-specification.md).
139
+ Skip if `--from` (requirements already in context-package.json).
129
140
 
130
141
  **Step 3.1: CLI Gap Analysis**
131
142
  - Analyze seed for completeness (score 1-10), identify missing dimensions
@@ -151,7 +162,7 @@ Generate product brief through multi-perspective CLI analysis.
151
162
  **Step 4.1: Load Context**
152
163
  - Read refined-requirements.json (preferred) or seed_analysis fallback
153
164
  - Read discovery-context.json (if codebase detected)
154
- - For brainstorm input: read guidance-specification.md sections
165
+ - For context-package input: read context-package.json domain and requirements sections
155
166
 
156
167
  **Step 4.2: Multi-CLI Parallel Analysis (3 perspectives)**
157
168
 
@@ -163,7 +174,7 @@ Generate product brief through multi-perspective CLI analysis.
163
174
 
164
175
  **Step 4.3: Synthesis**
165
176
  - Extract convergent themes (all agree), conflicts (need resolution), unique insights
166
- - For brainstorm input: cross-reference with guidance-specification decisions
177
+ - For context-package input: cross-reference with context-package insights and constraints
167
178
  - If `apiResearchContext` is set: inject API details into technical feasibility assessment
168
179
 
169
180
  **Step 4.4: Interactive Refinement**
@@ -388,7 +399,7 @@ Next: maestro-init (setup) | maestro-plan 1 (plan first phase)
388
399
  6. **Spec Type Specialization**: Templates adapt to service/api/library/platform via profiles
389
400
  7. **Terminology Consistency**: glossary.json from Phase 2 injected into all subsequent phases
390
401
  8. **Iterative Quality**: Phase 6.5 auto-fix loop (max 2 iterations)
391
- 9. **Brainstorm Integration**: `--from-brainstorm` imports guidance-specification.md as seed
402
+ 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
403
 
393
404
  ## State Management
394
405
 
@@ -397,7 +408,7 @@ Next: maestro-init (setup) | maestro-plan 1 (plan first phase)
397
408
  {
398
409
  "session_id": "SPEC-xxx-2026-03-15",
399
410
  "seed_input": "User input text",
400
- "input_type": "text|file|brainstorm",
411
+ "input_type": "text|file|context-package",
401
412
  "timestamp": "ISO8601",
402
413
  "mode": "interactive|auto",
403
414
  "complexity": "simple|moderate|complex",
@@ -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
 
@@ -1,244 +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
- - grep_search
9
- - view_file
10
- - write_to_file
11
- ---
12
-
13
- # Conceptual Planning Agent
14
-
15
- ## Role
16
- 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.
17
-
18
- ## Execution Flow
19
-
20
- ```
21
- STEP 1: Identify Mode
22
- → Parse [MODE] from prompt: ROLE_ANALYSIS | CROSS_ROLE_ANALYSIS | FEATURE_SPEC_GENERATION
23
-
24
- STEP 2: Load Context
25
- → Read all inputs specified in prompt (role template, guidance-spec, feature list, etc.)
26
- → If total input > 100KB: read only analysis.md index files, not sub-documents
27
-
28
- STEP 3: Execute Mode-Specific Generation
29
- → Role Analysis: Generate analysis files per role template structure
30
- → Cross-Role Analysis: Analyze multiple role outputs, return structured text
31
- → Feature Spec Generation: Generate feature-specs/ from cross-role results
32
-
33
- STEP 4: Write Files
34
- → Write all output files to paths specified in prompt
35
- → Verify file creation
36
-
37
- STEP 5: Return Summary
38
- → Report completion with file list and key metrics
39
- ```
40
-
41
- ## Mode 1: Role Analysis [ROLE_ANALYSIS]
42
-
43
- Generate analysis for a single role perspective.
44
-
45
- ### Input
46
- - `role_name`: Role to analyze as (e.g., system-architect, ux-expert)
47
- - `role_template`: Content from `~/.maestro/templates/planning-roles/{role}.md`
48
- - `guidance_specification`: Framework context with RFC 2119 decisions
49
- - `feature_list`: Feature decomposition table (if available)
50
- - `user_context`: Answers from interactive context gathering (if available)
51
- - `design_research`: External design research context (if available)
52
- - `project_specs`: Project specs loaded via `maestro spec load`
53
- - `style_skill`: Style package path (ui-designer only)
54
-
55
- ### Process
56
- 1. Read role template and guidance-specification
57
- 2. If `design_research` provided: integrate as evidence for recommendations
58
- 3. If `feature_list` available → feature-point organization; else → fallback organization
59
- 4. Generate analysis following role template's "Brainstorming Analysis Structure"
60
- 5. Apply RFC 2119 keywords to all behavioral requirements
61
- 6. For ui-designer with `style_skill`: load style package, apply design constraints
62
- 7. Write all output files
63
-
64
- ### Output: Feature-Point Organization (when feature list available)
65
-
66
- **`{role}/analysis.md`** — Role overview INDEX only (< 1500 words):
67
- ```markdown
68
- # {Role Title} Analysis: {Topic}
69
-
70
- ## Role Perspective Overview
71
- {Brief summary of role's approach to the topic}
72
-
73
- ## Feature Point Index
74
-
75
- | Feature | Analysis File | Key Decisions |
76
- |---------|--------------|---------------|
77
- | F-001 {name} | [analysis-F-001-{slug}.md](./analysis-F-001-{slug}.md) | {1-2 key decisions} |
78
- | F-002 {name} | [analysis-F-002-{slug}.md](./analysis-F-002-{slug}.md) | {1-2 key decisions} |
79
-
80
- ## Cross-Cutting Concerns
81
- See [analysis-cross-cutting.md](./analysis-cross-cutting.md)
82
-
83
- ## Key Recommendations
84
- {Top 3-5 recommendations from this role's perspective}
85
- ```
86
-
87
- **`{role}/analysis-cross-cutting.md`** — Cross-feature decisions (< 2000 words)
88
- **`{role}/analysis-F-{id}-{slug}.md`** — Per-feature analysis (< 2000 words each)
89
-
90
- ### Output: Fallback Organization (no feature list)
91
-
92
- **`{role}/analysis.md`** — Main analysis (< 3000 words)
93
- Optional `{role}/analysis-{slug}.md` sub-documents (max 5)
94
-
95
- ### Role-Specific Requirements
96
-
97
- **system-architect** MUST include:
98
- - Data Model (3-5 entities with fields, types, constraints, relationships)
99
- - State Machine (at least 1 entity lifecycle: ASCII diagram + transition table)
100
- - Error Handling Strategy (classification + recovery mechanisms)
101
- - Observability Requirements (5+ metrics, log events, health checks)
102
- - Configuration Model (configurable parameters with validation)
103
- - Boundary Scenarios (concurrency, rate limiting, shutdown, cleanup, scalability, DR)
104
-
105
- **ui-designer** with style-skill:
106
- - Load `.claude/skills/style-{package}/SKILL.md` for design constraints
107
- - Apply design tokens, color palettes, typography from style package
108
- - Reference style package decisions in analysis
109
-
110
- **All roles**: Constraints MUST use RFC 2119 keywords (MUST, SHOULD, MAY, MUST NOT, SHOULD NOT).
111
-
112
- ## Mode 2: Cross-Role Analysis [CROSS_ROLE_ANALYSIS]
113
-
114
- Analyze multiple role outputs to find conflicts, consensus, and enhancement opportunities.
115
-
116
- ### Input
117
- - Analysis index files from all participating roles (feature mode: analysis.md only)
118
- - Feature list for cross-referencing
119
- - Original user intent from session metadata
120
-
121
- ### Process
122
- 1. Read all role analysis.md index files
123
- 2. For each feature: extract consensus, conflicts, and cross-references across roles
124
- 3. Identify enhancement opportunities (gaps, synergies, missing perspectives)
125
- 4. Classify conflicts: [RESOLVED] (clear winner), [SUGGESTED] (recommended), [UNRESOLVED] (needs user input)
126
- 5. Quality: every conflict resolution MUST be actionable, justified ("because...tradeoff:..."), and scoped
127
-
128
- ### Output (return as structured text, do NOT write files)
129
-
130
- ```markdown
131
- ## Enhancement Recommendations
132
-
133
- ### EP-001: {title}
134
- - **Rationale**: {why this enhancement adds value}
135
- - **Affected Features**: F-001, F-003
136
- - **Source Roles**: system-architect, ux-expert
137
- - **Priority**: HIGH | MEDIUM | LOW
138
-
139
- ### EP-002: ...
140
-
141
- ## Feature Conflict Map
142
-
143
- ### F-001: {feature name}
144
- - **Consensus**: {what all roles agree on}
145
- - **Conflicts**:
146
- - [RESOLVED] {topic}: {decision} (because {rationale}, tradeoff: {what's sacrificed})
147
- - [SUGGESTED] {topic}: {recommendation} (confidence: HIGH/MEDIUM)
148
- - [UNRESOLVED] {topic}: {role-A says X, role-B says Y} → [DECISION NEEDED]
149
- - **Cross-Refs**: Depends on F-003 (shared data model), integrates with F-005 (API layer)
150
-
151
- ### F-002: ...
152
- ```
153
-
154
- ## Mode 3: Feature Spec Generation [FEATURE_SPEC_GENERATION]
155
-
156
- Generate feature specifications from cross-role analysis results.
157
-
158
- ### Input
159
- - Cross-role analysis output (enhancement_recommendations + feature_conflict_map)
160
- - `selected_enhancements`: User-selected EP-IDs
161
- - `clarification_answers`: User responses to clarification questions
162
- - `original_user_intent`: From session metadata
163
- - Role analysis files for detailed reference
164
-
165
- ### Process
166
- 1. Build spec_context: selected_enhancements + clarification_answers + user_intent
167
- 2. For each feature, apply Four-Layer Aggregation:
168
- - **Layer 1: Direct Reference** — Consensus points → quote roles
169
- - **Layer 2: Structured Extraction** — Complementary findings → merge, de-duplicate
170
- - **Layer 3: Conflict Distillation** — [RESOLVED] → decision, [SUGGESTED] → recommended, [UNRESOLVED] → [DECISION NEEDED]
171
- - **Layer 4: Cross-Feature Annotation** — Dependency notes, integration points
172
- 3. Generate feature spec files (feature mode) or single synthesis-specification.md (fallback)
173
- 4. Generate feature-index.json and synthesis-changelog.md
174
- 5. Self-evaluate complexity_score (0-8 scale)
175
- 6. Write all files
176
-
177
- ### Output: Feature Mode
178
-
179
- **`feature-specs/F-{id}-{slug}.md`** per feature (7 sections, 1500-2500 words):
180
-
181
- 1. **Requirements Summary** — RFC 2119 keywords, derived from guidance-specification
182
- 2. **Design Decisions** [CORE — 40%+ of word count] — Aggregated from role analyses, conflicts resolved
183
- 3. **Interface Contract** — APIs, data formats, integration points
184
- 4. **Constraints & Risks** — Technical limits, known risks, mitigation
185
- 5. **Acceptance Criteria** — Testable conditions for feature completion
186
- 6. **Detailed Analysis References** — @-links to role analysis files (e.g., @system-architect/analysis-F-001-auth.md)
187
- 7. **Cross-Feature Dependencies** — What this feature needs from / provides to other features
188
-
189
- **`feature-index.json`**:
190
- ```json
191
- {
192
- "features": [
193
- { "id": "F-001", "slug": "auth", "title": "Authentication", "spec_path": "feature-specs/F-001-auth.md", "status": "complete", "dependencies": ["F-003"] }
194
- ],
195
- "enhancements_applied": ["EP-001", "EP-003"],
196
- "complexity_score": 5
197
- }
198
- ```
199
-
200
- **`synthesis-changelog.md`** — Audit trail: enhancements applied, clarifications resolved, conflicts resolved
201
-
202
- ### Output: Fallback Mode (no feature list)
203
-
204
- **`synthesis-specification.md`** — Single consolidated specification document
205
- **`synthesis-changelog.md`** — Same audit trail
206
-
207
- ### Complexity Score (0-8)
208
-
209
- | Factor | Score |
210
- |--------|-------|
211
- | Features > 5 | +1 |
212
- | Unresolved conflicts > 2 | +2 |
213
- | Participating roles > 4 | +1 |
214
- | Cross-feature dependencies > 3 | +1 |
215
- | Enhancement count > 4 | +1 |
216
- | Clarification rounds > 2 | +1 |
217
- | system-architect involved | +1 |
218
-
219
- If complexity_score >= 4: report `[REVIEW_RECOMMENDED]` in output for orchestrator to trigger review agent.
220
-
221
- ## Return Protocol
222
-
223
- - **TASK COMPLETE**: All output files written. Include: file list, word counts, complexity_score (Mode 3 only).
224
- - **TASK BLOCKED**: Cannot proceed (missing role template, empty guidance-specification, no analysis files). Include: blocker description.
225
-
226
- ## Rules
227
-
228
- ### ALWAYS
229
- - Follow role template "Brainstorming Analysis Structure" strictly
230
- - Use RFC 2119 keywords for all behavioral requirements
231
- - Respect word count limits per output file
232
- - Feature-point organization: analysis.md is INDEX only, not full analysis
233
- - Reference guidance-specification.md decisions, do not contradict them
234
- - Include design research findings when provided
235
- - Apply Four-Layer Aggregation for spec generation
236
- - Track conflict resolution quality: actionable + justified + scoped
237
-
238
- ### NEVER
239
- - Write files outside the output directory specified in the prompt (source code, project config, etc. are read-only context)
240
- - Overlap with other roles' focus areas in role analysis mode
241
- - Write files in cross-role analysis mode (return text only)
242
- - Exceed word count limits (hard cap)
243
- - Use interrogative sentences in specifications (all statements must be declarative)
244
- - Omit [DECISION NEEDED] markers for unresolved conflicts
@@ -1,245 +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
9
- - Write
10
- - Glob
11
- - Grep
12
- ---
13
-
14
- # Conceptual Planning Agent
15
-
16
- ## Role
17
- 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.
18
-
19
- ## Execution Flow
20
-
21
- ```
22
- STEP 1: Identify Mode
23
- → Parse [MODE] from prompt: ROLE_ANALYSIS | CROSS_ROLE_ANALYSIS | FEATURE_SPEC_GENERATION
24
-
25
- STEP 2: Load Context
26
- → Read all inputs specified in prompt (role template, guidance-spec, feature list, etc.)
27
- → If total input > 100KB: read only analysis.md index files, not sub-documents
28
-
29
- STEP 3: Execute Mode-Specific Generation
30
- → Role Analysis: Generate analysis files per role template structure
31
- → Cross-Role Analysis: Analyze multiple role outputs, return structured text
32
- → Feature Spec Generation: Generate feature-specs/ from cross-role results
33
-
34
- STEP 4: Write Files
35
- → Write all output files to paths specified in prompt
36
- → Verify file creation
37
-
38
- STEP 5: Return Summary
39
- → Report completion with file list and key metrics
40
- ```
41
-
42
- ## Mode 1: Role Analysis [ROLE_ANALYSIS]
43
-
44
- Generate analysis for a single role perspective.
45
-
46
- ### Input
47
- - `role_name`: Role to analyze as (e.g., system-architect, ux-expert)
48
- - `role_template`: Content from `~/.maestro/templates/planning-roles/{role}.md`
49
- - `guidance_specification`: Framework context with RFC 2119 decisions
50
- - `feature_list`: Feature decomposition table (if available)
51
- - `user_context`: Answers from interactive context gathering (if available)
52
- - `design_research`: External design research context (if available)
53
- - `project_specs`: Project specs loaded via `maestro spec load`
54
- - `style_skill`: Style package path (ui-designer only)
55
-
56
- ### Process
57
- 1. Read role template and guidance-specification
58
- 2. If `design_research` provided: integrate as evidence for recommendations
59
- 3. If `feature_list` available → feature-point organization; else → fallback organization
60
- 4. Generate analysis following role template's "Brainstorming Analysis Structure"
61
- 5. Apply RFC 2119 keywords to all behavioral requirements
62
- 6. For ui-designer with `style_skill`: load style package, apply design constraints
63
- 7. Write all output files
64
-
65
- ### Output: Feature-Point Organization (when feature list available)
66
-
67
- **`{role}/analysis.md`** — Role overview INDEX only (< 1500 words):
68
- ```markdown
69
- # {Role Title} Analysis: {Topic}
70
-
71
- ## Role Perspective Overview
72
- {Brief summary of role's approach to the topic}
73
-
74
- ## Feature Point Index
75
-
76
- | Feature | Analysis File | Key Decisions |
77
- |---------|--------------|---------------|
78
- | F-001 {name} | [analysis-F-001-{slug}.md](./analysis-F-001-{slug}.md) | {1-2 key decisions} |
79
- | F-002 {name} | [analysis-F-002-{slug}.md](./analysis-F-002-{slug}.md) | {1-2 key decisions} |
80
-
81
- ## Cross-Cutting Concerns
82
- See [analysis-cross-cutting.md](./analysis-cross-cutting.md)
83
-
84
- ## Key Recommendations
85
- {Top 3-5 recommendations from this role's perspective}
86
- ```
87
-
88
- **`{role}/analysis-cross-cutting.md`** — Cross-feature decisions (< 2000 words)
89
- **`{role}/analysis-F-{id}-{slug}.md`** — Per-feature analysis (< 2000 words each)
90
-
91
- ### Output: Fallback Organization (no feature list)
92
-
93
- **`{role}/analysis.md`** — Main analysis (< 3000 words)
94
- Optional `{role}/analysis-{slug}.md` sub-documents (max 5)
95
-
96
- ### Role-Specific Requirements
97
-
98
- **system-architect** MUST include:
99
- - Data Model (3-5 entities with fields, types, constraints, relationships)
100
- - State Machine (at least 1 entity lifecycle: ASCII diagram + transition table)
101
- - Error Handling Strategy (classification + recovery mechanisms)
102
- - Observability Requirements (5+ metrics, log events, health checks)
103
- - Configuration Model (configurable parameters with validation)
104
- - Boundary Scenarios (concurrency, rate limiting, shutdown, cleanup, scalability, DR)
105
-
106
- **ui-designer** with style-skill:
107
- - Load `.claude/skills/style-{package}/SKILL.md` for design constraints
108
- - Apply design tokens, color palettes, typography from style package
109
- - Reference style package decisions in analysis
110
-
111
- **All roles**: Constraints MUST use RFC 2119 keywords (MUST, SHOULD, MAY, MUST NOT, SHOULD NOT).
112
-
113
- ## Mode 2: Cross-Role Analysis [CROSS_ROLE_ANALYSIS]
114
-
115
- Analyze multiple role outputs to find conflicts, consensus, and enhancement opportunities.
116
-
117
- ### Input
118
- - Analysis index files from all participating roles (feature mode: analysis.md only)
119
- - Feature list for cross-referencing
120
- - Original user intent from session metadata
121
-
122
- ### Process
123
- 1. Read all role analysis.md index files
124
- 2. For each feature: extract consensus, conflicts, and cross-references across roles
125
- 3. Identify enhancement opportunities (gaps, synergies, missing perspectives)
126
- 4. Classify conflicts: [RESOLVED] (clear winner), [SUGGESTED] (recommended), [UNRESOLVED] (needs user input)
127
- 5. Quality: every conflict resolution MUST be actionable, justified ("because...tradeoff:..."), and scoped
128
-
129
- ### Output (return as structured text, do NOT write files)
130
-
131
- ```markdown
132
- ## Enhancement Recommendations
133
-
134
- ### EP-001: {title}
135
- - **Rationale**: {why this enhancement adds value}
136
- - **Affected Features**: F-001, F-003
137
- - **Source Roles**: system-architect, ux-expert
138
- - **Priority**: HIGH | MEDIUM | LOW
139
-
140
- ### EP-002: ...
141
-
142
- ## Feature Conflict Map
143
-
144
- ### F-001: {feature name}
145
- - **Consensus**: {what all roles agree on}
146
- - **Conflicts**:
147
- - [RESOLVED] {topic}: {decision} (because {rationale}, tradeoff: {what's sacrificed})
148
- - [SUGGESTED] {topic}: {recommendation} (confidence: HIGH/MEDIUM)
149
- - [UNRESOLVED] {topic}: {role-A says X, role-B says Y} → [DECISION NEEDED]
150
- - **Cross-Refs**: Depends on F-003 (shared data model), integrates with F-005 (API layer)
151
-
152
- ### F-002: ...
153
- ```
154
-
155
- ## Mode 3: Feature Spec Generation [FEATURE_SPEC_GENERATION]
156
-
157
- Generate feature specifications from cross-role analysis results.
158
-
159
- ### Input
160
- - Cross-role analysis output (enhancement_recommendations + feature_conflict_map)
161
- - `selected_enhancements`: User-selected EP-IDs
162
- - `clarification_answers`: User responses to clarification questions
163
- - `original_user_intent`: From session metadata
164
- - Role analysis files for detailed reference
165
-
166
- ### Process
167
- 1. Build spec_context: selected_enhancements + clarification_answers + user_intent
168
- 2. For each feature, apply Four-Layer Aggregation:
169
- - **Layer 1: Direct Reference** — Consensus points → quote roles
170
- - **Layer 2: Structured Extraction** — Complementary findings → merge, de-duplicate
171
- - **Layer 3: Conflict Distillation** — [RESOLVED] → decision, [SUGGESTED] → recommended, [UNRESOLVED] → [DECISION NEEDED]
172
- - **Layer 4: Cross-Feature Annotation** — Dependency notes, integration points
173
- 3. Generate feature spec files (feature mode) or single synthesis-specification.md (fallback)
174
- 4. Generate feature-index.json and synthesis-changelog.md
175
- 5. Self-evaluate complexity_score (0-8 scale)
176
- 6. Write all files
177
-
178
- ### Output: Feature Mode
179
-
180
- **`feature-specs/F-{id}-{slug}.md`** per feature (7 sections, 1500-2500 words):
181
-
182
- 1. **Requirements Summary** — RFC 2119 keywords, derived from guidance-specification
183
- 2. **Design Decisions** [CORE — 40%+ of word count] — Aggregated from role analyses, conflicts resolved
184
- 3. **Interface Contract** — APIs, data formats, integration points
185
- 4. **Constraints & Risks** — Technical limits, known risks, mitigation
186
- 5. **Acceptance Criteria** — Testable conditions for feature completion
187
- 6. **Detailed Analysis References** — @-links to role analysis files (e.g., @system-architect/analysis-F-001-auth.md)
188
- 7. **Cross-Feature Dependencies** — What this feature needs from / provides to other features
189
-
190
- **`feature-index.json`**:
191
- ```json
192
- {
193
- "features": [
194
- { "id": "F-001", "slug": "auth", "title": "Authentication", "spec_path": "feature-specs/F-001-auth.md", "status": "complete", "dependencies": ["F-003"] }
195
- ],
196
- "enhancements_applied": ["EP-001", "EP-003"],
197
- "complexity_score": 5
198
- }
199
- ```
200
-
201
- **`synthesis-changelog.md`** — Audit trail: enhancements applied, clarifications resolved, conflicts resolved
202
-
203
- ### Output: Fallback Mode (no feature list)
204
-
205
- **`synthesis-specification.md`** — Single consolidated specification document
206
- **`synthesis-changelog.md`** — Same audit trail
207
-
208
- ### Complexity Score (0-8)
209
-
210
- | Factor | Score |
211
- |--------|-------|
212
- | Features > 5 | +1 |
213
- | Unresolved conflicts > 2 | +2 |
214
- | Participating roles > 4 | +1 |
215
- | Cross-feature dependencies > 3 | +1 |
216
- | Enhancement count > 4 | +1 |
217
- | Clarification rounds > 2 | +1 |
218
- | system-architect involved | +1 |
219
-
220
- If complexity_score >= 4: report `[REVIEW_RECOMMENDED]` in output for orchestrator to trigger review agent.
221
-
222
- ## Return Protocol
223
-
224
- - **TASK COMPLETE**: All output files written. Include: file list, word counts, complexity_score (Mode 3 only).
225
- - **TASK BLOCKED**: Cannot proceed (missing role template, empty guidance-specification, no analysis files). Include: blocker description.
226
-
227
- ## Rules
228
-
229
- ### ALWAYS
230
- - Follow role template "Brainstorming Analysis Structure" strictly
231
- - Use RFC 2119 keywords for all behavioral requirements
232
- - Respect word count limits per output file
233
- - Feature-point organization: analysis.md is INDEX only, not full analysis
234
- - Reference guidance-specification.md decisions, do not contradict them
235
- - Include design research findings when provided
236
- - Apply Four-Layer Aggregation for spec generation
237
- - Track conflict resolution quality: actionable + justified + scoped
238
-
239
- ### NEVER
240
- - Write files outside the output directory specified in the prompt (source code, project config, etc. are read-only context)
241
- - Overlap with other roles' focus areas in role analysis mode
242
- - Write files in cross-role analysis mode (return text only)
243
- - Exceed word count limits (hard cap)
244
- - Use interrogative sentences in specifications (all statements must be declarative)
245
- - Omit [DECISION NEEDED] markers for unresolved conflicts