maestro-flow 0.4.25 → 0.5.0

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 (399) hide show
  1. package/.agents/skills/learn-follow/SKILL.md +1 -1
  2. package/.agents/skills/learn-investigate/SKILL.md +2 -2
  3. package/.agents/skills/learn-second-opinion/SKILL.md +1 -1
  4. package/.agents/skills/maestro/SKILL.md +6 -3
  5. package/.agents/skills/maestro-analyze/SKILL.md +53 -2
  6. package/.agents/skills/maestro-blueprint/SKILL.md +36 -1
  7. package/.agents/skills/maestro-brainstorm/SKILL.md +40 -1
  8. package/.agents/skills/maestro-collab/SKILL.md +1 -1
  9. package/.agents/skills/maestro-companion/SKILL.md +4 -4
  10. package/.agents/skills/maestro-composer/SKILL.md +1 -1
  11. package/.agents/skills/maestro-execute/SKILL.md +29 -6
  12. package/.agents/skills/maestro-fork/SKILL.md +24 -0
  13. package/.agents/skills/maestro-grill/SKILL.md +38 -1
  14. package/.agents/skills/maestro-help/SKILL.md +5 -6
  15. package/.agents/skills/maestro-help/index/catalog.json +7 -9
  16. package/.agents/skills/maestro-help/phases/02-search-present.md +2 -4
  17. package/.agents/skills/maestro-help/phases/03-workflow-guide.md +7 -8
  18. package/.agents/skills/maestro-impeccable/SKILL.md +13 -0
  19. package/.agents/skills/maestro-init/SKILL.md +11 -0
  20. package/.agents/skills/maestro-merge/SKILL.md +17 -1
  21. package/.agents/skills/maestro-milestone-audit/SKILL.md +34 -2
  22. package/.agents/skills/maestro-milestone-complete/SKILL.md +19 -1
  23. package/.agents/skills/maestro-milestone-release/SKILL.md +18 -0
  24. package/.agents/skills/maestro-next/SKILL.md +8 -9
  25. package/.agents/skills/maestro-overlay/SKILL.md +3 -3
  26. package/.agents/skills/maestro-plan/SKILL.md +21 -3
  27. package/.agents/skills/maestro-quick/SKILL.md +13 -1
  28. package/.agents/skills/maestro-ralph/SKILL.md +18 -20
  29. package/.agents/skills/maestro-ralph-beta/SKILL.md +10 -16
  30. package/.agents/skills/maestro-ralph-execute/SKILL.md +1 -2
  31. package/.agents/skills/maestro-roadmap/SKILL.md +28 -2
  32. package/.agents/skills/maestro-swarm-workflow/SKILL.md +2 -2
  33. package/.agents/skills/maestro-tools-register/SKILL.md +2 -2
  34. package/.agents/skills/maestro-ui-codify/SKILL.md +20 -0
  35. package/.agents/skills/maestro-update/SKILL.md +59 -116
  36. package/.agents/skills/manage-codebase-rebuild/SKILL.md +3 -3
  37. package/.agents/skills/manage-harvest/SKILL.md +1 -1
  38. package/.agents/skills/manage-knowhow/SKILL.md +3 -1
  39. package/.agents/skills/manage-knowhow-capture/SKILL.md +3 -2
  40. package/.agents/skills/manage-wiki/SKILL.md +17 -8
  41. package/.agents/skills/quality-auto-test/SKILL.md +3 -3
  42. package/.agents/skills/quality-debug/SKILL.md +4 -4
  43. package/.agents/skills/quality-refactor/SKILL.md +2 -2
  44. package/.agents/skills/quality-retrospective/SKILL.md +5 -5
  45. package/.agents/skills/quality-review/SKILL.md +4 -4
  46. package/.agents/skills/quality-sync/SKILL.md +1 -0
  47. package/.agents/skills/quality-test/SKILL.md +4 -4
  48. package/.agents/skills/spec-add/SKILL.md +6 -4
  49. package/.agents/skills/spec-setup/SKILL.md +1 -1
  50. package/.agy/skills/learn-follow/SKILL.md +1 -1
  51. package/.agy/skills/learn-investigate/SKILL.md +2 -2
  52. package/.agy/skills/learn-second-opinion/SKILL.md +1 -1
  53. package/.agy/skills/maestro/SKILL.md +6 -3
  54. package/.agy/skills/maestro-analyze/SKILL.md +53 -2
  55. package/.agy/skills/maestro-blueprint/SKILL.md +36 -1
  56. package/.agy/skills/maestro-brainstorm/SKILL.md +40 -1
  57. package/.agy/skills/maestro-collab/SKILL.md +1 -1
  58. package/.agy/skills/maestro-companion/SKILL.md +4 -4
  59. package/.agy/skills/maestro-composer/SKILL.md +1 -1
  60. package/.agy/skills/maestro-execute/SKILL.md +29 -6
  61. package/.agy/skills/maestro-fork/SKILL.md +24 -0
  62. package/.agy/skills/maestro-grill/SKILL.md +38 -1
  63. package/.agy/skills/maestro-help/SKILL.md +5 -6
  64. package/.agy/skills/maestro-help/index/catalog.json +7 -9
  65. package/.agy/skills/maestro-help/phases/02-search-present.md +2 -4
  66. package/.agy/skills/maestro-help/phases/03-workflow-guide.md +7 -8
  67. package/.agy/skills/maestro-impeccable/SKILL.md +13 -0
  68. package/.agy/skills/maestro-init/SKILL.md +11 -0
  69. package/.agy/skills/maestro-merge/SKILL.md +17 -1
  70. package/.agy/skills/maestro-milestone-audit/SKILL.md +34 -2
  71. package/.agy/skills/maestro-milestone-complete/SKILL.md +19 -1
  72. package/.agy/skills/maestro-milestone-release/SKILL.md +18 -0
  73. package/.agy/skills/maestro-next/SKILL.md +8 -9
  74. package/.agy/skills/maestro-overlay/SKILL.md +3 -3
  75. package/.agy/skills/maestro-plan/SKILL.md +21 -3
  76. package/.agy/skills/maestro-quick/SKILL.md +13 -1
  77. package/.agy/skills/maestro-ralph/SKILL.md +18 -20
  78. package/.agy/skills/maestro-ralph-beta/SKILL.md +10 -16
  79. package/.agy/skills/maestro-ralph-execute/SKILL.md +1 -2
  80. package/.agy/skills/maestro-roadmap/SKILL.md +28 -2
  81. package/.agy/skills/maestro-swarm-workflow/SKILL.md +2 -2
  82. package/.agy/skills/maestro-tools-register/SKILL.md +2 -2
  83. package/.agy/skills/maestro-ui-codify/SKILL.md +20 -0
  84. package/.agy/skills/maestro-update/SKILL.md +59 -116
  85. package/.agy/skills/manage-codebase-rebuild/SKILL.md +3 -3
  86. package/.agy/skills/manage-harvest/SKILL.md +1 -1
  87. package/.agy/skills/manage-knowhow/SKILL.md +3 -1
  88. package/.agy/skills/manage-knowhow-capture/SKILL.md +3 -2
  89. package/.agy/skills/manage-wiki/SKILL.md +17 -8
  90. package/.agy/skills/quality-auto-test/SKILL.md +3 -3
  91. package/.agy/skills/quality-debug/SKILL.md +4 -4
  92. package/.agy/skills/quality-refactor/SKILL.md +2 -2
  93. package/.agy/skills/quality-retrospective/SKILL.md +5 -5
  94. package/.agy/skills/quality-review/SKILL.md +4 -4
  95. package/.agy/skills/quality-sync/SKILL.md +1 -0
  96. package/.agy/skills/quality-test/SKILL.md +4 -4
  97. package/.agy/skills/spec-add/SKILL.md +6 -4
  98. package/.agy/skills/spec-setup/SKILL.md +1 -1
  99. package/.claude/commands/learn-follow.md +1 -1
  100. package/.claude/commands/learn-investigate.md +2 -2
  101. package/.claude/commands/learn-second-opinion.md +1 -1
  102. package/.claude/commands/maestro-analyze.md +53 -2
  103. package/.claude/commands/maestro-blueprint.md +36 -1
  104. package/.claude/commands/maestro-brainstorm.md +40 -1
  105. package/.claude/commands/maestro-collab.md +1 -1
  106. package/.claude/commands/maestro-companion.md +4 -4
  107. package/.claude/commands/maestro-composer.md +1 -1
  108. package/.claude/commands/maestro-execute.md +29 -6
  109. package/.claude/commands/maestro-fork.md +24 -0
  110. package/.claude/commands/maestro-grill.md +38 -1
  111. package/.claude/commands/maestro-impeccable.md +13 -0
  112. package/.claude/commands/maestro-init.md +11 -0
  113. package/.claude/commands/maestro-merge.md +17 -1
  114. package/.claude/commands/maestro-milestone-audit.md +34 -2
  115. package/.claude/commands/maestro-milestone-complete.md +19 -1
  116. package/.claude/commands/maestro-milestone-release.md +18 -0
  117. package/.claude/commands/maestro-next.md +8 -9
  118. package/.claude/commands/maestro-overlay.md +3 -3
  119. package/.claude/commands/maestro-plan.md +21 -3
  120. package/.claude/commands/maestro-quick.md +13 -1
  121. package/.claude/commands/maestro-ralph-beta.md +8 -14
  122. package/.claude/commands/maestro-ralph-execute.md +1 -2
  123. package/.claude/commands/maestro-ralph.md +18 -20
  124. package/.claude/commands/maestro-roadmap.md +28 -2
  125. package/.claude/commands/maestro-swarm-workflow.md +2 -2
  126. package/.claude/commands/maestro-tools-register.md +2 -2
  127. package/.claude/commands/maestro-ui-codify.md +20 -0
  128. package/.claude/commands/maestro-update.md +59 -116
  129. package/.claude/commands/maestro.md +6 -3
  130. package/.claude/commands/manage-codebase-rebuild.md +3 -3
  131. package/.claude/commands/manage-harvest.md +1 -1
  132. package/.claude/commands/manage-knowhow-capture.md +3 -2
  133. package/.claude/commands/manage-knowhow.md +3 -1
  134. package/.claude/commands/manage-wiki.md +17 -8
  135. package/.claude/commands/quality-auto-test.md +3 -3
  136. package/.claude/commands/quality-debug.md +4 -4
  137. package/.claude/commands/quality-refactor.md +2 -2
  138. package/.claude/commands/quality-retrospective.md +5 -5
  139. package/.claude/commands/quality-review.md +4 -4
  140. package/.claude/commands/quality-sync.md +1 -0
  141. package/.claude/commands/quality-test.md +4 -4
  142. package/.claude/commands/spec-add.md +6 -4
  143. package/.claude/commands/spec-setup.md +1 -1
  144. package/.claude/skills/maestro-help/SKILL.md +5 -6
  145. package/.claude/skills/maestro-help/index/catalog.json +7 -9
  146. package/.claude/skills/maestro-help/phases/02-search-present.md +2 -4
  147. package/.claude/skills/maestro-help/phases/03-workflow-guide.md +7 -8
  148. package/.codex/skills/codify-to-knowhow/SKILL.md +5 -4
  149. package/.codex/skills/learn-decompose/SKILL.md +1 -1
  150. package/.codex/skills/learn-follow/SKILL.md +1 -1
  151. package/.codex/skills/learn-investigate/SKILL.md +1 -1
  152. package/.codex/skills/learn-second-opinion/SKILL.md +2 -2
  153. package/.codex/skills/maestro/SKILL.md +29 -31
  154. package/.codex/skills/maestro-analyze/SKILL.md +16 -3
  155. package/.codex/skills/maestro-blueprint/SKILL.md +8 -1
  156. package/.codex/skills/maestro-brainstorm/SKILL.md +8 -5
  157. package/.codex/skills/maestro-companion/SKILL.md +2 -2
  158. package/.codex/skills/maestro-composer/SKILL.md +0 -1
  159. package/.codex/skills/maestro-execute/SKILL.md +11 -8
  160. package/.codex/skills/maestro-fork/SKILL.md +4 -0
  161. package/.codex/skills/maestro-grill/SKILL.md +8 -2
  162. package/.codex/skills/maestro-help/SKILL.md +6 -9
  163. package/.codex/skills/maestro-help/catalog.json +6 -8
  164. package/.codex/skills/maestro-impeccable/SKILL.md +2 -0
  165. package/.codex/skills/maestro-init/SKILL.md +3 -0
  166. package/.codex/skills/maestro-merge/SKILL.md +5 -1
  167. package/.codex/skills/maestro-milestone-audit/SKILL.md +14 -9
  168. package/.codex/skills/maestro-milestone-complete/SKILL.md +6 -1
  169. package/.codex/skills/maestro-milestone-release/SKILL.md +4 -0
  170. package/.codex/skills/maestro-next/SKILL.md +3 -4
  171. package/.codex/skills/maestro-plan/SKILL.md +5 -2
  172. package/.codex/skills/maestro-quick/SKILL.md +4 -1
  173. package/.codex/skills/maestro-ralph/SKILL.md +14 -20
  174. package/.codex/skills/maestro-ralph-beta/SKILL.md +13 -21
  175. package/.codex/skills/maestro-ralph-execute/SKILL.md +2 -2
  176. package/.codex/skills/maestro-roadmap/SKILL.md +5 -2
  177. package/.codex/skills/maestro-tools-register/SKILL.md +1 -1
  178. package/.codex/skills/maestro-ui-codify/SKILL.md +7 -4
  179. package/.codex/skills/maestro-update/SKILL.md +35 -130
  180. package/.codex/skills/manage-codebase-rebuild/SKILL.md +2 -2
  181. package/.codex/skills/manage-harvest/SKILL.md +2 -2
  182. package/.codex/skills/manage-knowhow/SKILL.md +1 -1
  183. package/.codex/skills/manage-status/SKILL.md +1 -2
  184. package/.codex/skills/quality-auto-test/SKILL.md +2 -2
  185. package/.codex/skills/quality-debug/SKILL.md +33 -27
  186. package/.codex/skills/quality-refactor/SKILL.md +1 -1
  187. package/.codex/skills/quality-retrospective/SKILL.md +1 -1
  188. package/.codex/skills/quality-test/SKILL.md +3 -4
  189. package/.codex/skills/security-audit/SKILL.md +17 -1
  190. package/.codex/skills/spec-add/SKILL.md +5 -3
  191. package/.codex/skills/spec-remove/SKILL.md +2 -2
  192. package/.codex/skills/team-coordinate/SKILL.md +1 -1
  193. package/.codex/skills/team-review/SKILL.md +2 -2
  194. package/.codex/skills/wiki-digest/SKILL.md +2 -2
  195. package/chains/brainstorm-driven.json +2 -34
  196. package/chains/full-lifecycle.json +2 -34
  197. package/chains/next-milestone.json +0 -7
  198. package/chains/quality-loop.json +3 -19
  199. package/chains/roadmap-driven.json +2 -34
  200. package/chains/spec-driven.json +2 -34
  201. package/chains/ui-craft-build.json +2 -23
  202. package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js +9 -1
  203. package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js.map +1 -1
  204. package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.test.d.ts +1 -0
  205. package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.test.js +346 -0
  206. package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.test.js.map +1 -0
  207. package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js +8 -11
  208. package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js.map +1 -1
  209. package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.d.ts +1 -0
  210. package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.js +3 -1
  211. package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.js.map +1 -1
  212. package/dashboard/dist-server/dashboard/src/server/wiki/stress.test.js +1 -0
  213. package/dashboard/dist-server/dashboard/src/server/wiki/stress.test.js.map +1 -1
  214. package/dashboard/dist-server/dashboard/src/server/wiki/virtual-wiki-adapters.js +9 -0
  215. package/dashboard/dist-server/dashboard/src/server/wiki/virtual-wiki-adapters.js.map +1 -1
  216. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js +9 -4
  217. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js.map +1 -1
  218. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-types.d.ts +3 -0
  219. package/dashboard/dist-server/dashboard/src/server/wiki/writer.d.ts +4 -0
  220. package/dashboard/dist-server/dashboard/src/server/wiki/writer.js +5 -3
  221. package/dashboard/dist-server/dashboard/src/server/wiki/writer.js.map +1 -1
  222. package/dashboard/dist-server/src/types/index.d.ts +2 -0
  223. package/dist/src/agents/cli-agent-runner.d.ts +2 -0
  224. package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
  225. package/dist/src/agents/cli-agent-runner.js +3 -0
  226. package/dist/src/agents/cli-agent-runner.js.map +1 -1
  227. package/dist/src/cli.js +1 -0
  228. package/dist/src/cli.js.map +1 -1
  229. package/dist/src/commands/delegate.d.ts +2 -0
  230. package/dist/src/commands/delegate.d.ts.map +1 -1
  231. package/dist/src/commands/delegate.js +3 -1
  232. package/dist/src/commands/delegate.js.map +1 -1
  233. package/dist/src/commands/hooks.d.ts.map +1 -1
  234. package/dist/src/commands/hooks.js +55 -5
  235. package/dist/src/commands/hooks.js.map +1 -1
  236. package/dist/src/commands/install-backend.d.ts.map +1 -1
  237. package/dist/src/commands/install-backend.js +2 -1
  238. package/dist/src/commands/install-backend.js.map +1 -1
  239. package/dist/src/commands/install.d.ts.map +1 -1
  240. package/dist/src/commands/install.js +16 -1
  241. package/dist/src/commands/install.js.map +1 -1
  242. package/dist/src/commands/kg.d.ts +1 -1
  243. package/dist/src/commands/kg.d.ts.map +1 -1
  244. package/dist/src/commands/kg.js +285 -112
  245. package/dist/src/commands/kg.js.map +1 -1
  246. package/dist/src/commands/knowhow.d.ts.map +1 -1
  247. package/dist/src/commands/knowhow.js +28 -37
  248. package/dist/src/commands/knowhow.js.map +1 -1
  249. package/dist/src/commands/ralph.js +1 -1
  250. package/dist/src/commands/ralph.js.map +1 -1
  251. package/dist/src/commands/search.d.ts +36 -0
  252. package/dist/src/commands/search.d.ts.map +1 -0
  253. package/dist/src/commands/search.js +120 -0
  254. package/dist/src/commands/search.js.map +1 -0
  255. package/dist/src/commands/spec.d.ts.map +1 -1
  256. package/dist/src/commands/spec.js +59 -8
  257. package/dist/src/commands/spec.js.map +1 -1
  258. package/dist/src/commands/update.d.ts.map +1 -1
  259. package/dist/src/commands/update.js +7 -0
  260. package/dist/src/commands/update.js.map +1 -1
  261. package/dist/src/commands/wiki.d.ts.map +1 -1
  262. package/dist/src/commands/wiki.js +36 -9
  263. package/dist/src/commands/wiki.js.map +1 -1
  264. package/dist/src/config/cli-tools-config.d.ts +18 -0
  265. package/dist/src/config/cli-tools-config.d.ts.map +1 -1
  266. package/dist/src/config/cli-tools-config.js +31 -0
  267. package/dist/src/config/cli-tools-config.js.map +1 -1
  268. package/dist/src/core/component-defs.d.ts +13 -0
  269. package/dist/src/core/component-defs.d.ts.map +1 -1
  270. package/dist/src/core/component-defs.js +37 -85
  271. package/dist/src/core/component-defs.js.map +1 -1
  272. package/dist/src/core/skill-converter.d.ts +25 -0
  273. package/dist/src/core/skill-converter.d.ts.map +1 -0
  274. package/dist/src/core/skill-converter.js +605 -0
  275. package/dist/src/core/skill-converter.js.map +1 -0
  276. package/dist/src/graph/codegraph-adapter.d.ts +147 -0
  277. package/dist/src/graph/codegraph-adapter.d.ts.map +1 -0
  278. package/dist/src/graph/codegraph-adapter.js +266 -0
  279. package/dist/src/graph/codegraph-adapter.js.map +1 -0
  280. package/dist/src/hooks/constants.d.ts +4 -0
  281. package/dist/src/hooks/constants.d.ts.map +1 -1
  282. package/dist/src/hooks/constants.js +14 -1
  283. package/dist/src/hooks/constants.js.map +1 -1
  284. package/dist/src/hooks/context-format.d.ts +46 -0
  285. package/dist/src/hooks/context-format.d.ts.map +1 -0
  286. package/dist/src/hooks/context-format.js +58 -0
  287. package/dist/src/hooks/context-format.js.map +1 -0
  288. package/dist/src/hooks/index.d.ts +2 -0
  289. package/dist/src/hooks/index.d.ts.map +1 -1
  290. package/dist/src/hooks/index.js +2 -0
  291. package/dist/src/hooks/index.js.map +1 -1
  292. package/dist/src/hooks/keyword-spec-injector.d.ts +1 -1
  293. package/dist/src/hooks/keyword-spec-injector.d.ts.map +1 -1
  294. package/dist/src/hooks/keyword-spec-injector.js +92 -7
  295. package/dist/src/hooks/keyword-spec-injector.js.map +1 -1
  296. package/dist/src/hooks/kg-context-injector.d.ts +19 -0
  297. package/dist/src/hooks/kg-context-injector.d.ts.map +1 -0
  298. package/dist/src/hooks/kg-context-injector.js +139 -0
  299. package/dist/src/hooks/kg-context-injector.js.map +1 -0
  300. package/dist/src/hooks/kg-sync-hook.d.ts +22 -0
  301. package/dist/src/hooks/kg-sync-hook.d.ts.map +1 -0
  302. package/dist/src/hooks/kg-sync-hook.js +139 -0
  303. package/dist/src/hooks/kg-sync-hook.js.map +1 -0
  304. package/dist/src/hooks/plugins/spec-injection-plugin.js +2 -2
  305. package/dist/src/hooks/plugins/spec-injection-plugin.js.map +1 -1
  306. package/dist/src/hooks/skill-context.d.ts.map +1 -1
  307. package/dist/src/hooks/skill-context.js +0 -1
  308. package/dist/src/hooks/skill-context.js.map +1 -1
  309. package/dist/src/hooks/spec-injector.d.ts.map +1 -1
  310. package/dist/src/hooks/spec-injector.js +66 -13
  311. package/dist/src/hooks/spec-injector.js.map +1 -1
  312. package/dist/src/hooks/statusline.d.ts +8 -1
  313. package/dist/src/hooks/statusline.d.ts.map +1 -1
  314. package/dist/src/hooks/statusline.js +45 -29
  315. package/dist/src/hooks/statusline.js.map +1 -1
  316. package/dist/src/hooks/wiki-role-loader.js +1 -1
  317. package/dist/src/hooks/wiki-role-loader.js.map +1 -1
  318. package/dist/src/ralph/cmd-skills.d.ts.map +1 -1
  319. package/dist/src/ralph/cmd-skills.js +9 -2
  320. package/dist/src/ralph/cmd-skills.js.map +1 -1
  321. package/dist/src/ralph/skill-scanner.d.ts +1 -1
  322. package/dist/src/ralph/skill-scanner.d.ts.map +1 -1
  323. package/dist/src/ralph/skill-scanner.js +14 -0
  324. package/dist/src/ralph/skill-scanner.js.map +1 -1
  325. package/dist/src/ralph/status-schema.d.ts +1 -1
  326. package/dist/src/ralph/status-schema.d.ts.map +1 -1
  327. package/dist/src/tools/spec-entry-parser.d.ts +2 -1
  328. package/dist/src/tools/spec-entry-parser.d.ts.map +1 -1
  329. package/dist/src/tools/spec-entry-parser.js +7 -4
  330. package/dist/src/tools/spec-entry-parser.js.map +1 -1
  331. package/dist/src/tools/spec-loader.d.ts.map +1 -1
  332. package/dist/src/tools/spec-loader.js +27 -3
  333. package/dist/src/tools/spec-loader.js.map +1 -1
  334. package/dist/src/tools/spec-writer.d.ts +10 -1
  335. package/dist/src/tools/spec-writer.d.ts.map +1 -1
  336. package/dist/src/tools/spec-writer.js +86 -7
  337. package/dist/src/tools/spec-writer.js.map +1 -1
  338. package/dist/src/tools/store-knowhow.d.ts.map +1 -1
  339. package/dist/src/tools/store-knowhow.js +27 -7
  340. package/dist/src/tools/store-knowhow.js.map +1 -1
  341. package/dist/src/tui/install-ui/ExecutionView.d.ts.map +1 -1
  342. package/dist/src/tui/install-ui/ExecutionView.js +7 -1
  343. package/dist/src/tui/install-ui/ExecutionView.js.map +1 -1
  344. package/dist/src/tui/install-ui/InstallExecution.d.ts.map +1 -1
  345. package/dist/src/tui/install-ui/InstallExecution.js +5 -1
  346. package/dist/src/tui/install-ui/InstallExecution.js.map +1 -1
  347. package/dist/src/types/index.d.ts +2 -0
  348. package/dist/src/types/index.d.ts.map +1 -1
  349. package/dist/src/utils/cli-format.d.ts +6 -0
  350. package/dist/src/utils/cli-format.d.ts.map +1 -1
  351. package/dist/src/utils/cli-format.js +25 -0
  352. package/dist/src/utils/cli-format.js.map +1 -1
  353. package/dist/src/utils/update-notices.js +29 -0
  354. package/dist/src/utils/update-notices.js.map +1 -1
  355. package/package.json +5 -2
  356. package/templates/workflows/specs/node-catalog.md +0 -2
  357. package/workflows/analyze.md +9 -4
  358. package/workflows/auto-test.md +2 -2
  359. package/workflows/business-test.md +1 -1
  360. package/workflows/claude-instructions.md +23 -11
  361. package/workflows/codex-instructions.md +2 -3
  362. package/workflows/execute.md +153 -7
  363. package/workflows/fork.md +1 -1
  364. package/workflows/integration-test.md +1 -1
  365. package/workflows/maestro-super.md +1 -1
  366. package/workflows/maestro.codex.md +18 -34
  367. package/workflows/maestro.md +34 -42
  368. package/workflows/review.md +1 -1
  369. package/workflows/status.md +2 -2
  370. package/workflows/swarm/wf-verify.js +1 -1
  371. package/workflows/test-gen.md +2 -2
  372. package/workflows/test.md +1 -1
  373. package/workflows/updates/README.md +41 -0
  374. package/workflows/updates/update-v3-setup.md +79 -0
  375. package/workflows/verify.md +7 -1
  376. package/.agents/skills/learn-retro/SKILL.md +0 -159
  377. package/.agents/skills/maestro-learn/SKILL.md +0 -142
  378. package/.agents/skills/maestro-verify/SKILL.md +0 -146
  379. package/.agents/skills/manage-codebase-refresh/SKILL.md +0 -62
  380. package/.agents/skills/manage-learn/SKILL.md +0 -67
  381. package/.agents/skills/wiki-connect/SKILL.md +0 -64
  382. package/.agents/skills/wiki-digest/SKILL.md +0 -70
  383. package/.agy/skills/learn-retro/SKILL.md +0 -159
  384. package/.agy/skills/maestro-learn/SKILL.md +0 -142
  385. package/.agy/skills/maestro-verify/SKILL.md +0 -146
  386. package/.agy/skills/manage-codebase-refresh/SKILL.md +0 -62
  387. package/.agy/skills/manage-learn/SKILL.md +0 -64
  388. package/.agy/skills/wiki-connect/SKILL.md +0 -64
  389. package/.agy/skills/wiki-digest/SKILL.md +0 -70
  390. package/.claude/commands/learn-retro.md +0 -157
  391. package/.claude/commands/maestro-learn.md +0 -140
  392. package/.claude/commands/maestro-verify.md +0 -144
  393. package/.claude/commands/manage-codebase-refresh.md +0 -60
  394. package/.claude/commands/manage-learn.md +0 -65
  395. package/.claude/commands/wiki-connect.md +0 -62
  396. package/.claude/commands/wiki-digest.md +0 -68
  397. package/.codex/skills/maestro-verify/SKILL.md +0 -254
  398. package/chains/execute-verify.json +0 -59
  399. package/chains/singles/verify.json +0 -26
