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
@@ -56,6 +56,26 @@ If specs not initialized, continue without — the workflow still produces valid
56
56
  Route to `~/.maestro/workflows/ui-codify.md` and follow completely.
57
57
 
58
58
  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.
59
+
60
+ ### Phase Gates (MANDATORY, BLOCKING)
61
+
62
+ **GATE Phase 1 → Phase 2**: Source path validated, file discovery completed. design-tokens.json generated.
63
+ **GATE Phase 2 → Phase 3**: layout-templates.json generated with component patterns.
64
+ **GATE Phase 3 → Phase 4**: preview.html + preview.css generated as interactive showcase.
65
+ **GATE Phase 4 → Completion**: knowhow-manifest.json created. codify-to-knowhow called and completed.
66
+
67
+ ### Artifact Verification (before completion)
68
+
69
+ ```
70
+ REQUIRED_ARTIFACTS = [
71
+ "design-tokens.json", // Phase 1
72
+ "layout-templates.json", // Phase 2
73
+ "preview.html", // Phase 3
74
+ "preview.css", // Phase 3
75
+ "knowhow-manifest.json" // Phase 4
76
+ ]
77
+ ```
78
+ If any artifact is missing: DO NOT report completion.
59
79
  </execution>
60
80
 
61
81
  <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
  - Read
7
7
  - Write
@@ -12,9 +12,13 @@ allowed-tools:
12
12
  - AskUserQuestion
13
13
  ---
14
14
  <purpose>
15
- 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).
15
+ Version router detect current version, run schema migration to latest, then follow the version-specific smart upgrade workflow.
16
16
 
17
- Each migration step is previewed before execution. The user confirms each step in a loop.
17
+ Migration scripts live in two layers:
18
+ - **Schema** (`src/migrations/`): code-level state.json transforms, auto-chained by registry
19
+ - **Workflow** (`~/.maestro/workflows/updates/`): version-specific upgrade guides with environment setup
20
+
21
+ 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.
18
22
  </purpose>
19
23
 
20
24
  <context>
@@ -22,131 +26,80 @@ $ARGUMENTS — optional flags.
22
26
 
23
27
  **Flags:**
24
28
  - `--dry-run` -- Preview migration plan without executing
25
- - `--force` -- Skip confirmation prompts (apply all pending migrations)
29
+ - `--force` -- Skip confirmation prompts
30
+ - `--setup-only` -- Skip schema migration, run only the setup for current version
26
31
 
27
- **Migration registry:** `src/migrations/`
28
- - Each migration is a standalone file (e.g., `v1-to-v2.ts`) exporting a `MigrationDef`
29
- - All migrations are registered via `src/migrations/index.ts`
30
- - Registry auto-chains: detects current version → walks chain → applies in order
31
- - To add a new migration: create `src/migrations/v{N}-to-v{N+1}.ts`, register in `index.ts`
32
+ **Version source:** `.workflow/state.json` → `version` field
32
33
 
33
- **CLI runner:** `src/migrations/run.ts`
34
- - Executable entrypoint: `npx tsx src/migrations/run.ts [root] [--dry-run] [--force] [--json]`
35
- - Outputs JSON (with `--json`) or human-readable text
34
+ **Workflow docs:** `~/.maestro/workflows/updates/`
35
+ - `update-v{TO}-setup.md` post-migration setup for version {TO}
36
36
 
37
- **State version source:** `.workflow/state.json` `version` field
37
+ **Schema registry:** `src/migrations/` handles all intermediate version bumps automatically
38
38
  </context>
39
39
 
40
40
  <execution>
41
41
 
42
- ### Step 1: Detect Current State
42
+ ### Step 1: Detect Version
43
43
 
44
44
  ```
45
- 1. Read .workflow/state.json
46
- 2. Extract version field (default "1.0" if missing)
47
- 3. Display:
48
-
49
- === Maestro Workflow Update ===
50
- Project: {project_name}
51
- Version: {version}
52
- Location: {.workflow/ path}
45
+ 1. Read .workflow/state.json → extract version (default "1.0" if missing)
46
+ 2. Display:
47
+ === Maestro Update ===
48
+ Current version: v{version}
53
49
  ```
54
50
 
55
- ### Step 2: Dry-Run Preview
56
-
57
- Run the migration CLI in dry-run + JSON mode to get the full plan:
51
+ IF `--setup-only`:
52
+ → Glob: ~/.maestro/workflows/updates/update-v{version}-setup.md
53
+ IF exists: follow that document completely, then EXIT
54
+ → IF not exists: display "No setup script for v{version}" → EXIT
58
55
 
59
- ```bash
60
- npx tsx src/migrations/run.ts "$(pwd)" --dry-run --json
61
- ```
56
+ ### Step 2: Check for Updates
62
57
 
