maestro-flow 0.4.26 → 0.5.1

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 (415) hide show
  1. package/.agents/skills/codify-to-knowhow/phases/03-generate-specs.md +2 -1
  2. package/.agents/skills/learn-follow/SKILL.md +1 -1
  3. package/.agents/skills/learn-investigate/SKILL.md +2 -2
  4. package/.agents/skills/learn-second-opinion/SKILL.md +1 -1
  5. package/.agents/skills/maestro/SKILL.md +6 -3
  6. package/.agents/skills/maestro-analyze/SKILL.md +53 -2
  7. package/.agents/skills/maestro-blueprint/SKILL.md +36 -1
  8. package/.agents/skills/maestro-brainstorm/SKILL.md +40 -1
  9. package/.agents/skills/maestro-collab/SKILL.md +1 -1
  10. package/.agents/skills/maestro-companion/SKILL.md +4 -4
  11. package/.agents/skills/maestro-composer/SKILL.md +1 -1
  12. package/.agents/skills/maestro-execute/SKILL.md +29 -6
  13. package/.agents/skills/maestro-fork/SKILL.md +24 -0
  14. package/.agents/skills/maestro-grill/SKILL.md +38 -1
  15. package/.agents/skills/maestro-help/SKILL.md +5 -6
  16. package/.agents/skills/maestro-help/index/catalog.json +7 -9
  17. package/.agents/skills/maestro-help/phases/02-search-present.md +2 -4
  18. package/.agents/skills/maestro-help/phases/03-workflow-guide.md +7 -8
  19. package/.agents/skills/maestro-impeccable/SKILL.md +13 -0
  20. package/.agents/skills/maestro-init/SKILL.md +11 -0
  21. package/.agents/skills/maestro-merge/SKILL.md +17 -1
  22. package/.agents/skills/maestro-milestone-audit/SKILL.md +34 -2
  23. package/.agents/skills/maestro-milestone-complete/SKILL.md +19 -1
  24. package/.agents/skills/maestro-milestone-release/SKILL.md +18 -0
  25. package/.agents/skills/maestro-next/SKILL.md +8 -9
  26. package/.agents/skills/maestro-overlay/SKILL.md +3 -3
  27. package/.agents/skills/maestro-plan/SKILL.md +21 -3
  28. package/.agents/skills/maestro-quick/SKILL.md +13 -1
  29. package/.agents/skills/maestro-ralph/SKILL.md +18 -20
  30. package/.agents/skills/maestro-ralph-beta/SKILL.md +10 -16
  31. package/.agents/skills/maestro-ralph-execute/SKILL.md +1 -2
  32. package/.agents/skills/maestro-roadmap/SKILL.md +28 -2
  33. package/.agents/skills/maestro-swarm-workflow/SKILL.md +2 -2
  34. package/.agents/skills/maestro-tools-register/SKILL.md +2 -2
  35. package/.agents/skills/maestro-ui-codify/SKILL.md +20 -0
  36. package/.agents/skills/maestro-update/SKILL.md +59 -116
  37. package/.agents/skills/manage-codebase-rebuild/SKILL.md +3 -3
  38. package/.agents/skills/manage-harvest/SKILL.md +1 -1
  39. package/.agents/skills/manage-knowhow/SKILL.md +3 -1
  40. package/.agents/skills/manage-knowhow-capture/SKILL.md +7 -4
  41. package/.agents/skills/manage-wiki/SKILL.md +17 -8
  42. package/.agents/skills/quality-auto-test/SKILL.md +3 -3
  43. package/.agents/skills/quality-debug/SKILL.md +4 -4
  44. package/.agents/skills/quality-refactor/SKILL.md +2 -2
  45. package/.agents/skills/quality-retrospective/SKILL.md +5 -5
  46. package/.agents/skills/quality-review/SKILL.md +4 -4
  47. package/.agents/skills/quality-sync/SKILL.md +1 -0
  48. package/.agents/skills/quality-test/SKILL.md +4 -4
  49. package/.agents/skills/spec-add/SKILL.md +6 -4
  50. package/.agents/skills/spec-setup/SKILL.md +1 -1
  51. package/.agy/skills/codify-to-knowhow/phases/03-generate-specs.md +2 -1
  52. package/.agy/skills/learn-follow/SKILL.md +1 -1
  53. package/.agy/skills/learn-investigate/SKILL.md +2 -2
  54. package/.agy/skills/learn-second-opinion/SKILL.md +1 -1
  55. package/.agy/skills/maestro/SKILL.md +6 -3
  56. package/.agy/skills/maestro-analyze/SKILL.md +53 -2
  57. package/.agy/skills/maestro-blueprint/SKILL.md +36 -1
  58. package/.agy/skills/maestro-brainstorm/SKILL.md +40 -1
  59. package/.agy/skills/maestro-collab/SKILL.md +1 -1
  60. package/.agy/skills/maestro-companion/SKILL.md +4 -4
  61. package/.agy/skills/maestro-composer/SKILL.md +1 -1
  62. package/.agy/skills/maestro-execute/SKILL.md +29 -6
  63. package/.agy/skills/maestro-fork/SKILL.md +24 -0
  64. package/.agy/skills/maestro-grill/SKILL.md +38 -1
  65. package/.agy/skills/maestro-help/SKILL.md +5 -6
  66. package/.agy/skills/maestro-help/index/catalog.json +7 -9
  67. package/.agy/skills/maestro-help/phases/02-search-present.md +2 -4
  68. package/.agy/skills/maestro-help/phases/03-workflow-guide.md +7 -8
  69. package/.agy/skills/maestro-impeccable/SKILL.md +13 -0
  70. package/.agy/skills/maestro-init/SKILL.md +11 -0
  71. package/.agy/skills/maestro-merge/SKILL.md +17 -1
  72. package/.agy/skills/maestro-milestone-audit/SKILL.md +34 -2
  73. package/.agy/skills/maestro-milestone-complete/SKILL.md +19 -1
  74. package/.agy/skills/maestro-milestone-release/SKILL.md +18 -0
  75. package/.agy/skills/maestro-next/SKILL.md +8 -9
  76. package/.agy/skills/maestro-overlay/SKILL.md +3 -3
  77. package/.agy/skills/maestro-plan/SKILL.md +21 -3
  78. package/.agy/skills/maestro-quick/SKILL.md +13 -1
  79. package/.agy/skills/maestro-ralph/SKILL.md +18 -20
  80. package/.agy/skills/maestro-ralph-beta/SKILL.md +10 -16
  81. package/.agy/skills/maestro-ralph-execute/SKILL.md +1 -2
  82. package/.agy/skills/maestro-roadmap/SKILL.md +28 -2
  83. package/.agy/skills/maestro-swarm-workflow/SKILL.md +2 -2
  84. package/.agy/skills/maestro-tools-register/SKILL.md +2 -2
  85. package/.agy/skills/maestro-ui-codify/SKILL.md +20 -0
  86. package/.agy/skills/maestro-update/SKILL.md +59 -116
  87. package/.agy/skills/manage-codebase-rebuild/SKILL.md +3 -3
  88. package/.agy/skills/manage-harvest/SKILL.md +1 -1
  89. package/.agy/skills/manage-knowhow/SKILL.md +3 -1
  90. package/.agy/skills/manage-knowhow-capture/SKILL.md +7 -4
  91. package/.agy/skills/manage-wiki/SKILL.md +17 -8
  92. package/.agy/skills/quality-auto-test/SKILL.md +3 -3
  93. package/.agy/skills/quality-debug/SKILL.md +4 -4
  94. package/.agy/skills/quality-refactor/SKILL.md +2 -2
  95. package/.agy/skills/quality-retrospective/SKILL.md +5 -5
  96. package/.agy/skills/quality-review/SKILL.md +4 -4
  97. package/.agy/skills/quality-sync/SKILL.md +1 -0
  98. package/.agy/skills/quality-test/SKILL.md +4 -4
  99. package/.agy/skills/spec-add/SKILL.md +6 -4
  100. package/.agy/skills/spec-setup/SKILL.md +1 -1
  101. package/.claude/commands/learn-follow.md +1 -1
  102. package/.claude/commands/learn-investigate.md +2 -2
  103. package/.claude/commands/learn-second-opinion.md +1 -1
  104. package/.claude/commands/maestro-analyze.md +53 -2
  105. package/.claude/commands/maestro-blueprint.md +36 -1
  106. package/.claude/commands/maestro-brainstorm.md +40 -1
  107. package/.claude/commands/maestro-collab.md +1 -1
  108. package/.claude/commands/maestro-companion.md +4 -4
  109. package/.claude/commands/maestro-composer.md +1 -1
  110. package/.claude/commands/maestro-execute.md +29 -6
  111. package/.claude/commands/maestro-fork.md +24 -0
  112. package/.claude/commands/maestro-grill.md +38 -1
  113. package/.claude/commands/maestro-impeccable.md +13 -0
  114. package/.claude/commands/maestro-init.md +11 -0
  115. package/.claude/commands/maestro-merge.md +17 -1
  116. package/.claude/commands/maestro-milestone-audit.md +34 -2
  117. package/.claude/commands/maestro-milestone-complete.md +19 -1
  118. package/.claude/commands/maestro-milestone-release.md +18 -0
  119. package/.claude/commands/maestro-next.md +8 -9
  120. package/.claude/commands/maestro-overlay.md +3 -3
  121. package/.claude/commands/maestro-plan.md +21 -3
  122. package/.claude/commands/maestro-quick.md +13 -1
  123. package/.claude/commands/maestro-ralph-beta.md +8 -14
  124. package/.claude/commands/maestro-ralph-execute.md +1 -2
  125. package/.claude/commands/maestro-ralph.md +18 -20
  126. package/.claude/commands/maestro-roadmap.md +28 -2
  127. package/.claude/commands/maestro-swarm-workflow.md +2 -2
  128. package/.claude/commands/maestro-tools-register.md +2 -2
  129. package/.claude/commands/maestro-ui-codify.md +20 -0
  130. package/.claude/commands/maestro-update.md +59 -116
  131. package/.claude/commands/maestro.md +6 -3
  132. package/.claude/commands/manage-codebase-rebuild.md +3 -3
  133. package/.claude/commands/manage-harvest.md +1 -1
  134. package/.claude/commands/manage-knowhow-capture.md +7 -4
  135. package/.claude/commands/manage-knowhow.md +3 -1
  136. package/.claude/commands/manage-wiki.md +17 -8
  137. package/.claude/commands/quality-auto-test.md +3 -3
  138. package/.claude/commands/quality-debug.md +4 -4
  139. package/.claude/commands/quality-refactor.md +2 -2
  140. package/.claude/commands/quality-retrospective.md +5 -5
  141. package/.claude/commands/quality-review.md +4 -4
  142. package/.claude/commands/quality-sync.md +1 -0
  143. package/.claude/commands/quality-test.md +4 -4
  144. package/.claude/commands/spec-add.md +6 -4
  145. package/.claude/commands/spec-setup.md +1 -1
  146. package/.claude/skills/codify-to-knowhow/phases/03-generate-specs.md +2 -1
  147. package/.claude/skills/maestro-help/SKILL.md +5 -6
  148. package/.claude/skills/maestro-help/index/catalog.json +7 -9
  149. package/.claude/skills/maestro-help/phases/02-search-present.md +2 -4
  150. package/.claude/skills/maestro-help/phases/03-workflow-guide.md +7 -8
  151. package/.codex/skills/codify-to-knowhow/SKILL.md +6 -5
  152. package/.codex/skills/learn-decompose/SKILL.md +1 -1
  153. package/.codex/skills/learn-follow/SKILL.md +1 -1
  154. package/.codex/skills/learn-investigate/SKILL.md +1 -1
  155. package/.codex/skills/learn-second-opinion/SKILL.md +1 -1
  156. package/.codex/skills/maestro/SKILL.md +29 -31
  157. package/.codex/skills/maestro-analyze/SKILL.md +17 -4
  158. package/.codex/skills/maestro-blueprint/SKILL.md +8 -1
  159. package/.codex/skills/maestro-brainstorm/SKILL.md +8 -5
  160. package/.codex/skills/maestro-collab/SKILL.md +1 -1
  161. package/.codex/skills/maestro-companion/SKILL.md +2 -2
  162. package/.codex/skills/maestro-composer/SKILL.md +0 -1
  163. package/.codex/skills/maestro-execute/SKILL.md +11 -8
  164. package/.codex/skills/maestro-fork/SKILL.md +4 -0
  165. package/.codex/skills/maestro-grill/SKILL.md +8 -2
  166. package/.codex/skills/maestro-help/SKILL.md +6 -9
  167. package/.codex/skills/maestro-help/catalog.json +6 -8
  168. package/.codex/skills/maestro-impeccable/SKILL.md +2 -0
  169. package/.codex/skills/maestro-init/SKILL.md +3 -0
  170. package/.codex/skills/maestro-merge/SKILL.md +5 -1
  171. package/.codex/skills/maestro-milestone-audit/SKILL.md +3 -0
  172. package/.codex/skills/maestro-milestone-complete/SKILL.md +6 -1
  173. package/.codex/skills/maestro-milestone-release/SKILL.md +4 -0
  174. package/.codex/skills/maestro-next/SKILL.md +3 -4
  175. package/.codex/skills/maestro-plan/SKILL.md +5 -2
  176. package/.codex/skills/maestro-quick/SKILL.md +4 -1
  177. package/.codex/skills/maestro-ralph/SKILL.md +14 -20
  178. package/.codex/skills/maestro-ralph-beta/SKILL.md +13 -21
  179. package/.codex/skills/maestro-ralph-execute/SKILL.md +2 -2
  180. package/.codex/skills/maestro-roadmap/SKILL.md +5 -2
  181. package/.codex/skills/maestro-tools-register/SKILL.md +1 -1
  182. package/.codex/skills/maestro-ui-codify/SKILL.md +4 -1
  183. package/.codex/skills/maestro-update/SKILL.md +35 -130
  184. package/.codex/skills/manage-codebase-rebuild/SKILL.md +2 -2
  185. package/.codex/skills/manage-harvest/SKILL.md +2 -2
  186. package/.codex/skills/manage-knowhow/SKILL.md +1 -1
  187. package/.codex/skills/manage-knowhow-capture/SKILL.md +32 -20
  188. package/.codex/skills/manage-status/SKILL.md +1 -2
  189. package/.codex/skills/quality-auto-test/SKILL.md +2 -2
  190. package/.codex/skills/quality-debug/SKILL.md +2 -2
  191. package/.codex/skills/quality-refactor/SKILL.md +1 -1
  192. package/.codex/skills/quality-retrospective/SKILL.md +1 -1
  193. package/.codex/skills/quality-test/SKILL.md +3 -4
  194. package/.codex/skills/spec-add/SKILL.md +5 -3
  195. package/.codex/skills/spec-remove/SKILL.md +2 -2
  196. package/.codex/skills/team-coordinate/SKILL.md +1 -1
  197. package/.codex/skills/wiki-digest/SKILL.md +2 -2
  198. package/chains/brainstorm-driven.json +2 -34
  199. package/chains/full-lifecycle.json +2 -34
  200. package/chains/next-milestone.json +0 -7
  201. package/chains/quality-loop.json +3 -19
  202. package/chains/roadmap-driven.json +2 -34
  203. package/chains/spec-driven.json +2 -34
  204. package/chains/ui-craft-build.json +2 -23
  205. package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js +8 -11
  206. package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js.map +1 -1
  207. package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.d.ts +1 -0
  208. package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.js +3 -1
  209. package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.js.map +1 -1
  210. package/dashboard/dist-server/dashboard/src/server/wiki/stress.test.js +1 -0
  211. package/dashboard/dist-server/dashboard/src/server/wiki/stress.test.js.map +1 -1
  212. package/dashboard/dist-server/dashboard/src/server/wiki/virtual-wiki-adapters.js +9 -0
  213. package/dashboard/dist-server/dashboard/src/server/wiki/virtual-wiki-adapters.js.map +1 -1
  214. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js +9 -4
  215. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js.map +1 -1
  216. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-types.d.ts +3 -0
  217. package/dashboard/dist-server/dashboard/src/server/wiki/writer.d.ts +4 -0
  218. package/dashboard/dist-server/dashboard/src/server/wiki/writer.js +5 -3
  219. package/dashboard/dist-server/dashboard/src/server/wiki/writer.js.map +1 -1
  220. package/dashboard/dist-server/src/types/index.d.ts +2 -0
  221. package/dist/src/cli.js +1 -0
  222. package/dist/src/cli.js.map +1 -1
  223. package/dist/src/commands/hooks.d.ts.map +1 -1
  224. package/dist/src/commands/hooks.js +55 -5
  225. package/dist/src/commands/hooks.js.map +1 -1
  226. package/dist/src/commands/install-backend.d.ts.map +1 -1
  227. package/dist/src/commands/install-backend.js +2 -1
  228. package/dist/src/commands/install-backend.js.map +1 -1
  229. package/dist/src/commands/install.d.ts.map +1 -1
  230. package/dist/src/commands/install.js +48 -3
  231. package/dist/src/commands/install.js.map +1 -1
  232. package/dist/src/commands/kg.d.ts +1 -1
  233. package/dist/src/commands/kg.d.ts.map +1 -1
  234. package/dist/src/commands/kg.js +285 -112
  235. package/dist/src/commands/kg.js.map +1 -1
  236. package/dist/src/commands/knowhow.d.ts.map +1 -1
  237. package/dist/src/commands/knowhow.js +28 -37
  238. package/dist/src/commands/knowhow.js.map +1 -1
  239. package/dist/src/commands/ralph.js +1 -1
  240. package/dist/src/commands/ralph.js.map +1 -1
  241. package/dist/src/commands/search.d.ts +36 -0
  242. package/dist/src/commands/search.d.ts.map +1 -0
  243. package/dist/src/commands/search.js +120 -0
  244. package/dist/src/commands/search.js.map +1 -0
  245. package/dist/src/commands/spec.d.ts.map +1 -1
  246. package/dist/src/commands/spec.js +15 -59
  247. package/dist/src/commands/spec.js.map +1 -1
  248. package/dist/src/commands/update.d.ts.map +1 -1
  249. package/dist/src/commands/update.js +7 -0
  250. package/dist/src/commands/update.js.map +1 -1
  251. package/dist/src/commands/wiki.d.ts.map +1 -1
  252. package/dist/src/commands/wiki.js +6 -21
  253. package/dist/src/commands/wiki.js.map +1 -1
  254. package/dist/src/core/component-defs.d.ts +13 -0
  255. package/dist/src/core/component-defs.d.ts.map +1 -1
  256. package/dist/src/core/component-defs.js +37 -85
  257. package/dist/src/core/component-defs.js.map +1 -1
  258. package/dist/src/core/skill-converter.d.ts +25 -0
  259. package/dist/src/core/skill-converter.d.ts.map +1 -0
  260. package/dist/src/core/skill-converter.js +605 -0
  261. package/dist/src/core/skill-converter.js.map +1 -0
  262. package/dist/src/graph/codegraph-adapter.d.ts +147 -0
  263. package/dist/src/graph/codegraph-adapter.d.ts.map +1 -0
  264. package/dist/src/graph/codegraph-adapter.js +266 -0
  265. package/dist/src/graph/codegraph-adapter.js.map +1 -0
  266. package/dist/src/hooks/constants.d.ts +4 -0
  267. package/dist/src/hooks/constants.d.ts.map +1 -1
  268. package/dist/src/hooks/constants.js +14 -1
  269. package/dist/src/hooks/constants.js.map +1 -1
  270. package/dist/src/hooks/context-format.d.ts +46 -0
  271. package/dist/src/hooks/context-format.d.ts.map +1 -0
  272. package/dist/src/hooks/context-format.js +58 -0
  273. package/dist/src/hooks/context-format.js.map +1 -0
  274. package/dist/src/hooks/index.d.ts +2 -0
  275. package/dist/src/hooks/index.d.ts.map +1 -1
  276. package/dist/src/hooks/index.js +2 -0
  277. package/dist/src/hooks/index.js.map +1 -1
  278. package/dist/src/hooks/keyword-spec-injector.d.ts +1 -1
  279. package/dist/src/hooks/keyword-spec-injector.d.ts.map +1 -1
  280. package/dist/src/hooks/keyword-spec-injector.js +92 -7
  281. package/dist/src/hooks/keyword-spec-injector.js.map +1 -1
  282. package/dist/src/hooks/kg-context-injector.d.ts +19 -0
  283. package/dist/src/hooks/kg-context-injector.d.ts.map +1 -0
  284. package/dist/src/hooks/kg-context-injector.js +139 -0
  285. package/dist/src/hooks/kg-context-injector.js.map +1 -0
  286. package/dist/src/hooks/kg-sync-hook.d.ts +22 -0
  287. package/dist/src/hooks/kg-sync-hook.d.ts.map +1 -0
  288. package/dist/src/hooks/kg-sync-hook.js +139 -0
  289. package/dist/src/hooks/kg-sync-hook.js.map +1 -0
  290. package/dist/src/hooks/plugins/spec-injection-plugin.js +2 -2
  291. package/dist/src/hooks/plugins/spec-injection-plugin.js.map +1 -1
  292. package/dist/src/hooks/skill-context.d.ts.map +1 -1
  293. package/dist/src/hooks/skill-context.js +0 -1
  294. package/dist/src/hooks/skill-context.js.map +1 -1
  295. package/dist/src/hooks/spec-injector.d.ts.map +1 -1
  296. package/dist/src/hooks/spec-injector.js +66 -13
  297. package/dist/src/hooks/spec-injector.js.map +1 -1
  298. package/dist/src/hooks/statusline.d.ts +8 -1
  299. package/dist/src/hooks/statusline.d.ts.map +1 -1
  300. package/dist/src/hooks/statusline.js +45 -29
  301. package/dist/src/hooks/statusline.js.map +1 -1
  302. package/dist/src/hooks/wiki-role-loader.js +1 -1
  303. package/dist/src/hooks/wiki-role-loader.js.map +1 -1
  304. package/dist/src/i18n/locales/en.d.ts.map +1 -1
  305. package/dist/src/i18n/locales/en.js +4 -0
  306. package/dist/src/i18n/locales/en.js.map +1 -1
  307. package/dist/src/i18n/locales/zh.d.ts.map +1 -1
  308. package/dist/src/i18n/locales/zh.js +4 -0
  309. package/dist/src/i18n/locales/zh.js.map +1 -1
  310. package/dist/src/i18n/types.d.ts +4 -0
  311. package/dist/src/i18n/types.d.ts.map +1 -1
  312. package/dist/src/ralph/cmd-skills.d.ts.map +1 -1
  313. package/dist/src/ralph/cmd-skills.js +9 -2
  314. package/dist/src/ralph/cmd-skills.js.map +1 -1
  315. package/dist/src/ralph/skill-scanner.d.ts +1 -1
  316. package/dist/src/ralph/skill-scanner.d.ts.map +1 -1
  317. package/dist/src/ralph/skill-scanner.js +14 -0
  318. package/dist/src/ralph/skill-scanner.js.map +1 -1
  319. package/dist/src/ralph/status-schema.d.ts +1 -1
  320. package/dist/src/ralph/status-schema.d.ts.map +1 -1
  321. package/dist/src/tools/spec-entry-parser.d.ts +2 -1
  322. package/dist/src/tools/spec-entry-parser.d.ts.map +1 -1
  323. package/dist/src/tools/spec-entry-parser.js +7 -4
  324. package/dist/src/tools/spec-entry-parser.js.map +1 -1
  325. package/dist/src/tools/spec-loader.d.ts.map +1 -1
  326. package/dist/src/tools/spec-loader.js +27 -3
  327. package/dist/src/tools/spec-loader.js.map +1 -1
  328. package/dist/src/tools/spec-writer.d.ts +10 -1
  329. package/dist/src/tools/spec-writer.d.ts.map +1 -1
  330. package/dist/src/tools/spec-writer.js +86 -7
  331. package/dist/src/tools/spec-writer.js.map +1 -1
  332. package/dist/src/tools/store-knowhow.d.ts.map +1 -1
  333. package/dist/src/tools/store-knowhow.js +27 -7
  334. package/dist/src/tools/store-knowhow.js.map +1 -1
  335. package/dist/src/tui/install-ui/ExecutionView.d.ts.map +1 -1
  336. package/dist/src/tui/install-ui/ExecutionView.js +7 -1
  337. package/dist/src/tui/install-ui/ExecutionView.js.map +1 -1
  338. package/dist/src/tui/install-ui/InstallConfirm.d.ts +1 -0
  339. package/dist/src/tui/install-ui/InstallConfirm.d.ts.map +1 -1
  340. package/dist/src/tui/install-ui/InstallConfirm.js +3 -1
  341. package/dist/src/tui/install-ui/InstallConfirm.js.map +1 -1
  342. package/dist/src/tui/install-ui/InstallExecution.d.ts +2 -0
  343. package/dist/src/tui/install-ui/InstallExecution.d.ts.map +1 -1
  344. package/dist/src/tui/install-ui/InstallExecution.js +25 -1
  345. package/dist/src/tui/install-ui/InstallExecution.js.map +1 -1
  346. package/dist/src/tui/install-ui/InstallFlow.d.ts.map +1 -1
  347. package/dist/src/tui/install-ui/InstallFlow.js +13 -5
  348. package/dist/src/tui/install-ui/InstallFlow.js.map +1 -1
  349. package/dist/src/tui/install-ui/InstallHub.d.ts +2 -0
  350. package/dist/src/tui/install-ui/InstallHub.d.ts.map +1 -1
  351. package/dist/src/tui/install-ui/InstallHub.js +10 -0
  352. package/dist/src/tui/install-ui/InstallHub.js.map +1 -1
  353. package/dist/src/tui/install-ui/InstallResult.d.ts.map +1 -1
  354. package/dist/src/tui/install-ui/InstallResult.js +5 -1
  355. package/dist/src/tui/install-ui/InstallResult.js.map +1 -1
  356. package/dist/src/types/index.d.ts +2 -0
  357. package/dist/src/types/index.d.ts.map +1 -1
  358. package/dist/src/utils/cli-format.d.ts +6 -0
  359. package/dist/src/utils/cli-format.d.ts.map +1 -1
  360. package/dist/src/utils/cli-format.js +25 -0
  361. package/dist/src/utils/cli-format.js.map +1 -1
  362. package/dist/src/utils/update-notices.js +25 -0
  363. package/dist/src/utils/update-notices.js.map +1 -1
  364. package/package.json +5 -2
  365. package/templates/workflows/specs/node-catalog.md +0 -2
  366. package/workflows/agy-instructions.md +1 -1
  367. package/workflows/analyze.md +9 -4
  368. package/workflows/auto-test.md +2 -2
  369. package/workflows/business-test.md +1 -1
  370. package/workflows/claude-instructions.md +23 -11
  371. package/workflows/codex-instructions.md +2 -3
  372. package/workflows/execute.md +153 -7
  373. package/workflows/finish-work.md +1 -1
  374. package/workflows/fork.md +1 -1
  375. package/workflows/impeccable/design.md +1 -0
  376. package/workflows/impeccable.md +1 -0
  377. package/workflows/integration-test.md +1 -1
  378. package/workflows/knowhow.md +14 -8
  379. package/workflows/maestro-super.md +1 -1
  380. package/workflows/maestro.codex.md +18 -34
  381. package/workflows/maestro.md +34 -42
  382. package/workflows/review.md +1 -1
  383. package/workflows/specs-add.md +1 -1
  384. package/workflows/specs-setup.md +2 -2
  385. package/workflows/status.md +2 -2
  386. package/workflows/swarm/wf-verify.js +1 -1
  387. package/workflows/test-gen.md +2 -2
  388. package/workflows/test.md +1 -1
  389. package/workflows/updates/README.md +41 -0
  390. package/workflows/updates/update-v3-setup.md +79 -0
  391. package/workflows/verify.md +7 -1
  392. package/.agents/skills/learn-retro/SKILL.md +0 -159
  393. package/.agents/skills/maestro-learn/SKILL.md +0 -142
  394. package/.agents/skills/maestro-verify/SKILL.md +0 -146
  395. package/.agents/skills/manage-codebase-refresh/SKILL.md +0 -62
  396. package/.agents/skills/manage-learn/SKILL.md +0 -67
  397. package/.agents/skills/wiki-connect/SKILL.md +0 -64
  398. package/.agents/skills/wiki-digest/SKILL.md +0 -70
  399. package/.agy/skills/learn-retro/SKILL.md +0 -159
  400. package/.agy/skills/maestro-learn/SKILL.md +0 -142
  401. package/.agy/skills/maestro-verify/SKILL.md +0 -146
  402. package/.agy/skills/manage-codebase-refresh/SKILL.md +0 -62
  403. package/.agy/skills/manage-learn/SKILL.md +0 -64
  404. package/.agy/skills/wiki-connect/SKILL.md +0 -64
  405. package/.agy/skills/wiki-digest/SKILL.md +0 -70
  406. package/.claude/commands/learn-retro.md +0 -157
  407. package/.claude/commands/maestro-learn.md +0 -140
  408. package/.claude/commands/maestro-verify.md +0 -144
  409. package/.claude/commands/manage-codebase-refresh.md +0 -60
  410. package/.claude/commands/manage-learn.md +0 -65
  411. package/.claude/commands/wiki-connect.md +0 -62
  412. package/.claude/commands/wiki-digest.md +0 -68
  413. package/.codex/skills/maestro-verify/SKILL.md +0 -254
  414. package/chains/execute-verify.json +0 -59
  415. package/chains/singles/verify.json +0 -26