@@ -52,7 +52,7 @@ Remaining → intent (new session)
52
52
  3. **执行 step 通过 `maestro ralph next` 加载** — CLI 解析 frontmatter + `<required_reading>` + `<deferred_reading>`、读 required 全文、拼 prompt、写 `step.load.*` + `active_step_index` + `step.status="running"`
53
53
  4. **decision step 内联评估** — 不 handoff、不调 ralph next;按 `step.decision` 分派 A_DECISION_*
54
54
  5. **每个 step 必须 `completion_confirmed: true`** — 由 `maestro ralph complete N --status DONE|DONE_WITH_CONCERNS` 写入;STATUS 仅 `DONE | DONE_WITH_CONCERNS | NEEDS_RETRY | BLOCKED`
55
- 6. **command_path 在 A_BUILD_STEPS 解析** — 通过 `maestro ralph skills --platform claude --json --quiet` 预校验(project 覆盖 global,只扫描 `.claude/commands/`);未命中标 `command_scope = "missing"`
55
+ 6. **command_path 在 A_BUILD_STEPS 解析** — 通过 `maestro ralph skills --platform agy --json --quiet` 预校验(project 覆盖 global,只扫描 `.claude/commands/`);未命中标 `command_scope = "missing"`
56
56
  7. **required reading 由 CLI 加载** — 缺失 → 退出码 1(E007)→ pause session;ralph build 阶段不读 .md 内容