63
- Parse the JSON output. If status is `up-to-date`:
64
58
  ```
65
- Already up to date (v{version})
66
- ```
67
- EXIT
68
-
69
- Otherwise display the migration plan:
59
+ 1. Run: npx tsx src/migrations/run.ts "$(pwd)" --dry-run --json
60
+ 2. Parse JSON output
61
+ 3. IF status = "up-to-date":
62
+ Display "Already up to date (v{version})"
63
+ Glob: ~/.maestro/workflows/updates/update-v{version}-setup.md
64
+ → IF exists: AskUserQuestion "Run setup for v{version}?" → load and follow
65
+ → EXIT
66
+
67
+ 4. Display target:
68
+ Update available: v{current} → v{target}
69
+ Schema migrations: {N} step(s) (handled automatically)
70
70
  ```
71
- Pending Migrations ({N} step(s)):
72
-
73
- 1. [v{from} → v{to}] {name}
74
- {description}
75
-
76
- 2. [v{from} → v{to}] {name}
77
- {description}
78
- ```
79
-
80
- If `--dry-run` flag was passed by user → display plan and EXIT.
81
71
 
82
- ### Step 3: Interactive Confirmation Loop
72
+ IF `--dry-run` display info and EXIT.
83
73
 
84
- For each migration step (unless `--force`):
74
+ ### Step 3: Execute
85
75
 
86
76
  ```
87
- LOOP for step_index = 1 to N:
77
+ 1. Confirm (unless --force):
78
+ AskUserQuestion: "Upgrade v{current} → v{target}?"
79
+ Options: [执行 / 取消]
88
80
 
89
- Display:
90
- --- Step {step_index}/{N}: {name} ---
91
- Version: v{from} → v{to}
81
+ 2. Create backup:
82
+ Bash: cp .workflow/state.json .workflow/state.json.backup-v{current}-{timestamp}
92
83
 
93
- Changes:
94
- {description, indented}
84
+ 3. Run schema migration (handles all intermediate steps automatically):
85
+ Bash: npx tsx src/migrations/run.ts "$(pwd)" --json
86
+ Parse result, display changes.
95
87
 
96
- IF NOT --force:
97
- AskUserQuestion: "Apply this migration?"
98
- Options: [yes / skip / abort]
88
+ 4. IF failed → display backup restore command → EXIT
99
89
 
100
- - "yes" → proceed to Step 4 (execute)
101
- - "skip" → WARN "Skipping may break the migration chain"
102
- continue to next step
103
- - "abort" → display summary of what was applied so far → EXIT
90
+ 5. Load version-specific setup:
91
+ Read: ~/.maestro/workflows/updates/update-v{target}-setup.md
92
+ IF exists follow completely (hooks, deps, knowledge system config)
104
93
 
105
- IF --force:
106
- → proceed to Step 4 (execute)
94
+ 6. Display: "v{current} → v{target}: done"
107
95
  ```
108
96
 
109
- ### Step 4: Execute Single Migration
97
+ ### Step 4: Summary
110
98
 
