maestro-flow 0.4.9 → 0.4.11

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 (410) hide show
  1. package/.agents/agents/cli-explore-agent.md +189 -0
  2. package/.agents/agents/conceptual-planning-agent.md +247 -0
  3. package/.agents/agents/impeccable-agent.md +101 -0
  4. package/.agents/agents/team-supervisor.md +145 -0
  5. package/.agents/agents/team-worker.md +239 -0
  6. package/.agents/agents/ui-design-agent.md +289 -0
  7. package/.agents/agents/workflow-analyzer.md +117 -0
  8. package/.agents/agents/workflow-codebase-mapper.md +79 -0
  9. package/.agents/agents/workflow-collab-planner.md +145 -0
  10. package/.agents/agents/workflow-debugger.md +105 -0
  11. package/.agents/agents/workflow-executor.md +134 -0
  12. package/.agents/agents/workflow-external-researcher.md +88 -0
  13. package/.agents/agents/workflow-integration-checker.md +85 -0
  14. package/.agents/agents/workflow-nyquist-auditor.md +87 -0
  15. package/.agents/agents/workflow-phase-researcher.md +87 -0
  16. package/.agents/agents/workflow-plan-checker.md +92 -0
  17. package/.agents/agents/workflow-planner.md +197 -0
  18. package/.agents/agents/workflow-project-researcher.md +76 -0
  19. package/.agents/agents/workflow-research-synthesizer.md +72 -0
  20. package/.agents/agents/workflow-reviewer.md +84 -0
  21. package/.agents/agents/workflow-roadmapper.md +83 -0
  22. package/.agents/agents/workflow-verifier.md +122 -0
  23. package/.agents/skills/codify-to-knowhow/SKILL.md +169 -0
  24. package/.agents/skills/codify-to-knowhow/phases/01-load-manifest.md +101 -0
  25. package/.agents/skills/codify-to-knowhow/phases/02-generate-knowhow.md +97 -0
  26. package/.agents/skills/codify-to-knowhow/phases/03-generate-specs.md +92 -0
  27. package/.agents/skills/codify-to-knowhow/phases/04-index-verify.md +119 -0
  28. package/.agents/skills/learn-decompose/SKILL.md +118 -0
  29. package/.agents/skills/learn-follow/SKILL.md +129 -0
  30. package/.agents/skills/learn-investigate/SKILL.md +154 -0
  31. package/.agents/skills/learn-retro/SKILL.md +159 -0
  32. package/.agents/skills/learn-second-opinion/SKILL.md +124 -0
  33. package/.agents/skills/maestro/SKILL.md +224 -0
  34. package/.agents/skills/maestro-amend/SKILL.md +165 -0
  35. package/.agents/skills/maestro-analyze/SKILL.md +135 -0
  36. package/.agents/skills/maestro-brainstorm/SKILL.md +118 -0
  37. package/.agents/skills/maestro-collab/SKILL.md +174 -0
  38. package/.agents/skills/maestro-composer/SKILL.md +181 -0
  39. package/.agents/skills/maestro-execute/SKILL.md +133 -0
  40. package/.agents/skills/maestro-fork/SKILL.md +88 -0
  41. package/.agents/skills/maestro-guard/SKILL.md +103 -0
  42. package/.agents/skills/maestro-help/SKILL.md +266 -0
  43. package/.agents/skills/maestro-help/index/catalog.json +184 -0
  44. package/.agents/skills/maestro-help/phases/01-parse-intent.md +122 -0
  45. package/.agents/skills/maestro-help/phases/02-search-present.md +181 -0
  46. package/.agents/skills/maestro-help/phases/03-workflow-guide.md +186 -0
  47. package/.agents/skills/maestro-impeccable/SKILL.md +251 -0
  48. package/.agents/skills/maestro-init/SKILL.md +80 -0
  49. package/.agents/skills/maestro-learn/SKILL.md +142 -0
  50. package/.agents/skills/maestro-merge/SKILL.md +66 -0
  51. package/.agents/skills/maestro-milestone-audit/SKILL.md +70 -0
  52. package/.agents/skills/maestro-milestone-complete/SKILL.md +77 -0
  53. package/.agents/skills/maestro-milestone-release/SKILL.md +98 -0
  54. package/.agents/skills/maestro-overlay/SKILL.md +180 -0
  55. package/.agents/skills/maestro-plan/SKILL.md +172 -0
  56. package/.agents/skills/maestro-player/SKILL.md +177 -0
  57. package/.agents/skills/maestro-quick/SKILL.md +67 -0
  58. package/.agents/skills/maestro-ralph/SKILL.md +685 -0
  59. package/.agents/skills/maestro-ralph-execute/SKILL.md +259 -0
  60. package/.agents/skills/maestro-roadmap/SKILL.md +170 -0
  61. package/.agents/skills/maestro-tools-execute/SKILL.md +119 -0
  62. package/.agents/skills/maestro-tools-register/SKILL.md +159 -0
  63. package/.agents/skills/maestro-ui-codify/SKILL.md +82 -0
  64. package/.agents/skills/maestro-update/SKILL.md +178 -0
  65. package/.agents/skills/maestro-verify/SKILL.md +111 -0
  66. package/.agents/skills/manage-codebase-rebuild/SKILL.md +77 -0
  67. package/.agents/skills/manage-codebase-refresh/SKILL.md +59 -0
  68. package/.agents/skills/manage-harvest/SKILL.md +96 -0
  69. package/.agents/skills/manage-issue/SKILL.md +75 -0
  70. package/.agents/skills/manage-issue-discover/SKILL.md +83 -0
  71. package/.agents/skills/manage-knowhow/SKILL.md +79 -0
  72. package/.agents/skills/manage-knowhow-capture/SKILL.md +81 -0
  73. package/.agents/skills/manage-learn/SKILL.md +67 -0
  74. package/.agents/skills/manage-status/SKILL.md +54 -0
  75. package/.agents/skills/manage-wiki/SKILL.md +64 -0
  76. package/.agents/skills/quality-auto-test/SKILL.md +138 -0
  77. package/.agents/skills/quality-debug/SKILL.md +122 -0
  78. package/.agents/skills/quality-refactor/SKILL.md +69 -0
  79. package/.agents/skills/quality-retrospective/SKILL.md +79 -0
  80. package/.agents/skills/quality-review/SKILL.md +130 -0
  81. package/.agents/skills/quality-sync/SKILL.md +53 -0
  82. package/.agents/skills/quality-test/SKILL.md +119 -0
  83. package/.agents/skills/security-audit/SKILL.md +157 -0
  84. package/.agents/skills/skill-iter-tune/SKILL.md +384 -0
  85. package/.agents/skills/skill-iter-tune/phases/01-setup.md +144 -0
  86. package/.agents/skills/skill-iter-tune/phases/02-execute.md +292 -0
  87. package/.agents/skills/skill-iter-tune/phases/03-evaluate.md +312 -0
  88. package/.agents/skills/skill-iter-tune/phases/04-improve.md +186 -0
  89. package/.agents/skills/skill-iter-tune/phases/05-report.md +166 -0
  90. package/.agents/skills/skill-iter-tune/specs/evaluation-criteria.md +63 -0
  91. package/.agents/skills/skill-iter-tune/templates/eval-prompt.md +134 -0
  92. package/.agents/skills/skill-iter-tune/templates/execute-prompt.md +97 -0
  93. package/.agents/skills/spec-add/SKILL.md +70 -0
  94. package/.agents/skills/spec-load/SKILL.md +73 -0
  95. package/.agents/skills/spec-remove/SKILL.md +53 -0
  96. package/.agents/skills/spec-setup/SKILL.md +50 -0
  97. package/.agents/skills/team-coordinate/SKILL.md +268 -0
  98. package/.agents/skills/team-coordinate/roles/coordinator/commands/analyze-task.md +247 -0
  99. package/.agents/skills/team-coordinate/roles/coordinator/commands/dispatch.md +131 -0
  100. package/.agents/skills/team-coordinate/roles/coordinator/commands/monitor.md +358 -0
  101. package/.agents/skills/team-coordinate/roles/coordinator/role.md +365 -0
  102. package/.agents/skills/team-coordinate/specs/knowledge-transfer.md +111 -0
  103. package/.agents/skills/team-coordinate/specs/pipelines.md +97 -0
  104. package/.agents/skills/team-coordinate/specs/quality-gates.md +112 -0
  105. package/.agents/skills/team-coordinate/specs/role-spec-template.md +198 -0
  106. package/.agents/skills/team-executor/SKILL.md +191 -0
  107. package/.agents/skills/team-executor/roles/executor/commands/monitor.md +239 -0
  108. package/.agents/skills/team-executor/roles/executor/role.md +171 -0
  109. package/.agents/skills/team-executor/specs/session-schema.md +264 -0
  110. package/.agents/skills/team-lifecycle-v4/SKILL.md +211 -0
  111. package/.agents/skills/team-lifecycle-v4/roles/analyst/role.md +96 -0
  112. package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/analyze.md +56 -0
  113. package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +56 -0
  114. package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +206 -0
  115. package/.agents/skills/team-lifecycle-v4/roles/coordinator/role.md +130 -0
  116. package/.agents/skills/team-lifecycle-v4/roles/executor/commands/fix.md +35 -0
  117. package/.agents/skills/team-lifecycle-v4/roles/executor/commands/implement.md +62 -0
  118. package/.agents/skills/team-lifecycle-v4/roles/executor/role.md +69 -0
  119. package/.agents/skills/team-lifecycle-v4/roles/planner/role.md +87 -0
  120. package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-code.md +34 -0
  121. package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +44 -0
  122. package/.agents/skills/team-lifecycle-v4/roles/reviewer/role.md +71 -0
  123. package/.agents/skills/team-lifecycle-v4/roles/supervisor/role.md +194 -0
  124. package/.agents/skills/team-lifecycle-v4/roles/tester/role.md +89 -0
  125. package/.agents/skills/team-lifecycle-v4/roles/writer/role.md +97 -0
  126. package/.agents/skills/team-lifecycle-v4/specs/knowledge-transfer.md +114 -0
  127. package/.agents/skills/team-lifecycle-v4/specs/pipelines.md +140 -0
  128. package/.agents/skills/team-lifecycle-v4/specs/quality-gates.md +130 -0
  129. package/.agents/skills/team-lifecycle-v4/templates/architecture.md +254 -0
  130. package/.agents/skills/team-lifecycle-v4/templates/epics.md +196 -0
  131. package/.agents/skills/team-lifecycle-v4/templates/product-brief.md +133 -0
  132. package/.agents/skills/team-lifecycle-v4/templates/requirements.md +224 -0
  133. package/.agents/skills/team-quality-assurance/SKILL.md +149 -0
  134. package/.agents/skills/team-quality-assurance/roles/analyst/role.md +90 -0
  135. package/.agents/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -0
  136. package/.agents/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +111 -0
  137. package/.agents/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +250 -0
  138. package/.agents/skills/team-quality-assurance/roles/coordinator/role.md +143 -0
  139. package/.agents/skills/team-quality-assurance/roles/executor/role.md +68 -0
  140. package/.agents/skills/team-quality-assurance/roles/generator/role.md +70 -0
  141. package/.agents/skills/team-quality-assurance/roles/scout/role.md +77 -0
  142. package/.agents/skills/team-quality-assurance/roles/strategist/role.md +73 -0
  143. package/.agents/skills/team-quality-assurance/specs/pipelines.md +115 -0
  144. package/.agents/skills/team-quality-assurance/specs/team-config.json +131 -0
  145. package/.agents/skills/team-review/SKILL.md +149 -0
  146. package/.agents/skills/team-review/roles/coordinator/commands/analyze.md +71 -0
  147. package/.agents/skills/team-review/roles/coordinator/commands/dispatch.md +91 -0
  148. package/.agents/skills/team-review/roles/coordinator/commands/monitor.md +224 -0
  149. package/.agents/skills/team-review/roles/coordinator/role.md +132 -0
  150. package/.agents/skills/team-review/roles/fixer/role.md +78 -0
  151. package/.agents/skills/team-review/roles/reviewer/role.md +70 -0
  152. package/.agents/skills/team-review/roles/scanner/role.md +81 -0
  153. package/.agents/skills/team-review/specs/dimensions.md +82 -0
  154. package/.agents/skills/team-review/specs/finding-schema.json +82 -0
  155. package/.agents/skills/team-review/specs/pipelines.md +102 -0
  156. package/.agents/skills/team-review/specs/team-config.json +27 -0
  157. package/.agents/skills/team-tech-debt/SKILL.md +130 -0
  158. package/.agents/skills/team-tech-debt/roles/assessor/role.md +79 -0
  159. package/.agents/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -0
  160. package/.agents/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +156 -0
  161. package/.agents/skills/team-tech-debt/roles/coordinator/commands/monitor.md +209 -0
  162. package/.agents/skills/team-tech-debt/roles/coordinator/role.md +123 -0
  163. package/.agents/skills/team-tech-debt/roles/executor/role.md +78 -0
  164. package/.agents/skills/team-tech-debt/roles/planner/role.md +71 -0
  165. package/.agents/skills/team-tech-debt/roles/scanner/role.md +92 -0
  166. package/.agents/skills/team-tech-debt/roles/validator/role.md +80 -0
  167. package/.agents/skills/team-tech-debt/specs/pipelines.md +47 -0
  168. package/.agents/skills/team-tech-debt/specs/team-config.json +129 -0
  169. package/.agents/skills/team-testing/SKILL.md +145 -0
  170. package/.agents/skills/team-testing/roles/analyst/role.md +105 -0
  171. package/.agents/skills/team-testing/roles/coordinator/commands/analyze.md +70 -0
  172. package/.agents/skills/team-testing/roles/coordinator/commands/dispatch.md +108 -0
  173. package/.agents/skills/team-testing/roles/coordinator/commands/monitor.md +257 -0
  174. package/.agents/skills/team-testing/roles/coordinator/role.md +134 -0
  175. package/.agents/skills/team-testing/roles/executor/role.md +101 -0
  176. package/.agents/skills/team-testing/roles/generator/role.md +100 -0
  177. package/.agents/skills/team-testing/roles/strategist/role.md +85 -0
  178. package/.agents/skills/team-testing/specs/pipelines.md +101 -0
  179. package/.agents/skills/team-testing/specs/team-config.json +93 -0
  180. package/.agents/skills/wiki-connect/SKILL.md +64 -0
  181. package/.agents/skills/wiki-digest/SKILL.md +70 -0
  182. package/.agents/skills/workflow-skill-designer/SKILL.md +498 -0
  183. package/.agents/skills/workflow-skill-designer/phases/01-requirements-analysis.md +356 -0
  184. package/.agents/skills/workflow-skill-designer/phases/02-orchestrator-design.md +444 -0
  185. package/.agents/skills/workflow-skill-designer/phases/03-phase-design.md +458 -0
  186. package/.agents/skills/workflow-skill-designer/phases/04-validation.md +471 -0
  187. package/.agy/agents/cli-explore-agent.md +186 -0
  188. package/.agy/agents/conceptual-planning-agent.md +244 -0
  189. package/.agy/agents/impeccable-agent.md +97 -0
  190. package/.agy/agents/team-supervisor.md +142 -0
  191. package/.agy/agents/team-worker.md +236 -0
  192. package/.agy/agents/ui-design-agent.md +286 -0
  193. package/.agy/agents/workflow-analyzer.md +114 -0
  194. package/.agy/agents/workflow-codebase-mapper.md +76 -0
  195. package/.agy/agents/workflow-collab-planner.md +142 -0
  196. package/.agy/agents/workflow-debugger.md +102 -0
  197. package/.agy/agents/workflow-executor.md +131 -0
  198. package/.agy/agents/workflow-external-researcher.md +86 -0
  199. package/.agy/agents/workflow-integration-checker.md +82 -0
  200. package/.agy/agents/workflow-nyquist-auditor.md +84 -0
  201. package/.agy/agents/workflow-phase-researcher.md +84 -0
  202. package/.agy/agents/workflow-plan-checker.md +89 -0
  203. package/.agy/agents/workflow-planner.md +194 -0
  204. package/.agy/agents/workflow-project-researcher.md +73 -0
  205. package/.agy/agents/workflow-research-synthesizer.md +70 -0
  206. package/.agy/agents/workflow-reviewer.md +81 -0
  207. package/.agy/agents/workflow-roadmapper.md +81 -0
  208. package/.agy/agents/workflow-verifier.md +119 -0
  209. package/.agy/skills/codify-to-knowhow/SKILL.md +172 -0
  210. package/.agy/skills/codify-to-knowhow/phases/01-load-manifest.md +101 -0
  211. package/.agy/skills/codify-to-knowhow/phases/02-generate-knowhow.md +97 -0
  212. package/.agy/skills/codify-to-knowhow/phases/03-generate-specs.md +92 -0
  213. package/.agy/skills/codify-to-knowhow/phases/04-index-verify.md +119 -0
  214. package/.agy/skills/learn-decompose/SKILL.md +118 -0
  215. package/.agy/skills/learn-follow/SKILL.md +129 -0
  216. package/.agy/skills/learn-investigate/SKILL.md +154 -0
  217. package/.agy/skills/learn-retro/SKILL.md +159 -0
  218. package/.agy/skills/learn-second-opinion/SKILL.md +124 -0
  219. package/.agy/skills/maestro/SKILL.md +223 -0
  220. package/.agy/skills/maestro-amend/SKILL.md +162 -0
  221. package/.agy/skills/maestro-analyze/SKILL.md +135 -0
  222. package/.agy/skills/maestro-brainstorm/SKILL.md +118 -0
  223. package/.agy/skills/maestro-collab/SKILL.md +174 -0
  224. package/.agy/skills/maestro-composer/SKILL.md +180 -0
  225. package/.agy/skills/maestro-execute/SKILL.md +133 -0
  226. package/.agy/skills/maestro-fork/SKILL.md +88 -0
  227. package/.agy/skills/maestro-guard/SKILL.md +101 -0
  228. package/.agy/skills/maestro-help/SKILL.md +267 -0
  229. package/.agy/skills/maestro-help/index/catalog.json +184 -0
  230. package/.agy/skills/maestro-help/phases/01-parse-intent.md +122 -0
  231. package/.agy/skills/maestro-help/phases/02-search-present.md +181 -0
  232. package/.agy/skills/maestro-help/phases/03-workflow-guide.md +186 -0
  233. package/.agy/skills/maestro-impeccable/SKILL.md +250 -0
  234. package/.agy/skills/maestro-init/SKILL.md +80 -0
  235. package/.agy/skills/maestro-learn/SKILL.md +142 -0
  236. package/.agy/skills/maestro-merge/SKILL.md +66 -0
  237. package/.agy/skills/maestro-milestone-audit/SKILL.md +70 -0
  238. package/.agy/skills/maestro-milestone-complete/SKILL.md +77 -0
  239. package/.agy/skills/maestro-milestone-release/SKILL.md +98 -0
  240. package/.agy/skills/maestro-overlay/SKILL.md +177 -0
  241. package/.agy/skills/maestro-plan/SKILL.md +172 -0
  242. package/.agy/skills/maestro-player/SKILL.md +176 -0
  243. package/.agy/skills/maestro-quick/SKILL.md +67 -0
  244. package/.agy/skills/maestro-ralph/SKILL.md +681 -0
  245. package/.agy/skills/maestro-ralph-execute/SKILL.md +255 -0
  246. package/.agy/skills/maestro-roadmap/SKILL.md +170 -0
  247. package/.agy/skills/maestro-tools-execute/SKILL.md +119 -0
  248. package/.agy/skills/maestro-tools-register/SKILL.md +159 -0
  249. package/.agy/skills/maestro-ui-codify/SKILL.md +81 -0
  250. package/.agy/skills/maestro-update/SKILL.md +175 -0
  251. package/.agy/skills/maestro-verify/SKILL.md +111 -0
  252. package/.agy/skills/manage-codebase-rebuild/SKILL.md +77 -0
  253. package/.agy/skills/manage-codebase-refresh/SKILL.md +59 -0
  254. package/.agy/skills/manage-harvest/SKILL.md +96 -0
  255. package/.agy/skills/manage-issue/SKILL.md +72 -0
  256. package/.agy/skills/manage-issue-discover/SKILL.md +83 -0
  257. package/.agy/skills/manage-knowhow/SKILL.md +76 -0
  258. package/.agy/skills/manage-knowhow-capture/SKILL.md +78 -0
  259. package/.agy/skills/manage-learn/SKILL.md +64 -0
  260. package/.agy/skills/manage-status/SKILL.md +51 -0
  261. package/.agy/skills/manage-wiki/SKILL.md +61 -0
  262. package/.agy/skills/quality-auto-test/SKILL.md +135 -0
  263. package/.agy/skills/quality-debug/SKILL.md +122 -0
  264. package/.agy/skills/quality-refactor/SKILL.md +69 -0
  265. package/.agy/skills/quality-retrospective/SKILL.md +79 -0
  266. package/.agy/skills/quality-review/SKILL.md +130 -0
  267. package/.agy/skills/quality-sync/SKILL.md +53 -0
  268. package/.agy/skills/quality-test/SKILL.md +119 -0
  269. package/.agy/skills/security-audit/SKILL.md +157 -0
  270. package/.agy/skills/skill-iter-tune/SKILL.md +381 -0
  271. package/.agy/skills/skill-iter-tune/phases/01-setup.md +144 -0
  272. package/.agy/skills/skill-iter-tune/phases/02-execute.md +292 -0
  273. package/.agy/skills/skill-iter-tune/phases/03-evaluate.md +312 -0
  274. package/.agy/skills/skill-iter-tune/phases/04-improve.md +198 -0
  275. package/.agy/skills/skill-iter-tune/phases/05-report.md +166 -0
  276. package/.agy/skills/skill-iter-tune/specs/evaluation-criteria.md +63 -0
  277. package/.agy/skills/skill-iter-tune/templates/eval-prompt.md +134 -0
  278. package/.agy/skills/skill-iter-tune/templates/execute-prompt.md +97 -0
  279. package/.agy/skills/spec-add/SKILL.md +67 -0
  280. package/.agy/skills/spec-load/SKILL.md +70 -0
  281. package/.agy/skills/spec-remove/SKILL.md +50 -0
  282. package/.agy/skills/spec-setup/SKILL.md +47 -0
  283. package/.agy/skills/team-coordinate/SKILL.md +267 -0
  284. package/.agy/skills/team-coordinate/roles/coordinator/commands/analyze-task.md +247 -0
  285. package/.agy/skills/team-coordinate/roles/coordinator/commands/dispatch.md +131 -0
  286. package/.agy/skills/team-coordinate/roles/coordinator/commands/monitor.md +348 -0
  287. package/.agy/skills/team-coordinate/roles/coordinator/role.md +362 -0
  288. package/.agy/skills/team-coordinate/specs/knowledge-transfer.md +111 -0
  289. package/.agy/skills/team-coordinate/specs/pipelines.md +97 -0
  290. package/.agy/skills/team-coordinate/specs/quality-gates.md +112 -0
  291. package/.agy/skills/team-coordinate/specs/role-spec-template.md +198 -0
  292. package/.agy/skills/team-executor/SKILL.md +180 -0
  293. package/.agy/skills/team-executor/roles/executor/commands/monitor.md +235 -0
  294. package/.agy/skills/team-executor/roles/executor/role.md +171 -0
  295. package/.agy/skills/team-executor/specs/session-schema.md +264 -0
  296. package/.agy/skills/team-lifecycle-v4/SKILL.md +189 -0
  297. package/.agy/skills/team-lifecycle-v4/roles/analyst/role.md +92 -0
  298. package/.agy/skills/team-lifecycle-v4/roles/coordinator/commands/analyze.md +56 -0
  299. package/.agy/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +56 -0
  300. package/.agy/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +206 -0
  301. package/.agy/skills/team-lifecycle-v4/roles/coordinator/role.md +130 -0
  302. package/.agy/skills/team-lifecycle-v4/roles/executor/commands/fix.md +35 -0
  303. package/.agy/skills/team-lifecycle-v4/roles/executor/commands/implement.md +62 -0
  304. package/.agy/skills/team-lifecycle-v4/roles/executor/role.md +64 -0
  305. package/.agy/skills/team-lifecycle-v4/roles/planner/role.md +82 -0
  306. package/.agy/skills/team-lifecycle-v4/roles/reviewer/commands/review-code.md +34 -0
  307. package/.agy/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +44 -0
  308. package/.agy/skills/team-lifecycle-v4/roles/reviewer/role.md +65 -0
  309. package/.agy/skills/team-lifecycle-v4/roles/supervisor/role.md +188 -0
  310. package/.agy/skills/team-lifecycle-v4/roles/tester/role.md +84 -0
  311. package/.agy/skills/team-lifecycle-v4/roles/writer/role.md +92 -0
  312. package/.agy/skills/team-lifecycle-v4/specs/knowledge-transfer.md +114 -0
  313. package/.agy/skills/team-lifecycle-v4/specs/pipelines.md +140 -0
  314. package/.agy/skills/team-lifecycle-v4/specs/quality-gates.md +130 -0
  315. package/.agy/skills/team-lifecycle-v4/templates/architecture.md +254 -0
  316. package/.agy/skills/team-lifecycle-v4/templates/epics.md +196 -0
  317. package/.agy/skills/team-lifecycle-v4/templates/product-brief.md +133 -0
  318. package/.agy/skills/team-lifecycle-v4/templates/requirements.md +224 -0
  319. package/.agy/skills/team-quality-assurance/SKILL.md +148 -0
  320. package/.agy/skills/team-quality-assurance/roles/analyst/role.md +85 -0
  321. package/.agy/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -0
  322. package/.agy/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +111 -0
  323. package/.agy/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +235 -0
  324. package/.agy/skills/team-quality-assurance/roles/coordinator/role.md +143 -0
  325. package/.agy/skills/team-quality-assurance/roles/executor/role.md +62 -0
  326. package/.agy/skills/team-quality-assurance/roles/generator/role.md +65 -0
  327. package/.agy/skills/team-quality-assurance/roles/scout/role.md +72 -0
  328. package/.agy/skills/team-quality-assurance/roles/strategist/role.md +69 -0
  329. package/.agy/skills/team-quality-assurance/specs/pipelines.md +115 -0
  330. package/.agy/skills/team-quality-assurance/specs/team-config.json +131 -0
  331. package/.agy/skills/team-review/SKILL.md +149 -0
  332. package/.agy/skills/team-review/roles/coordinator/commands/analyze.md +71 -0
  333. package/.agy/skills/team-review/roles/coordinator/commands/dispatch.md +91 -0
  334. package/.agy/skills/team-review/roles/coordinator/commands/monitor.md +209 -0
  335. package/.agy/skills/team-review/roles/coordinator/role.md +132 -0
  336. package/.agy/skills/team-review/roles/fixer/role.md +74 -0
  337. package/.agy/skills/team-review/roles/reviewer/role.md +66 -0
  338. package/.agy/skills/team-review/roles/scanner/role.md +77 -0
  339. package/.agy/skills/team-review/specs/dimensions.md +82 -0
  340. package/.agy/skills/team-review/specs/finding-schema.json +82 -0
  341. package/.agy/skills/team-review/specs/pipelines.md +102 -0
  342. package/.agy/skills/team-review/specs/team-config.json +27 -0
  343. package/.agy/skills/team-tech-debt/SKILL.md +133 -0
  344. package/.agy/skills/team-tech-debt/roles/assessor/role.md +76 -0
  345. package/.agy/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -0
  346. package/.agy/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +156 -0
  347. package/.agy/skills/team-tech-debt/roles/coordinator/commands/monitor.md +198 -0
  348. package/.agy/skills/team-tech-debt/roles/coordinator/role.md +123 -0
  349. package/.agy/skills/team-tech-debt/roles/executor/role.md +76 -0
  350. package/.agy/skills/team-tech-debt/roles/planner/role.md +68 -0
  351. package/.agy/skills/team-tech-debt/roles/scanner/role.md +90 -0
  352. package/.agy/skills/team-tech-debt/roles/validator/role.md +78 -0
  353. package/.agy/skills/team-tech-debt/specs/pipelines.md +47 -0
  354. package/.agy/skills/team-tech-debt/specs/team-config.json +129 -0
  355. package/.agy/skills/team-testing/SKILL.md +144 -0
  356. package/.agy/skills/team-testing/roles/analyst/role.md +101 -0
  357. package/.agy/skills/team-testing/roles/coordinator/commands/analyze.md +70 -0
  358. package/.agy/skills/team-testing/roles/coordinator/commands/dispatch.md +108 -0
  359. package/.agy/skills/team-testing/roles/coordinator/commands/monitor.md +242 -0
  360. package/.agy/skills/team-testing/roles/coordinator/role.md +134 -0
  361. package/.agy/skills/team-testing/roles/executor/role.md +95 -0
  362. package/.agy/skills/team-testing/roles/generator/role.md +95 -0
  363. package/.agy/skills/team-testing/roles/strategist/role.md +81 -0
  364. package/.agy/skills/team-testing/specs/pipelines.md +101 -0
  365. package/.agy/skills/team-testing/specs/team-config.json +93 -0
  366. package/.agy/skills/wiki-connect/SKILL.md +64 -0
  367. package/.agy/skills/wiki-digest/SKILL.md +70 -0
  368. package/.agy/skills/workflow-skill-designer/SKILL.md +506 -0
  369. package/.agy/skills/workflow-skill-designer/phases/01-requirements-analysis.md +356 -0
  370. package/.agy/skills/workflow-skill-designer/phases/02-orchestrator-design.md +444 -0
  371. package/.agy/skills/workflow-skill-designer/phases/03-phase-design.md +458 -0
  372. package/.agy/skills/workflow-skill-designer/phases/04-validation.md +471 -0
  373. package/.claude/commands/maestro-ralph.md +222 -87
  374. package/.claude/commands/maestro.md +13 -11
  375. package/.codex/skills/maestro/SKILL.md +23 -17
  376. package/.codex/skills/maestro-ralph/SKILL.md +177 -67
  377. package/dist/src/commands/install-backend.d.ts +12 -0
  378. package/dist/src/commands/install-backend.d.ts.map +1 -1
  379. package/dist/src/commands/install-backend.js +144 -0
  380. package/dist/src/commands/install-backend.js.map +1 -1
  381. package/dist/src/core/component-defs.d.ts +6 -0
  382. package/dist/src/core/component-defs.d.ts.map +1 -1
  383. package/dist/src/core/component-defs.js +97 -0
  384. package/dist/src/core/component-defs.js.map +1 -1
  385. package/dist/src/tui/install-ui/ExtraMcpConfig.d.ts +11 -0
  386. package/dist/src/tui/install-ui/ExtraMcpConfig.d.ts.map +1 -0
  387. package/dist/src/tui/install-ui/ExtraMcpConfig.js +61 -0
  388. package/dist/src/tui/install-ui/ExtraMcpConfig.js.map +1 -0
  389. package/dist/src/tui/install-ui/InstallConfirm.d.ts +3 -0
  390. package/dist/src/tui/install-ui/InstallConfirm.d.ts.map +1 -1
  391. package/dist/src/tui/install-ui/InstallConfirm.js +1 -1
  392. package/dist/src/tui/install-ui/InstallConfirm.js.map +1 -1
  393. package/dist/src/tui/install-ui/InstallExecution.d.ts +2 -0
  394. package/dist/src/tui/install-ui/InstallExecution.d.ts.map +1 -1
  395. package/dist/src/tui/install-ui/InstallExecution.js +14 -2
  396. package/dist/src/tui/install-ui/InstallExecution.js.map +1 -1
  397. package/dist/src/tui/install-ui/InstallFlow.d.ts +1 -1
  398. package/dist/src/tui/install-ui/InstallFlow.d.ts.map +1 -1
  399. package/dist/src/tui/install-ui/InstallFlow.js +16 -3
  400. package/dist/src/tui/install-ui/InstallFlow.js.map +1 -1
  401. package/dist/src/tui/install-ui/InstallHub.d.ts +2 -0
  402. package/dist/src/tui/install-ui/InstallHub.d.ts.map +1 -1
  403. package/dist/src/tui/install-ui/InstallHub.js +8 -0
  404. package/dist/src/tui/install-ui/InstallHub.js.map +1 -1
  405. package/dist/src/tui/install-ui/InstallResult.d.ts.map +1 -1
  406. package/dist/src/tui/install-ui/InstallResult.js +3 -1
  407. package/dist/src/tui/install-ui/InstallResult.js.map +1 -1
  408. package/dist/src/utils/update-notices.js +19 -0
  409. package/dist/src/utils/update-notices.js.map +1 -1
  410. package/package.json +7 -2
