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,83 @@
1
+ ---
2
+ name: manage-issue-discover
3
+ description: Discover issues via multi-perspective analysis
4
+ argument-hint: "[multi-perspective | by-prompt <prompt>] [-y] [--scope <glob>] [--depth standard|deep]"
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
+ Automated issue discovery via multi-perspective codebase analysis (8 perspectives) or prompt-driven exploration. Discovers issues, deduplicates findings, and records them in `.workflow/issues/issues.jsonl`.
18
+
19
+ - **Default (no args)**: Interactive mode selection — choose multi-perspective or prompt-driven.
20
+ - **`multi-perspective`**: 8-perspective parallel agent scan — security, performance, reliability, maintainability, scalability, UX, accessibility, compliance.
21
+ - **`by-prompt "..."`**: Prompt-driven — CLI delegate plans exploration strategy, agents explore iteratively with cross-dimension analysis.
22
+
23
+ For CRUD operations (create, list, update, close, link), use `/manage-issue`.
24
+
25
+ After discovery, use `/maestro-analyze --gaps <ISS-ID>` to perform root cause analysis on individual findings.
26
+ </purpose>
27
+
28
+ <required_reading>
29
+ @~/.maestro/workflows/issue-discover.md
30
+ </required_reading>
31
+
32
+ <deferred_reading>
33
+ - [issue.json template](~/.maestro/templates/issue.json) — read when creating issue records from findings (Step 6/11)
34
+ - [search-tools](~/.maestro/templates/search-tools.md) — search tool priority, passed to agents via workflow
35
+ </deferred_reading>
36
+
37
+ <context>
38
+ $ARGUMENTS -- optional. Parse first token to determine mode.
39
+
40
+ **Modes:**
41
+ - _(empty)_ -- interactive mode selection (ask_user)
42
+ - `multi-perspective` -- 8-perspective parallel agent scan
43
+ - `by-prompt "..."` -- prompt-driven iterative agent exploration (CLI-planned)
44
+
45
+ **Flags:**
46
+ - `-y` / `--yes` -- auto mode, skip confirmations
47
+ - `--scope=<pattern>` -- file scope (default: `**/*`)
48
+ - `--depth=standard|deep` -- exploration depth (by-prompt only, default: `standard`)
49
+
50
+ **State files:**
51
+ - `.workflow/issues/issues.jsonl` -- issues appended here
52
+ - `.workflow/issues/discoveries/{SESSION_ID}/` -- session artifacts
53
+
54
+ ### Pre-load specs
55
+ 1. **Debug specs**: Run `maestro spec load --category debug` to load known antipatterns, root causes, and gotchas. Informs discovery perspectives with prior findings.
56
+ 2. Optional — proceed without if unavailable.
57
+ </context>
58
+
59
+ <execution>
60
+ Determine mode from $ARGUMENTS:
61
+ - No arguments or empty → interactive selection via ask_user
62
+ - First token is `multi-perspective` → multi-perspective mode
63
+ - First token is `by-prompt` → prompt-driven mode, remaining tokens are the user prompt
64
+
65
+ Follow '~/.maestro/workflows/issue-discover.md' completely.
66
+ </execution>
67
+
68
+ <error_codes>
69
+ | Code | Severity | Condition | Recovery |
70
+ |------|----------|-----------|----------|
71
+ | E_NO_PROJECT | error | `.workflow/` does not exist | Prompt user to run `/maestro-init` first |
72
+ | E_DISCOVERY_FAILED | error | CLI analysis returned no results | Retry with different tool or report partial findings |
73
+ | E_EMPTY_PROMPT | warning | `by-prompt` used without prompt text | Interactive prompt with suggested options |
74
+ </error_codes>
75
+
76
+ <success_criteria>
77
+ - [ ] Discovery mode correctly determined from arguments
78
+ - [ ] All perspectives analyzed (multi-perspective) or dimensions explored (by-prompt)
79
+ - [ ] Findings deduplicated before issue creation
80
+ - [ ] Issues appended to issues.jsonl with correct schema
81
+ - [ ] Discovery session fully traceable via session directory
82
+ - [ ] Next step routing: `/maestro-analyze --gaps <ISS-ID>` for root cause analysis, or `/manage-issue list` to review all issues
83
+ </success_criteria>
@@ -0,0 +1,79 @@
1
+ ---
2
+ name: manage-knowhow
3
+ description: Manage knowhow entries (workflow and system)
4
+ argument-hint: "<subcommand: list|search|view|edit|delete|prune> [query|id] [--store workflow|system|all] [--tag <tag>] [--type compact|tip]"
5
+ allowed-tools:
6
+ - read_file
7
+ - write_file
8
+ - edit_file
9
+ - shell
10
+ - find_files
11
+ - search
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 memory management across two stores:
18
+ 1. **Workflow knowhow** (`.workflow/knowhow/`) — Session compacts and tips with JSON index, created by `manage-knowhow-capture`
19
+ 2. **System memory** (`~/.claude/projects/{project}/memory/`) — Claude Code auto-memory (MEMORY.md + topic files), persists across conversations
20
+
21
+ Provides list/search/view/edit/delete/prune operations. Default store is `all` (show both).
22
+ </purpose>
23
+
24
+ <required_reading>
25
+ @~/.maestro/workflows/knowhow.md
26
+ </required_reading>
27
+
28
+ <context>
29
+ Arguments: $ARGUMENTS
30
+
31
+ Dual store architecture (paths, formats, index) defined in workflow knowhow.md.
32
+
33
+ **Subcommands:**
34
+ - `list` — List entries from both stores (default if no arguments)
35
+ - `search <query>` — Full-text search across both stores
36
+ - `view <id|file>` — Display a workflow entry by ID or system file by name
37
+ - `edit <file>` — Edit a system memory file (MEMORY.md or topic file)
38
+ - `delete <id|file>` — Remove an entry/file (with confirmation)
39
+ - `prune` — Bulk cleanup by criteria
40
+
41
+ **Flags:**
42
+ - `--store <workflow|system|all>` — Target store (default: `all` for list/search, inferred for other ops)
43
+ - `--tag <tag>` — Filter by tag (workflow store)
44
+ - `--type <compact|tip>` — Filter by entry type (workflow store)
45
+ - `--before <YYYY-MM-DD>` — Entries before date
46
+ - `--after <YYYY-MM-DD>` — Entries after date
47
+ - `--dry-run` — Preview destructive ops without executing
48
+ - `--confirm` — Skip confirmation prompt
49
+ </context>
50
+
51
+ <execution>
52
+ Follow '~/.maestro/workflows/knowhow.md' Part A (KnowHow Management) completely.
53
+ </execution>
54
+
55
+ <error_codes>
56
+ | Code | Severity | Description | Stage |
57
+ |------|----------|-------------|-------|
58
+ | E001 | error | No memory stores found — run `/manage-knowhow-capture` or create MEMORY.md | resolve_paths |
59
+ | E002 | error | Entry ID or filename not found | execute_view, execute_delete |
60
+ | E003 | error | Prune requires at least one filter (--tag, --type, --before, --after) | execute_prune |
61
+ | E004 | error | Cannot delete MEMORY.md — use `edit` subcommand instead | execute_delete |
62
+ | W001 | warning | Workflow index has orphaned files or dangling references | integrity_check |
63
+ | W002 | warning | MEMORY.md references non-existent topic file | integrity_check |
64
+ | W003 | warning | MEMORY.md exceeds 200 lines — content will be truncated at load | execute_edit |
65
+ </error_codes>
66
+
67
+ <success_criteria>
68
+ - [ ] Both store paths correctly resolved
69
+ - [ ] Subcommand correctly detected from arguments
70
+ - [ ] Store auto-detected from argument format (KNW-*/TIP-* vs filename)
71
+ - [ ] List: both stores displayed with appropriate formatting
72
+ - [ ] Search: results from both stores, ranked by relevance
73
+ - [ ] View: correct store selected, full content displayed
74
+ - [ ] Edit: system memory files editable, MEMORY.md kept under 200 lines
75
+ - [ ] Delete: MEMORY.md protected, confirmation required, references checked
76
+ - [ ] Prune: workflow-only, filters validated, index updated
77
+ - [ ] Integrity check catches orphans and broken links
78
+ - [ ] Next step: `/manage-knowhow-capture compact` to save new knowhow, or `/manage-status` to continue workflow
79
+ </success_criteria>
@@ -0,0 +1,81 @@
1
+ ---
2
+ name: manage-knowhow-capture
3
+ description: Capture reusable knowledge as templates, recipes, or tips
4
+ argument-hint: "[<type>] [<description>] [--lang <lang>] [--source <url>] [--tag t1,t2]"
5
+ allowed-tools:
6
+ - read_file
7
+ - write_file
8
+ - edit_file
9
+ - shell
10
+ - find_files
11
+ - search
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
+ Capture reusable knowledge into `.workflow/knowhow/` with type-specific structured fields.
18
+ Auto-indexed by WikiIndexer (type=knowhow), searchable via `maestro knowhow search`.
19
+ </purpose>
20
+
21
+ <required_reading>
22
+ @~/.maestro/workflows/knowhow.md
23
+ </required_reading>
24
+
25
+ <context>
26
+ $ARGUMENTS — type token + description + optional flags.
27
+
28
+ **Flags**: `--lang <lang>`, `--source <url>`, `--tag tag1,tag2`, `--title <title>`, `--asset-type <type>`, `--code-paths <paths>`, `--category <cat>`
29
+
30
+ **Type routing** (first token match):
31
+
32
+ | Token | Type | Prefix | Key fields |
33
+ |-------|------|--------|------------|
34
+ | `compact`/`session`/`压缩`/`保存` | compact | KNW- | objective, files, decisions, plan, pending |
35
+ | `template`/`tpl`/`模板` | template | TPL- | language, code block, usage, parameters |
36
+ | `recipe`/`rcp`/`配方`/`步骤` | recipe | RCP- | prerequisites, steps, expected outcome, pitfalls |
37
+ | `reference`/`ref`/`参考`/`引用` | reference | REF- | source URL, key points, scenarios, examples |
38
+ | `decision`/`dcs`/`决策`/`adr` | decision | DCS- | context, alternatives table, rationale, consequences |
39
+ | `tip`/`note`/`记录`/`快速` | tip | TIP- | content, tags |
40
+ | `asset`/`ast`/`资产`/`契约` | asset | AST- | assetType, codePaths, category |
41
+ | `blueprint`/`blp`/`蓝图` | blueprint | BLP- | codePaths, category |
42
+ | `document`/`doc`/`文档` | document | DOC- | (general fallback) |
43
+ | Short text + `--tag` | tip | TIP- | — |
44
+ | No args | — | — | ask_user (9 options) |
45
+
46
+ **Output**: `.workflow/knowhow/{PREFIX}-{YYYYMMDD}-{HHMM}.md` with YAML frontmatter (title, type, category, created, tags, source, lang, status)
47
+ </context>
48
+
49
+ <execution>
50
+ Follow '~/.maestro/workflows/knowhow.md' completely.
51
+
52
+ **Tags language rule**: Tags must match content language. Chinese content → Chinese tags (如 `认证,令牌,刷新`). English content → English tags. Mixed → bilingual.
53
+
54
+ **Type-specific content rules**:
55
+
56
+ | Type | Content extraction |
57
+ |------|-------------------|
58
+ | compact | Extract from conversation: session ID, objective, execution plan (verbatim), working files (3-8), decisions, constraints, pending. Plan priority: workflow IMPL_PLAN.md > track_tasks > user-stated > inferred. |
59
+ | template | Ask for: language, code block, parameters (placeholders), usage context, dependencies |
60
+ | recipe | Ask for: goal, prerequisites, numbered steps, expected outcome, common pitfalls |
61
+ | reference | From --source URL or ask. Key points, applicable scenarios, quick examples. Offer web_fetch if URL provided. |
62
+ | decision | Context, alternatives (table: alt/pros/cons/rejected-because), rationale, consequences. Status: proposed/accepted/superseded. |
63
+ | tip | Content = everything after type token. Auto-detect context from recent files. |
64
+ | asset | assetType (api-contract/data-model/prompt/config), codePaths, category for agent discovery |
65
+ | blueprint | Architecture design with codePaths and category |
66
+ </execution>
67
+
68
+ <error_codes>
69
+ | Code | Condition | Recovery |
70
+ |------|-----------|----------|
71
+ | E002 | Template: no code provided after prompt | Ask again or cancel |
72
+ | E003 | Recipe: no steps provided after prompt | Ask again or cancel |
73
+ | W001 | No active workflow session (compact) | Captures conversation only |
74
+ | W002 | Plan detection found no explicit plan (compact) | Uses inferred plan |
75
+ </error_codes>
76
+
77
+ <success_criteria>
78
+ - [ ] Type detected or selected, all type-specific fields populated
79
+ - [ ] File written to .workflow/knowhow/ with correct prefix and YAML frontmatter
80
+ - [ ] Confirmation displayed with ID, type, path
81
+ </success_criteria>
@@ -0,0 +1,67 @@
1
+ ---
2
+ name: manage-learn
3
+ description: Capture and search learning insights and tips
4
+ argument-hint: "[<text> | tip <text> | list | search | show <id>] [--category <cat>] [--tag t1,t2] [--phase N]"
5
+ allowed-tools:
6
+ - read_file
7
+ - write_file
8
+ - edit_file
9
+ - shell
10
+ - find_files
11
+ - search
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 atomic knowledge capture for the workflow learning library. Captures two types of knowledge:
18
+ - **Insights**: Timeless "eureka moment" entries (patterns, gotchas, techniques) — the default mode
19
+ - **Tips**: Quick contextual notes for cross-session recovery (formerly in `manage-knowhow-capture tip`)
20
+
21
+ Both types are stored in `.workflow/specs/learnings.md` as `<spec-entry>` blocks with auto-detected phase linkage and keyword-based category inference. Tips are distinguished by `source: "tip"` and implicitly tagged `tip`. Same store as retrospective output, so search and list see the entire knowledge corpus.
22
+ </purpose>
23
+
24
+ <required_reading>
25
+ @~/.maestro/workflows/learn.md
26
+ </required_reading>
27
+
28
+ <context>
29
+ Arguments: $ARGUMENTS
30
+
31
+ **Modes (auto-detected from first token):**
32
+ - `"<insight text>"` (or any non-keyword text) → insight capture mode
33
+ - `tip <text>` → tip capture mode (quick contextual note, auto-tagged `tip`)
34
+ - `list` → list recent entries (default 20)
35
+ - `search <query>` → `maestro spec load --category learning` or text search across `specs/learnings.md`
36
+ - `show <INS-id>` → full detail with phase context
37
+ - empty → ask_user to prompt for text
38
+
39
+ Flags, storage paths, and shared store rationale defined in workflow learn.md.
40
+ </context>
41
+
42
+ <execution>
43
+ Follow `~/.maestro/workflows/learn.md` Stages 1–5 in order.
44
+ </execution>
45
+
46
+ <error_codes>
47
+ | Code | Severity | Description | Stage |
48
+ |------|----------|-------------|-------|
49
+ | E001 | error | `.workflow/` not initialized — run `/maestro-init` first | parse_input |
50
+ | E002 | error | Unknown `--category` value (allowed: pattern, antipattern, decision, tool, gotcha, technique, tip) | parse_input |
51
+ | E003 | error | `show` mode requires an INS-id argument | show |
52
+ | E004 | error | Insight id not found in `specs/learnings.md` | show |
53
+ | W001 | warning | Auto-phase detection found a current_phase but no matching artifact in registry; phase set to null | capture |
54
+ </error_codes>
55
+
56
+ <success_criteria>
57
+ - [ ] Mode correctly routed (capture / list / search / show)
58
+ - [ ] Capture: `<spec-entry>` block appended to `specs/learnings.md` with all required fields
59
+ - [ ] Capture: phase auto-link resolves correctly via artifact registry when `state.json` has `current_phase`
60
+ - [ ] Capture: category inference produces a sensible default when `--category` absent
61
+ - [ ] List: filters apply, output sorted newest-first, default limit 20
62
+ - [ ] Search: results ranked by title (3) > tags (2) > summary (1) match
63
+ - [ ] Show: full insight displayed with phase context and routed-artifact link if any
64
+ - [ ] No file modifications outside `.workflow/knowhow/`
65
+ - [ ] Confirmation banner displayed with INS-id and next-step hints
66
+ - [ ] Next step: `/manage-learn list` to browse, or `/manage-learn search <query>` to find related insights
67
+ </success_criteria>
@@ -0,0 +1,54 @@
1
+ ---
2
+ name: manage-status
3
+ description: Show project dashboard with progress and next steps
4
+ argument-hint: ""
5
+ allowed-tools:
6
+ - read_file
7
+ - shell
8
+ - find_files
9
+ - search
10
+ ---
11
+ <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
12
+
13
+ <purpose>
14
+ Display a unified project dashboard showing artifact progress, task counts, active work, and intelligent next-step suggestions.
15
+ Reads state.json artifact registry and roadmap to render a formatted overview with progress and status tables.
16
+ Provides situational awareness before continuing work. Uses virtual phase view derived from artifact registry.
17
+ </purpose>
18
+
19
+ <required_reading>
20
+ @~/.maestro/workflows/status.md
21
+ </required_reading>
22
+
23
+ <context>
24
+ $ARGUMENTS (no arguments required)
25
+
26
+ **State files read:**
27
+ - `.workflow/state.json` -- project-level state machine + artifact registry
28
+ - `.workflow/roadmap.md` -- milestone and phase structure
29
+ - `.workflow/scratch/*/plan.json` -- plan metadata (via artifact registry paths)
30
+ - `.workflow/scratch/*/.task/TASK-*.json` -- individual task statuses
31
+ </context>
32
+
33
+ <execution>
34
+ Follow '~/.maestro/workflows/status.md' completely.
35
+
36
+ Next-step decision table defined in workflow status.md Step 5.
37
+ </execution>
38
+
39
+ <error_codes>
40
+ | Code | Severity | Description | Stage |
41
+ |------|----------|-------------|-------|
42
+ | E001 | fatal | `.workflow/` not initialized -- run `/maestro-init` first | parse_input |
43
+ | E002 | fatal | `state.json` missing or corrupt -- project state unrecoverable | parse_input |
44
+ </error_codes>
45
+
46
+ <success_criteria>
47
+ - [ ] Project state loaded from `state.json`
48
+ - [ ] Roadmap parsed with milestone/phase structure
49
+ - [ ] Per-phase progress calculated (task counts, completion %)
50
+ - [ ] Dashboard rendered with progress bars and status table
51
+ - [ ] Active work section shows current phase details
52
+ - [ ] Next steps suggested based on current state analysis
53
+ - [ ] Wiki health score displayed (or graceful unavailable message)
54
+ </success_criteria>
@@ -0,0 +1,64 @@
1
+ ---
2
+ name: manage-wiki
3
+ description: Manage wiki graph — health, cleanup, search, stats
4
+ argument-hint: "<subcommand: health|search|cleanup|stats> [query] [--fix] [--dry-run]"
5
+ allowed-tools:
6
+ - read_file
7
+ - write_file
8
+ - edit_file
9
+ - shell
10
+ - find_files
11
+ - search
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 wiki graph management command. Provides interactive access to wiki health monitoring, entry search, orphan cleanup, and graph statistics — the day-to-day operations that keep the knowledge graph healthy.
18
+
19
+ Complements `/wiki-connect` (link discovery) and `/wiki-digest` (synthesis) with operational tooling.
20
+ </purpose>
21
+
22
+ <required_reading>
23
+ @~/.maestro/workflows/wiki-manage.md
24
+ </required_reading>
25
+
26
+ <context>
27
+ $ARGUMENTS — subcommand and optional flags.
28
+
29
+ **Subcommands:**
30
+ | Subcommand | Description |
31
+ |-----------|-------------|
32
+ | `health` | Health dashboard — score, broken links, orphans, hubs (default) |
33
+ | `search <query>` | Interactive BM25 search with follow-up actions |
34
+ | `cleanup` | Find and resolve orphans, broken links, stale entries |
35
+ | `stats` | Graph statistics — type distribution, tag frequency, growth trends |
36
+ | No args | Same as `health` |
37
+
38
+ **Flags:**
39
+ - `--type <type>` — Filter by wiki type: spec, knowhow, note, issue
40
+ - `--fix` — Auto-fix issues found during cleanup (remove broken links, suggest connections)
41
+ - `--json` — Output in JSON format
42
+ </context>
43
+
44
+ <execution>
45
+ Follow '~/.maestro/workflows/wiki-manage.md' completely.
46
+ </execution>
47
+
48
+ <error_codes>
49
+ | Code | Severity | Description | Stage |
50
+ |------|----------|-------------|-------|
51
+ | E001 | fatal | `.workflow/` not initialized — run `/maestro-init` first | validate |
52
+ | E002 | fatal | No wiki entries found — create content first | load |
53
+ | E003 | error | Invalid subcommand | parse_input |
54
+ | W001 | warning | Health score below 50 — graph needs attention | health |
55
+ | W002 | warning | Orphan cleanup had partial failures | cleanup |
56
+ </error_codes>
57
+
58
+ <success_criteria>
59
+ - [ ] Subcommand parsed (health/search/cleanup/stats)
60
+ - [ ] Wiki data loaded via `maestro wiki` CLI
61
+ - [ ] Results displayed in formatted output
62
+ - [ ] If cleanup --fix: issues resolved and delta reported
63
+ - [ ] Next-step suggestions provided
64
+ </success_criteria>
@@ -0,0 +1,138 @@
1
+ ---
2
+ name: quality-auto-test
3
+ description: Use when test coverage needs automated expansion or existing tests need iterative convergence
4
+ argument-hint: "<phase> [-y] [-c N] [--max-iter N] [--layer L0|L1|L2|L3] [--dry-run] [--re-run]"
5
+ allowed-tools:
6
+ - read_file
7
+ - write_file
8
+ - edit_file
9
+ - shell
10
+ - find_files
11
+ - search
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
+ Run unified automated testing via CSV layer pipeline. Reads project state to auto-select the optimal scenario source — PRD specs (when spec package exists), coverage gaps (when Nyquist audit found gaps), or code exploration (default). All sources converge into a CSV pipeline: discover infrastructure → plan → build scenarios.csv → write tests per layer (spawn_agents_on_csv parallel) → execute → diagnose failures (spawn_agents_on_csv parallel) → iterate → report.
18
+
19
+ Key mechanisms:
20
+ - **Intelligent routing**: Reads `.tests/`, `.workflow/blueprint/`, `verification.json` to auto-select source — no mode flag needed
21
+ - **CSV parallel test writing**: Per-layer `spawn_agents_on_csv` — each agent writes one test file independently
22
+ - **CSV parallel failure diagnosis**: Failed scenarios dispatched via `spawn_agents_on_csv` for classification + fix
23
+ - **Unified iteration engine**: Nested inner loop (fix test_defects via diagnosis CSV, max 3/layer) + outer loop (adaptive strategy, max N iterations)
24
+ - **Layers as waves**: L0→L1→L2→L3 sequential (fail-fast on critical), scenarios within layer parallel
25
+ - **Discovery board**: `discoveries.ndjson` shared across all agents/iterations (append-only)
26
+ - **Degenerate modes**: `--max-iter 1` = single-pass generation; default = full iterative cycle
27
+ - **Session persistence**: CSV state + state.json survive context resets, resume from any point
28
+ </purpose>
29
+
30
+ <required_reading>
31
+ @~/.maestro/workflows/auto-test.md
32
+ </required_reading>
33
+
34
+ <context>
35
+ Phase or task: $ARGUMENTS (required — phase number)
36
+
37
+ **Flags:**
38
+ - `--max-iter N` — Maximum outer iterations (default: 5). Set to 1 for single-pass generation only.
39
+ - `--layer L` — Start from or restrict to specific layer (L0|L1|L2|L3)
40
+ - `--dry-run` — Generate test plan only, do not execute
41
+ - `--re-run` — Re-run only previously failed/blocked scenarios
42
+
43
+ **Intelligent routing** (auto-detected from project state):
44
+
45
+ | Priority | Condition | Route | Equivalent to |
46
+ |----------|-----------|-------|---------------|
47
+ | 1 | Active session exists (state.json status=running) | Resume | — |
48
+ | 2 | --re-run flag + previous failures | Re-run | — |
49
+ | 3 | Spec package exists (REQ-*.md) | spec | quality-business-test |
50
+ | 4 | Nyquist gaps exist (verification.json) | gap | quality-test-gen |
51
+ | 5 | Default | code | quality-integration-test |
52
+
53
+ Flags, artifact context resolution, and output formats defined in workflow auto-test.md.
54
+
55
+ ### Pre-load context (before test generation)
56
+
57
+ 1. **Test specs + tools**: Run `maestro spec load --category test` to load test conventions (framework, patterns, naming). Apply to all generated tests.
58
+ 2. **Coding specs**: Run `maestro spec load --category coding` to understand coding patterns for accurate test targeting.
59
+ 3. **Role Knowledge**:
60
+ - Browse: `maestro wiki list --category test`
61
+ - Load task-relevant entries: `maestro wiki load <id1> [id2...]`
62
+ 4. All are optional — proceed without if unavailable.
63
+ </context>
64
+
65
+ <execution>
66
+ Follow '~/.maestro/workflows/auto-test.md' completely.
67
+
68
+ **Command-specific extensions (not in workflow):**
69
+
70
+ **Review findings integration** (from related review artifacts):
71
+ - Extract critical/high findings as additional test scenarios, marked `source: "review_finding"`
72
+ - When review verdict is "BLOCK" and review-finding tests fail, suggest quality-debug
73
+
74
+ **Debug root cause integration** (from related debug artifacts):
75
+ - Generate regression test scenarios from confirmed root causes, marked `source: "debug_root_cause"`
76
+
77
+ **Register artifact on completion:**
78
+ ```
79
+ Append to state.json.artifacts[]:
80
+ {
81
+ id: nextArtifactId(artifacts, "test"), // TST-001
82
+ type: "test",
83
+ milestone: current_milestone,
84
+ phase: target_phase,
85
+ scope: "phase",
86
+ path: "scratch/{YYYYMMDD}-auto-test-P{N}-{slug}",
87
+ status: issues == 0 ? "completed" : "failed",
88
+ depends_on: exec_art.id,
89
+ harvested: false,
90
+ created_at: start_time,
91
+ completed_at: now()
92
+ }
93
+ ```
94
+
95
+ **Next-step routing on completion:**
96
+ - Converged (>=95%) → `/maestro-verify {phase}`
97
+ - All requirements verified (spec source) → `/maestro-milestone-audit`
98
+ - Bugs discovered → `/quality-debug --from-uat {phase}`
99
+ - Max iter, >80% → `/quality-test {phase}` for manual UAT
100
+ - Max iter, <80% → `/quality-debug {phase}`
101
+ - Coverage still low → `/quality-auto-test {phase} --layer {missing}`
102
+ - Re-run all pass → `/maestro-verify {phase}`
103
+ - Single pass, all pass → `/quality-test {phase}`
104
+ </execution>
105
+
106
+ <error_codes>
107
+ | Code | Severity | Condition | Recovery |
108
+ |------|----------|-----------|----------|
109
+ | E001 | error | Phase argument required (no active sessions) | Prompt user for phase number |
110
+ | E002 | error | Phase not found in artifact registry | Check state.json artifacts |
111
+ | E003 | error | No test framework detected | Install test framework or configure test runner |
112
+ | W001 | warning | One or more test scenarios failed | Auto-iterate or suggest fix options |
113
+ | W002 | warning | Max iterations reached without convergence | Review reflection-log.md, suggest debug |
114
+ | W003 | warning | Degraded spec mode (no full spec package) | Consider running maestro-roadmap --mode full |
115
+ </error_codes>
116
+
117
+ <success_criteria>
118
+ - [ ] Phase resolved from artifact registry
119
+ - [ ] Route auto-selected from project state (spec/gap/code)
120
+ - [ ] Active sessions checked, resume offered if applicable
121
+ - [ ] Scenarios extracted and normalized to unified format
122
+ - [ ] Test infrastructure discovered (framework, patterns, conventions)
123
+ - [ ] test-plan.json generated with layer distribution
124
+ - [ ] User confirmed plan (or --dry-run stopped here)
125
+ - [ ] Tests written following RED-GREEN methodology and existing patterns
126
+ - [ ] Tests executed progressively (L0→L3) with fail-fast on critical
127
+ - [ ] Iteration engine ran (inner: test_defect fix, outer: strategy adjust)
128
+ - [ ] state.json, report.json, reflection-log.md written
129
+ - [ ] Test confidence scored per iteration (Step 7.5) with 5-dimension factor model
130
+ - [ ] Convergence check includes confidence >= 60% alongside pass_rate threshold
131
+ - [ ] Pressure pass completed on highest-pass-rate layer before completion
132
+ - [ ] report.json includes confidence section
133
+ - [ ] index.json updated with auto_test section
134
+ - [ ] If spec source: traceability matrix built, traceability.md written
135
+ - [ ] If failures: issues auto-created in issues.jsonl
136
+ - [ ] If gap source: validation.json gaps updated (MISSING→COVERED)
137
+ - [ ] Next step routed based on convergence status
138
+ </success_criteria>