111
99
  ```
112
- 1. Create backup:
113
- Bash: cp .workflow/state.json .workflow/state.json.backup-v{from}-{timestamp}
114
-
115
- 2. Run migration:
116
- Bash: npx tsx src/migrations/run.ts "$(pwd)" --json
117
-
118
- NOTE: The runner executes ALL pending migrations. For step-by-step control,
119
- read state.json, call the migration function directly, or use the runner
120
- which stops on first failure.
121
-
122
- 3. Parse result JSON and display:
123
-
124
- {status_icon} Step {N} completed: {name}
125
- Summary: {summary}
126
- Changes:
127
- - {change_1}
128
- - {change_2}
129
- - ...
130
-
131
- 4. If failed:
132
- Display: "Migration failed: {summary}"
133
- Display: "Backup available at: {backup_path}"
134
- Display: "Restore with: cp {backup_path} .workflow/state.json"
135
- → EXIT
136
-
137
- 5. Continue loop to next step
138
- ```
139
-
140
- ### Step 5: Summary
141
-
142
- After all steps completed (or user aborted):
143
-
144
- ```
145
- === Migration Complete ===
146
- Applied: {applied_count} / {total_count} migration(s)
147
- Skipped: {skipped_count}
148
- Version: v{original} → v{final}
149
- Backup: .workflow/state.json.backup-v{original}-{timestamp}
100
+ === Update Complete ===
101
+ Version: v{current} v{target}
102
+ Backup: .workflow/state.json.backup-v{current}-{timestamp}
150
103
 
151
104
  Next steps:
152
105
  /manage-status -- Verify project state
@@ -155,22 +108,12 @@ Next steps:
155
108
 
156
109
  </execution>
157
110
 
158
- <error_codes>
159
- | Code | Severity | Condition | Recovery |
160
- |------|----------|-----------|----------|
161
- | E001 | error | .workflow/state.json not found | Run /maestro-init first |
162
- | E002 | error | state.json parse error | Check file for corruption |
163
- | E003 | error | Migration function failed | Restore from backup |
164
- | W001 | warning | Skipped migration may break version chain | Re-run /maestro-update later |
165
- | W002 | warning | tsx not available | Install tsx: npm i -D tsx |
166
- </error_codes>
167
-
168
111
  <success_criteria>
169
112
  - [ ] Current version detected from state.json
170
- - [ ] Dry-run preview shows full migration plan without execution
171
- - [ ] Each step confirmed interactively (unless --force)
172
- - [ ] Backup created before each migration
173
- - [ ] Migration executed and result displayed with change list
174
- - [ ] Abort stops cleanly with partial summary
175
- - [ ] Summary shows applied/skipped counts and version change
113
+ - [ ] Schema migrations run automatically (no manual intermediate steps)
114
+ - [ ] Backup created before migration
115
+ - [ ] Version-specific setup doc loaded and followed (if exists)
116
+ - [ ] --setup-only runs only setup for current version
117
+ - [ ] --dry-run previews without executing
118
+ - [ ] Summary shows version change and backup path
176
119
  </success_criteria>
@@ -49,12 +49,14 @@ $ARGUMENTS — user intent text, or special keywords.
49
49
  3. **Auto flag pass-through** — 仅当用户传入 `-y` 时透传 `-y` 到 skill args
50
50
  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`
51
51
  5. **status.json 唯一真源** — 不生成 `goal-checklist.md` 或外部清单
52
- 6. **执行步骤统一通过 `maestro ralph next` 加载** — `command_scope`/`command_path` 由 `maestro ralph skills --json --quiet` 预校验(project 覆盖 global);decision 节点不走 CLI,走 `Skill("maestro-ralph")` handoff
52
+ 6. **执行步骤统一通过 `maestro ralph next` 加载** — `command_scope`/`command_path` 由 `maestro ralph skills --platform claude --json --quiet` 预校验(project 覆盖 global,限定 `.claude/`);decision 节点不走 CLI,走 `Skill("maestro-ralph")` handoff
53
53
  7. **Topology awareness** — chain catalog 含 grill / brainstorm / blueprint / analyze-macro / analyze / roadmap / plan(三路径) / execute / verify / ...;scope_verdict 由 ralph 在 `post-analyze-scope` 决定
54
54
  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
55
55
  9. **D-007 milestone 反查** — 数字 phase 的 `milestone_id` 由 `state.json.milestones[].phase_slugs` 反查
56
56
  10. **每个 step 必须 `completion_confirmed: true`** — 由 `maestro ralph complete N --status DONE|DONE_WITH_CONCERNS` 写入
57
57
  11. **schema** — `ralph_protocol_version: "1"` 标记 CLI-driven session;新增字段全部可选
58
+ 12. **Invariant violation = BLOCK** — 违反上述任一 invariant 即阻断当前操作,不可绕过。特别是 invariant 1(dispatch via ralph-execute)和 invariant 2(session before execution)和 invariant 10(completion_confirmed 由 CLI 写入)为硬约束。
59
+ 13. **Classification evidence** — S_CLASSIFY 的 chain 选择决策 MUST 记录到 status.json 的 `classification_rationale` 字段:匹配了哪个 pattern、排除了哪些备选、confidence level。无记录的分类不可进入 S_CREATE。
58
60
  </invariants>
59
61
 
60
62
  <state_machine>
@@ -135,13 +137,14 @@ S_FALLBACK:
135
137
  3. Select chain from chainMap,遵循拓扑约束:
136
138
  - 压力测试/拷问/验证假设/grill/stress-test → `grill`(**-y 模式跳过 grill,直接走 brainstorm**)
137
139
  - 头脑风暴/探索 → `brainstorm`
140
+ - 学习/阅读代码/跟读/follow → `Skill("learn-follow")`;调查/为什么/investigate → `Skill("learn-investigate")`;分解/模式/decompose → `Skill("learn-decompose")`;评审/挑战/second-opinion → `Skill("learn-second-opinion")`;回顾/retro → `Skill("quality-retrospective")`
138
141
  - 正式规格/spec-generate/7-phase → `blueprint`
139
142
  - 项目初始化 → `init`
140
143
  - 宽/中等意图 + 无数字 phase → `analyze-macro`(产 scope_verdict,由 ralph 在 `post-analyze-scope` 决定是否插入 roadmap+analyze 或直跳 plan --from analyze)