@@ -15,7 +15,7 @@ allowed-tools:
15
15
  <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
16
16
 
17
17
  <purpose>
18
- Run multi-dimensional code review on a completed phase's changed files. Answers the question "is this code good?" -- complementing maestro-verify ("is the goal met?") and quality-test ("does it work for users?"). Three review levels (quick/standard/deep) scale with task depth, auto-detected from file count. Level definitions, dimension lists, deep-dive rules, and issue creation thresholds defined in workflow review.md.
18
+ Run multi-dimensional code review on a completed phase's changed files. Answers the question "is this code good?" -- complementing maestro-execute's built-in verification ("is the goal met?") and quality-test ("does it work for users?"). Three review levels (quick/standard/deep) scale with task depth, auto-detected from file count. Level definitions, dimension lists, deep-dive rules, and issue creation thresholds defined in workflow review.md.
19
19
  </purpose>
20
20
 
21
21
  <required_reading>
@@ -52,9 +52,9 @@ Extract conclusions from related artifacts that may affect this review. Pass as
52
52
 
53
53
  ### Pre-load (optional, proceed without)
54
54
  - Codebase docs: `.workflow/codebase/ARCHITECTURE.md` → component boundaries, layer rules
55
- - Wiki constraints: `maestro wiki search "architecture constraint" --json` → documented decisions
55
+ - Wiki constraints: `maestro search "architecture constraint" --json` → documented decisions
56
56
  - Specs: `maestro spec load --category review` → review standards, checklists, knowhow tools