57
57
  8. **active_step_index 一致性由 CLI 维护** — 同一 session 同时最多一个 step 持有;E008/E009 直接退出
58
58
  9. **Decomposition is outcome-oriented** — sub-goals 为可观测交付,禁止 lifecycle 复刻;`/goal` 由用户输入
@@ -175,7 +175,7 @@ S_TICK_EXEC: Entry: A_EXEC_STEP
175
175
  → S_HANDLE_FAIL WHEN: ralph complete with NEEDS_RETRY|BLOCKED
176
176
 
177
177
  S_TICK_DECISION: (gate 名取自 `step.decision`)
178
- → S_TICK_APPLY WHEN: quality-gate (post-verify, post-business-test, post-review, post-test)
178
+ → S_TICK_APPLY WHEN: quality-gate (post-execute, post-business-test, post-review, post-test)
179
179
  DO: A_DELEGATE_EVALUATE
180
180
  → S_TICK_APPLY WHEN: goal-gate (post-goal-audit)
181
181
  DO: A_GOAL_AUDIT_EVALUATE
@@ -412,8 +412,7 @@ narrow → derive defaults from intent + codebase, skip questions.
412
412
  | roadmap | `maestro-roadmap --from analyze:{analyze_macro_id}` | *(same)* | — | all |