141
144
  - 数字 phase 上下文 → `analyze {phase}` → `plan {phase}` → `execute {phase}` → `verify {phase}` → quality pipeline
142
145
  - 已有 analyze artifact 想直达执行 → `plan --from analyze:{ANL_ID}` → execute → verify
143
146
  - 已有 blueprint artifact → `plan --from blueprint:{BLP_ID}` → execute → verify
144
- 4. 执行 step:`Bash("maestro ralph skills --json --quiet")` 预校验 skill 名,命中写绝对路径到 `command_path`,未命中标 `missing`;同时写 `step.stage` / `step.scope` / `step.source_artifact_ref`。decision 节点不解析 command_path
147
+ 4. 执行 step:`Bash("maestro ralph skills --platform claude --json --quiet")` 预校验 skill 名,命中写绝对路径到 `command_path`,未命中标 `missing`;同时写 `step.stage` / `step.scope` / `step.source_artifact_ref`。decision 节点不解析 command_path
145
148
 
146
149
  ### A_CLARIFY
147
150
 
@@ -228,7 +231,7 @@ S_FALLBACK:
228
231
  - [ ] Chain selected and confirmed (or auto-confirmed)
229
232
  - [ ] Session dir created with status.json before execution; decomposition fields additive-only
230
233
  - [ ] 执行 step 含 `command_scope` + `command_path` + `completion_confirmed`;decision step 由 `step.decision` 标识
231
- - [ ] `command_scope`/`command_path` 由 `maestro ralph skills --json --quiet` 预校验(project 覆盖 global)
234
+ - [ ] `command_scope`/`command_path` 由 `maestro ralph skills --platform claude --json --quiet` 预校验(project 覆盖 global)
232
235
  - [ ] Session schema 含 `ralph_protocol_version: "1"` + `active_step_index: null` + step.load 占位
233
236
  - [ ] 用户传入 `-y` 时透传到 skill args
234
237
  - [ ] All chains dispatched via maestro-ralph-execute
@@ -53,9 +53,9 @@ Follow '~/.maestro/workflows/codebase-rebuild.md' completely.
53
53
 
54
54
  **Next-step routing on completion:**
55
55
  - View updated project state → `/manage-status`
56
- - Incremental updates later → `/manage-codebase-refresh`
56
+ - Incremental updates later → `/quality-sync`
57
57
  - Verify KG stats → `maestro kg stats`
58
- - Verify wiki integration → `maestro wiki list --keyword kg`
58
+ - Verify wiki integration → `maestro search "kg" --type knowhow`
59
59
  - Future change impact → `maestro kg diff-wiki`
60
60
  </execution>
61
61
 
@@ -80,6 +80,6 @@ Follow '~/.maestro/workflows/codebase-rebuild.md' completely.
80
80
  - [ ] KG pipeline executed (`maestro kg index`)
81
81
  - [ ] knowledge-graph.json generated in .workflow/codebase/
82
82
  - [ ] KG nodes indexed as virtual wiki entries (automatic via WikiIndexer on next wiki access)
83
- - [ ] Next step routing: `/manage-status` or `/manage-codebase-refresh` for incremental updates later
83
+ - [ ] Next step routing: `/manage-status` or `/quality-sync` for incremental updates later
84
84
  - [ ] KG impact check available: `maestro kg diff-wiki` for future change impact analysis
85
85
  </success_criteria>
@@ -53,7 +53,7 @@ Extraction patterns, classification rules, routing infrastructure, and fragment
53
53
 
54
54
  **Next-step routing on completion:**
55
55
  - Review wiki entries → `maestro wiki list --type note`
56
- - Connect wiki graph → `/wiki-connect --fix`
56
+ - Connect wiki graph → `/manage-wiki connect --fix`
57
57
  - Triage issues → `/manage-issue list --source harvest`
58
58
  - View specs → `/spec-load --role implement`
59
59
  - Full retrospective → `/quality-retrospective`
@@ -13,7 +13,7 @@ allowed-tools:
13
13
  ---
14
14
  <purpose>
15
15
  Capture reusable knowledge into `.workflow/knowhow/` with type-specific structured fields.
16
- Auto-indexed by WikiIndexer (type=knowhow), searchable via `maestro knowhow search`.
16
+ Auto-indexed by WikiIndexer (type=knowhow), searchable via `maestro search --type knowhow`.
17
17
  </purpose>
18
18
 
19
19
  <required_reading>
@@ -38,8 +38,9 @@ $ARGUMENTS — type token + description + optional flags.
38
38
  | `asset`/`ast`/`资产`/`契约` | asset | AST- | assetType, codePaths, category |
39
39
  | `blueprint`/`blp`/`蓝图` | blueprint | BLP- | codePaths, category |