57
- - Role knowledge: `maestro wiki list --category review` → select relevant → `maestro wiki load`
57
+ - Role knowledge: `maestro search --category review` → select relevant → `maestro wiki load`
58
58
 
59
59
  **Output**: `REVIEW_DIR = .workflow/scratch/{YYYYMMDD}-review-P{N}-{slug}/` (P{N} = phase number, enables directory-level identification as state.json fallback)
60
60
  </context>
@@ -101,7 +101,7 @@ NEXT: /quality-refactor
101
101
 
102
102
  Status mapping:
103
103
  - **DONE** — PASS verdict, no critical findings → NEXT: /quality-refactor
104
- - **DONE_WITH_CONCERNS** — WARN verdict, issues found but non-blocking → NEXT: /maestro-verify
104
+ - **DONE_WITH_CONCERNS** — WARN verdict, issues found but non-blocking → NEXT: /quality-test
105
105
  - **NEEDS_RETRY** — BLOCK verdict, critical findings require fix first
106
106
  </execution>
107
107
 
@@ -35,6 +35,7 @@ Follow '~/.maestro/workflows/sync.md' completely.
35
35
  **Next-step routing on completion:**
36
36
  - Docs refreshed → `/manage-status`
37
37
  - Major structural changes detected → `/manage-codebase-rebuild` (full rebuild recommended)