413
413
  | analyze | `maestro-analyze {phase}` | `maestro-analyze` | — | all |
414
414
  | plan | `maestro-plan {phase}` *(scope=phase)* / `maestro-plan --from analyze:{analyze_macro_id}` *(scope=standalone)* / `maestro-plan --from blueprint:{blueprint_id}` *(scope=standalone)* | `maestro-plan` | — | all |
415
- | execute | `maestro-execute {phase}` | `maestro-execute` | | all |
416
- | verify | `maestro-verify {phase}` | `maestro-verify` | `post-verify` | all |
415
+ | execute | `maestro-execute {phase}` | `maestro-execute` | `post-execute` | all |
417
416
  | business-test | `quality-auto-test {phase}` | `quality-auto-test` | `post-business-test` | full only |
418
417
  | review | `quality-review {phase}` | `quality-review` | `post-review` | all (quick: append `--tier quick`) |
419
418
  | test-gen | `quality-auto-test {phase}` | `quality-auto-test` | — | full / standard if coverage<80% |
@@ -435,7 +434,7 @@ narrow → derive defaults from intent + codebase, skip questions.
435
434
  8. **占位符**:independent 保留 `{phase}` `{intent}`;unified 不带 `{phase}`
436
435
  9. **command_path 解析**(执行 step):
437
436
  - skill 名 = args 前的第一个 token