40
40
  | `document`/`doc`/`文档` | document | DOC- | (general fallback) |
41
+ | `insight`/`ins`/`洞察`/`经验` | insight | INS- | content, tags, phase (replaces former manage-learn) |
41
42
  | Short text + `--tag` | tip | TIP- | — |
42
- | No args | — | — | AskUserQuestion (9 options) |
43
+ | No args | — | — | AskUserQuestion (10 options) |
43
44
 
44
45
  **Output**: `.workflow/knowhow/{PREFIX}-{YYYYMMDD}-{HHMM}.md` with YAML frontmatter (title, type, category, created, tags, source, lang, status)
45
46
  </context>
@@ -13,9 +13,11 @@ allowed-tools:
13
13
  ---
14
14
  <purpose>
15
15
  Unified memory management across two stores:
16
- 1. **Workflow knowhow** (`.workflow/knowhow/`) — Session compacts and tips with JSON index, created by `manage-knowhow-capture`
16
+ 1. **Workflow knowhow** (`.workflow/knowhow/`) — Session compacts, tips, insights, and all reusable knowledge, created by `manage-knowhow-capture`
17
17
  2. **System memory** (`~/.claude/projects/{project}/memory/`) — Claude Code auto-memory (MEMORY.md + topic files), persists across conversations
18
18
 
19
+ Also scans `.workflow/specs/learnings.md` for legacy insight entries (backward compat with former `manage-learn`).
20
+
19
21
  Provides list/search/view/edit/delete/prune operations. Default store is `all` (show both).
20
22
  </purpose>
21
23
 
@@ -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
  - Read
7
7
  - Write
@@ -12,9 +12,7 @@ allowed-tools:
12
12
  - AskUserQuestion
13
13
  ---
14
14
  <purpose>
15
- 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.
16
-
17
- Complements `/wiki-connect` (link discovery) and `/wiki-digest` (synthesis) with operational tooling.
15
+ 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.
18
16
  </purpose>
19
17
 
20
18
  <required_reading>
@@ -31,16 +29,26 @@ $ARGUMENTS — subcommand and optional flags.
31
29
  | `search <query>` | Interactive BM25 search with follow-up actions |
32
30
  | `cleanup` | Find and resolve orphans, broken links, stale entries |
33
31
  | `stats` | Graph statistics — type distribution, tag frequency, growth trends |
32
+ | `connect` | Find and link hidden connections — orphan rescue, missing links, transitive gaps |
33
+ | `digest [topic]` | Generate knowledge digest with theme clustering and gap analysis |
34
34
  | No args | Same as `health` |
35
35
 
36
36
  **Flags:**
37
37
  - `--type <type>` — Filter by wiki type: spec, knowhow, note, issue
38
- - `--fix` — Auto-fix issues found during cleanup (remove broken links, suggest connections)
38
+ - `--fix` — Auto-fix issues found during cleanup/connect (remove broken links, apply connections)
39
39
  - `--json` — Output in JSON format
40
+ - `--min-similarity N` — (connect) Minimum similarity threshold for link candidates
41
+ - `--max N` — (connect) Maximum number of suggestions
42
+ - `--format brief|full` — (digest) Output format
43
+ - `--recent N` — (digest) Scope to N most recent entries
44
+ - `--create-issues` — (digest) Create issues for identified knowledge gaps
40
45
  </context>
41
46
 
42
47
  <execution>
43
- Follow '~/.maestro/workflows/wiki-manage.md' completely.
48
+ **Subcommand routing:**
49
+ - `health|search|cleanup|stats` → Follow `~/.maestro/workflows/wiki-manage.md` completely.
50
+ - `connect` → Follow `~/.maestro/workflows/wiki-connect.md` completely (Stages 1-6).
51
+ - `digest` → Follow `~/.maestro/workflows/wiki-digest.md` completely (Stages 1-8).
44
52
  </execution>
45
53
 
46
54
  <error_codes>
@@ -54,9 +62,10 @@ Follow '~/.maestro/workflows/wiki-manage.md' completely.
54
62
  </error_codes>
55
63
 
56
64
  <success_criteria>
57
- - [ ] Subcommand parsed (health/search/cleanup/stats)
65
+ - [ ] Subcommand parsed (health/search/cleanup/stats/connect/digest)
58
66
  - [ ] Wiki data loaded via `maestro wiki` CLI
59
67
  - [ ] Results displayed in formatted output
60
- - [ ] If cleanup --fix: issues resolved and delta reported
68
+ - [ ] If cleanup/connect --fix: issues resolved and delta reported
69
+ - [ ] If digest: themes clustered, gaps identified, coverage heatmap generated
61
70
  - [ ] Next-step suggestions provided