38
+ - Incremental refresh (replaces former `/manage-codebase-refresh`) → use `--since` flag
38
39
  </execution>
39
40
 
40
41
  <error_codes>
@@ -43,8 +43,8 @@ Follow '~/.maestro/workflows/test.md' completely.
43
43
  **Command-specific extensions (not in workflow):**
44
44
 
45
45
  **Knowledge context loading** (before test design):
46
- - Wiki search: `maestro wiki search "<phase/feature keywords>" --json` → prior test strategies, recipes, decisions
47
- - Role knowledge: `maestro wiki list --category test` → select relevant → `maestro wiki load <id>`
46
+ - Wiki search: `maestro search "<phase/feature keywords>" --json` → prior test strategies, recipes, decisions
47
+ - Role knowledge: `maestro search --category test` → select relevant → `maestro wiki load <id>`
48
48
  - Specs + tools: `maestro spec load --category test` → test conventions + discoverable knowhow tools
49
49
 
50
50
  **Test tool discovery** (knowhow tools as scenario source):
@@ -79,7 +79,7 @@ Append to state.json.artifacts[]:
79
79
 
80
80
  **Next-step routing on completion:**
81
81
  - All tests pass → `/maestro-milestone-audit`
82
- - Issues found, --auto-fix ran and succeeded → `/maestro-verify {phase}`
82
+ - Issues found, --auto-fix ran and succeeded → `/maestro-execute {phase}`
83
83
  - Issues found, --auto-fix ran but gaps remain → `/quality-debug --from-uat {phase}`
84
84
  - Issues found, manual fix needed → `/quality-debug --from-uat {phase}`
85
85
  - Coverage below threshold → `/quality-auto-test {phase}`
@@ -90,7 +90,7 @@ Append to state.json.artifacts[]:
90
90
  | Code | Severity | Condition | Recovery |
91
91
  |------|----------|-----------|----------|
92
92
  | E001 | error | Phase or task target required (no active sessions) | Prompt user for phase number |
