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,273 @@
1
+ ---
2
+ name: maestro-ralph-execute
3
+ description: Execute next pending step in ralph session
4
+ argument-hint: "[-y] [session-id]"
5
+ allowed-tools:
6
+ - read_file
7
+ - write_file
8
+ - edit_file
9
+ - shell
10
+ - find_files
11
+ - search
12
+ - invoke_skill
13
+ ---
14
+ <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
15
+
16
+ <purpose>
17
+ Single-step executor for ralph (adaptive) and maestro (static) sessions.
18
+ Each invocation: locate session → find next step → resolve args → execute → update → self-invoke next.
19
+
20
+ Mutual invocation with `/maestro-ralph` forms a self-perpetuating work loop.
21
+ Session: `.workflow/.maestro/*/status.json`
22
+ </purpose>
23
+
24
+ <context>
25
+ $ARGUMENTS — optional `-y` flag + optional session ID.
26
+
27
+ **Parse:**
28
+ ```
29
+ -y / --yes → auto = true
30
+ Remaining → session_id (if matches maestro-* or ralph-*)
31
+ ```
32
+ Also read `session.auto_mode` from status.json — if true, treat as `-y`.
33
+
34
+ **Node types:**
35
+
36
+ | Type | Execution | Flow after |
37
+ |------|-----------|------------|
38
+ | decision (ralph-only) | `invoke_skill("maestro-ralph")` | Execution ends here |
39
+ | internal (default) | `read_file({file_path: step.command_path})` + 内联解释执行 | Self-invoke next |
40
+ | external (opt-in) | `maestro delegate --to claude --mode write` (STOP → callback) | Self-invoke next |
41
+
42
+ HARD RULES:
43
+ - internal step MUST 通过 `read_file({command_path})` 把命令 .md 加载进当前会话,再按内容执行;禁止 `invoke_skill({skill})` 调用
44
+ - `command_path` 由 ralph 在 A_BUILD_STEPS 写入 status.json;ralph-execute 不再自行解析(缺失 → 报错 E002)
45
+ - external 仅在 `step.type == "external"` 显式声明时使用,并 always append `-y` 到 prompt args
46
+ - 每个 step 必须产出 `--- COMPLETION STATUS ---` 块,否则视为 NEEDS_RETRY
47
+ </context>
48
+
49
+ <invariants>
50
+ 1. **Internal = Read + inline** — 通过 Read 读取 `step.command_path`,按其指令在当前 session 内执行
51
+ 2. **External = explicit only** — `step.type == "external"` 才走 delegate;默认绝不发起
52
+ 3. **必须显式 completion confirmation** — 每个 step 完成时需有 `STATUS: DONE` 且写入 `step.completion_confirmed = true`
53
+ 4. **Self-invocation chain** — 持续直到全部 `completion_confirmed` 或 paused
54
+ 5. **status.json 每步骤后写盘** — resume-safe
55
+ </invariants>
56
+
57
+ <state_machine>
58
+
59
+ <states>
60
+ S_LOCATE — 定位 session + 找下一个 pending step PERSIST: —
61
+ S_RESOLVE_ARGS — 解析占位符 + 丰富参数 PERSIST: step.args (enriched)
62
+ S_EXECUTE — 执行当前 step PERSIST: step.status = "running", session.current_step
63
+ S_POST_EXEC — 标记完成 + 传播上下文 PERSIST: step.completion_*, step.status, session.context
64
+ S_HANDLE_FAIL — 处理失败 PERSIST: step.status, session.status
65
+ S_COMPLETE — 所有 step 完成 PERSIST: session.status = "completed"
66
+ S_FALLBACK — 无 session 可执行 PERSIST: —
67
+ </states>
68
+
69
+ <transitions>
70
+
71
+ S_LOCATE:
72
+ → S_RESOLVE_ARGS WHEN: pending step found DO: A_LOCATE_SESSION
73
+ → S_COMPLETE WHEN: no pending steps
74
+ → S_FALLBACK WHEN: no running session
75
+
76
+ S_RESOLVE_ARGS:
77
+ → S_EXECUTE DO: A_RESOLVE_ARGS
78
+
79
+ S_EXECUTE:
80
+ → END WHEN: step.type == "decision" DO: A_EXEC_DECISION
81
+ → S_POST_EXEC WHEN: step.type == "internal" + success DO: A_EXEC_INTERNAL
82
+ → S_HANDLE_FAIL WHEN: step.type == "internal" + failure DO: A_EXEC_INTERNAL
83
+ → END WHEN: step.type == "external" DO: A_EXEC_EXTERNAL
84
+ (STOP after background delegate; on callback → S_POST_EXEC or S_HANDLE_FAIL)
85
+
86
+ S_POST_EXEC:
87
+ → S_LOCATE DO: A_MARK_COMPLETE + invoke_skill("maestro-ralph-execute")
88
+
89
+ S_HANDLE_FAIL:
90
+ → S_LOCATE WHEN: auto + not retried DO: A_RETRY
91
+ → END WHEN: auto + retried DO: A_PAUSE_SESSION
92
+ → S_LOCATE WHEN: interactive + user selects retry DO: A_RETRY
93
+ → S_LOCATE WHEN: interactive + user selects skip DO: A_SKIP_STEP
94
+ → END WHEN: interactive + user selects abort DO: A_PAUSE_SESSION
95
+
96
+ S_COMPLETE:
97
+ → END DO: A_COMPLETE_SESSION
98
+
99
+ S_FALLBACK:
100
+ → END DO: display "无运行中的会话。使用 /maestro 或 /maestro-ralph 创建。"
101
+
102
+ </transitions>
103
+
104
+ <actions>
105
+
106
+ ### A_LOCATE_SESSION
107
+
108
+ 1. If session_id provided → load `.workflow/.maestro/{session_id}/status.json`
109
+ 2. Else: scan `.workflow/.maestro/*/status.json`, filter `status == "running"`, sort DESC, take first
110
+ 3. Extract: session_id, source, steps[], current_step, phase, milestone, intent, auto_mode, context, cli_tool
111
+ 4. Find first step with `status == "pending"` → next step
112
+
113
+ ### A_RESOLVE_ARGS
114
+
115
+ **Placeholder substitution:**
116
+
117
+ | Placeholder | Source |
118
+ |-------------|--------|
119
+ | `{phase}` | session.phase |
120
+ | `{milestone}` | session.milestone |
121
+ | `{intent}` | session.intent |
122
+ | `{description}` | session.intent (alias) |
123
+ | `{scratch_dir}` | session.context.scratch_dir or latest artifact path |
124
+ | `{plan_dir}` | session.context.plan_dir |
125
+ | `{analysis_dir}` | session.context.analysis_dir |
126
+ | `{issue_id}` | session.context.issue_id |
127
+ | `{milestone_num}` | session.context.milestone_num |
128
+
129
+ **Per-skill enrichment** (when args empty or minimal):
130
+
131
+ | Skill | Required context | Source |
132
+ |-------|-----------------|--------|
133
+ | maestro-brainstorm | topic | `"{intent}"` |
134
+ | maestro-roadmap | description | `"{intent}"` |
135
+ | maestro-analyze | phase or topic | `{phase}` or `"{intent}"` |
136
+ | maestro-plan | phase or --dir | `{phase}`, or `--dir {scratch_dir}` |
137
+ | maestro-execute | phase or --dir | `{phase}`, or `--dir {scratch_dir}` |
138
+ | quality-debug | gap context | Read previous step's error/gap |
139
+ | quality-* | phase | `{phase}` |
140
+
141
+ **Artifact dir resolution for --dir:**
142
+ ```
143
+ Read state.json → filter artifacts by milestone + phase
144
+ plan commands: latest type=="analyze" → --dir .workflow/scratch/{path}
145
+ execute commands: latest type=="plan" → --dir .workflow/scratch/{path}
146
+ ```
147
+
148
+ Write enriched args back to status.json.
149
+
150
+ ### A_EXEC_DECISION
151
+
152
+ 1. Mark step running, write status.json
153
+ 2. Display: `[{index}/{total}] ◆ {decision} Retry: {retry}/{max}`
154
+ 3. `invoke_skill({ skill: "maestro-ralph" })` — ralph 评估 + handoff
155
+ 4. 执行在此结束
156
+
157
+ ### A_EXEC_INTERNAL
158
+
159
+ 1. Validate `step.command_path != null`;否则 raise E002,pause session
160
+ 2. Mark step running, write status.json
161
+ 3. Display: `[{index}/{total}] {step.skill} [internal · {step.command_scope}]`
162
+ 4. `read_file({ file_path: step.command_path })` — 把命令 .md 全文加载进当前会话
163
+ 5. 解析 frontmatter `argument-hint` 与 `<purpose>/<state_machine>/<actions>` 等指令块
164
+ 6. 计算 `effective_args`:`step.args` + auto flag(`auto ? (flag_map[step.skill] || "") : ""`)
165
+ 7. 按读到的指令在本会话中**内联执行**:调用允许的工具完成命令所规定的工作,不再发起 invoke_skill() 或 delegate
166
+ 8. 执行结束:要求最后一段必须包含 `--- COMPLETION STATUS ---` 块(见 A_MARK_COMPLETE)
167
+ 9. Return success / failure
168
+
169
+ **Auto flag map**: 所有 lifecycle skill → `-y`; `quality-test` → `-y --auto-fix`; 未列出 → 无 flag
170
+
171
+ ### A_EXEC_EXTERNAL
172
+
173
+ 仅当 `step.type == "external"` 时使用(默认链路不产生)。
174
+
175
+ 1. Mark step running, write status.json
176
+ 2. Display: `[{index}/{total}] ⚡ {step.skill} [external]`
177
+ 3. 始终在 prompt 内追加 `-y`(delegate session 非交互):`flag = flag_map[step.skill] || "-y"`
178
+ 4. Execute:
179
+ ```
180
+ shell({
181
+ command: `maestro delegate "/${step.skill} ${effective_args}" --to claude --mode write`,
182
+ run_in_background: true, timeout: 600000
183
+ })
184
+ STOP — wait for callback.
185
+ ```
186
+ 5. On callback: 把回调输出视为 step 的执行结果 → S_POST_EXEC / S_HANDLE_FAIL
187
+
188
+ ### A_MARK_COMPLETE
189
+
190
+ 1. 从 step 输出中提取 `--- COMPLETION STATUS ---` 块(required)
191
+ 2. 解析并写入:
192
+ - `STATUS: DONE` → `step.status = "completed"`, `step.completion_confirmed = true`, `step.completion_status = "DONE"`
193
+ - `STATUS: DONE_WITH_CONCERNS` → `step.status = "completed"`, `step.completion_confirmed = true`, `step.completion_status = "DONE_WITH_CONCERNS"`, `step.concerns = <CONCERNS>`
194
+ - `STATUS: NEEDS_RETRY` → `step.status = "pending"`, `step.retried = true`, `step.completion_confirmed = false`, → S_HANDLE_FAIL
195
+ - `STATUS: BLOCKED` / `NEEDS_CONTEXT` → `session.status = "paused"`, `step.completion_status` 记录原因, `step.completion_confirmed = false`
196
+ - 缺失 `--- COMPLETION STATUS ---` 块 → 视为 NEEDS_RETRY(不允许 heuristic fallback)
197
+ 3. 写入 `step.completion_evidence`(artifact 路径 / 关键输出节选)
198
+ 4. 扫描输出抓取 context 信号:`PHASE: N` → session.phase;`scratch_dir: path` → context.scratch_dir;`BLP-xxx` → context.blueprint_session_id
199
+ 5. `step.completed_at = now`,写 status.json
200
+ 6. **Sub-goal evidence 校验**(task_decomposition 存在时):若 `step.goal_ref` 对应子目标的 `lifecycle` 覆盖当前 stage 且 evidence artifact 已生成 → 暂不直接置 done,仍交由 post-goal-audit 决策;仅在 step 显式确认时更新 `task_decomposition[*].completion_confirmed = false` 占位(保持 pending)
201
+ 7. Display: `[{index}/{total}] ✓ {step.skill} completed (confirmed)`
202
+
203
+ ### A_RETRY
204
+
205
+ 1. `step.retried = true`, `step.status = "pending"`, `step.error = null`, `step.completion_confirmed = false`
206
+ 2. Write status.json
207
+
208
+ ### A_SKIP_STEP
209
+
210
+ 1. `step.status = "skipped"`, `step.completion_confirmed = false`
211
+ 2. Write status.json
212
+
213
+ ### A_PAUSE_SESSION
214
+
215
+ 1. `session.status = "paused"`, write status.json
216
+ 2. Display: `[{index}/{total}] ✗ {step.skill} 失败,会话已暂停。/maestro-ralph continue 恢复。`
217
+
218
+ ### A_COMPLETE_SESSION
219
+
220
+ 1. 校验:所有 step `completion_confirmed == true`(除 skipped);task_decomposition 存在时校验 `task_decomposition_all_done == true`
221
+ 2. 任一校验失败 → 不标 completed,回 S_LOCATE 或 pause
222
+ 3. `session.status = "completed"`, write status.json
223
+ 4. Display completion report:
224
+ ```
225
+ ============================================================
226
+ SESSION COMPLETE
227
+ ============================================================
228
+ Session: {session_id} [{source}]
229
+ Steps: {completed}/{total} confirmed: {confirmed}/{completed}
230
+
231
+ [✓] 0. maestro-plan 1 [internal · global]
232
+ [✓] 1. maestro-execute 1 [internal · project]
233
+ [✓] 2. maestro-verify 1 [internal · global]
234
+ [✓] 3. ◆ post-verify [decision]
235
+ ...
236
+ ============================================================
237
+ ```
238
+ Icons: `✓` confirmed, `—` skipped, `✗` failed, `◆` decision, `⚡` external
239
+
240
+ </actions>
241
+
242
+ </state_machine>
243
+
244
+ <appendix>
245
+
246
+ ### Error Codes
247
+
248
+ | Code | Severity | Description | Recovery |
249
+ |------|----------|-------------|----------|
250
+ | E001 | error | No running session found | Suggest /maestro or /maestro-ralph |
251
+ | E002 | error | step.command_path missing for internal step | Pause, ask ralph to rebuild step |
252
+ | E003 | error | status.json corrupt | Show path, manual check |
253
+ | E004 | error | Delegate failed + user abort | Mark paused, suggest resume |
254
+ | E005 | error | COMPLETION STATUS block missing | Trigger NEEDS_RETRY |
255
+ | W001 | warning | Step completed with concerns | Log and continue |
256
+
257
+ ### Success Criteria
258
+
259
+ - [ ] Session discovery covers maestro-* and ralph-*
260
+ - [ ] `-y` parsed from args 或 session.auto_mode
261
+ - [ ] Placeholders resolved;per-skill enrichment 正确
262
+ - [ ] Decision 节点 invoke_skill("maestro-ralph") handoff
263
+ - [ ] Internal 节点通过 read_file({step.command_path}) 内联执行,禁止 invoke_skill()
264
+ - [ ] External 仅在显式声明时走 delegate,prompt 必带 `-y`
265
+ - [ ] 每个 step 强制 `--- COMPLETION STATUS ---`;缺失 → NEEDS_RETRY
266
+ - [ ] step.completion_confirmed = true 仅在 STATUS: DONE/DONE_WITH_CONCERNS 时设置
267
+ - [ ] step.completion_evidence 记录 artifact path / 输出节选
268
+ - [ ] Context signals 传播 status.json
269
+ - [ ] Auto mode: retry 一次后 pause;interactive 提供 retry/skip/abort
270
+ - [ ] 自调用持续到全部 completion_confirmed 或 paused
271
+ - [ ] A_COMPLETE_SESSION 校验全部 step confirmed + sub-goal all_done
272
+
273
+ </appendix>
@@ -0,0 +1,131 @@
1
+ ---
2
+ name: maestro-roadmap
3
+ description: Generate roadmap with milestone/phase structure from requirements or upstream context
4
+ argument-hint: "<requirement> [-y] [-c] [-m progressive|direct|auto] [--from <source>] [--revise [instructions]] [--review]"
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
+ Generate a milestone/phase roadmap from requirements or upstream context. Produces `.workflow/roadmap.md` with Milestone > Phase hierarchy ready for maestro-analyze and maestro-plan.
19
+
20
+ Operation modes:
21
+ - **Create** (default): Build roadmap from requirements or upstream context
22
+ - **Revise** (`--revise`): Modify existing roadmap while preserving completed phase progress
23
+ - **Review** (`--review`): Health assessment of current roadmap (read-only)
24
+
25
+ For formal specification documents (Product Brief, PRD, Architecture, Epics), use `/maestro-blueprint` instead.
26
+ </purpose>
27
+
28
+ <required_reading>
29
+ @~/.maestro/workflows/roadmap-common.md
30
+ @~/.maestro/templates/roadmap.md
31
+ </required_reading>
32
+
33
+ <deferred_reading>
34
+ - [roadmap.md](~/.maestro/workflows/roadmap.md) — read for roadmap generation workflow
35
+ </deferred_reading>
36
+
37
+ <context>
38
+ $ARGUMENTS -- requirement text, @file reference, or upstream context source.
39
+
40
+ **Flags:**
41
+ - `-y` / `--yes`: Auto mode — skip interactive questions, use recommended defaults
42
+ - `-c` / `--continue`: Resume from last checkpoint
43
+ - `-m progressive|direct|auto`: Decomposition strategy (default: auto)
44
+ - `--from <source>`: Load upstream context package (brainstorm:ID, blueprint:BLP-xxx, analyze:ANL-xxx, @file, or path). Consumes context-package.json
45
+ - `--from-brainstorm SESSION-ID`: (backward compat alias for `--from brainstorm:ID`)
46
+ - `--revise [instructions]`: Revise existing roadmap. If instructions provided, apply directly. If omitted, ask user. Preserves completed phase progress.
47
+ - `--review`: Roadmap health assessment (read-only)
48
+
49
+ **Input types:**
50
+ - Direct text: `"Implement user authentication system with OAuth and 2FA"`
51
+ - File reference: `@requirements.md`
52
+ - Context import: `--from brainstorm:BRN-001` or `--from analyze:ANL-xxx` or `--from blueprint:BLP-xxx`
53
+ - No args + `--revise` / `--review`: Operate on existing `.workflow/roadmap.md`
54
+
55
+ **Pipeline position:**
56
+ ```
57
+ maestro-brainstorm ─┐
58
+ maestro-blueprint ─┤ (optional upstream, parallel)
59
+ maestro-analyze ─┘ context-package.json
60
+
61
+ maestro-roadmap → .workflow/roadmap.md (Milestone > Phase hierarchy)
62
+
63
+ maestro-analyze {phase} → maestro-plan → maestro-execute → maestro-verify
64
+ ```
65
+
66
+ ### Pre-load specs
67
+ 1. **Architecture specs**: Run `maestro spec load --category arch` to load architecture constraints. Use as context for phase decomposition — ensures roadmap respects documented decisions and boundaries.
68
+ 2. Optional — proceed without if unavailable.
69
+ </context>
70
+
71
+ <interview_protocol>
72
+ Interview the user relentlessly until shared understanding is reached. Active only in interactive mode; skip when `-y/--yes`, `--revise`, `--review`, `-c/--continue`, or input is already specific (clear requirement + mode).
73
+
74
+ - One decision per turn via ask_user with 2–4 options + a (Recommended) default; every question must include a `Proceed now` option.
75
+ - Never ask what code can verify — resolve via `state.json`, existing `roadmap.md`, `project.md`, or `maestro spec load`.
76
+ - Walk the decision dependency tree strictly: mode → requirement scope → decomposition strategy → phase dependencies/order. Do not open the next branch until the current one is settled.
77
+ - Scope guard: only decide the shape of the roadmap. Do not pre-resolve intra-phase task breakdown — that belongs to `plan`.
78
+
79
+ Decision points: scope (MVP / complete / phased) → strategy (progressive / direct / auto) → milestone boundaries → phase dependencies and order.
80
+
81
+ Exit: on consensus or `Proceed now`, append the table below to a `Roadmap Decisions` section at the top of `.workflow/roadmap.md`:
82
+ `| # | Decision | Choice | Source (user / code / default) |`
83
+ </interview_protocol>
84
+
85
+ <execution>
86
+
87
+ 1. Read `@~/.maestro/workflows/roadmap-common.md` (always — shared logic)
88
+ 2. Read `@~/.maestro/workflows/roadmap.md`, follow its process
89
+
90
+ Sub-modes:
91
+ - **Create** (default): Build roadmap from requirements or upstream context
92
+ - **Revise** (`--revise`): Follow workflow roadmap.md "Mode: Revise" section
93
+ - **Review** (`--review`): Follow workflow roadmap.md "Mode: Review" section
94
+
95
+ ### Next-step routing on completion
96
+
97
+ | Condition | Suggestion |
98
+ |-----------|-----------|
99
+ | Roadmap approved, need analysis | /maestro-analyze 1 |
100
+ | Simple project, ready to plan | /maestro-plan 1 |
101
+ | Need UI design first | /maestro-impeccable build |
102
+ | View project dashboard | /manage-status |
103
+ | Need formal spec documents | /maestro-blueprint |
104
+ </execution>
105
+
106
+ <error_codes>
107
+ | Code | Severity | Condition | Recovery |
108
+ |------|----------|-----------|----------|
109
+ | E001 | error | Requirement/idea text or @file required | Prompt user for input |
110
+ | E002 | error | Context source not found (--from / --from-brainstorm) | Show available sessions/sources |
111
+ | E003 | error | Circular dependency detected in phases | Prompt user to re-decompose |
112
+ | E004 | error | roadmap.md not found (--revise/--review) | Run maestro-roadmap first |
113
+ | E005 | error | Revision invalidates completed phase work | Warn user, ask to confirm or adjust |
114
+ | W001 | warning | CLI analysis failed, using fallback | Continue with available data |
115
+ | W002 | warning | Max refinement rounds (5) reached | Force proceed with current roadmap |
116
+ | W005 | warning | External research agent failed | Continue without apiResearchContext |
117
+ </error_codes>
118
+
119
+ <success_criteria>
120
+ - [ ] Interactive mode: interview decision table appended to `.workflow/roadmap.md` "Roadmap Decisions" section
121
+ - [ ] Requirement parsed with goal, constraints, stakeholders
122
+ - [ ] Milestones defined with deliverable targets and version tags
123
+ - [ ] Decomposition strategy selected (progressive or direct)
124
+ - [ ] Phases defined within milestones with success criteria, dependencies, and requirement mappings
125
+ - [ ] Every Active requirement from project.md mapped to exactly one phase
126
+ - [ ] No circular dependencies in phase ordering
127
+ - [ ] User approved roadmap (or auto-approved with -y)
128
+ - [ ] `.workflow/roadmap.md` written with Milestone > Phase hierarchy, scope decisions, and progress table
129
+ - [ ] No phase directories created (phases are labels in roadmap, not directories)
130
+ - [ ] Artifact registered in state.json with milestone entries
131
+ </success_criteria>
@@ -0,0 +1,119 @@
1
+ ---
2
+ name: maestro-tools-execute
3
+ description: Load and execute tool specs by category or name
4
+ argument-hint: "[<tool-name> | --category <category>] [--list]"
5
+ allowed-tools:
6
+ - read_file
7
+ - write_file
8
+ - edit_file
9
+ - shell
10
+ - find_files
11
+ - search
12
+ - ask_user
13
+ - delegate_subagent
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
+ Load registered tool documents and execute them step-by-step. Two invocation modes:
19
+
20
+ 1. **Direct** — Specify tool name, load full steps, execute sequentially
21
+ 2. **Category-based** — List available tools for a category, user selects, then execute
22
+
23
+ Execution follows the tool definition steps in order, reporting progress per step and asking user on blockers.
24
+ </purpose>
25
+
26
+ <required_reading>
27
+ @~/.maestro/workflows/tools-spec.md
28
+ </required_reading>
29
+
30
+ <context>
31
+ $ARGUMENTS — Tool name, keyword, or --category filter
32
+
33
+ **Examples**:
34
+ ```
35
+ /maestro-tools-execute integration-test
36
+ /maestro-tools-execute --category coding
37
+ /maestro-tools-execute --category review --keyword api
38
+ /maestro-tools-execute
39
+ ```
40
+
41
+ Empty arguments enters interactive mode: list all tools for user selection.
42
+ </context>
43
+
44
+ <execution>
45
+
46
+ ### Step 1: Load Tool
47
+
48
+ **By name**:
49
+ ```bash
50
+ maestro spec load --category coding --keyword <name>
51
+ ```
52
+ Match knowhow documents with `tool: true` whose title or keywords contain the name.
53
+
54
+ **By category**:
55
+ ```bash
56
+ maestro spec load --category <category>
57
+ ```
58
+ Extract tool entries from the "Available Tools" section in output.
59
+
60
+ **Empty args**:
61
+ Load all categories, collect tool entries, present to user with ask_user for selection.
62
+
63
+ ### Step 2: Display Tool
64
+
65
+ Show tool information:
66
+ - Name, category, keywords
67
+ - Steps overview (for ref entries, expand knowhow detail first)
68
+
69
+ Expand ref entries:
70
+ ```bash
71
+ maestro wiki load <knowhow-id>
72
+ ```
73
+
74
+ ### Step 3: Confirm Execution
75
+
76
+ Ask user:
77
+ - Execute steps as-is?
78
+ - Adjust parameters/scope?
79
+ - View only, do not execute?
80
+
81
+ ### Step 4: Step-by-Step Execution
82
+
83
+ Follow the tool definition steps in order:
84
+ 1. Read current step description
85
+ 2. Execute step action (file ops, commands, code changes, etc.)
86
+ 3. Verify step completion
87
+ 4. Report progress: `[Step N/M] done — <step_name>`
88
+ 5. Proceed to next step
89
+
90
+ **Blocker handling**:
91
+ - Step fails → report error, ask user: retry / skip / abort
92
+ - Needs user input → ask_user for parameters
93
+ - Prerequisites unmet → show missing items, ask how to proceed
94
+
95
+ ### Step 5: Report Results
96
+
97
+ After completion, output:
98
+ - Completed steps list
99
+ - Skipped/failed steps (if any)
100
+ - Artifacts produced (generated files, test results, etc.)
101
+ - Suggested next actions
102
+
103
+ </execution>
104
+
105
+ <error_codes>
106
+ | Code | Severity | Description |
107
+ |------|----------|-------------|
108
+ | E001 | fatal | No matching tool found — check name/keyword |
109
+ | E002 | warning | Multiple tools match — list options for user selection |
110
+ | E003 | warning | Step execution failed — ask user how to proceed |
111
+ </error_codes>
112
+
113
+ <success_criteria>
114
+ - [ ] Tool correctly loaded (ref expanded if applicable)
115
+ - [ ] User confirmed before execution starts
116
+ - [ ] Each step has progress feedback
117
+ - [ ] Blockers handled interactively
118
+ - [ ] Results reported clearly
119
+ </success_criteria>
@@ -0,0 +1,159 @@
1
+ ---
2
+ name: maestro-tools-register
3
+ description: Register tool specs - extract, generate, or optimize
4
+ argument-hint: "[<description>] [--extract <path>] [--optimize <name>]"
5
+ allowed-tools:
6
+ - read_file
7
+ - write_file
8
+ - edit_file
9
+ - shell
10
+ - find_files
11
+ - search
12
+ - ask_user
13
+ - delegate_subagent
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
+ Codify reusable business processes as knowhow documents with `tool: true` in `.workflow/knowhow/`. Once registered, tools are auto-discovered by `spec load --category` and spec-injector — plan agents pick up design/architecture flows, test agents pick up verification methods, implement agents pick up execution steps.
19
+
20
+ When to register: during planning to standardize a business process (e.g. payment reconciliation, OAuth integration steps); after execution to capture a validated procedure (e.g. database migration rollback); before testing to register verification methods for test agents (e.g. E2E checkout flow, API idempotency verification); during retrospective/harvest to extract reusable process knowledge from artifacts.
21
+
22
+ Four modes: Extract (from code/docs), Generate (from description), Optimize (improve existing), Promote (existing knowhow → tool in place).
23
+ Short processes (<10 steps) inline; long processes (>=10 steps) use ref mode with knowhow detail doc.
24
+ </purpose>
25
+
26
+ <required_reading>
27
+ @~/.maestro/workflows/tools-spec.md
28
+ </required_reading>
29
+
30
+ <context>
31
+ $ARGUMENTS — Intent description
32
+
33
+ **Examples**:
34
+ ```
35
+ /maestro-tools-register extract OAuth PKCE token exchange flow from src/auth/
36
+ /maestro-tools-register generate Stripe webhook idempotency verification
37
+ /maestro-tools-register generate E2E checkout flow with payment gateway mock setup
38
+ /maestro-tools-register optimize e2e-checkout tool
39
+ /maestro-tools-register promote RCP-db-migration-rollback as test tool
40
+ /maestro-tools-register promote knowhow-auth-api to coding tool
41
+ ```
42
+ </context>
43
+
44
+ <execution>
45
+
46
+ ### Step 1: Intent Detection
47
+
48
+ Parse $ARGUMENTS to determine mode:
49
+ - Contains "extract" → extract mode
50
+ - Contains "optimize/improve" → optimize mode
51
+ - Contains "promote" or references existing knowhow doc (path/ID) → promote mode
52
+ - Other → generate mode
53
+ - Empty → ask user with ask_user
54
+
55
+ ### Step 2: Gather Information
56
+
57
+ **Extract mode**:
58
+ - Identify source (current conversation, specified files, codebase scan)
59
+ - Extract step sequence, prerequisites, expected outputs
60
+
61
+ **Generate mode**:
62
+ - Confirm tool name, applicable roles, target scenario
63
+ - If unclear, ask user with ask_user
64
+
65
+ **Optimize mode**:
66
+ - Load existing tool: `maestro spec load --category coding --keyword <name>`
67
+ - Analyze improvement points (step splitting, prerequisites, error handling)
68
+
69
+ **Promote mode** (existing knowhow → tool):
70
+ - Locate document: `maestro wiki list --keyword <name>` or by path in `.workflow/knowhow/`
71
+ - Read document, verify it contains actionable steps (numbered list or ## Steps section)
72
+ - If no actionable steps, suggest extract mode instead
73
+ - Determine category (Step 3) and summary ("Use when ...")
74
+ - Update frontmatter via: `maestro wiki update <id> --frontmatter '{"tool": true, "category": "<cat>", "summary": "<summary>"}'`
75
+ - Do NOT recreate the document — modify in place
76
+
77
+ **For all modes** — identify the usage timing: when should an agent or user invoke this tool? This becomes the first line of the entry description (see Step 5).
78
+
79
+ ### Step 3: Determine Category
80
+
81
+ **Core principle**: `category` = **who consumes this tool** (which agent type discovers and uses it), not what the content is about.
82
+
83
+ | Category | Consumer Agent | Decision Question | Signal Words |
84
+ |---|---|---|---|
85
+ | `coding` | code-developer, workflow-executor | 开发者实现时需要这个流程吗? | build, deploy, integrate, configure, setup, migrate, api-contract |
86
+ | `test` | tdd-developer, test-fix-agent | 测试者验证行为时需要这个流程吗? | verify, validate, assert, e2e, regression, coverage, idempotency |
87
+ | `review` | workflow-reviewer | 审查者需要这个作为 checklist 吗? | audit, checklist, compliance, quality-gate, standard |
88
+ | `arch` | workflow-planner | 规划者设计方案时需要这个吗? | design, architecture, decompose, trade-off, migration-strategy |
89
+ | `debug` | debug-explore-agent | 调试者排查问题时需要这个吗? | diagnose, trace, investigate, root-cause, reproduce |
90
+
91
+ **Multi-consumer split**: If content serves multiple consumers (e.g., API doc for both dev and test), split into separate documents:
92
+ - API contract (what endpoints look like) → `category: coding` (AST-*, tool: false)
93
+ - API verification steps (how to test) → `category: test` (RCP-*, tool: true)
94
+ - Ask user when ambiguous: "This tool content serves both developers and testers. Split into separate documents?"
95
+
96
+ **Ambiguous cases**: Choose the **primary consumer** — the agent that would fail without this knowledge.
97
+
98
+ ### Step 4: Decide Inline vs Ref
99
+
100
+ - Steps <10 and no code blocks → **inline mode**
101
+ - Steps >=10 or contains code examples/config → **ref mode**
102
+
103
+ ### Step 5: Write
104
+
105
+ **Description format**: First line after `### Title` must state **when to use** this tool (the usage timing from Step 2). This is critical for ref entries — `spec load` only shows the first 200 chars after the heading as the summary.
106
+
107
+ ```
108
+ ### {Title}
109
+
110
+ Use when {timing/trigger condition}.
111
+
112
+ 1. Step one ...
113
+ ```
114
+
115
+ **Create knowhow tool document** in `.workflow/knowhow/` with `tool: true` in YAML frontmatter:
116
+ ```yaml
117
+ ---
118
+ title: <Title>
119
+ type: recipe
120
+ category: <category>
121
+ keywords: [<keywords>]
122
+ tool: true
123
+ summary: "Use when <timing>. <scope description>"
124
+ ---
125
+
126
+ ## Steps
127
+ 1. Step one ...
128
+ ```
129
+
130
+ **Optionally register spec ref entry** for index discoverability:
131
+ ```bash
132
+ maestro spec add <category> "<title>" "Use when <timing>. <scope summary>" --keywords "<csv>" \
133
+ --ref "knowhow/RCP-<slug>.md" --knowhow-type recipe
134
+ ```
135
+
136
+ ### Step 6: Verify
137
+
138
+ - `maestro spec load --category <category> --keyword <keyword>` to confirm loadable
139
+ - Display result: title, category, keywords, storage location
140
+
141
+ </execution>
142
+
143
+ <error_codes>
144
+ | Code | Severity | Description |
145
+ |------|----------|-------------|
146
+ | E001 | fatal | `.workflow/specs/` does not exist — run `maestro spec init` |
147
+ | E002 | warning | Duplicate tool name detected — confirm overwrite/optimize |
148
+ | E003 | fatal | category parameter empty — tools must declare a category |
149
+ </error_codes>
150
+
151
+ <success_criteria>
152
+ - [ ] Tool registered as knowhow document with `tool: true` frontmatter
153
+ - [ ] category correctly set
154
+ - [ ] keywords auto-extracted (3-5 terms)
155
+ - [ ] Description starts with "Use when ..." (usage timing)
156
+ - [ ] Loadable via `spec load --category <category>`
157
+ - [ ] Long processes use ref mode with knowhow file created
158
+ - [ ] Ref knowhow YAML includes `summary` with usage timing
159
+ </success_criteria>