@@ -0,0 +1,135 @@
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 milestone-scoped, topic text for adhoc/standalone mode, no args for milestone-wide.
38
+
39
+ **Flags:**
40
+ - `-y` / `--yes`: Auto mode — skip interactive scoping, use recommended defaults, auto-deepen
41
+ - `-c` / `--continue`: Resume from existing session (auto-detect session folder + discussion.md)
42
+ - `-q` / `--quick`: Quick mode — skip exploration + scoring, go straight to decision extraction (context.md only)
43
+ - `--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.
44
+
45
+ Scope routing, output directory format, artifact registration schema, and output artifact listing are defined in workflow analyze.md (Scope Routing and Output Structure sections).
46
+
47
+ ### Role Knowledge
48
+ `maestro wiki list --category debug` → select relevant → `maestro wiki load`
49
+ </context>
50
+
51
+ <execution>
52
+ Follow '~/.maestro/workflows/analyze.md' completely.
53
+
54
+ ### --gaps Mode (Issue Root Cause Analysis)
55
+
56
+ When `--gaps` flag is present, follow `~/.maestro/workflows/issue-gaps-analyze.md` instead of the standard analyze pipeline:
57
+
58
+ ```
59
+ Phase 1: Load issues from .workflow/issues/issues.jsonl
60
+ - If ISS-ID provided: load single issue
61
+ - If no ISS-ID: filter issues where status = open | registered
62
+ - Validate: at least 1 issue loaded, else error E_NO_ISSUES
63
+
64
+ Phase 2: CLI exploration per issue
65
+ - For each issue: build exploration prompt from issue.title, description, context, related_files
66
+ - Run maestro delegate --role analyze --mode analysis with codebase context
67
+ - Gather affected files, call chains, root cause evidence
68
+
69
+ Phase 3: Root cause synthesis → write issue.analysis
70
+ - Parse CLI output into analysis record: { root_cause, affected_files, impact_scope, fix_direction, confidence, analyzed_at, tool, depth }
71
+ - Write analysis record to issue in issues.jsonl
72
+ - Append history entry: { action: "analyzed", at: <ISO>, by: "maestro-analyze --gaps" }
73
+
74
+ Phase 4: Output context.md for downstream plan --gaps
75
+ - Aggregate all analyzed issues into context.md with root causes and fix directions
76
+ - Register ANL artifact in state.json
77
+ ```
78
+
79
+ **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.
80
+
81
+ **Next-step routing on completion:**
82
+
83
+ Phase/Milestone scope:
84
+ - Go recommendation, UI work needed → `/maestro-impeccable build {target}`
85
+ - Go recommendation, ready to plan → `/maestro-plan` or `/maestro-plan {phase}`
86
+ - No-Go recommendation → revisit requirements or `/maestro-brainstorm {topic}`
87
+
88
+ Adhoc/Standalone scope:
89
+ - Ready to plan → `/maestro-plan --dir {scratch_dir}`
90
+ - Need more exploration → `/maestro-analyze {topic} -c`
91
+
92
+ Gaps scope:
93
+ - Issues analyzed → `/maestro-plan --gaps` (plan fix tasks linked to issues)
94
+ - Need more context → `/maestro-analyze --gaps {ISS-ID}` (re-analyze specific issue)
95
+ </execution>
96
+
97
+ <error_codes>
98
+ | Code | Severity | Condition | Recovery |
99
+ |------|----------|-----------|----------|
100
+ | E001 | error | No args and no roadmap (cannot determine scope) | Prompt user for topic text or create roadmap first |
101
+ | W001 | warning | CLI exploration failed | Continue with available context, note limitation |
102
+ | W002 | warning | CLI analysis timeout | Retry with shorter prompt, or skip perspective |
103
+ | W003 | warning | Insufficient evidence for scoring dimensions | Note low-confidence dimensions, proceed with available evidence |
104
+ | W004 | warning | Max rounds reached (5) | Force synthesis, offer continuation option |
105
+ | E_NO_ISSUES | error | --gaps but no open/registered issues found | Suggest `/manage-issue-discover` or `/manage-issue create` |
106
+ | E_ISSUE_NOT_FOUND | error | --gaps with ISS-ID but issue not found | Suggest `/manage-issue list` to find valid IDs |
107
+ </error_codes>
108
+
109
+ <success_criteria>
110
+ Full mode:
111
+ - [ ] CLI exploration completed with code anchors and call chains
112
+ - [ ] discussion.md created with full timeline, TOC, Current Understanding
113
+ - [ ] analysis.md written with all 6 dimensions scored with evidence
114
+ - [ ] conclusions.json created with recommendations and decision trail
115
+ - [ ] Intent Coverage tracked and verified (no unresolved ❌ items)
116
+ - [ ] Confidence tracking initialized (Step 4.6) and re-scored each round (Step 5.8)
117
+ - [ ] Readiness gate checked before synthesis (Step 5.10)
118
+ - [ ] Pressure pass completed ≥ 1 time before Step 6
119
+ - [ ] Confidence summary with factor decomposition written to analysis.md
120
+
121
+ Gaps mode:
122
+ - [ ] Issues loaded from issues.jsonl (all open/registered, or single ISS-ID)
123
+ - [ ] CLI exploration executed per issue with codebase context
124
+ - [ ] Analysis record attached to each issue in issues.jsonl
125
+ - [ ] context.md written with aggregated root causes for plan --gaps
126
+
127
+ Both modes (full + quick):
128
+ - [ ] context.md written with all decisions classified as Locked/Free/Deferred
129
+ - [ ] Gray areas identified through phase-specific analysis
130
+ - [ ] Decision Recording Protocol applied to all decisions
131
+ - [ ] Scope creep redirected to Deferred section
132
+ - [ ] Deferred items auto-created as issues (if any)
133
+ - [ ] Artifact registered in state.json with correct scope/milestone/phase
134
+ - [ ] Next step routed (impeccable/plan for Go, brainstorm for No-Go)
135
+ </success_criteria>
@@ -0,0 +1,118 @@
1
+ ---
2
+ name: maestro-brainstorm
3
+ description: Use when exploring ideas, evaluating approaches, or needing multi-perspective analysis before implementation
4
+ argument-hint: "[topic|role-name] [--yes] [--count N] [--session ID] [--update] [--skip-questions] [--include-questions] [--style-skill PKG]"
5
+ allowed-tools:
6
+ - read_file
7
+ - write_file
8
+ - shell
9
+ - find_files
10
+ - search
11
+ - delegate_subagent
12
+ - ask_user
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
+ Unified brainstorming combining interactive framework generation, multi-role parallel analysis, and cross-role synthesis. Two modes: Auto (full pipeline with guidance-specification → parallel role analysis → synthesis) and Single Role (individual role analysis for an existing session). Outputs structured artifacts in .brainstorming/ directory ready for downstream planning.
18
+ </purpose>
19
+
20
+ <required_reading>
21
+ @~/.maestro/workflows/brainstorm.md
22
+ </required_reading>
23
+
24
+ <deferred_reading>
25
+ - [scratch-index.json](~/.maestro/templates/scratch-index.json) — read when operating in scratch mode
26
+ - [index.json](~/.maestro/templates/index.json) — read when operating in phase mode
27
+ - [brainstorm-visualize.md](~/.maestro/workflows/brainstorm-visualize.md) — read when html-prototypes/ produced and user wants to browse them
28
+ </deferred_reading>
29
+
30
+ <context>
31
+ $ARGUMENTS -- topic text for auto mode, or role name for single role mode.
32
+
33
+ **Auto mode**: topic text (e.g., "Build real-time collaboration platform") triggers full pipeline.
34
+ **Single role mode**: valid role name (e.g., "system-architect") runs one role analysis.
35
+ **All output** goes to `.workflow/scratch/{YYYYMMDD}-brainstorm-{slug}/`.
36
+ **Artifact registration**: On completion, registers artifact (type=brainstorm) in state.json.
37
+ **Output boundary**: ALL file writes MUST target `{output_dir}/` or `.workflow/state.json` only. NEVER modify source code or files outside these paths.
38
+
39
+ **Valid roles**: data-architect, product-manager, product-owner, scrum-master, subject-matter-expert, system-architect, test-strategist, ui-designer, ux-expert
40
+
41
+ **Flags**:
42
+ - `--yes` / `-y`: Auto mode, skip interactive questions, use defaults
43
+ - `--count N`: Number of roles to select (default 3, max 9)
44
+ - `--session ID`: Use existing session
45
+ - `--update`: Update existing analysis (single role)
46
+ - `--skip-questions`: Skip context gathering questions
47
+ - `--include-questions`: Force context gathering even if analysis exists
48
+ - `--style-skill PKG`: Style package for ui-designer role
49
+
50
+ ### Pre-load specs
51
+ 1. **Architecture specs**: Run `maestro spec load --category arch` to load architecture constraints. Use as context for multi-role analysis — ensures roles respect documented decisions.
52
+ 2. Optional — proceed without if unavailable.
53
+
54
+ ### Role Knowledge
55
+ 1. Browse accumulated knowledge for this role:
56
+ `maestro wiki list --category arch`
57
+ 2. Analyze the index, identify entries relevant to the current task
58
+ 3. Load selected documents:
59
+ `maestro wiki load <id1> [id2] [id3...]`
60
+ 4. Review loaded knowledge before proceeding
61
+ </context>
62
+
63
+ <execution>
64
+ Follow '~/.maestro/workflows/brainstorm.md' completely.
65
+
66
+ **Next-step routing on completion:**
67
+
68
+ Auto mode:
69
+ - Project not initialized → invoke_skill({ skill: "maestro-init" })
70
+ - Project initialized, need spec package → invoke_skill({ skill: "maestro-roadmap", args: "--mode full --from-brainstorm {session_id}" })
71
+ - Project initialized, quick roadmap → invoke_skill({ skill: "maestro-roadmap", args: "--from-brainstorm {session_id}" })
72
+ - Need deeper analysis first → invoke_skill({ skill: "maestro-analyze", args: "{topic}" })
73
+ - `html-prototypes/` produced with 2+ files and user wants to browse → load `~/.maestro/workflows/brainstorm-visualize.md` and launch visualizer server (optional, user-triggered)
74
+ - DESIGN.md established during Step 3.5 → suggest: "Run `/maestro-impeccable build <feature-description>` to build with the established design system"
75
+
76
+ Single role mode:
77
+ - More roles needed → invoke_skill({ skill: "maestro-brainstorm", args: "{next_role} --session {session_id}" })
78
+ - All roles done, run synthesis → invoke_skill({ skill: "maestro-brainstorm", args: "{topic} --session {session_id}" })
79
+ </execution>
80
+
81
+ <error_codes>
82
+ | Code | Severity | Condition | Recovery |
83
+ |------|----------|-----------|----------|
84
+ | E001 | error | Topic or role argument required | Prompt user for topic text or role name |
85
+ | E002 | error | No active session for single role mode | Guide user to run auto mode first |
86
+ | E003 | error | Invalid role name | Show valid roles list |
87
+ | W001 | warning | Fewer than 10 ideas in divergent phase | Proceed with available ideas |
88
+ | W002 | warning | Project context (.workflow/) not found | Continue without project context |
89
+ | W003 | warning | Role template not found | Use generic analysis structure |
90
+ | W004 | warning | Validation score < 60 | Log warning, suggest manual review |
91
+ | W005 | warning | External research agent failed | Continue without designResearchContext |
92
+ </error_codes>
93
+
94
+ <success_criteria>
95
+ **Auto mode**:
96
+ - [ ] guidance-specification.md with RFC 2119 keywords, terminology, non-goals, feature decomposition
97
+ - [ ] design-research.md persisted when Step 1.7 external research ran (fail-soft: absence not a failure)
98
+ - [ ] Spec Review Gate passed (Step 3.5) or `--yes` bypassed
99
+ - [ ] Role analysis files for each selected NON-UI role in `.brainstorming/{role}/`
100
+ - [ ] If `ui-designer` in selected_roles AND Step 3.5 ran: `.workflow/impeccable/DESIGN.md` exists (visual style established via impeccable explore)
101
+ - [ ] If `ui-designer` in selected_roles: `ui-designer/analysis.md` exists with UX analysis (interaction flows, state design, information architecture)
102
+ - [ ] Feature specs in `.brainstorming/feature-specs/` (or synthesis-specification.md)
103
+ - [ ] UI-bearing feature specs reference DESIGN.md for visual constraints in Section 3 (Interface Contract)
104
+ - [ ] feature-index.json and synthesis-changelog.md
105
+ - [ ] Final Output Gate passed (Step 5.5) or `--yes` bypassed
106
+ - [ ] All user decisions captured with Decision Recording Protocol
107
+ - [ ] Session metadata updated with completion status
108
+ - [ ] Confidence scored per role completion and after cross-role analysis
109
+ - [ ] Readiness gate checked before spec generation
110
+ - [ ] Pressure pass completed on at least 1 feature spec
111
+ - [ ] Confidence summary appended to synthesis-changelog.md
112
+
113
+ **Single role mode**:
114
+ - [ ] analysis.md written to `{output_dir}/{role}/`
115
+ - [ ] Feature-point organization used when feature list available
116
+ - [ ] Framework reference included when guidance-specification.md exists
117
+ - [ ] Session metadata updated
118
+ </success_criteria>
@@ -0,0 +1,174 @@
1
+ ---
2
+ name: maestro-collab
3
+ description: Use when a question needs cross-verification from multiple CLI tools or diverse analytical perspectives
4
+ argument-hint: "<requirement> [--tools gemini,qwen,claude] [--mode analysis|write] [--rule <template>] [-y]"
5
+ allowed-tools:
6
+ - read_file
7
+ - write_file
8
+ - shell
9
+ - find_files
10
+ - search
11
+ - delegate_subagent
12
+ - ask_user
13
+ ---
14
+ <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
15
+
16
+
17
+ <purpose>
18
+ Fan-out requirement to multiple CLI tools in parallel → cross-verify for consensus/conflicts → synthesize into unified report with downstream artifacts (context.md + conclusions.json).
19
+ </purpose>
20
+
21
+ <context>
22
+ $ARGUMENTS — requirement text and optional flags.
23
+
24
+ **Flags**:
25
+ - `--tools <list>`: Comma-separated CLI tools (default: first 3 enabled)
26
+ - `--mode analysis|write`: Delegate mode (default: analysis)
27
+ - `--rule <template>`: Shared rule template for all delegates
28
+ - `-y`: Skip plan confirmation
29
+
30
+ **Pre-load** (optional): `maestro spec load --category arch` + `maestro wiki list --category arch` → include in delegate prompts.
31
+
32
+ **Output**: `.workflow/scratch/{YYYYMMDD}-collab-{slug}/`
33
+ - `collab-report.md` — merged findings with consensus/conflict/unique tags
34
+ - `context.md` — Locked/Free/Deferred decisions (plan compatible)
35
+ - `conclusions.json` — structured: session_id, tools[], consensus_level, recommendation, confidence, dimensions[], decisions[]
36
+ - `per-tool/{tool}-output.md` — raw outputs
37
+ </context>
38
+
39
+ <state_machine>
40
+
41
+ <states>
42
+ S_PARSE — 解析参数、提取 flags PERSIST: —
43
+ S_DISCOVER — 发现可用 CLI 工具 PERSIST: —
44
+ S_CONFIRM — 展示计划、用户确认(-y 跳过) PERSIST: —
45
+ S_FANOUT — 构建 prompt、并行启动 delegate、STOP PERSIST: —
46
+ S_COLLECT — 回调到达、收集结果 PERSIST: per-tool outputs
47
+ S_CROSS_VERIFY — 分类发现(共识/冲突/独有) PERSIST: —
48
+ S_SYNTHESIZE — 解决冲突、生成 3 个输出文件 PERSIST: outputs
49
+ S_REGISTER — 注册 CLB artifact PERSIST: state.json
50
+ S_REPORT — 显示摘要 + next-step routing PERSIST: —
51
+ </states>
52
+
53
+ <transitions>
54
+
55
+ S_PARSE:
56
+ → S_DISCOVER WHEN: requirement non-empty DO: extract requirement, tools, mode, rule, autoYes
57
+ → S_PARSE WHEN: requirement empty DO: ask_user for requirement
58
+
59
+ S_DISCOVER:
60
+ → S_CONFIRM WHEN: eligible tools >= 2 DO: A_DISCOVER_TOOLS
61
+ → ERROR(E002) WHEN: eligible tools < 2
62
+
63
+ S_CONFIRM:
64
+ → S_FANOUT WHEN: autoYes DO: A_SETUP_SESSION
65
+ → S_FANOUT WHEN: user confirms "执行" DO: A_SETUP_SESSION
66
+ → S_DISCOVER WHEN: user selects "修改工具选择" DO: re-select tools, validate >= 2
67
+ → END WHEN: user cancels
68
+
69
+ S_FANOUT:
70
+ → S_COLLECT DO: A_PARALLEL_DELEGATE then STOP — wait for callbacks
71
+
72
+ S_COLLECT:
73
+ → S_CROSS_VERIFY WHEN: all callbacks arrived DO: A_COLLECT_OUTPUTS
74
+ → ERROR(E004) WHEN: all delegates failed
75
+ GUARD: 1+ succeeded → continue with partial results (W001)
76
+
77
+ S_CROSS_VERIFY:
78
+ → S_SYNTHESIZE DO: A_CLASSIFY_FINDINGS
79
+
80
+ S_SYNTHESIZE:
81
+ → S_REGISTER DO: A_GENERATE_OUTPUTS
82
+
83
+ S_REGISTER:
84
+ → S_REPORT DO: append CLB artifact to state.json (type: collab, scope: adhoc)
85
+
86
+ S_REPORT:
87
+ → END DO: display summary (requirement, tools, consensus_level, per-tool status, artifact id, output dir)
88
+
89
+ </transitions>
90
+
91
+ <actions>
92
+
93
+ ### A_DISCOVER_TOOLS
94
+
95
+ ```
96
+ shell("maestro tools list --json 2>/dev/null || cat ~/.maestro/cli-tools.json")
97
+ ```
98
+ Filter: enabled == true. If --mode write: exclude type == "api-endpoint".
99
+ Auto-select (no --tools): first 3 eligible in config order.
100
+
101
+ ### A_SETUP_SESSION
102
+
103
+ Create: `.workflow/scratch/{YYYYMMDD}-collab-{slug}/` + `per-tool/`.
104
+
105
+ ### A_PARALLEL_DELEGATE
106
+
107
+ 1. Build shared prompt:
108
+ ```
109
+ PURPOSE: {requirement}; success = actionable findings with evidence
110
+ TASK: {auto-decomposed into 3-5 specific verbs}
111
+ MODE: {delegateMode}
112
+ CONTEXT: @**/*
113
+ EXPECTED: Structured findings with file:line refs, confidence (0-100), prioritized recommendations
114
+ CONSTRAINTS: {from requirement}
115
+ ```
116
+ 2. Launch ALL delegates in ONE message — multiple `shell(run_in_background: true)`:
117
+ ```
118
+ maestro delegate "${prompt}" --to {tool} --mode ${mode} [--rule ${rule}]
119
+ ```
120
+ 3. **STOP immediately after launch. Wait for background callbacks.**
121
+
122
+ ### A_COLLECT_OUTPUTS
123
+
124
+ On each callback: `maestro delegate output <id>` → write `per-tool/{tool}-output.md`.
125
+
126
+ ### A_CLASSIFY_FINDINGS
127
+
128
+ Read all per-tool outputs. For each finding:
129
+
130
+ | Condition | Tag |
131
+ |-----------|-----|
132
+ | 2+ tools agree | CONSENSUS |
133
+ | Tools disagree | CONFLICT |
134
+ | 1 tool only | UNIQUE |
135
+
136
+ consensus_level = consensus_count / total_findings * 100.
137
+ If consensus_level < 40%: W003.
138
+
139
+ ### A_GENERATE_OUTPUTS
140
+
141
+ Resolve conflicts via evidence-weighted voting:
142
+ - Higher confidence wins; more specific evidence (file:line) wins over general; tied → SUGGESTED
143
+
144
+ Write 3 files:
145
+ 1. **collab-report.md**: Summary, Consensus Findings, Resolved Conflicts, Unresolved Items, Unique Insights, Recommendations, Per-Tool Confidence table
146
+ 2. **context.md**: Locked (CONSENSUS items), Free (UNIQUE with strong evidence), Deferred (UNRESOLVED conflicts). Standard Locked/Free/Deferred format for plan compatibility.
147
+ 3. **conclusions.json**: session_id, subject, mode, tools[], consensus_level, recommendation (Go/No-Go/Conditional), confidence, dimensions[{name, score, findings}], decisions[{title, classification, source_tools, rationale}]
148
+
149
+ </actions>
150
+
151
+ </state_machine>
152
+
153
+ <error_codes>
154
+ | Code | Condition | Recovery |
155
+ |------|-----------|----------|
156
+ | E002 | Fewer than 2 eligible tools | Check cli-tools.json, enable more tools |
157
+ | E004 | All delegates failed | Abort with per-tool error details |
158
+ | W001 | One tool failed | Continue with remaining (partial degradation) |
159
+ | W003 | consensus_level < 40% | Flag in summary, recommend manual review |
160
+ </error_codes>
161
+
162
+ <success_criteria>
163
+ - [ ] All delegates launched in parallel via shell(run_in_background: true), STOP after launch
164
+ - [ ] Cross-verification: consensus/conflict/unique classification with consensus_level
165
+ - [ ] 3 output files produced (collab-report.md, context.md, conclusions.json)
166
+ - [ ] CLB artifact registered in state.json
167
+ - [ ] Partial degradation: continued if 1+ tools succeeded
168
+ </success_criteria>
169
+
170
+ <next_step_routing>
171
+ - Deep feasibility → `/maestro-analyze "{topic}"`
172
+ - Plan from conclusions → `/maestro-plan --dir {dir}`
173
+ - Expand → `/maestro-brainstorm "{topic}"`
174
+ </next_step_routing>
@@ -0,0 +1,181 @@
1
+ ---
2
+ name: maestro-composer
3
+ description: Compose reusable workflow templates from natural language
4
+ argument-hint: "<workflow-description> [--resume] [--edit <template-path>]"
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
+ - invoke_skill
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
+ Interactive workflow template composer. Parse natural language → resolve executors → inject checkpoints → build DAG → persist to `~/.maestro/templates/workflows/`. Progressive disclosure — specs loaded only when phase needs them.
20
+
21
+ Three entry modes: **New design** (default), **Resume** (`--resume`), **Edit** (`--edit <path>`).
22
+ </purpose>
23
+
24
+ <deferred_reading>
25
+ - [node-catalog](~/.maestro/templates/workflows/specs/node-catalog.md) — read at Phase 2 (Resolve)
26
+ - [template-schema](~/.maestro/templates/workflows/specs/template-schema.md) — read at Phase 5 (Persist)
27
+ </deferred_reading>
28
+
29
+ <context>
30
+ $ARGUMENTS — natural language description, or flags.
31
+
32
+ **Flags**: `--resume` (resume in-progress design), `--edit <path>` (edit existing template)
33
+
34
+ **Constants**:
35
+ - Template dir: `~/.maestro/templates/workflows/`
36
+ - Template index: `~/.maestro/templates/workflows/index.json`
37
+ - Design drafts: `.workflow/templates/design-drafts/`
38
+ - Template ID: `wft-<slug>-<YYYYMMDD>`, Node ID: `N-<seq>`, Checkpoint: `CP-<seq>`
39
+ - Max nodes: 20
40
+
41
+ ### Pre-load specs
42
+ 1. **Architecture specs**: Run `maestro spec load --category arch` to load architecture constraints. Use as context for node resolution — ensures workflow design respects documented patterns.
43
+ 2. **Coding specs**: Run `maestro spec load --category coding` to load coding conventions. Informs executor argument defaults and context injection.
44
+ 3. Optional — proceed without if unavailable.
45
+ </context>
46
+
47
+ <state_machine>
48
+
49
+ <states>
50
+ S_ROUTE — 入口路由(new/resume/edit) PERSIST: —
51
+ S_PARSE — 语义意图提取 PERSIST: intent.json
52
+ S_CONFIRM_1 — 确认解析结果 PERSIST: —
53
+ S_RESOLVE — 映射步骤到 executor 节点 PERSIST: nodes.json
54
+ S_CONFIRM_2 — 确认节点映射 PERSIST: —
55
+ S_ENRICH — 注入 checkpoint + 构建 DAG PERSIST: dag.json
56
+ S_CONFIRM_3 — 可视化 pipeline + 用户审批 PERSIST: —
57
+ S_PERSIST — 组装 JSON + 保存模板 PERSIST: template file + index
58
+ </states>
59
+
60
+ <transitions>
61
+
62
+ S_ROUTE:
63
+ → S_PARSE WHEN: no flags (new design)
64
+ → S_RESOLVE WHEN: --resume DO: load draft, skip to last incomplete phase
65
+ → S_CONFIRM_3 WHEN: --edit <path> DO: load template, show pipeline, ask edits
66
+
67
+ S_PARSE:
68
+ → S_CONFIRM_1 DO: A_PARSE_INTENT
69
+
70
+ S_CONFIRM_1:
71
+ → S_RESOLVE WHEN: user confirms "Looks good"
72
+ → S_PARSE WHEN: user selects "Edit steps" or "Add step"
73
+ → END WHEN: user cancels DO: save draft
74
+
75
+ S_RESOLVE:
76
+ → S_CONFIRM_2 DO: A_RESOLVE_NODES (read deferred: node-catalog)
77
+
78
+ S_CONFIRM_2:
79
+ → S_ENRICH WHEN: user confirms "Continue"
80
+ → S_RESOLVE WHEN: user changes executor or node type
81
+ → S_PARSE WHEN: user selects "Back to intent"
82
+ → END WHEN: user cancels DO: save draft
83
+
84
+ S_ENRICH:
85
+ → S_CONFIRM_3 DO: A_BUILD_DAG
86
+
87
+ S_CONFIRM_3:
88
+ → S_PERSIST WHEN: user confirms "Confirm & Save"
89
+ → S_CONFIRM_3 WHEN: user edits/adds/removes node DO: apply change, re-render
90
+ → S_ENRICH WHEN: user selects "Re-run checkpoints"
91
+ → END WHEN: user cancels DO: save draft
92
+
93
+ S_PERSIST:
94
+ → END DO: A_SAVE_TEMPLATE (read deferred: template-schema)
95
+
96
+ </transitions>
97
+
98
+ <actions>
99
+
100
+ ### A_PARSE_INTENT
101
+
102
+ 1. Parse description (if empty: ask_user for workflow description)
103
+ 2. Extract candidate nodes via semantic signals:
104
+
105
+ | Signal | Type hint |
106
+ |--------|-----------|
107
+ | "analyze", "review", "explore" | analysis (cli) |
108
+ | "plan", "design", "spec" | planning (skill) |
109
+ | "implement", "build", "code", "fix" | execution (skill) |
110
+ | "test", "validate", "verify" | testing (skill) |
111
+ | "then", "next", "after" | sequential edge |
112
+ | "parallel", "simultaneously" | parallel edge |
113
+
114
+ 3. Extract variables (inputs that vary per run)
115
+ 4. Classify: task type + complexity (simple 1-3 / medium 4-7 / complex 8+)
116
+ 5. Write `intent.json` to design drafts dir
117
+ 6. Display: parsed steps, variables, task type, complexity
118
+
119
+ ### A_RESOLVE_NODES
120
+
121
+ Read deferred `node-catalog.md` (fallback to built-in mapping):
122
+
123
+ | Type hint | Default executor |
124
+ |-----------|-----------------|
125
+ | planning | `maestro-plan` |
126
+ | execution | `maestro-execute` |
127
+ | testing | `quality-test` |
128
+ | review | `quality-review` |
129
+ | brainstorm | `maestro-brainstorm` |
130
+ | analysis | `maestro delegate --role analyze` |
131
+ | verify | `maestro-verify` |
132
+ | refactor | `quality-refactor` |
133
+ | debug | `quality-debug` |
134
+
135
+ Build `args_template` with variable placeholders. Context injection: planning-after-analysis → `--context {prev_output_path}`, execution-after-planning → `--resume-session {prev_session_id}`.
136
+ Write `nodes.json`. Display resolved node list.
137
+
138
+ ### A_BUILD_DAG
139
+
140
+ 1. Build sequential edges (fan-out/fan-in for parallel groups)
141
+ 2. Auto-inject checkpoints:
142
+
143
+ | Rule | Condition |
144
+ |------|-----------|
145
+ | Artifact boundary | Source outputs plan/spec/analysis/review |
146
+ | Execution gate | Target contains `execute` |
147
+ | Long-running | Target is maestro-plan, maestro-roadmap --mode full |
148
+ | Post-testing | Source contains `test` or `auto-test` |
149
+ | User-defined | type_hint == checkpoint |
150
+
151
+ 3. Finalize context_schema from {variable} references
152
+ 4. Validate: no cycles, no orphans, all reachable
153
+ 5. Write `dag.json`
154
+ 6. Display ASCII pipeline visualization
155
+
156
+ ### A_SAVE_TEMPLATE
157
+
158
+ Read deferred `template-schema.md` (fallback to built-in structure).
159
+ Assemble template JSON: template_id, name, nodes, edges, checkpoints, context_schema, execution_mode.
160
+ Write to `~/.maestro/templates/workflows/<slug>.json`. Update index.json.
161
+ Display: path, ID, node count, variables, execute/edit commands. Clean up draft dir.
162
+
163
+ </actions>
164
+
165
+ </state_machine>
166
+
167
+ <error_codes>
168
+ | Code | Condition | Recovery |
169
+ |------|-----------|----------|
170
+ | E002 | 0 steps extracted | Ask user to rephrase with action verbs |
171
+ | E003 | Node count > 20 | Suggest splitting into sub-workflows |
172
+ | E005 | DAG cycle detected | Show cycle, ask user to resolve |
173
+ | E006 | Edit template not found (--edit) | Show available templates |
174
+ | W001 | Ambiguous step→executor mapping | Show candidates, let user choose |
175
+ </error_codes>
176
+
177
+ <success_criteria>
178
+ - [ ] Each phase has interactive confirmation gate
179
+ - [ ] Template JSON written with nodes, edges, checkpoints, context_schema
180
+ - [ ] Index updated; deferred specs loaded only when phase needs them
181
+ </success_criteria>