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
@@ -0,0 +1,258 @@
1
+ ---
2
+ name: maestro
3
+ description: Auto-route intent to optimal command chain
4
+ argument-hint: "<intent> [-y] [-c] [--dry-run] [--exec auto|cli|internal] [--tool <name>] [--super]"
5
+ allowed-tools:
6
+ - read_file
7
+ - write_file
8
+ - edit_file
9
+ - shell
10
+ - find_files
11
+ - search
12
+ - delegate_subagent
13
+ - ask_user
14
+ - track_tasks
15
+ ---
16
+ <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
17
+
18
+ <purpose>
19
+ Orchestrate all maestro commands based on user intent and project state.
20
+ Classify intent → select chain → create session → dispatch to `maestro-ralph-execute`.
21
+
22
+ Entry points:
23
+ - **`/maestro "intent"`** — Intent-based: classify → chain → execute
24
+ - **`/maestro -c`** — Resume previous session
25
+ - **`/maestro --dry-run "intent"`** — Show chain, no execution
26
+ - **`/maestro --super "intent"`** — Production-ready mode (read maestro-super.md)
27
+
28
+ Session: `.workflow/.maestro/{session_id}/status.json`
29
+ </purpose>
30
+
31
+ <deferred_reading>
32
+ - [maestro.md](~/.maestro/workflows/maestro.md) — read at execution start for intent analysis + chain selection
33
+ - [maestro-super.md](~/.maestro/workflows/maestro-super.md) — read when `--super` flag active
34
+ </deferred_reading>
35
+
36
+ <context>
37
+ $ARGUMENTS — user intent text, or special keywords.
38
+
39
+ **Keywords:** `continue`/`next`/`go` → state-based routing; `status` → `invoke_skill("manage-status")`
40
+
41
+ **Flags:**
42
+ - `-y` / `--yes` — Auto mode: skip clarification, skip confirmation, auto-skip on errors
43
+ - `-c` / `--continue` — Resume previous session
44
+ - `--dry-run` — Show chain without executing
45
+ - `--exec <mode>` — `auto` (default), `cli`, `internal`
46
+ - `--tool <name>` — CLI tool for delegates (default: claude)
47
+ - `--super` — Read and follow `maestro-super.md`
48
+ </context>
49
+
50
+ <invariants>
51
+ 1. **All chains dispatch via maestro-ralph-execute** — maestro never executes steps directly
52
+ 2. **Session before execution** — status.json created before any step runs
53
+ 3. **Auto flags only to supporting commands** — unlisted commands execute as-is
54
+ 4. **Decomposition contract shared with maestro-ralph** — broad/lifecycle intents run S_DECOMPOSE producing the SAME additive block (`boundary_contract`, `execution_criteria`, `task_decomposition`)。Reference maestro-ralph `A_DECOMPOSE_TASKS`
55
+ 5. **status.json 唯一真源** — 不生成 `goal-checklist.md` 或外部清单
56
+ 6. **Default step type = internal** — chain 内每个 step 解析 `command_scope`/`command_path`(全局优先 `~/.claude/commands/{name}.md`,fallback 项目)
57
+ 7. **Topology awareness** — chain catalog 含 brainstorm / blueprint / analyze-macro(text) / analyze(numeric phase) / roadmap / plan(三路径) / execute / verify / ...;scope_verdict 路由由 ralph 在 `post-analyze-scope` 决定
58
+ 8. **D-007 milestone 反查** — 数字 phase 步骤的 `milestone_id` 由 `state.json.milestones[].phase_slugs` 反查得出
59
+ 9. **每个 step 必须 `completion_confirmed: true`** — 基于 `--- COMPLETION STATUS ---` 的 `STATUS: DONE`
60
+ 10. **schema 向后兼容** — 新增字段全部可选;既有字段名不删不改
61
+ </invariants>
62
+
63
+ <state_machine>
64
+
65
+ <states>
66
+ S_PARSE — 解析参数、检测 flags PERSIST: —
67
+ S_RESUME — 扫描已有 session、恢复执行 PERSIST: —
68
+ S_CLASSIFY — 意图分类、chain 选择 PERSIST: —
69
+ S_DECOMPOSE — 边界澄清、写执行准则+子目标清单 PERSIST: session.boundary_contract, .execution_criteria, .task_decomposition
70
+ S_CREATE — 创建 session + status.json PERSIST: session (全量)
71
+ S_DRY_RUN — 显示 chain 后结束 PERSIST: —
72
+ S_CONFIRM — 用户确认(auto_mode 跳过) PERSIST: —
73
+ S_DISPATCH — 移交 maestro-ralph-execute PERSIST: —
74
+ S_FALLBACK — 意图无法分类、请求输入 PERSIST: —
75
+ </states>
76
+
77
+ <transitions>
78
+
79
+ S_PARSE:
80
+ → S_RESUME WHEN: -c / --continue flag
81
+ → S_CLASSIFY WHEN: intent text present
82
+ → S_CLASSIFY WHEN: keyword "continue"/"next"/"go" DO: A_STATE_BASED_ROUTE
83
+ → S_FALLBACK WHEN: no intent AND no flags
84
+
85
+ S_RESUME:
86
+ → S_DISPATCH WHEN: session found DO: A_LOCATE_SESSION
87
+ → S_FALLBACK WHEN: no session found
88
+
89
+ S_CLASSIFY:
90
+ → S_DECOMPOSE WHEN: chain resolved DO: A_CLASSIFY_INTENT
91
+ → S_FALLBACK WHEN: no match AND auto_mode
92
+ → S_CLASSIFY WHEN: no match AND not auto_mode DO: A_CLARIFY
93
+ GUARD: max 2 clarification rounds → S_FALLBACK
94
+
95
+ S_DECOMPOSE:
96
+ → S_CREATE DO: A_DECOMPOSE_TASKS
97
+ GUARD: broad intent (重构/全面/重写/迁移/overhaul/migrate/rewrite) on a multi-step lifecycle chain → MUST clarify even if auto_mode
98
+ GUARD: single-step chain OR narrow intent OR chain ∈ {status,init,quick} → skip decomposition (pass through)
99
+
100
+ S_CREATE:
101
+ → S_DRY_RUN WHEN: --dry-run flag DO: A_CREATE_SESSION
102
+ → S_CONFIRM WHEN: not auto_mode DO: A_CREATE_SESSION
103
+ → S_DISPATCH WHEN: auto_mode DO: A_CREATE_SESSION
104
+
105
+ S_DRY_RUN:
106
+ → END DO: display chain with step types
107
+
108
+ S_CONFIRM:
109
+ → S_DISPATCH WHEN: user confirms
110
+ → S_PARSE WHEN: user wants to modify
111
+ → END WHEN: user cancels
112
+
113
+ S_DISPATCH:
114
+ → END DO: invoke_skill({ skill: "maestro-ralph-execute" })
115
+
116
+ S_FALLBACK:
117
+ → S_CLASSIFY WHEN: user provides new intent DO: ask_user
118
+ → END WHEN: user cancels
119
+
120
+ </transitions>
121
+
122
+ <actions>
123
+
124
+ ### A_STATE_BASED_ROUTE
125
+
126
+ 1. Read `.workflow/state.json` → determine next logical step
127
+ 2. Convert to equivalent intent for chain classification
128
+
129
+ ### A_LOCATE_SESSION
130
+
131
+ 1. Scan `.workflow/.maestro/*/status.json`, filter `status == "running"`, sort DESC
132
+ 2. Take most recent; if not found → S_FALLBACK
133
+
134
+ ### A_CLASSIFY_INTENT
135
+
136
+ 1. Read `~/.maestro/workflows/maestro.md` from deferred_reading
137
+ 2. Match intent to task_type via chain catalog (semantic)
138
+ 3. Select chain from chainMap,遵循拓扑约束:
139
+ - 头脑风暴/探索 → `brainstorm`
140
+ - 正式规格/spec-generate/7-phase → `blueprint`
141
+ - 项目初始化 → `init`
142
+ - 宽/中等意图 + 无数字 phase → `analyze-macro`(产 scope_verdict,由 ralph 在 `post-analyze-scope` 决定是否插入 roadmap+analyze 或直跳 plan --from analyze)
143
+ - 数字 phase 上下文 → `analyze {phase}` → `plan {phase}` → `execute {phase}` → `verify {phase}` → quality pipeline
144
+ - 已有 analyze artifact 想直达执行 → `plan --from analyze:{ANL_ID}` → execute → verify
145
+ - 已有 blueprint artifact → `plan --from blueprint:{BLP_ID}` → execute → verify
146
+ 4. 每个 step 默认 `type: "internal"`;解析 `command_scope` + `command_path`(全局优先 fallback 项目);写入 `step.stage` / `step.scope` / `step.source_artifact_ref`(如 `--from` 注入时)
147
+
148
+ ### A_CLARIFY
149
+
150
+ 1. `ask_user` with parsed intent + available chain options
151
+ 2. Re-classify with user response
152
+
153
+ ### A_DECOMPOSE_TASKS
154
+
155
+ 与 maestro-ralph `A_DECOMPOSE_TASKS` 共享分解契约。Condensed:
156
+
157
+ 1. 分类意图广度。narrow / 单步 / `{status,init,quick}` 链跳过
158
+ 2. broad/medium → `ask_user` ≤3 轮:Scope / Constraints / Definition of Done
159
+ 3. 派生 `execution_criteria` + `task_decomposition`(每个 sub-goal 含 `done_when` + `evidence` + `lifecycle` + `completion_confirmed: false`)
160
+ 4. **status.json 唯一真源**:写入 `boundary_contract` / `execution_criteria` / `task_decomposition`;不生成 markdown 清单
161
+ 5. 在最后一个 evidence-producing stage(verify/review/test)之后、`milestone-complete` 之前追加 `decision:post-goal-audit`。ralph-execute 在该节点按需动态生长 `steps[]`
162
+ 6. **输出 `/goal` 绑定提示词:**
163
+ ```
164
+ 📋 任务分解完成。复制下面一行设定目标,会话在子目标全部达成前不停:
165
+
166
+ /goal 目标达成条件: {session_dir}/status.json 中 task_decomposition[*].status == "done" 且 task_decomposition[*].completion_confirmed == true 且 steps[*].completion_confirmed == true。未达成时:阅读 {session_dir}/status.json 取得 execution_criteria / boundary_contract / task_decomposition / steps 作为行动手册,调用 /maestro-ralph continue 推进;严禁手动执行 skill 或越界修改 status.json.boundary_contract.out_of_scope。
167
+ ```
168
+
169
+ ### A_CREATE_SESSION
170
+
171
+ 1. Read `.workflow/state.json` 获取 phase / milestone(含 D-007 反查 `phase_slugs`);读最新 macro analyze artifact 注入 `scope_verdict` + `analyze_macro_id`(如存在);读最新 blueprint artifact 注入 `blueprint_id`
172
+ 2. Create `.workflow/.maestro/maestro-{YYYYMMDD-HHMMSS}/status.json`(与 ralph 共用 schema):
173
+ ```json
174
+ {
175
+ "session_id", "source": "maestro", "intent", "task_type", "chain_name",
176
+ "phase", "phase_is_new": false, "milestone": "",
177
+ "scope_verdict": null, "analyze_macro_id": null, "blueprint_id": null,
178
+ "auto_mode": false, "exec_mode": "auto", "cli_tool": "claude",
179
+ "context": { "scratch_dir": null, "plan_dir": null, "analysis_dir": null,
180
+ "brainstorm_dir": null, "blueprint_dir": null, "issue_id": null },
181
+ "steps": [{
182
+ "index": 0, "type": "internal|external|decision",
183
+ "skill": "", "args": "",
184
+ "stage": "", "scope": null,
185
+ "command_scope": "global|project|missing|null",
186
+ "command_path": "~/.claude/commands/{name}.md | .claude/commands/{name}.md | null",
187
+ "milestone_id": null, "source_artifact_ref": null,
188
+ "status": "pending", "goal_ref": null,
189
+ "completion_confirmed": false, "completion_status": null,
190
+ "completion_evidence": null, "completed_at": null
191
+ }],
192
+ "waves": [], "current_step": 0, "status": "running",
193
+ "boundary_contract": {}, "execution_criteria": [],
194
+ "task_decomposition": [], "task_decomposition_all_done": false
195
+ }
196
+ ```
197
+ Decomposition 字段仅在 A_DECOMPOSE_TASKS 产出时写入(additive)
198
+ 3. Validate: 所有 step 的 `command_scope != "missing"`;否则 raise E005 列出缺失 skill
199
+ 4. Initialize tracking via `track_tasks`
200
+ 5. If `--super`: read `maestro-super.md`, follow it completely
201
+
202
+ </actions>
203
+
204
+ </state_machine>
205
+
206
+ <appendix>
207
+
208
+ ### Auto-Yes Flag Map
209
+
210
+ | Command | Auto Flag | Effect |
211
+ |---------|-----------|--------|
212
+ | maestro-init | `-y` | Skip interactive questioning |
213
+ | maestro-analyze | `-y` | Skip scoping, auto-deepen |
214
+ | maestro-brainstorm | `-y` | Skip questions, use defaults |
215
+ | maestro-blueprint | `-y` | Skip interview, use recommended defaults |
216
+ | maestro-roadmap | `-y` | Skip questions (create/revise/review) |
217
+ | maestro-impeccable | `-y` | Auto-select design variant + skip confirmations |
218
+ | maestro-plan | `-y` | Skip confirmations and clarification |
219
+ | maestro-execute | `-y` | Skip confirmations, blocked auto-continue |
220
+ | quality-auto-test | `-y` | Skip plan confirmation |
221
+ | quality-test | `-y --auto-fix` | Auto-trigger gap-fix loop |
222
+ | quality-retrospective | `-y` | Accept all routing recommendations |
223
+ | maestro-milestone-complete | `-y` | Skip knowledge promotion |
224
+
225
+ Unlisted commands have no auto flags.
226
+
227
+ ### Error Codes
228
+
229
+ | Code | Severity | Description | Recovery |
230
+ |------|----------|-------------|----------|
231
+ | E001 | error | No intent and project not initialized | Prompt or suggest maestro-init |
232
+ | E002 | error | Clarity too low after 2 rounds | Show parsed intent, ask rephrase |
233
+ | E003 | error | Chain step failed + user abort | Record partial, suggest -c resume |
234
+ | E004 | error | Resume session not found | Show available sessions |
235
+ | E005 | error | command_scope == "missing" for one or more steps | List missing skills, abort build |
236
+ | W001 | warning | Ambiguous intent, multiple chains | Present options |
237
+ | W002 | warning | Step completed with warnings | Log and continue |
238
+ | W003 | warning | State suggests different chain | Show discrepancy |
239
+
240
+ ### Success Criteria
241
+
242
+ - [ ] Intent classified with task_type, complexity, clarity_score
243
+ - [ ] Chain catalog 覆盖 brainstorm / blueprint / analyze-macro / analyze / roadmap / plan(三路径) / execute / verify / quality pipeline
244
+ - [ ] D-007: 数字 phase 步骤的 `milestone_id` 通过 `state.json.milestones[].phase_slugs` 反查
245
+ - [ ] macro analyze 后跟 `decision:post-analyze-scope`(由 ralph 评估 scope_verdict 决定下游链路)
246
+ - [ ] plan 支持 `{phase}` / `--from analyze:{ANL_ID}` / `--from blueprint:{BLP_ID}` 三路径;`source_artifact_ref` 写入 step
247
+ - [ ] Broad lifecycle intents decomposed (≤3 boundary questions); narrow/single-step skip
248
+ - [ ] status.json 唯一真源;无 markdown 清单;post-goal-audit 节点在 decomposed 时追加;/goal 提示词以 status.json 为判据
249
+ - [ ] Chain selected and confirmed (or auto-confirmed)
250
+ - [ ] Session dir created with status.json before execution; decomposition fields additive-only
251
+ - [ ] 每个 step 含 `command_scope` + `command_path` + `completion_confirmed` 字段
252
+ - [ ] Auto flags propagated to supporting commands only
253
+ - [ ] All chains dispatched via maestro-ralph-execute
254
+ - [ ] Low-complexity intents routed to maestro-quick
255
+ - [ ] (super) Requirements validated before roadmap
256
+ - [ ] (super) Each milestone scored >= 80%
257
+
258
+ </appendix>
@@ -0,0 +1,165 @@
1
+ ---
2
+ name: maestro-amend
3
+ description: Generate overlays to fix workflow command deficiencies
4
+ argument-hint: "[description] [--from-verify <dir>] [--from-review <dir>] [--from-session <id>] [--from-issues ISS-xxx,...] [--scan] [--dry-run]"
5
+ allowed-tools:
6
+ - read_file
7
+ - write_file
8
+ - shell
9
+ - find_files
10
+ - search
11
+ - ask_user
12
+ ---
13
+ <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
14
+
15
+ <purpose>
16
+ Signal-driven overlay generator — collect workflow deficiency signals from multiple sources, diagnose which commands need amendment, batch-generate targeted overlays. All amendments use overlay system (`~/.maestro/overlays/*.json`) — non-invasive, idempotent, survives reinstall.
17
+
18
+ Differs from `/maestro-overlay` (single explicit intent). This command **discovers** what needs amending by analyzing workflow artifacts.
19
+ </purpose>
20
+
21
+ <required_reading>
22
+ @~/.maestro/workflows/overlays.md
23
+ @~/.maestro/cli-tools.json
24
+ </required_reading>
25
+
26
+ <context>
27
+ $ARGUMENTS — optional description and/or source flags.
28
+
29
+ **Signal sources**:
30
+
31
+ | Flag | Source | Collects |
32
+ |------|--------|----------|
33
+ | `--from-verify <dir>` | verification.json | Workflow gaps from verify failures |
34
+ | `--from-review <dir>` | review.json | Process deficiencies from code review |
35
+ | `--from-session <id>` | Session artifacts | Problems during workflow execution |
36
+ | `--from-issues ISS-xxx,...` | issues.jsonl | Issues tracing to command deficiency |
37
+ | `--scan` | Auto-scan .workflow/ | Discover all workflow-related signals |
38
+ | _(positional text)_ | User description | Direct observation |
39
+
40
+ Multiple combinable. No flags + no description → interactive (scan + ask_user).
41
+
42
+ **Control**: `--dry-run` (preview, don't install), `-y` (skip confirmations)
43
+
44
+ **CLI targeting**: `"cli": "claude"` (default, patches .claude/commands/), `"codex"` (patches .codex/skills/), `"both"` (both paths)
45
+
46
+ **Output**: `~/.maestro/overlays/amend-{slug}.json` + optional `~/.maestro/overlays/docs/amend-{slug}.md`
47
+ </context>
48
+
49
+ <state_machine>
50
+
51
+ <states>
52
+ S_COLLECT — 收集信号(从 flags / scan / description) PERSIST: —
53
+ S_DIAGNOSE — 映射信号到命令补丁 PERSIST: —
54
+ S_GROUP — 分组、规划 overlay 粒度 PERSIST: —
55
+ S_PREVIEW — 展示注入点地图、用户确认 PERSIST: —
56
+ S_DRAFT — 生成 overlay JSON PERSIST: overlay files
57
+ S_INSTALL — 安装 overlay PERSIST: command files
58
+ S_REPORT — 报告摘要 + post-patch routing PERSIST: —
59
+ </states>
60
+
61
+ <transitions>
62
+
63
+ S_COLLECT:
64
+ → S_DIAGNOSE WHEN: signals found DO: A_COLLECT_SIGNALS
65
+ → ERROR(E001) WHEN: no signals from any source
66
+
67
+ S_DIAGNOSE:
68
+ → S_GROUP WHEN: command deficiencies identified DO: A_DIAGNOSE_SIGNALS
69
+ → ERROR(E003) WHEN: all signals are code bugs (not command gaps)
70
+
71
+ S_GROUP:
72
+ → S_PREVIEW DO: A_GROUP_OVERLAYS
73
+
74
+ S_PREVIEW:
75
+ → S_DRAFT WHEN: user confirms "Apply all" or selects patches
76
+ → S_PREVIEW WHEN: user selects "Edit" DO: modify signal target/section
77
+ → END WHEN: user cancels
78
+
79
+ S_DRAFT:
80
+ → S_INSTALL WHEN: not --dry-run DO: A_DRAFT_OVERLAYS
81
+ → END WHEN: --dry-run DO: display JSON + section map preview
82
+
83
+ S_INSTALL:
84
+ → S_REPORT DO: A_INSTALL_OVERLAYS (`maestro overlay add`, retry max 2 on validation failure)
85
+
86
+ S_REPORT:
87
+ → END DO: display summary (signals collected/applied/skipped, overlay details, skipped code-bug routing)
88
+
89
+ </transitions>
90
+
91
+ <actions>
92
+
93
+ ### A_COLLECT_SIGNALS
94
+
95
+ **If source flags**: extract signals from each specified source.
96
+ **If --scan or interactive**: scan .workflow/ for:
97
+ - verification.json → must_have_failures, anti_patterns (filter for command gap direction)
98
+ - review.json → findings tagged "process" or "workflow"
99
+ - debug understanding.md → root causes with workflow/command cause_type
100
+ - issues.jsonl → status=open AND tags include "workflow"/"command"
101
+ - execution summaries → plan deviations suggesting missing command step
102
+
103
+ **If only description**: parse for affected command(s), what's missing, expected behavior.
104
+
105
+ ### A_DIAGNOSE_SIGNALS
106
+
107
+ Per signal, determine:
108
+ - signal_id, source, description, target_command, target_section, patch_mode, fix_direction, severity
109
+
110
+ **Section mapping**:
111
+
112
+ | Signal pattern | Section | Mode |
113
+ |---------------|---------|------|
114
+ | Missing pre-check/gate | execution | prepend |
115
+ | Missing post-step/verification | execution | append |
116
+ | Missing reading/context | required_reading / deferred_reading | append |
117
+ | Incomplete success criteria | success_criteria | append |
118
+ | Missing error handling | error_codes | append |
119
+ | Scope/context gap | context | append |
120
+ | Entirely new concern | _(new section)_ | new-section |
121
+
122
+ Read pristine source from `$PKG_ROOT/.claude/commands/<name>.md` to confirm section.
123
+ Classify: command deficiency → proceed; code bug → skip (suggest /maestro-quick).
124
+
125
+ ### A_GROUP_OVERLAYS
126
+
127
+ Group by target command + section (merge same command+section).
128
+ Granularity: 1-2 signals → `patch-{command}-{slug}.json`; 3+ cross-command → `amend-{slug}.json`.
129
+ Read target commands to verify sections exist, check existing overlays.
130
+
131
+ Display section map with injection points per target command.
132
+
133
+ ### A_DRAFT_OVERLAYS
134
+
135
+ Build overlay JSON per schema: name, description, targets[], cli, priority (60), enabled, patches[{section, mode, content}].
136
+ Content rules: heading includes `(patch: SIG-NNN)`, concise, supplementary doc to `~/.maestro/overlays/docs/` if >10 lines.
137
+
138
+ ### A_INSTALL_OVERLAYS
139
+
140
+ ```bash
141
+ maestro overlay add ~/.maestro/overlays/amend-{slug}.json
142
+ ```
143
+ On validation failure: fix JSON, retry (max 2).
144
+
145
+ </actions>
146
+
147
+ </state_machine>
148
+
149
+ <error_codes>
150
+ | Code | Condition | Recovery |
151
+ |------|-----------|----------|
152
+ | E001 | No signals from any source | Verify artifact paths or provide description |
153
+ | E003 | All signals are code bugs, not command gaps | Use /maestro-quick or /maestro-plan --gaps |
154
+ | E004 | Overlay validation failed after 2 retries | Review JSON manually |
155
+ | W001 | Some signals skipped (code bugs) | Route to appropriate fix command |
156
+ | W002 | Target command has >= 3 existing overlays | Consider consolidating |
157
+ </error_codes>
158
+
159
+ <success_criteria>
160
+ - [ ] Signals classified: command deficiency vs code bug
161
+ - [ ] Pristine command sources read to verify injection points
162
+ - [ ] Section map with injection points confirmed by user
163
+ - [ ] Overlay JSON installed successfully; command files contain overlay markers
164
+ - [ ] Skipped code-bug signals routed to alternatives
165
+ </success_criteria>
@@ -0,0 +1,161 @@
1
+ ---
2
+ name: maestro-analyze
3
+ description: Use when a topic needs structured multi-dimensional investigation before planning or decision-making
4
+ argument-hint: "[phase|topic] [-y] [-c] [-q] [--gaps [ISS-ID]]"
5
+ allowed-tools:
6
+ - read_file
7
+ - write_file
8
+ - edit_file
9
+ - shell
10
+ - find_files
11
+ - search
12
+ - delegate_subagent
13
+ - ask_user
14
+ ---
15
+ <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
16
+
17
+ <purpose>
18
+ Perform multi-dimensional analysis of a technical proposal, decision, or architecture choice through iterative CLI-assisted exploration and interactive discussion. Produces a discussion timeline (discussion.md) with evolving understanding, multi-perspective findings, Decision Recording Protocol, Intent Coverage tracking, and a final conclusions package with Go/No-Go recommendation.
19
+
20
+ Combines structured 6-dimension scoring with iterative deepening and decision extraction. Replaces both analysis and decision-capture workflows — produces analysis.md (scoring) AND context.md (Locked/Free/Deferred decisions for plan).
21
+
22
+ Use `-q` for quick decision extraction only (skip exploration + scoring).
23
+
24
+ Use `--gaps` for issue-focused root cause analysis (replaces manage-issue-analyze). Loads issues from issues.jsonl, performs CLI exploration against issue context/location, synthesizes root cause into issue.analysis, and outputs context.md for downstream `plan --gaps`.
25
+ </purpose>
26
+
27
+ <required_reading>
28
+ @~/.maestro/workflows/analyze.md
29
+ </required_reading>
30
+
31
+ <deferred_reading>
32
+ - [state.json](~/.maestro/templates/state.json) — read when registering artifact
33
+ - [issue-gaps-analyze.md](~/.maestro/workflows/issue-gaps-analyze.md) — read when --gaps is triggered
34
+ </deferred_reading>
35
+
36
+ <context>
37
+ $ARGUMENTS -- phase number for micro mode, topic text for macro/adhoc mode, no args for milestone-wide.
38
+
39
+ **Dual-layer mode:**
40
+ - **Macro mode** (text argument): Explore impact surface of a topic/requirement. Produces coarse-grained context with `scope_verdict` to route next step. Use before roadmap or for standalone analysis.
41
+ - **Micro mode** (numeric argument): Phase-level deep analysis within an existing roadmap. Produces fine-grained context for plan consumption. `analyze 1` = Phase 1 of current milestone.
42
+
43
+ **Flags:**
44
+ - `-y` / `--yes`: Auto mode — skip interactive scoping, use recommended defaults, auto-deepen
45
+ - `-c` / `--continue`: Resume from existing session (auto-detect session folder + discussion.md)
46
+ - `-q` / `--quick`: Quick mode — skip exploration + scoring, go straight to decision extraction (context.md only)
47
+ - `--from <source>`: Load upstream context package (brainstorm:ID, blueprint:BLP-xxx, @file, or path)
48
+ - `--gaps [ISS-ID]`: Issue root cause analysis mode. If ISS-ID provided, analyze single issue. If omitted, analyze all open/registered issues from issues.jsonl.
49
+
50
+ Scope routing, output directory format, artifact registration schema, and output artifact listing are defined in workflow analyze.md (Scope Routing and Output Structure sections).
51
+
52
+ ### Role Knowledge
53
+ `maestro wiki list --category debug` → select relevant → `maestro wiki load`
54
+ </context>
55
+
56
+ <interview_protocol>
57
+ Interview the user relentlessly until shared understanding is reached. Active only in interactive mode; skip when `-y/--yes`, `-c/--continue`, or input is already specific (explicit phase number or unambiguous topic).
58
+
59
+ - One decision per turn via ask_user with 2–4 options + a (Recommended) default; every question must include a `Proceed now` option so the user can end the interview at any time.
60
+ - Never ask what code can verify — resolve via `state.json`, `roadmap.md`, `issues.jsonl`, `maestro spec load`, `maestro wiki search`, Grep, or Read.
61
+ - Walk the decision dependency tree strictly: scope → depth → dimensions → Go/No-Go threshold. Do not open the next branch until the current one is settled.
62
+ - Scope guard: only ask about decisions owned by `analyze`. Do not prejudge plan/execute concerns.
63
+
64
+ Decision points: scope (phase / topic / milestone-wide / adhoc / --gaps) → depth (quick / standard / deep) → dimensions (which of the 6 to keep) → Go/No-Go threshold.
65
+
66
+ Exit: on `Proceed now` or when all decision points are settled, write the table below to the top of `discussion.md` and mirror it into `context.md` under an `Interview Decisions` section:
67
+ `| # | Decision | Choice | Source (user / code / default) |`
68
+ </interview_protocol>
69
+
70
+ <execution>
71
+ Follow '~/.maestro/workflows/analyze.md' completely.
72
+
73
+ ### --gaps Mode (Issue Root Cause Analysis)
74
+
75
+ When `--gaps` flag is present, follow `~/.maestro/workflows/issue-gaps-analyze.md` instead of the standard analyze pipeline:
76
+
77
+ ```
78
+ Phase 1: Load issues from .workflow/issues/issues.jsonl
79
+ - If ISS-ID provided: load single issue
80
+ - If no ISS-ID: filter issues where status = open | registered
81
+ - Validate: at least 1 issue loaded, else error E_NO_ISSUES
82
+
83
+ Phase 2: CLI exploration per issue
84
+ - For each issue: build exploration prompt from issue.title, description, context, related_files
85
+ - Run maestro delegate --role analyze --mode analysis with codebase context
86
+ - Gather affected files, call chains, root cause evidence
87
+
88
+ Phase 3: Root cause synthesis → write issue.analysis
89
+ - Parse CLI output into analysis record: { root_cause, affected_files, impact_scope, fix_direction, confidence, analyzed_at, tool, depth }
90
+ - Write analysis record to issue in issues.jsonl
91
+ - Append history entry: { action: "analyzed", at: <ISO>, by: "maestro-analyze --gaps" }
92
+
93
+ Phase 4: Output context.md for downstream plan --gaps
94
+ - Aggregate all analyzed issues into context.md with root causes and fix directions
95
+ - Register ANL artifact in state.json
96
+ ```
97
+
98
+ **Handoff:** context.md is consumed by maestro-plan (loads Locked/Free/Deferred decisions). In --gaps mode, context.md contains issue root causes for `plan --gaps` consumption.
99
+
100
+ **scope_verdict** (added to context.md in Step 6 Synthesis for macro/adhoc/standalone scopes):
101
+ - `large` (3+ independent subsystems or hard serial dependencies) → suggest `/maestro-roadmap --from analyze:ANL-xxx`
102
+ - `medium` (1-2 subsystems, parallelizable) → suggest `/maestro-plan --from analyze:ANL-xxx`
103
+ - `small` (single-file or few-file change) → suggest `/maestro-plan --from analyze:ANL-xxx`
104
+
105
+ **Next-step routing on completion:**
106
+
107
+ Phase/Milestone scope (micro mode):
108
+ - Go recommendation, UI work needed → `/maestro-impeccable build {target}`
109
+ - Go recommendation, ready to plan → `/maestro-plan` or `/maestro-plan {phase}`
110
+ - No-Go recommendation → revisit requirements or `/maestro-brainstorm {topic}`
111
+
112
+ Macro/Adhoc/Standalone scope:
113
+ - scope_verdict = large → `/maestro-roadmap --from analyze:ANL-xxx`
114
+ - scope_verdict = medium/small → `/maestro-plan --from analyze:ANL-xxx`
115
+ - Need more exploration → `/maestro-analyze {topic} -c`
116
+
117
+ Gaps scope:
118
+ - Issues analyzed → `/maestro-plan --gaps` (plan fix tasks linked to issues)
119
+ - Need more context → `/maestro-analyze --gaps {ISS-ID}` (re-analyze specific issue)
120
+ </execution>
121
+
122
+ <error_codes>
123
+ | Code | Severity | Condition | Recovery |
124
+ |------|----------|-----------|----------|
125
+ | E001 | error | No args and no roadmap (cannot determine scope) | Prompt user for topic text or create roadmap first |
126
+ | W001 | warning | CLI exploration failed | Continue with available context, note limitation |
127
+ | W002 | warning | CLI analysis timeout | Retry with shorter prompt, or skip perspective |
128
+ | W003 | warning | Insufficient evidence for scoring dimensions | Note low-confidence dimensions, proceed with available evidence |
129
+ | W004 | warning | Max rounds reached (5) | Force synthesis, offer continuation option |
130
+ | E_NO_ISSUES | error | --gaps but no open/registered issues found | Suggest `/manage-issue-discover` or `/manage-issue create` |
131
+ | E_ISSUE_NOT_FOUND | error | --gaps with ISS-ID but issue not found | Suggest `/manage-issue list` to find valid IDs |
132
+ </error_codes>
133
+
134
+ <success_criteria>
135
+ Full mode:
136
+ - [ ] CLI exploration completed with code anchors and call chains
137
+ - [ ] discussion.md created with full timeline, TOC, Current Understanding
138
+ - [ ] analysis.md written with all 6 dimensions scored with evidence
139
+ - [ ] conclusions.json created with recommendations and decision trail
140
+ - [ ] Intent Coverage tracked and verified (no unresolved ❌ items)
141
+ - [ ] Confidence tracking initialized (Step 4.6) and re-scored each round (Step 5.8)
142
+ - [ ] Readiness gate checked before synthesis (Step 5.10)
143
+ - [ ] Pressure pass completed ≥ 1 time before Step 6
144
+ - [ ] Confidence summary with factor decomposition written to analysis.md
145
+
146
+ Gaps mode:
147
+ - [ ] Issues loaded from issues.jsonl (all open/registered, or single ISS-ID)
148
+ - [ ] CLI exploration executed per issue with codebase context
149
+ - [ ] Analysis record attached to each issue in issues.jsonl
150
+ - [ ] context.md written with aggregated root causes for plan --gaps
151
+
152
+ Both modes (full + quick):
153
+ - [ ] Interactive mode: interview decision table written to `discussion.md` and mirrored into `context.md` "Interview Decisions"
154
+ - [ ] context.md written with all decisions classified as Locked/Free/Deferred
155
+ - [ ] Gray areas identified through phase-specific analysis
156
+ - [ ] Decision Recording Protocol applied to all decisions
157
+ - [ ] Scope creep redirected to Deferred section
158
+ - [ ] Deferred items auto-created as issues (if any)
159
+ - [ ] Artifact registered in state.json with correct scope/milestone/phase
160
+ - [ ] Next step routed (impeccable/plan for Go, brainstorm for No-Go)
161
+ </success_criteria>