438
- - `run_command("maestro ralph skills --platform claude --json --quiet")` 拉取 global + project(project 覆盖 global),匹配 skill 名:
437
+ - `run_command("maestro ralph skills --platform agy --json --quiet")` 拉取 global + project(project 覆盖 global),匹配 skill 名:
439
438
  - 命中 → `command_scope = "global" | "project"`,`command_path = <绝对路径>`
440
439
  - 未命中 → `command_scope = "missing"`, `command_path = null` → A_CREATE_SESSION raise E006
441
440
  10. **每个 step 初始化** `completion_confirmed: false`, `completion_status: null`, `completion_evidence: null`, `deferred_reads: []`, `load: null`
@@ -542,7 +541,7 @@ Write enriched args back to status.json.
542
541
  3. Map result files:
543
542
  | Decision | Files |
544
543
  |----------|-------|
545
- | post-verify | verification.json |
544
+ | post-execute | verification.json |
546
545
  | post-business-test | .tests/auto-test/report.json |
547
546
  | post-review | review.json |
548
547
  | post-test | uat.md, .tests/test-results.json |
@@ -715,8 +714,7 @@ Display: `[{index}/{total}] ✗ {step.skill} 失败,会话已暂停。/maestro
715
714
 
716
715
  [✓] 0. maestro-plan 1 [global]
717
716
  [✓] 1. maestro-execute 1 [project]
718
- [✓] 2. maestro-verify 1 [global]
719
- [✓] 3. ◆ post-verify [decision]
717
+ [✓] 2. ◆ post-execute [decision]
720
718
  ...
721
719
  ============================================================
722
720
  ```
@@ -791,13 +789,12 @@ Display: `[{index}/{total}] ✗ {step.skill} 失败,会话已暂停。/maestro
791
789
 
792
790
  插入的执行 step 按 A_BUILD_STEPS 规则 9 解析 `command_path` + `command_scope`;`decision:*` 条目为 decision 节点。
793
791
 
794
- **post-verify:**
792
+ **post-execute:**
795
793
  ```
796
794
  quality-debug "{gap_summary}"
797
795
  maestro-plan --gaps {phase}
798
796
  maestro-execute {phase}
799
- maestro-verify {phase}
800
- decision:post-verify {retry+1}
797
+ decision:post-execute {retry+1}
801
798
  ```
802
799
 
803
800
  **post-business-test:**
@@ -805,8 +802,7 @@ decision:post-verify {retry+1}
805
802
  quality-debug --from-business-test "{gap_summary}"
806
803
  maestro-plan --gaps {phase}
807
804
  maestro-execute {phase}
808
- maestro-verify {phase}
809
- decision:post-verify {retry: 0}
805
+ decision:post-execute {retry: 0}
810
806
  quality-auto-test {phase}
811
807
  decision:post-business-test {retry+1}
812
808
  ```
@@ -825,8 +821,7 @@ decision:post-review {retry+1}
825
821
  quality-debug --from-uat "{gap_summary}"
826
822
  maestro-plan --gaps {phase}
827
823
  maestro-execute {phase}
828
- maestro-verify {phase}
829
- decision:post-verify {retry: 0}
824
+ decision:post-execute {retry: 0}
830
825
  quality-auto-test {phase}
831
826
  decision:post-business-test {retry: 0}
832
827
  quality-review {phase}
@@ -841,7 +836,6 @@ decision:post-test {retry+1}
841
836
  # for each unmet sub-goal G{n}, scoped to target_phase:
842
837
  maestro-plan --gaps {target_phase} "G{n}: {gap}" [goal_ref: G{n}]
843
838
  maestro-execute {target_phase} [goal_ref: G{n}]
844
- maestro-verify {target_phase} [goal_ref: G{n}]
845
839
  # after all unmet groups inserted:
846
840
  decision:post-goal-audit {retry+1}
847
841
  ```
@@ -199,8 +199,7 @@ Display: `[{index}/{total}] ✗ {step.skill} 失败,会话已暂停。/maestro
199
199
 
200
200
  [✓] 0. maestro-plan 1 [global]
201
201
  [✓] 1. maestro-execute 1 [project]
202
- [✓] 2. maestro-verify 1 [global]
203
- [✓] 3. ◆ post-verify [decision]
202
+ [✓] 2. ◆ post-execute [decision]
204
203
  ...
205
204
  ============================================================
206
205
  ```
@@ -63,13 +63,13 @@ maestro-analyze ─┘ context-package.json
63
63
 
64
64
  maestro-roadmap → .workflow/roadmap.md (Milestone > Phase hierarchy)
65
65
 
66
- maestro-analyze {phase} → maestro-plan → maestro-execute → maestro-verify
66
+ maestro-analyze {phase} → maestro-plan → maestro-execute
67
67
  ```
68
68
 
69
69
  ### Pre-load
70
70
 
71
71
  1. **Specs**: `maestro spec load --category arch` — load architecture constraints for phase decomposition
72
- 2. **Wiki search**: `maestro wiki search "{requirement keywords}" --json` → prior knowledge
72
+ 2. **Wiki search**: `maestro search "{requirement keywords}" --json` → prior knowledge
73
73
  3. All optional — proceed without if unavailable
74
74
  </context>
75
75
 
@@ -94,6 +94,32 @@ Sub-modes:
94
94
  - **Revise** (`--revise`): Follow workflow roadmap.md "Mode: Revise" section
95
95
  - **Review** (`--review`): Follow workflow roadmap.md "Mode: Review" section
96
96
 
97
+ ### Phase Gates (MANDATORY, BLOCKING — Create mode)
98
+
99
+ **GATE 1: Input → Decomposition**
100
+ - REQUIRED: Requirement parsed with goal, constraints, stakeholders.
101
+ - REQUIRED: Upstream context loaded via --from (if specified).
102
+
103
+ **GATE 2: Decomposition → Refinement**
104
+ - REQUIRED: Milestones defined with deliverable targets.
105
+ - REQUIRED: Phases defined within milestones with dependencies.
106
+ - REQUIRED: Every Active requirement from project.md mapped to exactly one phase.
107
+ - REQUIRED: No circular dependencies in phase ordering.
108
+
109
+ **GATE 3: Refinement → Completion**
110
+ - REQUIRED: User approved roadmap (or auto-approved with -y).
111
+ - REQUIRED: `.workflow/roadmap.md` written with Milestone > Phase hierarchy.
112
+ - REQUIRED: Artifact registered in state.json with milestone entries.
113
+
114
+ ### Artifact Verification (before completion)
115
+
116
+ ```
117
+ REQUIRED_ARTIFACTS = [
118
+ ".workflow/roadmap.md" // Milestone > Phase hierarchy with progress table
119
+ ]
120
+ ```
121
+ If missing: DO NOT report completion.
122
+
97
123
  </execution>
98
124
 
99
125
  <completion>
@@ -25,7 +25,7 @@ Scripts: `~/.maestro/workflows/swarm/wf-*.js`
25
25
  | `wf-analyze` | maestro-analyze | explore → 6-dim scoring → **skeptic cross-verify** → **3-way advocacy (go/no-go/conditional) + referee** |
26
26
  | `wf-brainstorm` | maestro-brainstorm | multi-role analysis → **3-specialist cross-review** → **3-proposal competition** → **arbitrator** |
27
27
  | `wf-review` | quality-review | 6-dim scan → **3-vote adversarial verify (prosecutor/defense/judge)** → **3-perspective report + arbitrated verdict** |
28
- | `wf-verify` | maestro-verify | 3-layer + antipattern + convergence → **prosecutor vs defender debate** → **judge verdict** |
28
+ | `wf-verify` | maestro-execute (verification gate) | 3-layer + antipattern + convergence → **prosecutor vs defender debate** → **judge verdict** |
29
29
  | `wf-grill` | maestro-grill | explore → parallel branch stress → **meta-skeptic challenge** → **3-vote verdict (optimist/pessimist/realist)** |
30
30
  | `wf-plan` | maestro-plan | parallel context → **3-strategy competing proposals** → **judge panel scoring** → **3-critic adversarial check** |
31
31
  | `wf-execute` | maestro-execute | wave-based parallel execution → **adversarial convergence spot-check** → **3-vote status determination** |