62
71
  </success_criteria>
@@ -55,7 +55,7 @@ Flags, artifact context resolution, and output formats defined in workflow auto-
55
55
  1. **Test specs + tools**: Run `maestro spec load --category test` to load test conventions (framework, patterns, naming). Apply to all generated tests.
56
56
  2. **Coding specs**: Run `maestro spec load --category coding` to understand coding patterns for accurate test targeting.
57
57
  3. **Role Knowledge**:
58
- - Browse: `maestro wiki list --category test`
58
+ - Browse: `maestro search --category test`
59
59
  - Load task-relevant entries: `maestro wiki load <id1> [id2...]`
60
60
  4. All are optional — proceed without if unavailable.
61
61
  </context>
@@ -91,13 +91,13 @@ Append to state.json.artifacts[]:
91
91
  ```
92
92
 
93
93
  **Next-step routing on completion:**
94
- - Converged (>=95%) → `/maestro-verify {phase}`
94
+ - Converged (>=95%) → `/quality-review {phase}`
95
95
  - All requirements verified (spec source) → `/maestro-milestone-audit`
96
96
  - Bugs discovered → `/quality-debug --from-uat {phase}`
97
97
  - Max iter, >80% → `/quality-test {phase}` for manual UAT
98
98
  - Max iter, <80% → `/quality-debug {phase}`
99
99
  - Coverage still low → `/quality-auto-test {phase} --layer {missing}`
100
- - Re-run all pass → `/maestro-verify {phase}`
100
+ - Re-run all pass → `/quality-review {phase}`
101
101
  - Single pass, all pass → `/quality-test {phase}`
102
102
  </execution>
103
103
 
@@ -45,9 +45,9 @@ Extract conclusions from related artifacts that may affect this debug session
45
45
 
46
46
  ### Pre-load (optional, proceed without)
47
47
  - Codebase docs: `.workflow/codebase/ARCHITECTURE.md` → module boundaries
48
- - Wiki: `maestro wiki search "<symptom keywords>" --json` → prior investigations
48
+ - Wiki: `maestro search "<symptom keywords>" --json` → prior investigations
49
49
  - Specs: `maestro spec load --category debug --keyword "<symptom>"` → known issues/workarounds
50
- - Role knowledge: `maestro wiki list --category debug` → select relevant → `maestro wiki load`
50
+ - Role knowledge: `maestro search --category debug` → select relevant → `maestro wiki load`
51
51
 
52
52
  **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.
53
53
  </context>
@@ -81,13 +81,13 @@ Append to state.json.artifacts[]:
81
81
  | Non-obvious fix / workaround | "Record as learning?" | spec-add learning |
82
82
  | Root cause = architectural boundary violation | "Update architecture-constraints.md?" | spec-add arch |
83
83
 
84
- On confirm → `Skill("spec-add", "<category> <content>")`.
84
+ On confirm → `Skill("spec-add", "<category> <content> --description \"<summary>\"")`.
85
85
 
86
86
  **Next-step routing on completion:**
87
87
  - Root cause found, fix needed → `/maestro-plan {phase} --gaps`
88
88
  - Root cause found (from UAT), auto-fix → `/quality-test {phase} --auto-fix`
89
89
  - Inconclusive, need more info → `/quality-debug {issue} -c` (resume session)
90
- - Standalone fix already applied → `/maestro-verify {phase}`
90
+ - Standalone fix already applied → `/maestro-execute {phase}`
91
91
  </execution>
92
92
 
93
93
  <error_codes>
@@ -33,7 +33,7 @@ If not provided, prompt user for scope.
33
33
  1. **Coding specs**: Run `maestro spec load --category coding` to load coding conventions. Apply conventions to all refactored code.
34
34
  2. **Review specs**: Run `maestro spec load --category review` to load review standards. Use as quality gate for refactored code.
35
35
  3. **Role Knowledge**:
36
- - Browse: `maestro wiki list --category coding`
36
+ - Browse: `maestro search --category coding`
37
37
  - Identify task-relevant entries, then load: `maestro wiki load <id1> [id2...]`
38
38
  4. All are optional — proceed without if unavailable.
39
39
  </context>
@@ -42,7 +42,7 @@ If not provided, prompt user for scope.
42
42
  Follow '~/.maestro/workflows/refactor.md' completely.
43
43
 
44
44
  **Knowledge inquiry on completion:**
45
- After successful refactoring, ask user once: "Record refactoring pattern as coding convention?" If yes, persist via `Skill("spec-add", "coding \"<title>\" \"<pattern>\" --keywords <kw1>,<kw2>")`.
45
+ After successful refactoring, ask user once: "Record refactoring pattern as coding convention?" If yes, persist via `Skill("spec-add", "coding \"<title>\" \"<pattern>\" --keywords <kw1>,<kw2> --description \"<summary>\"")`.
46
46
 
47
47
  **Next-step routing on completion:**
48
48
  - All tests pass → `/quality-sync` (update codebase docs)
@@ -22,7 +22,7 @@ Post-execution multi-perspective retrospective (复盘) for completed phases. Co
22
22
 
23
23
  <deferred_reading>
24
24
  - @~/.maestro/workflows/issue.md (issues.jsonl schema for auto-creation)
25
- - @~/.maestro/workflows/learn.md (tip routing via manage-learn tip)
25
+ - @~/.maestro/workflows/learn.md (tip routing via manage-knowhow-capture tip)
26
26
  - @~/.maestro/workflows/verify.md (verification.json schema for quality lens parsing)
27
27
  - @~/.maestro/workflows/review.md (review.json schema for quality lens parsing)
28
28
  </deferred_reading>
@@ -39,7 +39,7 @@ Follow `~/.maestro/workflows/retrospective.md` Stages 1–8 in order. Key invari
39
39
  1. **Read-only until Stage 6** — Stages 1–5 must not write anything except the in-memory retrospective record.
40
40
  2. **Parallel lens dispatch** — Stage 4 spawns one Agent per active lens in a single message (multiple Agent tool calls). All agents use `subagent_type: "general-purpose"` and `run_in_background: false`.
41
41
  3. **Match canonical issues schema** — Stage 6 issue routing must produce rows that pass `jq` parsing and match the schema in `workflows/issue.md` Step 4 exactly (status `"open"`, full `issue_history` entry, all required fields).
42
- 4. **Reuse `manage-learn tip` for note routing** — do not duplicate the learning pipeline; invoke via `Skill({ skill: "manage-learn", args: "tip ..." })`.
42
+ 4. **Reuse `manage-knowhow-capture tip` for note routing** — do not duplicate the learning pipeline; invoke via `Skill({ skill: "manage-knowhow-capture", args: "tip ..." })`.
43
43
  5. **Backward-compat with phase-transition** — append a one-line summary per insight to `.workflow/specs/learnings.md` if and only if that file already exists. Never create it.
44
44
  6. **Stable insight IDs** — `INS-{8 hex}` from `hash(phase_num + lens + title)` so re-runs do not duplicate.
45
45
  7. **Archive before overwrite** — if existing `retrospective.{md,json}` are being replaced, move them to `{artifact_dir}/.history/` with a timestamp suffix first.
@@ -55,7 +55,7 @@ Follow `~/.maestro/workflows/retrospective.md` Stages 1–8 in order. Key invari
55
55
  | E005 | error | Phase argument out of range / phase directory not found | scan_unreviewed |
56
56
  | W001 | warning | One or more lens agents failed — proceeding with partial coverage | multi_lens_analysis |
57
57
  | W002 | warning | Existing retrospective.json found and not `--all` — prompted user to overwrite | scan_unreviewed |
58
- | W003 | warning | `manage-learn tip` did not return parseable INS id; fell back to direct write | route_outputs |
58
+ | W003 | warning | `manage-knowhow-capture tip` did not return parseable INS id; fell back to direct write | route_outputs |
59
59
  | W004 | warning | `--compare` target phase has no retrospective.json; delta omitted | load_artifacts |
60
60
  </error_codes>
61
61
 
@@ -69,9 +69,9 @@ Follow `~/.maestro/workflows/retrospective.md` Stages 1–8 in order. Key invari
69
69
  - [ ] If routing enabled (default): every recommendation either created an artifact or was explicitly skipped by user
70
70
  - [ ] Spec entries (if any) appended as `<spec-entry>` to matching `.workflow/specs/{category-file}.md`
71
71
  - [ ] Issue rows (if any) match canonical issues.jsonl schema (status "open", full issue_history, all required fields)
72
- - [ ] Note tips (if any) created via `Skill({ skill: "manage-learn", args: "tip ..." })`
72
+ - [ ] Note tips (if any) created via `Skill({ skill: "manage-knowhow-capture", args: "tip ..." })`
73
73
  - [ ] `.workflow/specs/learnings.md` appended with one `<spec-entry>` per insight regardless of routing target
74
74
  - [ ] No existing phase artifacts modified (verification.json, review.json, plan.json untouched)
75
75
  - [ ] Confirmation banner displays routing counts and next-step suggestions
76
- - [ ] Next step: `/manage-status` to review state, or `/manage-issue list --source retrospective` to triage created issues, or `/manage-learn list` to browse the knowhow library
76
+ - [ ] Next step: `/manage-status` to review state, or `/manage-issue list --source retrospective` to triage created issues, or `/manage-knowhow list` to browse the knowhow library
77
77
  </success_criteria>
@@ -13,7 +13,7 @@ allowed-tools:
13
13
  - AskUserQuestion
14
14
  ---
15
15
  <purpose>
16
- 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.
16
+ 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.
17
17
  </purpose>
18
18
 
19
19
  <required_reading>
@@ -50,9 +50,9 @@ Extract conclusions from related artifacts that may affect this review. Pass as
50
50
 
51
51
  ### Pre-load (optional, proceed without)
52
52
  - Codebase docs: `.workflow/codebase/ARCHITECTURE.md` → component boundaries, layer rules
53
- - Wiki constraints: `maestro wiki search "architecture constraint" --json` → documented decisions
53
+ - Wiki constraints: `maestro search "architecture constraint" --json` → documented decisions
54
54
  - Specs: `maestro spec load --category review` → review standards, checklists, knowhow tools
55
- - Role knowledge: `maestro wiki list --category review` → select relevant → `maestro wiki load`
55
+ - Role knowledge: `maestro search --category review` → select relevant → `maestro wiki load`
56
56
 
57
57
  **Output**: `REVIEW_DIR = .workflow/scratch/{YYYYMMDD}-review-P{N}-{slug}/` (P{N} = phase number, enables directory-level identification as state.json fallback)
58
58
  </context>
@@ -99,7 +99,7 @@ NEXT: /quality-refactor
99
99
 
100
100
  Status mapping:
101
101
  - **DONE** — PASS verdict, no critical findings → NEXT: /quality-refactor
102
- - **DONE_WITH_CONCERNS** — WARN verdict, issues found but non-blocking → NEXT: /maestro-verify
102
+ - **DONE_WITH_CONCERNS** — WARN verdict, issues found but non-blocking → NEXT: /quality-test
103
103
  - **NEEDS_RETRY** — BLOCK verdict, critical findings require fix first
104
104
  </execution>
105
105
 
@@ -33,6 +33,7 @@ Follow '~/.maestro/workflows/sync.md' completely.
33
33
  **Next-step routing on completion:**
34
34
  - Docs refreshed → `/manage-status`
35
35
  - Major structural changes detected → `/manage-codebase-rebuild` (full rebuild recommended)
36
+ - Incremental refresh (replaces former `/manage-codebase-refresh`) → use `--since` flag
36
37
  </execution>
37
38
 
38
39
  <error_codes>
@@ -41,8 +41,8 @@ Follow '~/.maestro/workflows/test.md' completely.
41
41
  **Command-specific extensions (not in workflow):**
42
42
 
43
43
  **Knowledge context loading** (before test design):
44
- - Wiki search: `maestro wiki search "<phase/feature keywords>" --json` → prior test strategies, recipes, decisions
45
- - Role knowledge: `maestro wiki list --category test` → select relevant → `maestro wiki load <id>`
44
+ - Wiki search: `maestro search "<phase/feature keywords>" --json` → prior test strategies, recipes, decisions
45
+ - Role knowledge: `maestro search --category test` → select relevant → `maestro wiki load <id>`
46
46
  - Specs + tools: `maestro spec load --category test` → test conventions + discoverable knowhow tools
47
47
 
48
48
  **Test tool discovery** (knowhow tools as scenario source):
@@ -77,7 +77,7 @@ Append to state.json.artifacts[]:
77
77
 
78
78
  **Next-step routing on completion:**
79
79
  - All tests pass → `/maestro-milestone-audit`
80
- - Issues found, --auto-fix ran and succeeded → `/maestro-verify {phase}`
80
+ - Issues found, --auto-fix ran and succeeded → `/maestro-execute {phase}`
81
81
  - Issues found, --auto-fix ran but gaps remain → `/quality-debug --from-uat {phase}`
82
82
  - Issues found, manual fix needed → `/quality-debug --from-uat {phase}`
83
83
  - Coverage below threshold → `/quality-auto-test {phase}`
@@ -88,7 +88,7 @@ Append to state.json.artifacts[]:
88
88
  | Code | Severity | Condition | Recovery |
89
89
  |------|----------|-----------|----------|
90
90
  | E001 | error | Phase or task target required (no active sessions) | Prompt user for phase number |
91
- | E002 | error | Phase not verified yet (no verification.json) | Suggest `/maestro-verify` first |
91
+ | E002 | error | Phase not verified yet (no verification.json) | Suggest `/maestro-execute` first (verification is built-in) |
92
92
  | E003 | error | Smoke test failed (app won't start) | Suggest `/quality-debug` |
93
93
  | W001 | warning | One or more test scenarios failed | Auto-diagnose, suggest fix options |
94
94
  | W002 | warning | Coverage below threshold | Suggest `/quality-auto-test` |