93
- | E002 | error | Phase not verified yet (no verification.json) | Suggest `/maestro-verify` first |
93
+ | E002 | error | Phase not verified yet (no verification.json) | Suggest `/maestro-execute` first (verification is built-in) |
94
94
  | E003 | error | Smoke test failed (app won't start) | Suggest `/quality-debug` |
95
95
  | W001 | warning | One or more test scenarios failed | Auto-diagnose, suggest fix options |
96
96
  | W002 | warning | Coverage below threshold | Suggest `/quality-auto-test` |
@@ -26,6 +26,7 @@ Entries use `category` attribute to declare which category they belong to.
26
26
  $ARGUMENTS -- expects `[--scope <scope>] [--uid <uid>] <category> <content>`
27
27
 
28
28
  **Options:**
29
+ - `--description <desc>` — One-line description for search results (falls back to content[:240])
29
30
  - `--ref <path>` — Create as index entry referencing a knowhow document. If the path exists, only creates the spec index entry. If path doesn't exist, also creates the knowhow file.
30
31
  - `--knowhow-type <type>` — Knowhow document type when creating with --ref (asset, blueprint, document, template, recipe, reference, decision)
31
32
 
@@ -36,12 +37,13 @@ Scope-to-directory mapping, category-to-file mapping, and entry format defined i
36
37
  # English content → English keywords
37
38
  /spec-add coding "Named exports" "Always use named exports" --keywords "exports,naming"
38
39
 
39
- # Chinese content Chinese keywords (匹配中文 prompt)
40
- /spec-add coding "命名导出规范" "始终使用命名导出" --keywords "导出,命名,模块"
40
+ # With description for search results
41
+ /spec-add coding "OAuth PKCE Flow" "完整 PKCE 集成流程" --keywords "oauth,pkce" --description "OAuth 2.0 PKCE 认证流程规范"
41
42
 
42
- # Mixedbilingual keywords
43
- /spec-add coding "OAuth PKCE Flow" "完整 PKCE 集成流程" --ref knowhow/RCP-oauth-pkce.md --keywords "oauth,pkce,认证,授权"
43
+ # Chinese content Chinese keywords
44
+ /spec-add coding "命名导出规范" "始终使用命名导出" --keywords "导出,命名,模块"
44
45
 
46
+ # Ref mode
45
47
  /spec-add arch "OAuth PKCE 集成" "完整流程设计" --ref knowhow/AST-oauth-flow.md
46
48
  ```
47
49
  </context>
@@ -14,7 +14,7 @@ allowed-tools:
14
14
  <purpose>
15
15
  Initialize the project-level specs directory by scanning the codebase for conventions, patterns, and tech stack.
16
16
  Core files (coding, arch, learnings) are always created. Optional spec files (quality, test, ui) are created only when relevant signals are detected.
17
- Additionally, generates recipe-type knowhow docs in `.workflow/knowhow/` for detected operational workflows (test / debug / build / dev / lint) — capturing "how to do X in this project" so future agents can find them via `maestro wiki search`.
17
+ Additionally, generates recipe-type knowhow docs in `.workflow/knowhow/` for detected operational workflows (test / debug / build / dev / lint) — capturing "how to do X in this project" so future agents can find them via `maestro search`.
18
18
  Spec output lands in `.workflow/specs/`; recipe output lands in `.workflow/knowhow/`.
19
19
  </purpose>
20
20
 
@@ -68,7 +68,8 @@ ${spec.body}
68
68
 
69
69
  // 追加到目标文件
70
70
  // 优先使用 maestro spec add CLI
71
- const cliResult = run_command(`maestro spec add ${spec.category} "${spec.title}" "${spec.body}" --keywords "${spec.keywords}" 2>/dev/null`);
71
+ const descFlag = spec.description ? ` --description "${spec.description}"` : '';
72
+ const cliResult = run_command(`maestro spec add ${spec.category} "${spec.title}" "${spec.body}" --keywords "${spec.keywords}"${descFlag} 2>/dev/null`);
72
73
 
73
74
  if (cliResult.exitCode !== 0) {
74
75
  // 回退:直接追加到文件
@@ -25,7 +25,7 @@ $ARGUMENTS — target and optional flags.
25
25
  |-------|-----------|
26
26
  | File path (contains `/` or `\`) | Read source file |
27
27
  | Wiki ID (`<type>-<slug>`) | `maestro wiki get <id>` |
28
- | Topic string | `maestro wiki search "<topic>"` → top result; fallback: Grep src/ |
28
+ | Topic string | `maestro search "<topic>"` → top result; fallback: Grep src/ |
29
29
 
30
30
  **Flags**:
31
31
  - `--depth shallow` (default): key patterns and structure only
@@ -32,7 +32,7 @@ $ARGUMENTS — question text and optional flags.
32
32
  - `.workflow/knowhow/KNW-investigate-{slug}/report.md` — final report
33
33
  - `.workflow/specs/learnings.md` — appended `<spec-entry>` blocks
34
34
 
35
- **Storage read**: source files in scope + `maestro wiki search` + `.workflow/specs/learnings.md` + `debug-notes.md` + `codebase/architecture.md`
35
+ **Storage read**: source files in scope + `maestro search` + `.workflow/specs/learnings.md` + `debug-notes.md` + `codebase/architecture.md`
36
36
  </context>
37
37
 
38
38
  <state_machine>
@@ -85,7 +85,7 @@ S_REPORT:
85
85
  ### A_FRAME_QUESTION
86
86
 
87
87
  1. Parse question, generate slug, create KNW-investigate-{slug}/
88
- 2. Search prior knowledge: `maestro wiki search "<question>"` + search .workflow/specs/learnings.md + read debug-notes.md
88
+ 2. Search prior knowledge: `maestro search "<question>"` + search .workflow/specs/learnings.md + read debug-notes.md
89
89
  3. Write initial understanding.md (question, prior knowledge summary, scope, timestamp)
90
90
 
91
91
  ### A_COLLECT_EVIDENCE
@@ -35,7 +35,7 @@ $ARGUMENTS — target and optional mode flag.
35
35
 
36
36
  **Flags**: `--mode review|challenge|consult` (default: review)
37
37
 
38
- **Pre-load** (optional): `Skill("spec-load")` for conventions + `maestro wiki search "<target topic>"` for related entries.
38
+ **Pre-load** (optional): `Skill("spec-load")` for conventions + `maestro search "<target topic>"` for related entries.
39
39
 
40
40
  **Output**: `.workflow/knowhow/KNW-opinion-{slug}-{YYYY-MM-DD}.md`
41
41
  </context>
@@ -50,12 +50,14 @@ $ARGUMENTS — user intent text, or special keywords.
50
50
  3. **Auto flag pass-through** — 仅当用户传入 `-y` 时透传 `-y` 到 skill args
51
51
  4. **Decomposition contract shared with maestro-ralph** — broad/lifecycle intents run S_DECOMPOSE producing the SAME additive block (`boundary_contract`, `execution_criteria`, `task_decomposition`)。Reference maestro-ralph `A_DECOMPOSE_TASKS`
52
52
  5. **status.json 唯一真源** — 不生成 `goal-checklist.md` 或外部清单
53
- 6. **执行步骤统一通过 `maestro ralph next` 加载** — `command_scope`/`command_path` 由 `maestro ralph skills --json --quiet` 预校验(project 覆盖 global);decision 节点不走 CLI,走 `Skill("maestro-ralph")` handoff
53
+ 6. **执行步骤统一通过 `maestro ralph next` 加载** — `command_scope`/`command_path` 由 `maestro ralph skills --platform agy --json --quiet` 预校验(project 覆盖 global,限定 `.claude/`);decision 节点不走 CLI,走 `Skill("maestro-ralph")` handoff
54
54
  7. **Topology awareness** — chain catalog 含 grill / brainstorm / blueprint / analyze-macro / analyze / roadmap / plan(三路径) / execute / verify / ...;scope_verdict 由 ralph 在 `post-analyze-scope` 决定
55
55
  8. **Grill is interactive-only** — `-y` auto mode MUST skip grill stage and route directly to brainstorm; grill requires Socratic Q&A with the user
56
56
  9. **D-007 milestone 反查** — 数字 phase 的 `milestone_id` 由 `state.json.milestones[].phase_slugs` 反查
57
57
  10. **每个 step 必须 `completion_confirmed: true`** — 由 `maestro ralph complete N --status DONE|DONE_WITH_CONCERNS` 写入
58
58
  11. **schema** — `ralph_protocol_version: "1"` 标记 CLI-driven session;新增字段全部可选
59
+ 12. **Invariant violation = BLOCK** — 违反上述任一 invariant 即阻断当前操作,不可绕过。特别是 invariant 1(dispatch via ralph-execute)和 invariant 2(session before execution)和 invariant 10(completion_confirmed 由 CLI 写入)为硬约束。
60
+ 13. **Classification evidence** — S_CLASSIFY 的 chain 选择决策 MUST 记录到 status.json 的 `classification_rationale` 字段:匹配了哪个 pattern、排除了哪些备选、confidence level。无记录的分类不可进入 S_CREATE。
59
61
  </invariants>
60
62
 
61
63
  <state_machine>
@@ -136,13 +138,14 @@ S_FALLBACK:
136
138
  3. Select chain from chainMap,遵循拓扑约束:
137
139
  - 压力测试/拷问/验证假设/grill/stress-test → `grill`(**-y 模式跳过 grill,直接走 brainstorm**)
138
140
  - 头脑风暴/探索 → `brainstorm`
141
+ - 学习/阅读代码/跟读/follow → `Skill("learn-follow")`;调查/为什么/investigate → `Skill("learn-investigate")`;分解/模式/decompose → `Skill("learn-decompose")`;评审/挑战/second-opinion → `Skill("learn-second-opinion")`;回顾/retro → `Skill("quality-retrospective")`
139
142
  - 正式规格/spec-generate/7-phase → `blueprint`
140
143
  - 项目初始化 → `init`
141
144
  - 宽/中等意图 + 无数字 phase → `analyze-macro`(产 scope_verdict,由 ralph 在 `post-analyze-scope` 决定是否插入 roadmap+analyze 或直跳 plan --from analyze)
142
145
  - 数字 phase 上下文 → `analyze {phase}` → `plan {phase}` → `execute {phase}` → `verify {phase}` → quality pipeline
143
146
  - 已有 analyze artifact 想直达执行 → `plan --from analyze:{ANL_ID}` → execute → verify
144
147
  - 已有 blueprint artifact → `plan --from blueprint:{BLP_ID}` → execute → verify
145
- 4. 执行 step:`run_command("maestro ralph skills --json --quiet")` 预校验 skill 名,命中写绝对路径到 `command_path`,未命中标 `missing`;同时写 `step.stage` / `step.scope` / `step.source_artifact_ref`。decision 节点不解析 command_path
148
+ 4. 执行 step:`run_command("maestro ralph skills --platform agy --json --quiet")` 预校验 skill 名,命中写绝对路径到 `command_path`,未命中标 `missing`;同时写 `step.stage` / `step.scope` / `step.source_artifact_ref`。decision 节点不解析 command_path
146
149
 
147
150
  ### A_CLARIFY
148
151
 
@@ -229,7 +232,7 @@ S_FALLBACK:
229
232
  - [ ] Chain selected and confirmed (or auto-confirmed)
230
233
  - [ ] Session dir created with status.json before execution; decomposition fields additive-only
231
234
  - [ ] 执行 step 含 `command_scope` + `command_path` + `completion_confirmed`;decision step 由 `step.decision` 标识
232
- - [ ] `command_scope`/`command_path` 由 `maestro ralph skills --json --quiet` 预校验(project 覆盖 global)
235
+ - [ ] `command_scope`/`command_path` 由 `maestro ralph skills --platform agy --json --quiet` 预校验(project 覆盖 global)
233
236
  - [ ] Session schema 含 `ralph_protocol_version: "1"` + `active_step_index: null` + step.load 占位
234
237
  - [ ] 用户传入 `-y` 时透传到 skill args
235
238
  - [ ] All chains dispatched via maestro-ralph-execute
@@ -73,11 +73,11 @@ Output directory format, artifact registration schema, and output artifact listi
73
73
 
74
74
  1. **Codebase docs**: IF `.workflow/codebase/doc-index.json` exists → Read ARCHITECTURE.md for module boundaries
75
75
  2. **Specs**: `maestro spec load --category arch` — load architecture constraints
76
- 3. **Wiki search**: `maestro wiki search "{topic keywords}" --json` → top 5-10 entries as prior knowledge
76
+ 3. **Wiki search**: `maestro search "{topic keywords}" --json` → top 5-10 entries as prior knowledge
77
77
  4. All optional — proceed without if unavailable (log warning)
78
78
 
79
79
  ### Role Knowledge
80
- `maestro wiki list --category debug` → select relevant → `maestro wiki load`
80
+ `maestro search --category debug` → select relevant → `maestro wiki load`
81
81
  </context>
82
82
 
83
83
  <interview_protocol>
@@ -95,6 +95,57 @@ Follows @~/.maestro/workflows/interview-mechanics.md standard.
95
95
  <execution>
96
96
  Follow '~/.maestro/workflows/analyze.md' completely.
97
97
 
98
+ ### Core Principle: Evidence-Backed Decisions
99
+
100
+ Every decision produced by this command MUST be traceable to independently gathered evidence. Manual file reading (Read/Grep by the orchestrator) is preparation, NOT evidence. Evidence comes from:
101
+ - cli-explore-agent output (code anchors, call chains, data flows)
102
+ - maestro delegate CLI analysis output (multi-perspective findings)
103
+ - User-provided input (domain knowledge, constraints, corrections)
104
+
105
+ A decision without at least one CLI/agent-sourced evidence item is LOW CONFIDENCE and MUST be flagged as such.
106
+
107
+ ### Standard Mode Phase Gates (when `-q` and `--gaps` are BOTH absent)
108
+
109
+ These gates are MANDATORY and BLOCKING. Do NOT advance past a gate until ALL conditions are met. Do NOT substitute manual Read/Grep for agent/CLI exploration.
110
+
111
+ **GATE 1: Step 4 → Step 5** (Exploration → Discussion)
112
+ - REQUIRED: cli-explore-agent spawned and completed (Step 4.1). Output written to `exploration-codebase.json` with ≥1 code anchor.
113
+ - REQUIRED: At least one maestro delegate CLI call completed (Step 4.2). Output aggregated into `explorations.json` or `perspectives.json`.
114
+ - REQUIRED: Baseline confidence scoring recorded in discussion.md (Step 4.6).
115
+ - BLOCKED if any missing: complete Step 4 before proceeding.
116
+
117
+ **GATE 2: Step 5 → Step 6** (Discussion → Scoring)
118
+ - REQUIRED: discussion.md contains ≥1 interactive round with user feedback (Step 5.3).
119
+ - REQUIRED: Confidence re-scored ≥1 time with delta shown (Step 5.8).
120
+ - REQUIRED: Pressure pass completed ≥1 time (Step 5.9).
121
+ - BLOCKED if any missing: continue discussion rounds.
122
+
123
+ **GATE 3: Step 6 → Step 7** (Scoring → Synthesis)
124
+ - REQUIRED: analysis.md written with all 6 dimensions scored.
125
+ - REQUIRED: Each dimension score cites evidence from exploration-codebase.json or explorations.json — NOT from orchestrator's manual file reading.
126
+ - BLOCKED if any missing: complete scoring first.
127
+
128
+ **GATE 4: Step 7 → Step 8** (Synthesis → Decision Extraction)
129
+ - REQUIRED: conclusions.json written with recommendations and decision trail.
130
+ - REQUIRED: Intent Coverage Matrix shows no unresolved ❌ items (or user-confirmed deferrals).
131
+ - BLOCKED if any missing: complete synthesis first.
132
+
133
+ ### Artifact Verification
134
+
135
+ Before writing the completion report (Step 9), verify ALL expected artifacts exist in OUTPUT_DIR:
136
+ ```
137
+ FULL_MODE_REQUIRED = [
138
+ "discussion.md", // Step 3+5
139
+ "exploration-codebase.json", // Step 4.1
140
+ "explorations.json" OR "perspectives.json", // Step 4.3
141
+ "analysis.md", // Step 6
142
+ "conclusions.json", // Step 7
143
+ "context.md", // Step 8
144
+ "context-package.json" // Step 8.6
145
+ ]
146
+ ```
147
+ If any artifact is missing: DO NOT report completion. Go back and produce the missing artifact.
148
+
98
149
  ### --gaps Mode (Issue Root Cause Analysis)
99
150
 
100
151
  When `--gaps` flag is present, follow `~/.maestro/workflows/issue-gaps-analyze.md` instead of the standard analyze pipeline:
@@ -66,7 +66,7 @@ maestro-analyze → maestro-roadmap → maestro-plan
66
66
  ### Pre-load
67
67
 
68
68
  1. **Specs**: `maestro spec load --category arch` — load architecture constraints for Phase 4 decisions
69
- 2. **Wiki search**: `maestro wiki search "{topic keywords}" --json` → prior knowledge context
69
+ 2. **Wiki search**: `maestro search "{topic keywords}" --json` → prior knowledge context
70
70
  3. All optional — proceed without if unavailable
71
71
  </context>
72
72
 
@@ -92,6 +92,41 @@ P0: Spec Study → P1: Discovery → P1.5: Req Expansion → P2: Product Brief
92
92
 
93
93
  P6 gate: Pass (>=80%) → Handoff | Review (60-79%) → Handoff w/caveats | Fail (<60%) → P6.5 Auto-Fix (max 2 iter) → re-check
94
94
 
95
+ ### Phase Gates (MANDATORY, BLOCKING)
96
+
97
+ Each phase produces artifacts that are prerequisites for the next. Do NOT advance past a gate without verifying the prior phase's output exists.
98
+
99
+ **GATE P0 → P1**: `blueprint-config.json` created with session metadata.
100
+ **GATE P1 → P1.5**: Discovery context gathered (codebase patterns, upstream context loaded).
101
+ **GATE P1.5 → P2**: Requirements expanded from discovery findings.
102
+ **GATE P2 → P3**: `product-brief.md` written with vision, goals, scope, multi-perspective synthesis.
103
+ **GATE P3 → P4**: `requirements/` directory with `_index.md` + individual `REQ-*.md` + `NFR-*.md` files. All requirements have RFC 2119 keywords and acceptance criteria.
104
+ **GATE P4 → P5**: `architecture/` directory with `_index.md` + individual `ADR-*.md` files.
105
+ **GATE P5 → P6**: `epics/` directory with `_index.md` + individual `EPIC-*.md` files. Cross-Epic dependency map present.
106
+ **GATE P6**: Readiness score computed. Pass (≥80%) or Review (≥60%) required for handoff.
107
+
108
+ ### Artifact Verification (before completion)
109
+
110
+ ```
111
+ REQUIRED_ARTIFACTS = [
112
+ "blueprint-config.json", // P0
113
+ "product-brief.md", // P2
114
+ "glossary.json", // P2 (≥5 terms)
115
+ "requirements/_index.md", // P3
116
+ "architecture/_index.md", // P4
117
+ "epics/_index.md", // P5
118
+ "readiness-report.md", // P6
119
+ "blueprint-summary.md", // P6
120
+ "context-package.json" // P6
121
+ ]
122
+ ```
123
+ If any artifact is missing: DO NOT report completion. Go back and produce it.
124
+
125
+ ### Evidence Requirement
126
+
127
+ Architecture Decision Records (ADR-*.md) MUST cite evidence for each decision:
128
+ - Valid: code analysis, requirement traceability (REQ-xxx), upstream context, CLI analysis output
129
+ - INVALID: generic rationale without reference to project-specific constraints
95
130
  </execution>
96
131
 
97
132
  <completion>
@@ -59,7 +59,7 @@ $ARGUMENTS -- topic text for auto mode, or role name for single role mode.
59
59
 
60
60
  ### Role Knowledge
61
61
  1. Browse accumulated knowledge for this role:
62
- `maestro wiki list --category arch`
62
+ `maestro search --category arch`
63
63
  2. Analyze the index, identify entries relevant to the current task
64
64
  3. Load selected documents:
65
65
  `maestro wiki load <id1> [id2] [id3...]`
@@ -79,6 +79,45 @@ Follows @~/.maestro/workflows/interview-mechanics.md standard.
79
79
 
80
80
  <execution>
81
81
  Follow '~/.maestro/workflows/brainstorm.md' completely.
82
+
83
+ ### Phase Gates (MANDATORY, BLOCKING)
84
+
85
+ These gates apply to Auto mode (full pipeline). Do NOT advance past a gate until ALL conditions are met.
86
+
87
+ **GATE 1: Framework → Role Analysis** (Step 1 → Step 3)
88
+ - REQUIRED: `guidance-specification.md` written with §10 feature decomposition and RFC 2119 keywords.
89
+ - REQUIRED: Role selection completed (interactive or auto-default).
90
+ - BLOCKED if missing: complete framework generation before spawning role agents.
91
+
92
+ **GATE 2: Role Analysis → Cross-Role Review** (Step 3 → Step 4.5)
93
+ - REQUIRED: Every selected role has `{role}/analysis.md` with §2 Decision Digest (4 tables).
94
+ - REQUIRED: Per-feature files `{role}/analysis-F-*.md` written for each feature in §10.
95
+ - BLOCKED if missing: complete all role analyses before spawning cross-role-reviewer.
96
+
97
+ **GATE 3: Cross-Role Review → Completion** (Step 4.5 → Report)
98
+ - REQUIRED: Cross-role-reviewer output received with `patch_targets[]`.
99
+ - REQUIRED: If findings > 0, resolutions applied via Edit AND logged in `guidance-specification.md` §12.
100
+ - REQUIRED: If findings == 0, final report explicitly states "No cross-role issues detected".
101
+ - BLOCKED if missing: complete review synthesis before reporting.
102
+
103
+ ### Artifact Verification (before completion report)
104
+
105
+ ```
106
+ AUTO_MODE_REQUIRED = [
107
+ "guidance-specification.md", // Step 1
108
+ "{role}/analysis.md" (per selected role), // Step 3
109
+ "{role}/analysis-F-*.md" (per feature), // Step 3
110
+ ]
111
+ ```
112
+ If any artifact is missing: DO NOT report completion. Go back and produce the missing artifact.
113
+
114
+ ### Evidence Requirement
115
+
116
+ Role analysis findings in `{role}/analysis.md` §2 Decision Digest MUST cite concrete evidence:
117
+ - Code references (file:line), API endpoints, data models from the codebase
118
+ - User-provided constraints from interview
119
+ - Cross-role references to other role analyses
120
+ Decisions without evidence are flagged LOW CONFIDENCE.
82
121
  </execution>
83
122
 
84
123
  <completion>
@@ -27,7 +27,7 @@ $ARGUMENTS — requirement text and optional flags.
27
27
  - `--rule <template>`: Shared rule template for all delegates
28
28
  - `-y`: Skip plan confirmation
29
29
 
30
- **Pre-load** (optional): `maestro spec load --category arch` + `maestro wiki list --category arch` → include in delegate prompts.
30
+ **Pre-load** (optional): `maestro spec load --category arch` + `maestro search --category arch` → include in delegate prompts.
31
31
 
32
32
  **Output**: `.workflow/scratch/{YYYYMMDD}-collab-{slug}/`
33
33
  - `collab-report.md` — merged findings with consensus/conflict/unique tags
@@ -112,7 +112,7 @@ Display loaded rules summary (entry count + key rule names).
112
112
  maestro knowhow list --store workflow
113
113
 
114
114
  # With --task: search relevant entries
115
- maestro knowhow search "<task_keyword>"
115
+ maestro search --type knowhow "<task_keyword>"
116
116
  ```
117
117
 
118
118
  Display available knowhow entries (ID + title). Hint: `maestro wiki load <id>` for details.
@@ -125,7 +125,7 @@ ls .workflow/codebase/doc-index.json
125
125
 
126
126
  - Exists → display "Codebase docs ready, last updated: {timestamp}"
127
127
  - Missing → suggest `/manage-codebase-rebuild`
128
- - Stale (>7 days) → suggest `/manage-codebase-refresh`
128
+ - Stale (>7 days) → suggest `/quality-sync`
129
129
 
130
130
  ### 4. Create companion document
131
131
 
@@ -339,7 +339,7 @@ Mid-task commands:
339
339
  /maestro-companion note "finding or decision"
340
340
  /maestro-companion note --file src/auth.ts "changed token validation"
341
341
  /spec-load --keyword <keyword>
342
- maestro wiki search "<query>"
342
+ maestro search "<query>"
343
343
  ```
344
344
 
345
345
  ---
@@ -468,7 +468,7 @@ Clear `.workflow/.scratchpad/.companion-active`.
468
468
 
469
469
  ```
470
470
  Knowledge accumulation reminders:
471
- Reusable pattern found? /spec-add <category> "title" "content"
471
+ Reusable pattern found? /spec-add <category> "title" "content" --description "summary"
472
472
  Solved a complex problem? /manage-knowhow-capture recipe "description"
473
473
  Made an architecture decision? /manage-knowhow-capture decision "description"
474
474
  Discovered a useful trick? /manage-knowhow-capture tip "content"
@@ -127,7 +127,7 @@ Read deferred `node-catalog.md` (fallback to built-in mapping):
127
127
  | review | `quality-review` |
128
128
  | brainstorm | `maestro-brainstorm` |
129
129
  | analysis | `maestro delegate --role analyze` |
130
- | verify | `maestro-verify` |
130
+ | verify | `maestro-execute` |
131
131
  | refactor | `quality-refactor` |
132
132
  | debug | `quality-debug` |
133
133
 
@@ -19,7 +19,7 @@ Execute all tasks in a plan using wave-based parallel execution with dependency-
19
19
 
20
20
  Invoked after /maestro-plan produces a confirmed plan. When called without args on a milestone, finds all pending plans and executes them sequentially.
21
21
 
22
- Pipeline position: upstream from maestro-plan (consumes confirmed plan), downstream to maestro-verify.
22
+ Pipeline position: upstream from maestro-plan (consumes confirmed plan). Verification is built-in (E2.7).
23
23
  </purpose>
24
24
 
25
25
  <required_reading>
@@ -58,13 +58,13 @@ Full resolution logic, output directory format, artifact registration schema, an
58
58
  ### Pre-load context (before task execution)
59
59
 
60
60
  1. **Codebase docs**: If `.workflow/codebase/doc-index.json` exists, read `ARCHITECTURE.md` for module boundaries. Pass as shared context to executor agents.
61
- 2. **Wiki knowledge**: Run `maestro wiki search "<phase keywords>" --json 2>/dev/null`. If results found, extract top 5 entries as prior knowledge context for agents.
61
+ 2. **Wiki knowledge**: Run `maestro search "<phase keywords>" --json 2>/dev/null`. If results found, extract top 5 entries as prior knowledge context for agents.
62
62
  3. **Coding specs + tools**: Run `maestro spec load --category coding` to load coding conventions AND discoverable knowhow tools (tool: true entries). Pass as specs context to all executor agents.
63
63
  4. **UI specs (conditional)**: If any task involves frontend/UI work (task scope/description contains keywords like component, page, style, layout, CSS, HTML, frontend; or focus_paths in `src/components/`, `src/pages/`, `src/styles/`, `src/ui/`), also run `maestro spec load --category ui` and include in agent context.
64
64
  5. All are optional — proceed without if unavailable (log warning).
65
65
 
66
66
  ### Role Knowledge
67
- `maestro wiki list --category coding` → select relevant → `maestro wiki load`
67
+ `maestro search --category coding` → select relevant → `maestro wiki load`
68
68
  </context>
69
69
 
70
70
  <execution>
@@ -78,6 +78,29 @@ If exit code is 1, present warnings and ask whether to proceed.
78
78
 
79
79
  Follow '~/.maestro/workflows/execute.md' completely.
80
80
 
81
+ ### Phase Gates (MANDATORY, BLOCKING)
82
+
83
+ **GATE 1: Plan Load → Task Execution**
84
+ - REQUIRED: plan.json found and parsed with valid task definitions.
85
+ - REQUIRED: `.task/TASK-*.json` files exist for all tasks in plan.
86
+ - BLOCKED if no pending tasks: error E004.
87
+
88
+ **GATE 2: Per-Task Execution → Summary**
89
+ - REQUIRED: Each completed task has `.summaries/TASK-{NNN}-summary.md` written with concrete evidence (files changed, tests run, verification results).
90
+ - REQUIRED: `.task/TASK-{NNN}.json` status updated to completed|blocked.
91
+ - Do NOT silently skip failed tasks — mark as blocked with reason.
92
+
93
+ **GATE 3: All Tasks → Completion**
94
+ - REQUIRED: All waves executed in dependency order.
95
+ - REQUIRED: EXC artifact registered in state.json.
96
+
97
+ ### Evidence Requirement
98
+
99
+ Task summaries MUST include:
100
+ - Files actually modified (not just planned targets)
101
+ - Convergence criteria verification results (pass/fail with evidence)
102
+ - Any deviations from the plan with rationale
103
+
81
104
  ### Post-task Knowledge Inquiry
82
105
 
83
106
  After each task completion, check triggers:
@@ -88,7 +111,8 @@ After each task completion, check triggers:
88
111
  | retry_count >= 2 | "Document fix pattern?" | spec-add debug |
89
112
  | Summary contains design rationale ("chose X because") | "Record as knowhow?" | spec-add learning |
90
113
 
91
- On confirm → `Skill("spec-add", "<category> <content>")`.
114
+ On confirm → `Skill("spec-add", "<category> <content> --description \"<summary>\"")`.
115
+ Include `--description` with a one-line summary for search result display.
92
116
 
93
117
  ### Issue Status Sync
94
118
 
@@ -136,8 +160,7 @@ Status verdicts:
136
160
 
137
161
  | Condition | Suggestion |
138
162
  |-----------|-----------|
139
- | All tasks completed successfully | `/maestro-verify` |
140
- | Specific plan needs verification | `/maestro-verify --dir {dir}` |
163
+ | All tasks completed successfully | `/quality-review` |
141
164
  | Failed tasks exist | `/quality-debug` |
142
165
  | View project dashboard | `/manage-status` |
143
166
  </completion>
@@ -44,6 +44,30 @@ Follow '~/.maestro/workflows/fork.md' completely.
44
44
 
45
45
  Fork and sync algorithm steps are defined in workflow `fork.md`.
46
46
 
47
+ ### Phase Gates (MANDATORY, BLOCKING)
48
+
49
+ **Fork mode:**
50
+
51
+ **GATE 1: Validation → Worktree Creation**
52
+ - REQUIRED: Milestone resolved from state.json.milestones[].
53
+ - REQUIRED: No existing active worktree for this milestone (E008).
54
+ - REQUIRED: Not running inside a worktree (E003).
55
+
56
+ **GATE 2: Worktree Creation → Artifact Copy**
57
+ - REQUIRED: Git worktree created with branch (`milestone/{slug}`).
58
+ - REQUIRED: Shared `.workflow/` files copied (project.md, roadmap.md, config.json, specs/).
59
+
60
+ **GATE 3: Artifact Copy → Completion**
61
+ - REQUIRED: `worktree-scope.json` written with milestone scope.
62
+ - REQUIRED: Scoped `state.json` written (only this milestone's artifacts).
63
+ - REQUIRED: `worktrees.json` registry updated in main worktree.
64
+
65
+ **Sync mode:**
66
+
67
+ **GATE: Sync → Completion**
68
+ - REQUIRED: Git merge main into worktree branch completed.
69
+ - REQUIRED: Shared artifacts re-copied.
70
+
47
71
  **Next-step routing on completion:**
48
72
 
49
73
  Fork mode:
@@ -52,7 +52,7 @@ $ARGUMENTS -- topic/plan text for interactive mode, or --from source for upstrea
52
52
  ### Pre-load
53
53
 
54
54
  1. **Specs**: `maestro spec load --category arch` — load architecture constraints
55
- 2. **Wiki search**: `maestro wiki search "{topic keywords}"` → load relevant entries before grilling
55
+ 2. **Wiki search**: `maestro search "{topic keywords}"` → load relevant entries before grilling
56
56
  3. All optional — proceed without if unavailable
57
57
  </context>
58
58
 
@@ -73,6 +73,43 @@ Follows @~/.maestro/workflows/interview-mechanics.md standard.
73
73
 
74
74
  <execution>
75
75
  Follow '~/.maestro/workflows/grill.md' completely.
76
+
77
+ ### Phase Gates (MANDATORY, BLOCKING)
78
+
79
+ **GATE 1: Setup → Branch Walking** (Step 1 → Step 2)
80
+ - REQUIRED: Topic parsed and output directory created.
81
+ - REQUIRED: Initial codebase scan completed — at least one code reference identified for grounding.
82
+ - BLOCKED if missing: cannot grill without code reality baseline.
83
+
84
+ **GATE 2: Branch Walking → Synthesis** (Step 2 → Step 3)
85
+ - REQUIRED: All depth-selected branches walked (shallow=3, standard=5, deep=8).
86
+ - REQUIRED: Each branch has ≥2 Q&A pairs with evidence (code reference or explicit user input).
87
+ - REQUIRED: Every locked decision has evidence — NOT just orchestrator inference.
88
+ - BLOCKED if branches incomplete: continue walking before synthesizing.
89
+
90
+ **GATE 3: Synthesis → Completion** (Step 3 → Report)
91
+ - REQUIRED: `grill-report.md` written with Branch Log table + all Q&A entries + synthesis section.
92
+ - REQUIRED: `terminology.md` written with ≥5 terms.
93
+ - REQUIRED: `context-package.json` generated.
94
+ - BLOCKED if any artifact missing: produce it before reporting completion.
95
+
96
+ ### Evidence Requirement
97
+
98
+ Grill questions MUST reference specific code when challenging the user's proposal:
99
+ - Valid: "The codebase uses `{symbol}` at `{file:line}` — your proposal calls it `{term}`. Which wins?"
100
+ - INVALID: Generic questions without code grounding (e.g., "How would you handle errors?")
101
+ - If codebase scan failed (W001): flag ALL subsequent locked decisions as LOW CONFIDENCE.
102
+
103
+ ### Artifact Verification (before completion)
104
+
105
+ ```
106
+ REQUIRED_ARTIFACTS = [
107
+ "grill-report.md", // Branch Log + Q&A + synthesis
108
+ "terminology.md", // ≥5 terms with code refs
109
+ "context-package.json" // Schema "context-package/1.0"
110
+ ]
111
+ ```
112
+ If any missing: DO NOT report completion. Go back and produce the missing artifact.
76
113
  </execution>
77
114
 
78
115
  <completion>
@@ -198,7 +198,6 @@ $ARGUMENTS → Parse:
198
198
  | `/maestro-analyze` | 双层分析 — 宏观(文本参数)探索影响面 / 微观(数字参数)Phase 级深入 |
199
199
  | `/maestro-plan` | 任务规划 — 支持 `--from analyze:ANL-xxx` 直达 |
200
200
  | `/maestro-execute` | 任务执行 |
201
- | `/maestro-verify` | 验证确认 |
202
201
 
203
202
  ### 质量管线 (quality)
204
203
 
@@ -248,17 +247,17 @@ Roadmap > Milestone > Phase > Task
248
247
  roadmap — 消费上游 context,纯 Milestone > Phase 分解
249
248
 
250
249
  执行层
251
- plan → execute → verify
250
+ plan → execute
252
251
  ```
253
252
 
254
253
  ### 合法路径
255
254
 
256
255
  | 路径 | 场景 | 命令序列 |
257
256
  |------|------|---------|
258
- | Path A | 完整新项目 | `brainstorm` → `blueprint`(可选) → `analyze "topic"` → `roadmap` → `analyze 1` → `plan 1` → `execute` → `verify` |
259
- | Path B | 旧项目大功能 | `analyze "feature X"` → `roadmap` → `analyze 1` → `plan 1` → `execute` → `verify` |
260
- | Path C | 中等功能 | `analyze "feature X"` → `plan --from analyze:ANL-xxx` → `execute` → `verify` |
261
- | Path D | 小改动 | `plan "fix auth bug"` → `execute` → `verify` |
257
+ | Path A | 完整新项目 | `brainstorm` → `blueprint`(可选) → `analyze "topic"` → `roadmap` → `analyze 1` → `plan 1` → `execute` |
258
+ | Path B | 旧项目大功能 | `analyze "feature X"` → `roadmap` → `analyze 1` → `plan 1` → `execute` |
259
+ | Path C | 中等功能 | `analyze "feature X"` → `plan --from analyze:ANL-xxx` → `execute` |
260
+ | Path D | 小改动 | `plan "fix auth bug"` → `execute` |
262
261
  | Path E | 纯规格文档 | `blueprint "project idea"` → (供人阅读) |
263
262
  | Path F | 纯探索 | `brainstorm "idea"` → (供人决策) |
264
263
  | 快速修复 | 已知简单问题 | `/maestro-quick "修复描述"` |