@@ -227,7 +227,7 @@ Ralph 可以在 A_BUILD_STEPS 中将某些 step 的执行方式标记为 `swarm-
227
227
  "args": "--script wf-analyze {phase}",
228
228
  "stage": "analyze",
229
229
  "command_scope": "project",
230
- "command_path": "<resolved by maestro ralph skills>"
230
+ "command_path": "<resolved by maestro ralph skills --platform agy>"
231
231
  }
232
232
  ```
233
233
 
@@ -67,7 +67,7 @@ Parse $ARGUMENTS to determine mode:
67
67
  - Analyze improvement points (step splitting, prerequisites, error handling)
68
68
 
69
69
  **Promote mode** (existing knowhow → tool):
70
- - Locate document: `maestro wiki list --keyword <name>` or by path in `.workflow/knowhow/`
70
+ - Locate document: `maestro search "<name>" --type knowhow` or by path in `.workflow/knowhow/`
71
71
  - Read document, verify it contains actionable steps (numbered list or ## Steps section)
72
72
  - If no actionable steps, suggest extract mode instead
73
73
  - Determine category (Step 3) and summary ("Use when ...")
@@ -130,7 +130,7 @@ summary: "Use when <timing>. <scope description>"
130
130
  **Optionally register spec ref entry** for index discoverability:
131
131
  ```bash
132
132
  maestro spec add <category> "<title>" "Use when <timing>. <scope summary>" --keywords "<csv>" \
133
- --ref "knowhow/RCP-<slug>.md" --knowhow-type recipe
133
+ --description "<one-line summary>" --ref "knowhow/RCP-<slug>.md" --knowhow-type recipe
134
134
  ```
135
135
 
136
136
  ### Step 6: Verify
@@ -57,6 +57,26 @@ If specs not initialized, continue without — the workflow still produces valid
57
57
  Route to `~/.maestro/workflows/ui-codify.md` and follow completely.
58
58
 
59
59
  The workflow orchestrates 4 phases with deferred loading of phase-specific workflow files. Each phase reads its workflow file only when execution reaches that phase.
60
+
61
+ ### Phase Gates (MANDATORY, BLOCKING)
62
+
63
+ **GATE Phase 1 → Phase 2**: Source path validated, file discovery completed. design-tokens.json generated.
64
+ **GATE Phase 2 → Phase 3**: layout-templates.json generated with component patterns.
65
+ **GATE Phase 3 → Phase 4**: preview.html + preview.css generated as interactive showcase.
66
+ **GATE Phase 4 → Completion**: knowhow-manifest.json created. codify-to-knowhow called and completed.
67
+
68
+ ### Artifact Verification (before completion)
69
+
70
+ ```
71
+ REQUIRED_ARTIFACTS = [
72
+ "design-tokens.json", // Phase 1
73
+ "layout-templates.json", // Phase 2
74
+ "preview.html", // Phase 3
75
+ "preview.css", // Phase 3
76
+ "knowhow-manifest.json" // Phase 4
77
+ ]
78
+ ```
79
+ If any artifact is missing: DO NOT report completion.
60
80
  </execution>
61
81
 
62
82
  <error_codes>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: maestro-update
3
3
  description: Detect version, preview changes, apply workflow upgrades
4
- argument-hint: [--dry-run] [--force]
4
+ argument-hint: [--dry-run] [--force] [--setup-only]
5
5
  allowed-tools:
6
6
  - ask_question
7
7
  - grep_search
@@ -11,9 +11,13 @@ allowed-tools:
11
11
  - write_to_file
12
12
  ---
13
13
  <purpose>
14
- Detect the current `.workflow/` schema version, show available migrations, and interactively apply them step-by-step. Uses a migration registry that supports incremental version upgrades (e.g., 1.0 → 2.0 → 3.0).
14
+ Version router detect current version, run schema migration to latest, then follow the version-specific smart upgrade workflow.
15
15
 
16
- Each migration step is previewed before execution. The user confirms each step in a loop.
16
+ Migration scripts live in two layers:
17
+ - **Schema** (`src/migrations/`): code-level state.json transforms, auto-chained by registry
18
+ - **Workflow** (`~/.maestro/workflows/updates/`): version-specific upgrade guides with environment setup
19
+
20
+ Schema migrations handle the mechanical version bump. Workflow docs handle the smart part — what the user needs to know, configure, or verify for that version. The router runs schema first, then loads the matching workflow doc.
17
21
  </purpose>
18
22
 
19
23
  <context>
@@ -21,131 +25,80 @@ $ARGUMENTS — optional flags.
21
25
 
22
26
  **Flags:**
23
27
  - `--dry-run` -- Preview migration plan without executing
24
- - `--force` -- Skip confirmation prompts (apply all pending migrations)
28
+ - `--force` -- Skip confirmation prompts
29
+ - `--setup-only` -- Skip schema migration, run only the setup for current version
25
30
 
26
- **Migration registry:** `src/migrations/`
27
- - Each migration is a standalone file (e.g., `v1-to-v2.ts`) exporting a `MigrationDef`
28
- - All migrations are registered via `src/migrations/index.ts`
29
- - Registry auto-chains: detects current version → walks chain → applies in order
30
- - To add a new migration: create `src/migrations/v{N}-to-v{N+1}.ts`, register in `index.ts`
31
+ **Version source:** `.workflow/state.json` → `version` field
31
32
 
32
- **CLI runner:** `src/migrations/run.ts`
33
- - Executable entrypoint: `npx tsx src/migrations/run.ts [root] [--dry-run] [--force] [--json]`
34
- - Outputs JSON (with `--json`) or human-readable text
33
+ **Workflow docs:** `~/.maestro/workflows/updates/`
34
+ - `update-v{TO}-setup.md` post-migration setup for version {TO}
35
35
 
36
- **State version source:** `.workflow/state.json` `version` field
36
+ **Schema registry:** `src/migrations/` handles all intermediate version bumps automatically
37
37
  </context>
38
38
 
39
39
  <execution>
40
40
 
41
- ### Step 1: Detect Current State
41
+ ### Step 1: Detect Version
42
42
 
43
43
  ```
44
- 1. Read .workflow/state.json
45
- 2. Extract version field (default "1.0" if missing)
46
- 3. Display:
47
-
48
- === Maestro Workflow Update ===
49
- Project: {project_name}
50
- Version: {version}
51
- Location: {.workflow/ path}
44
+ 1. Read .workflow/state.json → extract version (default "1.0" if missing)
45
+ 2. Display:
46
+ === Maestro Update ===
47
+ Current version: v{version}
52
48
  ```
53
49
 
54
- ### Step 2: Dry-Run Preview
55
-
56
- Run the migration CLI in dry-run + JSON mode to get the full plan:
50
+ IF `--setup-only`:
51
+ → Glob: ~/.maestro/workflows/updates/update-v{version}-setup.md
52
+ IF exists: follow that document completely, then EXIT
53
+ → IF not exists: display "No setup script for v{version}" → EXIT
57
54
 
58
- ```bash
59
- npx tsx src/migrations/run.ts "$(pwd)" --dry-run --json
60
- ```
55
+ ### Step 2: Check for Updates
61
56
 
62
- Parse the JSON output. If status is `up-to-date`:
63
57
  ```
64
- Already up to date (v{version})
65
- ```
66
- EXIT
67
-
68
- Otherwise display the migration plan:
58
+ 1. Run: npx tsx src/migrations/run.ts "$(pwd)" --dry-run --json
59
+ 2. Parse JSON output
60
+ 3. IF status = "up-to-date":
61
+ Display "Already up to date (v{version})"
62
+ Glob: ~/.maestro/workflows/updates/update-v{version}-setup.md
63
+ → IF exists: ask_question "Run setup for v{version}?" → load and follow
64
+ → EXIT
65
+
66
+ 4. Display target:
67
+ Update available: v{current} → v{target}
68
+ Schema migrations: {N} step(s) (handled automatically)
69
69
  ```
70
- Pending Migrations ({N} step(s)):
71
-
72
- 1. [v{from} → v{to}] {name}
73
- {description}
74
-
75
- 2. [v{from} → v{to}] {name}
76
- {description}
77
- ```
78
-
79
- If `--dry-run` flag was passed by user → display plan and EXIT.
80
70
 
81
- ### Step 3: Interactive Confirmation Loop
71
+ IF `--dry-run` display info and EXIT.
82
72
 
83
- For each migration step (unless `--force`):
73
+ ### Step 3: Execute
84
74
 
85
75
  ```
86
- LOOP for step_index = 1 to N:
76
+ 1. Confirm (unless --force):
77
+ ask_question: "Upgrade v{current} → v{target}?"
78
+ Options: [执行 / 取消]
87
79
 
88
- Display:
89
- --- Step {step_index}/{N}: {name} ---
90
- Version: v{from} → v{to}
80
+ 2. Create backup:
81
+ Bash: cp .workflow/state.json .workflow/state.json.backup-v{current}-{timestamp}
91
82
 
92
- Changes:
93
- {description, indented}
83
+ 3. Run schema migration (handles all intermediate steps automatically):
84
+ Bash: npx tsx src/migrations/run.ts "$(pwd)" --json
85
+ Parse result, display changes.
94
86
 
95
- IF NOT --force:
96
- ask_question: "Apply this migration?"
97
- Options: [yes / skip / abort]
87
+ 4. IF failed → display backup restore command → EXIT
98
88
 
99
- - "yes" → proceed to Step 4 (execute)
100
- - "skip" → WARN "Skipping may break the migration chain"
101
- continue to next step
102
- - "abort" → display summary of what was applied so far → EXIT
89
+ 5. Load version-specific setup:
90
+ Read: ~/.maestro/workflows/updates/update-v{target}-setup.md
91
+ IF exists follow completely (hooks, deps, knowledge system config)
103
92
 
104
- IF --force:
105
- → proceed to Step 4 (execute)
93
+ 6. Display: "v{current} → v{target}: done"
106
94
  ```
107
95
 
108
- ### Step 4: Execute Single Migration
96
+ ### Step 4: Summary
109
97
 
110
98
  ```
111
- 1. Create backup:
112
- Bash: cp .workflow/state.json .workflow/state.json.backup-v{from}-{timestamp}
113
-
114
- 2. Run migration:
115
- Bash: npx tsx src/migrations/run.ts "$(pwd)" --json
116
-
117
- NOTE: The runner executes ALL pending migrations. For step-by-step control,
118
- read state.json, call the migration function directly, or use the runner
119
- which stops on first failure.
120
-
121
- 3. Parse result JSON and display:
122
-
123
- {status_icon} Step {N} completed: {name}
124
- Summary: {summary}
125
- Changes:
126
- - {change_1}
127
- - {change_2}
128
- - ...
129
-
130
- 4. If failed:
131
- Display: "Migration failed: {summary}"
132
- Display: "Backup available at: {backup_path}"
133
- Display: "Restore with: cp {backup_path} .workflow/state.json"
134
- → EXIT
135
-
136
- 5. Continue loop to next step
137
- ```
138
-
139
- ### Step 5: Summary
140
-
141
- After all steps completed (or user aborted):
142
-
143
- ```
144
- === Migration Complete ===
145
- Applied: {applied_count} / {total_count} migration(s)
146
- Skipped: {skipped_count}
147
- Version: v{original} → v{final}
148
- Backup: .workflow/state.json.backup-v{original}-{timestamp}
99
+ === Update Complete ===
100
+ Version: v{current} v{target}
101
+ Backup: .workflow/state.json.backup-v{current}-{timestamp}
149
102
 
150
103
  Next steps:
151
104
  /manage-status -- Verify project state
@@ -154,22 +107,12 @@ Next steps:
154
107
 
155
108
  </execution>
156
109
 
157
- <error_codes>
158
- | Code | Severity | Condition | Recovery |
159
- |------|----------|-----------|----------|
160
- | E001 | error | .workflow/state.json not found | Run /maestro-init first |
161
- | E002 | error | state.json parse error | Check file for corruption |
162
- | E003 | error | Migration function failed | Restore from backup |
163
- | W001 | warning | Skipped migration may break version chain | Re-run /maestro-update later |
164
- | W002 | warning | tsx not available | Install tsx: npm i -D tsx |
165
- </error_codes>
166
-
167
110
  <success_criteria>
168
111
  - [ ] Current version detected from state.json
169
- - [ ] Dry-run preview shows full migration plan without execution
170
- - [ ] Each step confirmed interactively (unless --force)
171
- - [ ] Backup created before each migration
172
- - [ ] Migration executed and result displayed with change list
173
- - [ ] Abort stops cleanly with partial summary
174
- - [ ] Summary shows applied/skipped counts and version change
112
+ - [ ] Schema migrations run automatically (no manual intermediate steps)
113
+ - [ ] Backup created before migration
114
+ - [ ] Version-specific setup doc loaded and followed (if exists)
115
+ - [ ] --setup-only runs only setup for current version
116
+ - [ ] --dry-run previews without executing
117
+ - [ ] Summary shows version change and backup path
175
118
  </success_criteria>
@@ -55,9 +55,9 @@ Follow '~/.maestro/workflows/codebase-rebuild.md' completely.
55
55
 
56
56
  **Next-step routing on completion:**
57
57
  - View updated project state → `/manage-status`
58
- - Incremental updates later → `/manage-codebase-refresh`
58
+ - Incremental updates later → `/quality-sync`
59
59
  - Verify KG stats → `maestro kg stats`
60
- - Verify wiki integration → `maestro wiki list --keyword kg`
60
+ - Verify wiki integration → `maestro search "kg" --type knowhow`
61
61
  - Future change impact → `maestro kg diff-wiki`
62
62
  </execution>
63
63
 
@@ -82,6 +82,6 @@ Follow '~/.maestro/workflows/codebase-rebuild.md' completely.
82
82
  - [ ] KG pipeline executed (`maestro kg index`)
83
83
  - [ ] knowledge-graph.json generated in .workflow/codebase/
84
84
  - [ ] KG nodes indexed as virtual wiki entries (automatic via WikiIndexer on next wiki access)
85
- - [ ] Next step routing: `/manage-status` or `/manage-codebase-refresh` for incremental updates later
85
+ - [ ] Next step routing: `/manage-status` or `/quality-sync` for incremental updates later
86
86
  - [ ] KG impact check available: `maestro kg diff-wiki` for future change impact analysis
87
87
  </success_criteria>
@@ -55,7 +55,7 @@ Extraction patterns, classification rules, routing infrastructure, and fragment
55
55
 
56
56
  **Next-step routing on completion:**
57
57
  - Review wiki entries → `maestro wiki list --type note`
58
- - Connect wiki graph → `/wiki-connect --fix`
58
+ - Connect wiki graph → `/manage-wiki connect --fix`
59
59
  - Triage issues → `/manage-issue list --source harvest`
60
60
  - View specs → `/spec-load --role implement`
61
61
  - Full retrospective → `/quality-retrospective`
@@ -12,9 +12,11 @@ allowed-tools:
12
12
  ---
13
13
  <purpose>
14
14
  Unified memory management across two stores:
15
- 1. **Workflow knowhow** (`.workflow/knowhow/`) — Session compacts and tips with JSON index, created by `manage-knowhow-capture`
15
+ 1. **Workflow knowhow** (`.workflow/knowhow/`) — Session compacts, tips, insights, and all reusable knowledge, created by `manage-knowhow-capture`
16
16
  2. **System memory** (`~/.claude/projects/{project}/memory/`) — Claude Code auto-memory (MEMORY.md + topic files), persists across conversations
17
17
 
18
+ Also scans `.workflow/specs/learnings.md` for legacy insight entries (backward compat with former `manage-learn`).
19
+
18
20
  Provides list/search/view/edit/delete/prune operations. Default store is `all` (show both).
19
21
  </purpose>
20
22
 
@@ -12,7 +12,7 @@ allowed-tools:
12
12
  ---
13
13
  <purpose>
14
14
  Capture reusable knowledge into `.workflow/knowhow/` with type-specific structured fields.
15
- Auto-indexed by WikiIndexer (type=knowhow), searchable via `maestro knowhow search`.
15
+ Auto-indexed by WikiIndexer (type=knowhow), searchable via `maestro search --type knowhow`.
16
16
  </purpose>
17
17
 
18
18
  <required_reading>
@@ -37,8 +37,9 @@ $ARGUMENTS — type token + description + optional flags.
37
37
  | `asset`/`ast`/`资产`/`契约` | asset | AST- | assetType, codePaths, category |
38
38
  | `blueprint`/`blp`/`蓝图` | blueprint | BLP- | codePaths, category |
39
39
  | `document`/`doc`/`文档` | document | DOC- | (general fallback) |
40
+ | `insight`/`ins`/`洞察`/`经验` | insight | INS- | content, tags, phase (replaces former manage-learn) |
40
41
  | Short text + `--tag` | tip | TIP- | — |
41
- | No args | — | — | ask_question (9 options) |
42
+ | No args | — | — | ask_question (10 options) |
42
43
 
43
44
  **Output**: `.workflow/knowhow/{PREFIX}-{YYYYMMDD}-{HHMM}.md` with YAML frontmatter (title, type, category, created, tags, source, lang, status)
44
45
  </context>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: manage-wiki
3
3
  description: Manage wiki graph — health, cleanup, search, stats
4
- argument-hint: <subcommand: health|search|cleanup|stats> [query] [--fix] [--dry-run]
4
+ argument-hint: <subcommand: health|search|cleanup|stats|connect|digest> [query] [--fix] [--dry-run]
5
5
  allowed-tools:
6
6
  - ask_question
7
7
  - grep_search
@@ -11,9 +11,7 @@ allowed-tools:
11
11
  - write_to_file
12
12
  ---
13
13
  <purpose>
14
- 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.
15
-
16
- Complements `/wiki-connect` (link discovery) and `/wiki-digest` (synthesis) with operational tooling.
14
+ Unified wiki graph management command. Provides interactive access to wiki health monitoring, entry search, orphan cleanup, graph statistics, link discovery, and knowledge synthesis — the single entry point for all wiki graph operations.
17
15
  </purpose>
18
16
 
19
17
  <required_reading>
@@ -30,16 +28,26 @@ $ARGUMENTS — subcommand and optional flags.
30
28
  | `search <query>` | Interactive BM25 search with follow-up actions |
31
29
  | `cleanup` | Find and resolve orphans, broken links, stale entries |
32
30
  | `stats` | Graph statistics — type distribution, tag frequency, growth trends |
31
+ | `connect` | Find and link hidden connections — orphan rescue, missing links, transitive gaps |
32
+ | `digest [topic]` | Generate knowledge digest with theme clustering and gap analysis |
33
33
  | No args | Same as `health` |
34
34
 
35
35
  **Flags:**
36
36
  - `--type <type>` — Filter by wiki type: spec, knowhow, note, issue
37
- - `--fix` — Auto-fix issues found during cleanup (remove broken links, suggest connections)
37
+ - `--fix` — Auto-fix issues found during cleanup/connect (remove broken links, apply connections)
38
38
  - `--json` — Output in JSON format
39
+ - `--min-similarity N` — (connect) Minimum similarity threshold for link candidates
40
+ - `--max N` — (connect) Maximum number of suggestions
41
+ - `--format brief|full` — (digest) Output format
42
+ - `--recent N` — (digest) Scope to N most recent entries
43
+ - `--create-issues` — (digest) Create issues for identified knowledge gaps
39
44
  </context>
40
45
 
41
46
  <execution>
42
- Follow '~/.maestro/workflows/wiki-manage.md' completely.
47
+ **Subcommand routing:**
48
+ - `health|search|cleanup|stats` → Follow `~/.maestro/workflows/wiki-manage.md` completely.
49
+ - `connect` → Follow `~/.maestro/workflows/wiki-connect.md` completely (Stages 1-6).
50
+ - `digest` → Follow `~/.maestro/workflows/wiki-digest.md` completely (Stages 1-8).
43
51
  </execution>
44
52
 
45
53
  <error_codes>
@@ -53,9 +61,10 @@ Follow '~/.maestro/workflows/wiki-manage.md' completely.
53
61
  </error_codes>
54
62
 
55
63
  <success_criteria>
56
- - [ ] Subcommand parsed (health/search/cleanup/stats)
64
+ - [ ] Subcommand parsed (health/search/cleanup/stats/connect/digest)
57
65
  - [ ] Wiki data loaded via `maestro wiki` CLI
58
66
  - [ ] Results displayed in formatted output
59
- - [ ] If cleanup --fix: issues resolved and delta reported
67
+ - [ ] If cleanup/connect --fix: issues resolved and delta reported
68
+ - [ ] If digest: themes clustered, gaps identified, coverage heatmap generated
60
69
  - [ ] Next-step suggestions provided
61
70
  </success_criteria>
@@ -54,7 +54,7 @@ Flags, artifact context resolution, and output formats defined in workflow auto-
54
54
  1. **Test specs + tools**: Run `maestro spec load --category test` to load test conventions (framework, patterns, naming). Apply to all generated tests.
55
55
  2. **Coding specs**: Run `maestro spec load --category coding` to understand coding patterns for accurate test targeting.
56
56
  3. **Role Knowledge**:
57
- - Browse: `maestro wiki list --category test`
57
+ - Browse: `maestro search --category test`
58
58
  - Load task-relevant entries: `maestro wiki load <id1> [id2...]`
59
59
  4. All are optional — proceed without if unavailable.
60
60
  </context>
@@ -90,13 +90,13 @@ Append to state.json.artifacts[]:
90
90
  ```
91
91
 
92
92
  **Next-step routing on completion:**
93
- - Converged (>=95%) → `/maestro-verify {phase}`
93
+ - Converged (>=95%) → `/quality-review {phase}`
94
94
  - All requirements verified (spec source) → `/maestro-milestone-audit`
95
95
  - Bugs discovered → `/quality-debug --from-uat {phase}`
96
96
  - Max iter, >80% → `/quality-test {phase}` for manual UAT
97
97
  - Max iter, <80% → `/quality-debug {phase}`
98
98
  - Coverage still low → `/quality-auto-test {phase} --layer {missing}`
99
- - Re-run all pass → `/maestro-verify {phase}`
99
+ - Re-run all pass → `/quality-review {phase}`
100
100
  - Single pass, all pass → `/quality-test {phase}`
101
101
  </execution>
102
102
 
@@ -47,9 +47,9 @@ Extract conclusions from related artifacts that may affect this debug session
47
47
 
48
48
  ### Pre-load (optional, proceed without)
49
49
  - Codebase docs: `.workflow/codebase/ARCHITECTURE.md` → module boundaries
50
- - Wiki: `maestro wiki search "<symptom keywords>" --json` → prior investigations
50
+ - Wiki: `maestro search "<symptom keywords>" --json` → prior investigations
51
51
  - Specs: `maestro spec load --category debug --keyword "<symptom>"` → known issues/workarounds
52
- - Role knowledge: `maestro wiki list --category debug` → select relevant → `maestro wiki load`
52
+ - Role knowledge: `maestro search --category debug` → select relevant → `maestro wiki load`
53
53
 
54
54
  **Output**: `DEBUG_DIR = .workflow/scratch/{YYYYMMDD}-debug-P{N}-{slug}/` (P{N} = phase number when phase-scoped; omit for standalone). Output directory rules defined in workflow debug.md Step 4.
55
55
  </context>
@@ -83,13 +83,13 @@ Append to state.json.artifacts[]:
83
83
  | Non-obvious fix / workaround | "Record as learning?" | spec-add learning |
84
84
  | Root cause = architectural boundary violation | "Update architecture-constraints.md?" | spec-add arch |
85
85
 
86
- On confirm → `Skill("spec-add", "<category> <content>")`.
86
+ On confirm → `Skill("spec-add", "<category> <content> --description \"<summary>\"")`.
87
87
 
88
88
  **Next-step routing on completion:**
89
89
  - Root cause found, fix needed → `/maestro-plan {phase} --gaps`
90
90
  - Root cause found (from UAT), auto-fix → `/quality-test {phase} --auto-fix`
91
91
  - Inconclusive, need more info → `/quality-debug {issue} -c` (resume session)
92
- - Standalone fix already applied → `/maestro-verify {phase}`
92
+ - Standalone fix already applied → `/maestro-execute {phase}`
93
93
  </execution>
94
94
 
95
95
  <error_codes>