maestro-flow 0.4.26 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (415) hide show
  1. package/.agents/skills/codify-to-knowhow/phases/03-generate-specs.md +2 -1
  2. package/.agents/skills/learn-follow/SKILL.md +1 -1
  3. package/.agents/skills/learn-investigate/SKILL.md +2 -2
  4. package/.agents/skills/learn-second-opinion/SKILL.md +1 -1
  5. package/.agents/skills/maestro/SKILL.md +6 -3
  6. package/.agents/skills/maestro-analyze/SKILL.md +53 -2
  7. package/.agents/skills/maestro-blueprint/SKILL.md +36 -1
  8. package/.agents/skills/maestro-brainstorm/SKILL.md +40 -1
  9. package/.agents/skills/maestro-collab/SKILL.md +1 -1
  10. package/.agents/skills/maestro-companion/SKILL.md +4 -4
  11. package/.agents/skills/maestro-composer/SKILL.md +1 -1
  12. package/.agents/skills/maestro-execute/SKILL.md +29 -6
  13. package/.agents/skills/maestro-fork/SKILL.md +24 -0
  14. package/.agents/skills/maestro-grill/SKILL.md +38 -1
  15. package/.agents/skills/maestro-help/SKILL.md +5 -6
  16. package/.agents/skills/maestro-help/index/catalog.json +7 -9
  17. package/.agents/skills/maestro-help/phases/02-search-present.md +2 -4
  18. package/.agents/skills/maestro-help/phases/03-workflow-guide.md +7 -8
  19. package/.agents/skills/maestro-impeccable/SKILL.md +13 -0
  20. package/.agents/skills/maestro-init/SKILL.md +11 -0
  21. package/.agents/skills/maestro-merge/SKILL.md +17 -1
  22. package/.agents/skills/maestro-milestone-audit/SKILL.md +34 -2
  23. package/.agents/skills/maestro-milestone-complete/SKILL.md +19 -1
  24. package/.agents/skills/maestro-milestone-release/SKILL.md +18 -0
  25. package/.agents/skills/maestro-next/SKILL.md +8 -9
  26. package/.agents/skills/maestro-overlay/SKILL.md +3 -3
  27. package/.agents/skills/maestro-plan/SKILL.md +21 -3
  28. package/.agents/skills/maestro-quick/SKILL.md +13 -1
  29. package/.agents/skills/maestro-ralph/SKILL.md +18 -20
  30. package/.agents/skills/maestro-ralph-beta/SKILL.md +10 -16
  31. package/.agents/skills/maestro-ralph-execute/SKILL.md +1 -2
  32. package/.agents/skills/maestro-roadmap/SKILL.md +28 -2
  33. package/.agents/skills/maestro-swarm-workflow/SKILL.md +2 -2
  34. package/.agents/skills/maestro-tools-register/SKILL.md +2 -2
  35. package/.agents/skills/maestro-ui-codify/SKILL.md +20 -0
  36. package/.agents/skills/maestro-update/SKILL.md +59 -116
  37. package/.agents/skills/manage-codebase-rebuild/SKILL.md +3 -3
  38. package/.agents/skills/manage-harvest/SKILL.md +1 -1
  39. package/.agents/skills/manage-knowhow/SKILL.md +3 -1
  40. package/.agents/skills/manage-knowhow-capture/SKILL.md +7 -4
  41. package/.agents/skills/manage-wiki/SKILL.md +17 -8
  42. package/.agents/skills/quality-auto-test/SKILL.md +3 -3
  43. package/.agents/skills/quality-debug/SKILL.md +4 -4
  44. package/.agents/skills/quality-refactor/SKILL.md +2 -2
  45. package/.agents/skills/quality-retrospective/SKILL.md +5 -5
  46. package/.agents/skills/quality-review/SKILL.md +4 -4
  47. package/.agents/skills/quality-sync/SKILL.md +1 -0
  48. package/.agents/skills/quality-test/SKILL.md +4 -4
  49. package/.agents/skills/spec-add/SKILL.md +6 -4
  50. package/.agents/skills/spec-setup/SKILL.md +1 -1
  51. package/.agy/skills/codify-to-knowhow/phases/03-generate-specs.md +2 -1
  52. package/.agy/skills/learn-follow/SKILL.md +1 -1
  53. package/.agy/skills/learn-investigate/SKILL.md +2 -2
  54. package/.agy/skills/learn-second-opinion/SKILL.md +1 -1
  55. package/.agy/skills/maestro/SKILL.md +6 -3
  56. package/.agy/skills/maestro-analyze/SKILL.md +53 -2
  57. package/.agy/skills/maestro-blueprint/SKILL.md +36 -1
  58. package/.agy/skills/maestro-brainstorm/SKILL.md +40 -1
  59. package/.agy/skills/maestro-collab/SKILL.md +1 -1
  60. package/.agy/skills/maestro-companion/SKILL.md +4 -4
  61. package/.agy/skills/maestro-composer/SKILL.md +1 -1
  62. package/.agy/skills/maestro-execute/SKILL.md +29 -6
  63. package/.agy/skills/maestro-fork/SKILL.md +24 -0
  64. package/.agy/skills/maestro-grill/SKILL.md +38 -1
  65. package/.agy/skills/maestro-help/SKILL.md +5 -6
  66. package/.agy/skills/maestro-help/index/catalog.json +7 -9
  67. package/.agy/skills/maestro-help/phases/02-search-present.md +2 -4
  68. package/.agy/skills/maestro-help/phases/03-workflow-guide.md +7 -8
  69. package/.agy/skills/maestro-impeccable/SKILL.md +13 -0
  70. package/.agy/skills/maestro-init/SKILL.md +11 -0
  71. package/.agy/skills/maestro-merge/SKILL.md +17 -1
  72. package/.agy/skills/maestro-milestone-audit/SKILL.md +34 -2
  73. package/.agy/skills/maestro-milestone-complete/SKILL.md +19 -1
  74. package/.agy/skills/maestro-milestone-release/SKILL.md +18 -0
  75. package/.agy/skills/maestro-next/SKILL.md +8 -9
  76. package/.agy/skills/maestro-overlay/SKILL.md +3 -3
  77. package/.agy/skills/maestro-plan/SKILL.md +21 -3
  78. package/.agy/skills/maestro-quick/SKILL.md +13 -1
  79. package/.agy/skills/maestro-ralph/SKILL.md +18 -20
  80. package/.agy/skills/maestro-ralph-beta/SKILL.md +10 -16
  81. package/.agy/skills/maestro-ralph-execute/SKILL.md +1 -2
  82. package/.agy/skills/maestro-roadmap/SKILL.md +28 -2
  83. package/.agy/skills/maestro-swarm-workflow/SKILL.md +2 -2
  84. package/.agy/skills/maestro-tools-register/SKILL.md +2 -2
  85. package/.agy/skills/maestro-ui-codify/SKILL.md +20 -0
  86. package/.agy/skills/maestro-update/SKILL.md +59 -116
  87. package/.agy/skills/manage-codebase-rebuild/SKILL.md +3 -3
  88. package/.agy/skills/manage-harvest/SKILL.md +1 -1
  89. package/.agy/skills/manage-knowhow/SKILL.md +3 -1
  90. package/.agy/skills/manage-knowhow-capture/SKILL.md +7 -4
  91. package/.agy/skills/manage-wiki/SKILL.md +17 -8
  92. package/.agy/skills/quality-auto-test/SKILL.md +3 -3
  93. package/.agy/skills/quality-debug/SKILL.md +4 -4
  94. package/.agy/skills/quality-refactor/SKILL.md +2 -2
  95. package/.agy/skills/quality-retrospective/SKILL.md +5 -5
  96. package/.agy/skills/quality-review/SKILL.md +4 -4
  97. package/.agy/skills/quality-sync/SKILL.md +1 -0
  98. package/.agy/skills/quality-test/SKILL.md +4 -4
  99. package/.agy/skills/spec-add/SKILL.md +6 -4
  100. package/.agy/skills/spec-setup/SKILL.md +1 -1
  101. package/.claude/commands/learn-follow.md +1 -1
  102. package/.claude/commands/learn-investigate.md +2 -2
  103. package/.claude/commands/learn-second-opinion.md +1 -1
  104. package/.claude/commands/maestro-analyze.md +53 -2
  105. package/.claude/commands/maestro-blueprint.md +36 -1
  106. package/.claude/commands/maestro-brainstorm.md +40 -1
  107. package/.claude/commands/maestro-collab.md +1 -1
  108. package/.claude/commands/maestro-companion.md +4 -4
  109. package/.claude/commands/maestro-composer.md +1 -1
  110. package/.claude/commands/maestro-execute.md +29 -6
  111. package/.claude/commands/maestro-fork.md +24 -0
  112. package/.claude/commands/maestro-grill.md +38 -1
  113. package/.claude/commands/maestro-impeccable.md +13 -0
  114. package/.claude/commands/maestro-init.md +11 -0
  115. package/.claude/commands/maestro-merge.md +17 -1
  116. package/.claude/commands/maestro-milestone-audit.md +34 -2
  117. package/.claude/commands/maestro-milestone-complete.md +19 -1
  118. package/.claude/commands/maestro-milestone-release.md +18 -0
  119. package/.claude/commands/maestro-next.md +8 -9
  120. package/.claude/commands/maestro-overlay.md +3 -3
  121. package/.claude/commands/maestro-plan.md +21 -3
  122. package/.claude/commands/maestro-quick.md +13 -1
  123. package/.claude/commands/maestro-ralph-beta.md +8 -14
  124. package/.claude/commands/maestro-ralph-execute.md +1 -2
  125. package/.claude/commands/maestro-ralph.md +18 -20
  126. package/.claude/commands/maestro-roadmap.md +28 -2
  127. package/.claude/commands/maestro-swarm-workflow.md +2 -2
  128. package/.claude/commands/maestro-tools-register.md +2 -2
  129. package/.claude/commands/maestro-ui-codify.md +20 -0
  130. package/.claude/commands/maestro-update.md +59 -116
  131. package/.claude/commands/maestro.md +6 -3
  132. package/.claude/commands/manage-codebase-rebuild.md +3 -3
  133. package/.claude/commands/manage-harvest.md +1 -1
  134. package/.claude/commands/manage-knowhow-capture.md +7 -4
  135. package/.claude/commands/manage-knowhow.md +3 -1
  136. package/.claude/commands/manage-wiki.md +17 -8
  137. package/.claude/commands/quality-auto-test.md +3 -3
  138. package/.claude/commands/quality-debug.md +4 -4
  139. package/.claude/commands/quality-refactor.md +2 -2
  140. package/.claude/commands/quality-retrospective.md +5 -5
  141. package/.claude/commands/quality-review.md +4 -4
  142. package/.claude/commands/quality-sync.md +1 -0
  143. package/.claude/commands/quality-test.md +4 -4
  144. package/.claude/commands/spec-add.md +6 -4
  145. package/.claude/commands/spec-setup.md +1 -1
  146. package/.claude/skills/codify-to-knowhow/phases/03-generate-specs.md +2 -1
  147. package/.claude/skills/maestro-help/SKILL.md +5 -6
  148. package/.claude/skills/maestro-help/index/catalog.json +7 -9
  149. package/.claude/skills/maestro-help/phases/02-search-present.md +2 -4
  150. package/.claude/skills/maestro-help/phases/03-workflow-guide.md +7 -8
  151. package/.codex/skills/codify-to-knowhow/SKILL.md +6 -5
  152. package/.codex/skills/learn-decompose/SKILL.md +1 -1
  153. package/.codex/skills/learn-follow/SKILL.md +1 -1
  154. package/.codex/skills/learn-investigate/SKILL.md +1 -1
  155. package/.codex/skills/learn-second-opinion/SKILL.md +1 -1
  156. package/.codex/skills/maestro/SKILL.md +29 -31
  157. package/.codex/skills/maestro-analyze/SKILL.md +17 -4
  158. package/.codex/skills/maestro-blueprint/SKILL.md +8 -1
  159. package/.codex/skills/maestro-brainstorm/SKILL.md +8 -5
  160. package/.codex/skills/maestro-collab/SKILL.md +1 -1
  161. package/.codex/skills/maestro-companion/SKILL.md +2 -2
  162. package/.codex/skills/maestro-composer/SKILL.md +0 -1
  163. package/.codex/skills/maestro-execute/SKILL.md +11 -8
  164. package/.codex/skills/maestro-fork/SKILL.md +4 -0
  165. package/.codex/skills/maestro-grill/SKILL.md +8 -2
  166. package/.codex/skills/maestro-help/SKILL.md +6 -9
  167. package/.codex/skills/maestro-help/catalog.json +6 -8
  168. package/.codex/skills/maestro-impeccable/SKILL.md +2 -0
  169. package/.codex/skills/maestro-init/SKILL.md +3 -0
  170. package/.codex/skills/maestro-merge/SKILL.md +5 -1
  171. package/.codex/skills/maestro-milestone-audit/SKILL.md +3 -0
  172. package/.codex/skills/maestro-milestone-complete/SKILL.md +6 -1
  173. package/.codex/skills/maestro-milestone-release/SKILL.md +4 -0
  174. package/.codex/skills/maestro-next/SKILL.md +3 -4
  175. package/.codex/skills/maestro-plan/SKILL.md +5 -2
  176. package/.codex/skills/maestro-quick/SKILL.md +4 -1
  177. package/.codex/skills/maestro-ralph/SKILL.md +14 -20
  178. package/.codex/skills/maestro-ralph-beta/SKILL.md +13 -21
  179. package/.codex/skills/maestro-ralph-execute/SKILL.md +2 -2
  180. package/.codex/skills/maestro-roadmap/SKILL.md +5 -2
  181. package/.codex/skills/maestro-tools-register/SKILL.md +1 -1
  182. package/.codex/skills/maestro-ui-codify/SKILL.md +4 -1
  183. package/.codex/skills/maestro-update/SKILL.md +35 -130
  184. package/.codex/skills/manage-codebase-rebuild/SKILL.md +2 -2
  185. package/.codex/skills/manage-harvest/SKILL.md +2 -2
  186. package/.codex/skills/manage-knowhow/SKILL.md +1 -1
  187. package/.codex/skills/manage-knowhow-capture/SKILL.md +32 -20
  188. package/.codex/skills/manage-status/SKILL.md +1 -2
  189. package/.codex/skills/quality-auto-test/SKILL.md +2 -2
  190. package/.codex/skills/quality-debug/SKILL.md +2 -2
  191. package/.codex/skills/quality-refactor/SKILL.md +1 -1
  192. package/.codex/skills/quality-retrospective/SKILL.md +1 -1
  193. package/.codex/skills/quality-test/SKILL.md +3 -4
  194. package/.codex/skills/spec-add/SKILL.md +5 -3
  195. package/.codex/skills/spec-remove/SKILL.md +2 -2
  196. package/.codex/skills/team-coordinate/SKILL.md +1 -1
  197. package/.codex/skills/wiki-digest/SKILL.md +2 -2
  198. package/chains/brainstorm-driven.json +2 -34
  199. package/chains/full-lifecycle.json +2 -34
  200. package/chains/next-milestone.json +0 -7
  201. package/chains/quality-loop.json +3 -19
  202. package/chains/roadmap-driven.json +2 -34
  203. package/chains/spec-driven.json +2 -34
  204. package/chains/ui-craft-build.json +2 -23
  205. package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js +8 -11
  206. package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js.map +1 -1
  207. package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.d.ts +1 -0
  208. package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.js +3 -1
  209. package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.js.map +1 -1
  210. package/dashboard/dist-server/dashboard/src/server/wiki/stress.test.js +1 -0
  211. package/dashboard/dist-server/dashboard/src/server/wiki/stress.test.js.map +1 -1
  212. package/dashboard/dist-server/dashboard/src/server/wiki/virtual-wiki-adapters.js +9 -0
  213. package/dashboard/dist-server/dashboard/src/server/wiki/virtual-wiki-adapters.js.map +1 -1
  214. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js +9 -4
  215. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js.map +1 -1
  216. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-types.d.ts +3 -0
  217. package/dashboard/dist-server/dashboard/src/server/wiki/writer.d.ts +4 -0
  218. package/dashboard/dist-server/dashboard/src/server/wiki/writer.js +5 -3
  219. package/dashboard/dist-server/dashboard/src/server/wiki/writer.js.map +1 -1
  220. package/dashboard/dist-server/src/types/index.d.ts +2 -0
  221. package/dist/src/cli.js +1 -0
  222. package/dist/src/cli.js.map +1 -1
  223. package/dist/src/commands/hooks.d.ts.map +1 -1
  224. package/dist/src/commands/hooks.js +55 -5
  225. package/dist/src/commands/hooks.js.map +1 -1
  226. package/dist/src/commands/install-backend.d.ts.map +1 -1
  227. package/dist/src/commands/install-backend.js +2 -1
  228. package/dist/src/commands/install-backend.js.map +1 -1
  229. package/dist/src/commands/install.d.ts.map +1 -1
  230. package/dist/src/commands/install.js +48 -3
  231. package/dist/src/commands/install.js.map +1 -1
  232. package/dist/src/commands/kg.d.ts +1 -1
  233. package/dist/src/commands/kg.d.ts.map +1 -1
  234. package/dist/src/commands/kg.js +285 -112
  235. package/dist/src/commands/kg.js.map +1 -1
  236. package/dist/src/commands/knowhow.d.ts.map +1 -1
  237. package/dist/src/commands/knowhow.js +28 -37
  238. package/dist/src/commands/knowhow.js.map +1 -1
  239. package/dist/src/commands/ralph.js +1 -1
  240. package/dist/src/commands/ralph.js.map +1 -1
  241. package/dist/src/commands/search.d.ts +36 -0
  242. package/dist/src/commands/search.d.ts.map +1 -0
  243. package/dist/src/commands/search.js +120 -0
  244. package/dist/src/commands/search.js.map +1 -0
  245. package/dist/src/commands/spec.d.ts.map +1 -1
  246. package/dist/src/commands/spec.js +15 -59
  247. package/dist/src/commands/spec.js.map +1 -1
  248. package/dist/src/commands/update.d.ts.map +1 -1
  249. package/dist/src/commands/update.js +7 -0
  250. package/dist/src/commands/update.js.map +1 -1
  251. package/dist/src/commands/wiki.d.ts.map +1 -1
  252. package/dist/src/commands/wiki.js +6 -21
  253. package/dist/src/commands/wiki.js.map +1 -1
  254. package/dist/src/core/component-defs.d.ts +13 -0
  255. package/dist/src/core/component-defs.d.ts.map +1 -1
  256. package/dist/src/core/component-defs.js +37 -85
  257. package/dist/src/core/component-defs.js.map +1 -1
  258. package/dist/src/core/skill-converter.d.ts +25 -0
  259. package/dist/src/core/skill-converter.d.ts.map +1 -0
  260. package/dist/src/core/skill-converter.js +605 -0
  261. package/dist/src/core/skill-converter.js.map +1 -0
  262. package/dist/src/graph/codegraph-adapter.d.ts +147 -0
  263. package/dist/src/graph/codegraph-adapter.d.ts.map +1 -0
  264. package/dist/src/graph/codegraph-adapter.js +266 -0
  265. package/dist/src/graph/codegraph-adapter.js.map +1 -0
  266. package/dist/src/hooks/constants.d.ts +4 -0
  267. package/dist/src/hooks/constants.d.ts.map +1 -1
  268. package/dist/src/hooks/constants.js +14 -1
  269. package/dist/src/hooks/constants.js.map +1 -1
  270. package/dist/src/hooks/context-format.d.ts +46 -0
  271. package/dist/src/hooks/context-format.d.ts.map +1 -0
  272. package/dist/src/hooks/context-format.js +58 -0
  273. package/dist/src/hooks/context-format.js.map +1 -0
  274. package/dist/src/hooks/index.d.ts +2 -0
  275. package/dist/src/hooks/index.d.ts.map +1 -1
  276. package/dist/src/hooks/index.js +2 -0
  277. package/dist/src/hooks/index.js.map +1 -1
  278. package/dist/src/hooks/keyword-spec-injector.d.ts +1 -1
  279. package/dist/src/hooks/keyword-spec-injector.d.ts.map +1 -1
  280. package/dist/src/hooks/keyword-spec-injector.js +92 -7
  281. package/dist/src/hooks/keyword-spec-injector.js.map +1 -1
  282. package/dist/src/hooks/kg-context-injector.d.ts +19 -0
  283. package/dist/src/hooks/kg-context-injector.d.ts.map +1 -0
  284. package/dist/src/hooks/kg-context-injector.js +139 -0
  285. package/dist/src/hooks/kg-context-injector.js.map +1 -0
  286. package/dist/src/hooks/kg-sync-hook.d.ts +22 -0
  287. package/dist/src/hooks/kg-sync-hook.d.ts.map +1 -0
  288. package/dist/src/hooks/kg-sync-hook.js +139 -0
  289. package/dist/src/hooks/kg-sync-hook.js.map +1 -0
  290. package/dist/src/hooks/plugins/spec-injection-plugin.js +2 -2
  291. package/dist/src/hooks/plugins/spec-injection-plugin.js.map +1 -1
  292. package/dist/src/hooks/skill-context.d.ts.map +1 -1
  293. package/dist/src/hooks/skill-context.js +0 -1
  294. package/dist/src/hooks/skill-context.js.map +1 -1
  295. package/dist/src/hooks/spec-injector.d.ts.map +1 -1
  296. package/dist/src/hooks/spec-injector.js +66 -13
  297. package/dist/src/hooks/spec-injector.js.map +1 -1
  298. package/dist/src/hooks/statusline.d.ts +8 -1
  299. package/dist/src/hooks/statusline.d.ts.map +1 -1
  300. package/dist/src/hooks/statusline.js +45 -29
  301. package/dist/src/hooks/statusline.js.map +1 -1
  302. package/dist/src/hooks/wiki-role-loader.js +1 -1
  303. package/dist/src/hooks/wiki-role-loader.js.map +1 -1
  304. package/dist/src/i18n/locales/en.d.ts.map +1 -1
  305. package/dist/src/i18n/locales/en.js +4 -0
  306. package/dist/src/i18n/locales/en.js.map +1 -1
  307. package/dist/src/i18n/locales/zh.d.ts.map +1 -1
  308. package/dist/src/i18n/locales/zh.js +4 -0
  309. package/dist/src/i18n/locales/zh.js.map +1 -1
  310. package/dist/src/i18n/types.d.ts +4 -0
  311. package/dist/src/i18n/types.d.ts.map +1 -1
  312. package/dist/src/ralph/cmd-skills.d.ts.map +1 -1
  313. package/dist/src/ralph/cmd-skills.js +9 -2
  314. package/dist/src/ralph/cmd-skills.js.map +1 -1
  315. package/dist/src/ralph/skill-scanner.d.ts +1 -1
  316. package/dist/src/ralph/skill-scanner.d.ts.map +1 -1
  317. package/dist/src/ralph/skill-scanner.js +14 -0
  318. package/dist/src/ralph/skill-scanner.js.map +1 -1
  319. package/dist/src/ralph/status-schema.d.ts +1 -1
  320. package/dist/src/ralph/status-schema.d.ts.map +1 -1
  321. package/dist/src/tools/spec-entry-parser.d.ts +2 -1
  322. package/dist/src/tools/spec-entry-parser.d.ts.map +1 -1
  323. package/dist/src/tools/spec-entry-parser.js +7 -4
  324. package/dist/src/tools/spec-entry-parser.js.map +1 -1
  325. package/dist/src/tools/spec-loader.d.ts.map +1 -1
  326. package/dist/src/tools/spec-loader.js +27 -3
  327. package/dist/src/tools/spec-loader.js.map +1 -1
  328. package/dist/src/tools/spec-writer.d.ts +10 -1
  329. package/dist/src/tools/spec-writer.d.ts.map +1 -1
  330. package/dist/src/tools/spec-writer.js +86 -7
  331. package/dist/src/tools/spec-writer.js.map +1 -1
  332. package/dist/src/tools/store-knowhow.d.ts.map +1 -1
  333. package/dist/src/tools/store-knowhow.js +27 -7
  334. package/dist/src/tools/store-knowhow.js.map +1 -1
  335. package/dist/src/tui/install-ui/ExecutionView.d.ts.map +1 -1
  336. package/dist/src/tui/install-ui/ExecutionView.js +7 -1
  337. package/dist/src/tui/install-ui/ExecutionView.js.map +1 -1
  338. package/dist/src/tui/install-ui/InstallConfirm.d.ts +1 -0
  339. package/dist/src/tui/install-ui/InstallConfirm.d.ts.map +1 -1
  340. package/dist/src/tui/install-ui/InstallConfirm.js +3 -1
  341. package/dist/src/tui/install-ui/InstallConfirm.js.map +1 -1
  342. package/dist/src/tui/install-ui/InstallExecution.d.ts +2 -0
  343. package/dist/src/tui/install-ui/InstallExecution.d.ts.map +1 -1
  344. package/dist/src/tui/install-ui/InstallExecution.js +25 -1
  345. package/dist/src/tui/install-ui/InstallExecution.js.map +1 -1
  346. package/dist/src/tui/install-ui/InstallFlow.d.ts.map +1 -1
  347. package/dist/src/tui/install-ui/InstallFlow.js +13 -5
  348. package/dist/src/tui/install-ui/InstallFlow.js.map +1 -1
  349. package/dist/src/tui/install-ui/InstallHub.d.ts +2 -0
  350. package/dist/src/tui/install-ui/InstallHub.d.ts.map +1 -1
  351. package/dist/src/tui/install-ui/InstallHub.js +10 -0
  352. package/dist/src/tui/install-ui/InstallHub.js.map +1 -1
  353. package/dist/src/tui/install-ui/InstallResult.d.ts.map +1 -1
  354. package/dist/src/tui/install-ui/InstallResult.js +5 -1
  355. package/dist/src/tui/install-ui/InstallResult.js.map +1 -1
  356. package/dist/src/types/index.d.ts +2 -0
  357. package/dist/src/types/index.d.ts.map +1 -1
  358. package/dist/src/utils/cli-format.d.ts +6 -0
  359. package/dist/src/utils/cli-format.d.ts.map +1 -1
  360. package/dist/src/utils/cli-format.js +25 -0
  361. package/dist/src/utils/cli-format.js.map +1 -1
  362. package/dist/src/utils/update-notices.js +25 -0
  363. package/dist/src/utils/update-notices.js.map +1 -1
  364. package/package.json +5 -2
  365. package/templates/workflows/specs/node-catalog.md +0 -2
  366. package/workflows/agy-instructions.md +1 -1
  367. package/workflows/analyze.md +9 -4
  368. package/workflows/auto-test.md +2 -2
  369. package/workflows/business-test.md +1 -1
  370. package/workflows/claude-instructions.md +23 -11
  371. package/workflows/codex-instructions.md +2 -3
  372. package/workflows/execute.md +153 -7
  373. package/workflows/finish-work.md +1 -1
  374. package/workflows/fork.md +1 -1
  375. package/workflows/impeccable/design.md +1 -0
  376. package/workflows/impeccable.md +1 -0
  377. package/workflows/integration-test.md +1 -1
  378. package/workflows/knowhow.md +14 -8
  379. package/workflows/maestro-super.md +1 -1
  380. package/workflows/maestro.codex.md +18 -34
  381. package/workflows/maestro.md +34 -42
  382. package/workflows/review.md +1 -1
  383. package/workflows/specs-add.md +1 -1
  384. package/workflows/specs-setup.md +2 -2
  385. package/workflows/status.md +2 -2
  386. package/workflows/swarm/wf-verify.js +1 -1
  387. package/workflows/test-gen.md +2 -2
  388. package/workflows/test.md +1 -1
  389. package/workflows/updates/README.md +41 -0
  390. package/workflows/updates/update-v3-setup.md +79 -0
  391. package/workflows/verify.md +7 -1
  392. package/.agents/skills/learn-retro/SKILL.md +0 -159
  393. package/.agents/skills/maestro-learn/SKILL.md +0 -142
  394. package/.agents/skills/maestro-verify/SKILL.md +0 -146
  395. package/.agents/skills/manage-codebase-refresh/SKILL.md +0 -62
  396. package/.agents/skills/manage-learn/SKILL.md +0 -67
  397. package/.agents/skills/wiki-connect/SKILL.md +0 -64
  398. package/.agents/skills/wiki-digest/SKILL.md +0 -70
  399. package/.agy/skills/learn-retro/SKILL.md +0 -159
  400. package/.agy/skills/maestro-learn/SKILL.md +0 -142
  401. package/.agy/skills/maestro-verify/SKILL.md +0 -146
  402. package/.agy/skills/manage-codebase-refresh/SKILL.md +0 -62
  403. package/.agy/skills/manage-learn/SKILL.md +0 -64
  404. package/.agy/skills/wiki-connect/SKILL.md +0 -64
  405. package/.agy/skills/wiki-digest/SKILL.md +0 -70
  406. package/.claude/commands/learn-retro.md +0 -157
  407. package/.claude/commands/maestro-learn.md +0 -140
  408. package/.claude/commands/maestro-verify.md +0 -144
  409. package/.claude/commands/manage-codebase-refresh.md +0 -60
  410. package/.claude/commands/manage-learn.md +0 -65
  411. package/.claude/commands/wiki-connect.md +0 -62
  412. package/.claude/commands/wiki-digest.md +0 -68
  413. package/.codex/skills/maestro-verify/SKILL.md +0 -254
  414. package/chains/execute-verify.json +0 -59
  415. package/chains/singles/verify.json +0 -26
@@ -203,8 +203,7 @@ Display: `[{index}/{total}] ✗ {step.skill} 失败,会话已暂停。/maestro
203
203
 
204
204
  [✓] 0. maestro-plan 1 [global]
205
205
  [✓] 1. maestro-execute 1 [project]
206
- [✓] 2. maestro-verify 1 [global]
207
- [✓] 3. ◆ post-verify [decision]
206
+ [✓] 2. ◆ post-execute [decision]
208
207
  ...
209
208
  ============================================================
210
209
  ```
@@ -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>
@@ -28,7 +28,7 @@ Scripts: `~/.maestro/workflows/swarm/wf-*.js`
28
28
  | `wf-analyze` | maestro-analyze | explore → 6-dim scoring → **skeptic cross-verify** → **3-way advocacy (go/no-go/conditional) + referee** |
29
29
  | `wf-brainstorm` | maestro-brainstorm | multi-role analysis → **3-specialist cross-review** → **3-proposal competition** → **arbitrator** |
30
30
  | `wf-review` | quality-review | 6-dim scan → **3-vote adversarial verify (prosecutor/defense/judge)** → **3-perspective report + arbitrated verdict** |
31
- | `wf-verify` | maestro-verify | 3-layer + antipattern + convergence → **prosecutor vs defender debate** → **judge verdict** |
31
+ | `wf-verify` | maestro-execute (verification gate) | 3-layer + antipattern + convergence → **prosecutor vs defender debate** → **judge verdict** |
32
32
  | `wf-grill` | maestro-grill | explore → parallel branch stress → **meta-skeptic challenge** → **3-vote verdict (optimist/pessimist/realist)** |
33
33
  | `wf-plan` | maestro-plan | parallel context → **3-strategy competing proposals** → **judge panel scoring** → **3-critic adversarial check** |
34
34
  | `wf-execute` | maestro-execute | wave-based parallel execution → **adversarial convergence spot-check** → **3-vote status determination** |
@@ -230,7 +230,7 @@ Ralph 可以在 A_BUILD_STEPS 中将某些 step 的执行方式标记为 `swarm-
230
230
  "args": "--script wf-analyze {phase}",
231
231
  "stage": "analyze",
232
232
  "command_scope": "project",
233
- "command_path": "<resolved by maestro ralph skills>"
233
+ "command_path": "<resolved by maestro ralph skills --platform agent>"
234
234
  }
235
235
  ```
236
236
 
@@ -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
@@ -58,6 +58,26 @@ If specs not initialized, continue without — the workflow still produces valid
58
58
  Route to `~/.maestro/workflows/ui-codify.md` and follow completely.
59
59
 
60
60
  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.
61
+
62
+ ### Phase Gates (MANDATORY, BLOCKING)
63
+
64
+ **GATE Phase 1 → Phase 2**: Source path validated, file discovery completed. design-tokens.json generated.
65
+ **GATE Phase 2 → Phase 3**: layout-templates.json generated with component patterns.
66
+ **GATE Phase 3 → Phase 4**: preview.html + preview.css generated as interactive showcase.
67
+ **GATE Phase 4 → Completion**: knowhow-manifest.json created. codify-to-knowhow called and completed.
68
+
69
+ ### Artifact Verification (before completion)
70
+
71
+ ```
72
+ REQUIRED_ARTIFACTS = [
73
+ "design-tokens.json", // Phase 1
74
+ "layout-templates.json", // Phase 2
75
+ "preview.html", // Phase 3
76
+ "preview.css", // Phase 3
77
+ "knowhow-manifest.json" // Phase 4
78
+ ]
79
+ ```
80
+ If any artifact is missing: DO NOT report completion.
61
81
  </execution>
62
82
 
63
83
  <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_file
7
7
  - write_file
@@ -14,9 +14,13 @@ allowed-tools:
14
14
  <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
15
15
 
16
16
  <purpose>
17
- 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).
17
+ Version router detect current version, run schema migration to latest, then follow the version-specific smart upgrade workflow.
18
18
 
19
- Each migration step is previewed before execution. The user confirms each step in a loop.
19
+ Migration scripts live in two layers:
20
+ - **Schema** (`src/migrations/`): code-level state.json transforms, auto-chained by registry
21
+ - **Workflow** (`~/.maestro/workflows/updates/`): version-specific upgrade guides with environment setup
22
+
23
+ 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.
20
24
  </purpose>
21
25
 
22
26
  <context>
@@ -24,131 +28,80 @@ $ARGUMENTS — optional flags.
24
28
 
25
29
  **Flags:**
26
30
  - `--dry-run` -- Preview migration plan without executing
27
- - `--force` -- Skip confirmation prompts (apply all pending migrations)
31
+ - `--force` -- Skip confirmation prompts
32
+ - `--setup-only` -- Skip schema migration, run only the setup for current version
28
33
 
29
- **Migration registry:** `src/migrations/`
30
- - Each migration is a standalone file (e.g., `v1-to-v2.ts`) exporting a `MigrationDef`
31
- - All migrations are registered via `src/migrations/index.ts`
32
- - Registry auto-chains: detects current version → walks chain → applies in order
33
- - To add a new migration: create `src/migrations/v{N}-to-v{N+1}.ts`, register in `index.ts`
34
+ **Version source:** `.workflow/state.json` → `version` field
34
35
 
35
- **CLI runner:** `src/migrations/run.ts`
36
- - Executable entrypoint: `npx tsx src/migrations/run.ts [root] [--dry-run] [--force] [--json]`
37
- - Outputs JSON (with `--json`) or human-readable text
36
+ **Workflow docs:** `~/.maestro/workflows/updates/`
37
+ - `update-v{TO}-setup.md` post-migration setup for version {TO}
38
38
 
39
- **State version source:** `.workflow/state.json` `version` field
39
+ **Schema registry:** `src/migrations/` handles all intermediate version bumps automatically
40
40
  </context>
41
41
 
42
42
  <execution>
43
43
 
44
- ### Step 1: Detect Current State
44
+ ### Step 1: Detect Version
45
45
 
46
46
  ```
47
- 1. Read .workflow/state.json
48
- 2. Extract version field (default "1.0" if missing)
49
- 3. Display:
50
-
51
- === Maestro Workflow Update ===
52
- Project: {project_name}
53
- Version: {version}
54
- Location: {.workflow/ path}
47
+ 1. Read .workflow/state.json → extract version (default "1.0" if missing)
48
+ 2. Display:
49
+ === Maestro Update ===
50
+ Current version: v{version}
55
51
  ```
56
52
 
57
- ### Step 2: Dry-Run Preview
58
-
59
- Run the migration CLI in dry-run + JSON mode to get the full plan:
53
+ IF `--setup-only`:
54
+ → Glob: ~/.maestro/workflows/updates/update-v{version}-setup.md
55
+ IF exists: follow that document completely, then EXIT
56
+ → IF not exists: display "No setup script for v{version}" → EXIT
60
57
 
61
- ```bash
62
- npx tsx src/migrations/run.ts "$(pwd)" --dry-run --json
63
- ```
58
+ ### Step 2: Check for Updates
64
59
 
65
- Parse the JSON output. If status is `up-to-date`:
66
60
  ```
67
- Already up to date (v{version})
68
- ```
69
- EXIT
70
-
71
- Otherwise display the migration plan:
61
+ 1. Run: npx tsx src/migrations/run.ts "$(pwd)" --dry-run --json
62
+ 2. Parse JSON output
63
+ 3. IF status = "up-to-date":
64
+ Display "Already up to date (v{version})"
65
+ Glob: ~/.maestro/workflows/updates/update-v{version}-setup.md
66
+ → IF exists: ask_user "Run setup for v{version}?" → load and follow
67
+ → EXIT
68
+
69
+ 4. Display target:
70
+ Update available: v{current} → v{target}
71
+ Schema migrations: {N} step(s) (handled automatically)
72
72
  ```
73
- Pending Migrations ({N} step(s)):
74
-
75
- 1. [v{from} → v{to}] {name}
76
- {description}
77
-
78
- 2. [v{from} → v{to}] {name}
79
- {description}
80
- ```
81
-
82
- If `--dry-run` flag was passed by user → display plan and EXIT.
83
73
 
84
- ### Step 3: Interactive Confirmation Loop
74
+ IF `--dry-run` display info and EXIT.
85
75
 
86
- For each migration step (unless `--force`):
76
+ ### Step 3: Execute
87
77
 
88
78
  ```
89
- LOOP for step_index = 1 to N:
79
+ 1. Confirm (unless --force):
80
+ ask_user: "Upgrade v{current} → v{target}?"
81
+ Options: [执行 / 取消]
90
82
 
91
- Display:
92
- --- Step {step_index}/{N}: {name} ---
93
- Version: v{from} → v{to}
83
+ 2. Create backup:
84
+ Bash: cp .workflow/state.json .workflow/state.json.backup-v{current}-{timestamp}
94
85
 
95
- Changes:
96
- {description, indented}
86
+ 3. Run schema migration (handles all intermediate steps automatically):
87
+ Bash: npx tsx src/migrations/run.ts "$(pwd)" --json
88
+ Parse result, display changes.
97
89
 
98
- IF NOT --force:
99
- ask_user: "Apply this migration?"
100
- Options: [yes / skip / abort]
90
+ 4. IF failed → display backup restore command → EXIT
101
91
 
102
- - "yes" → proceed to Step 4 (execute)
103
- - "skip" → WARN "Skipping may break the migration chain"
104
- continue to next step
105
- - "abort" → display summary of what was applied so far → EXIT
92
+ 5. Load version-specific setup:
93
+ Read: ~/.maestro/workflows/updates/update-v{target}-setup.md
94
+ IF exists follow completely (hooks, deps, knowledge system config)
106
95
 
107
- IF --force:
108
- → proceed to Step 4 (execute)
96
+ 6. Display: "v{current} → v{target}: done"
109
97
  ```
110
98
 
111
- ### Step 4: Execute Single Migration
99
+ ### Step 4: Summary
112
100
 
113
101
  ```
114
- 1. Create backup:
115
- Bash: cp .workflow/state.json .workflow/state.json.backup-v{from}-{timestamp}
116
-
117
- 2. Run migration:
118
- Bash: npx tsx src/migrations/run.ts "$(pwd)" --json
119
-
120
- NOTE: The runner executes ALL pending migrations. For step-by-step control,
121
- read state.json, call the migration function directly, or use the runner
122
- which stops on first failure.
123
-
124
- 3. Parse result JSON and display:
125
-
126
- {status_icon} Step {N} completed: {name}
127
- Summary: {summary}
128
- Changes:
129
- - {change_1}
130
- - {change_2}
131
- - ...
132
-
133
- 4. If failed:
134
- Display: "Migration failed: {summary}"
135
- Display: "Backup available at: {backup_path}"
136
- Display: "Restore with: cp {backup_path} .workflow/state.json"
137
- → EXIT
138
-
139
- 5. Continue loop to next step
140
- ```
141
-
142
- ### Step 5: Summary
143
-
144
- After all steps completed (or user aborted):
145
-
146
- ```
147
- === Migration Complete ===
148
- Applied: {applied_count} / {total_count} migration(s)
149
- Skipped: {skipped_count}
150
- Version: v{original} → v{final}
151
- Backup: .workflow/state.json.backup-v{original}-{timestamp}
102
+ === Update Complete ===
103
+ Version: v{current} v{target}
104
+ Backup: .workflow/state.json.backup-v{current}-{timestamp}
152
105
 
153
106
  Next steps:
154
107
  /manage-status -- Verify project state
@@ -157,22 +110,12 @@ Next steps:
157
110
 
158
111
  </execution>
159
112
 
160
- <error_codes>
161
- | Code | Severity | Condition | Recovery |
162
- |------|----------|-----------|----------|
163
- | E001 | error | .workflow/state.json not found | Run /maestro-init first |
164
- | E002 | error | state.json parse error | Check file for corruption |
165
- | E003 | error | Migration function failed | Restore from backup |
166
- | W001 | warning | Skipped migration may break version chain | Re-run /maestro-update later |
167
- | W002 | warning | tsx not available | Install tsx: npm i -D tsx |
168
- </error_codes>
169
-
170
113
  <success_criteria>
171
114
  - [ ] Current version detected from state.json
172
- - [ ] Dry-run preview shows full migration plan without execution
173
- - [ ] Each step confirmed interactively (unless --force)
174
- - [ ] Backup created before each migration
175
- - [ ] Migration executed and result displayed with change list
176
- - [ ] Abort stops cleanly with partial summary
177
- - [ ] Summary shows applied/skipped counts and version change
115
+ - [ ] Schema migrations run automatically (no manual intermediate steps)
116
+ - [ ] Backup created before migration
117
+ - [ ] Version-specific setup doc loaded and followed (if exists)
118
+ - [ ] --setup-only runs only setup for current version
119
+ - [ ] --dry-run previews without executing
120
+ - [ ] Summary shows version change and backup path
178
121
  </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`
@@ -15,9 +15,11 @@ allowed-tools:
15
15
 
16
16
  <purpose>
17
17
  Unified memory management across two stores:
18
- 1. **Workflow knowhow** (`.workflow/knowhow/`) — Session compacts and tips with JSON index, created by `manage-knowhow-capture`
18
+ 1. **Workflow knowhow** (`.workflow/knowhow/`) — Session compacts, tips, insights, and all reusable knowledge, created by `manage-knowhow-capture`
19
19
  2. **System memory** (`~/.claude/projects/{project}/memory/`) — Claude Code auto-memory (MEMORY.md + topic files), persists across conversations
20
20
 
21
+ Also scans `.workflow/specs/learnings.md` for legacy insight entries (backward compat with former `manage-learn`).
22
+
21
23
  Provides list/search/view/edit/delete/prune operations. Default store is `all` (show both).
22
24
  </purpose>
23
25
 
@@ -15,7 +15,7 @@ allowed-tools:
15
15
 
16
16
  <purpose>
17
17
  Capture reusable knowledge into `.workflow/knowhow/` with type-specific structured fields.
18
- Auto-indexed by WikiIndexer (type=knowhow), searchable via `maestro knowhow search`.
18
+ Auto-indexed by WikiIndexer (type=knowhow), searchable via `maestro search --type knowhow`.
19
19
  </purpose>
20
20
 
21
21
  <required_reading>
@@ -25,7 +25,7 @@ Auto-indexed by WikiIndexer (type=knowhow), searchable via `maestro knowhow sear
25
25
  <context>
26
26
  $ARGUMENTS — type token + description + optional flags.
27
27
 
28
- **Flags**: `--lang <lang>`, `--source <url>`, `--tag tag1,tag2`, `--title <title>`, `--asset-type <type>`, `--code-paths <paths>`, `--category <cat>`
28
+ **Flags**: `--lang <lang>`, `--source <url>`, `--tag tag1,tag2`, `--title <title>`, `--description <desc>`, `--asset-type <type>`, `--code-paths <paths>`, `--category <cat>`
29
29
 
30
30
  **Type routing** (first token match):
31
31
 
@@ -40,15 +40,18 @@ $ARGUMENTS — type token + description + optional flags.
40
40
  | `asset`/`ast`/`资产`/`契约` | asset | AST- | assetType, codePaths, category |
41
41
  | `blueprint`/`blp`/`蓝图` | blueprint | BLP- | codePaths, category |
42
42
  | `document`/`doc`/`文档` | document | DOC- | (general fallback) |
43
+ | `insight`/`ins`/`洞察`/`经验` | insight | INS- | content, tags, phase (replaces former manage-learn) |
43
44
  | Short text + `--tag` | tip | TIP- | — |
44
- | No args | — | — | ask_user (9 options) |
45
+ | No args | — | — | ask_user (10 options) |
45
46
 
46
- **Output**: `.workflow/knowhow/{PREFIX}-{YYYYMMDD}-{HHMM}.md` with YAML frontmatter (title, type, category, created, tags, source, lang, status)
47
+ **Output**: `.workflow/knowhow/{PREFIX}-{YYYYMMDD}-{slug}.md` with YAML frontmatter (title, description, type, category, created, tags, source, lang, status)
47
48
  </context>
48
49
 
49
50
  <execution>
50
51
  Follow '~/.maestro/workflows/knowhow.md' completely.
51
52
 
53
+ **Description rule**: Every entry MUST have a `description` field in frontmatter — a one-line summary (under 120 chars) for search results. WikiIndexer uses priority chain: `description > content[:240]`. Use `--description` flag value if provided; otherwise auto-generate from content.
54
+
52
55
  **Tags language rule**: Tags must match content language. Chinese content → Chinese tags (如 `认证,令牌,刷新`). English content → English tags. Mixed → bilingual.
53
56
 
54
57
  **Type-specific content rules**:
@@ -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_file
7
7
  - write_file
@@ -14,9 +14,7 @@ allowed-tools:
14
14
  <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
15
15
 
16
16
  <purpose>
17
- Unified wiki graph management command. Provides interactive access to wiki health monitoring, entry search, orphan cleanup, and graph statistics — the day-to-day operations that keep the knowledge graph healthy.
18
-
19
- Complements `/wiki-connect` (link discovery) and `/wiki-digest` (synthesis) with operational tooling.
17
+ 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.
20
18
  </purpose>
21
19
 
22
20
  <required_reading>
@@ -33,16 +31,26 @@ $ARGUMENTS — subcommand and optional flags.
33
31
  | `search <query>` | Interactive BM25 search with follow-up actions |
34
32
  | `cleanup` | Find and resolve orphans, broken links, stale entries |
35
33
  | `stats` | Graph statistics — type distribution, tag frequency, growth trends |
34
+ | `connect` | Find and link hidden connections — orphan rescue, missing links, transitive gaps |
35
+ | `digest [topic]` | Generate knowledge digest with theme clustering and gap analysis |
36
36
  | No args | Same as `health` |
37
37
 
38
38
  **Flags:**
39
39
  - `--type <type>` — Filter by wiki type: spec, knowhow, note, issue
40
- - `--fix` — Auto-fix issues found during cleanup (remove broken links, suggest connections)
40
+ - `--fix` — Auto-fix issues found during cleanup/connect (remove broken links, apply connections)
41
41
  - `--json` — Output in JSON format
42
+ - `--min-similarity N` — (connect) Minimum similarity threshold for link candidates
43
+ - `--max N` — (connect) Maximum number of suggestions
44
+ - `--format brief|full` — (digest) Output format
45
+ - `--recent N` — (digest) Scope to N most recent entries
46
+ - `--create-issues` — (digest) Create issues for identified knowledge gaps
42
47
  </context>
43
48
 
44
49
  <execution>
45
- Follow '~/.maestro/workflows/wiki-manage.md' completely.
50
+ **Subcommand routing:**
51
+ - `health|search|cleanup|stats` → Follow `~/.maestro/workflows/wiki-manage.md` completely.
52
+ - `connect` → Follow `~/.maestro/workflows/wiki-connect.md` completely (Stages 1-6).
53
+ - `digest` → Follow `~/.maestro/workflows/wiki-digest.md` completely (Stages 1-8).
46
54
  </execution>
47
55
 
48
56
  <error_codes>
@@ -56,9 +64,10 @@ Follow '~/.maestro/workflows/wiki-manage.md' completely.
56
64
  </error_codes>
57
65
 
58
66
  <success_criteria>
59
- - [ ] Subcommand parsed (health/search/cleanup/stats)
67
+ - [ ] Subcommand parsed (health/search/cleanup/stats/connect/digest)
60
68
  - [ ] Wiki data loaded via `maestro wiki` CLI
61
69
  - [ ] Results displayed in formatted output
62
- - [ ] If cleanup --fix: issues resolved and delta reported
70
+ - [ ] If cleanup/connect --fix: issues resolved and delta reported
71
+ - [ ] If digest: themes clustered, gaps identified, coverage heatmap generated
63
72
  - [ ] Next-step suggestions provided
64
73
  </success_criteria>
@@ -57,7 +57,7 @@ Flags, artifact context resolution, and output formats defined in workflow auto-
57
57
  1. **Test specs + tools**: Run `maestro spec load --category test` to load test conventions (framework, patterns, naming). Apply to all generated tests.
58
58
  2. **Coding specs**: Run `maestro spec load --category coding` to understand coding patterns for accurate test targeting.
59
59
  3. **Role Knowledge**:
60
- - Browse: `maestro wiki list --category test`
60
+ - Browse: `maestro search --category test`
61
61
  - Load task-relevant entries: `maestro wiki load <id1> [id2...]`
62
62
  4. All are optional — proceed without if unavailable.
63
63
  </context>
@@ -93,13 +93,13 @@ Append to state.json.artifacts[]:
93
93
  ```
94
94
 
95
95
  **Next-step routing on completion:**
96
- - Converged (>=95%) → `/maestro-verify {phase}`
96
+ - Converged (>=95%) → `/quality-review {phase}`
97
97
  - All requirements verified (spec source) → `/maestro-milestone-audit`
98
98
  - Bugs discovered → `/quality-debug --from-uat {phase}`
99
99
  - Max iter, >80% → `/quality-test {phase}` for manual UAT
100
100
  - Max iter, <80% → `/quality-debug {phase}`
101
101
  - Coverage still low → `/quality-auto-test {phase} --layer {missing}`
102
- - Re-run all pass → `/maestro-verify {phase}`
102
+ - Re-run all pass → `/quality-review {phase}`
103
103
  - Single pass, all pass → `/quality-test {phase}`
104
104
  </execution>
105
105
 
@@ -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 → `invoke_skill("spec-add", "<category> <content>")`.
86
+ On confirm → `invoke_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>
@@ -35,7 +35,7 @@ If not provided, prompt user for scope.
35
35
  1. **Coding specs**: Run `maestro spec load --category coding` to load coding conventions. Apply conventions to all refactored code.
36
36
  2. **Review specs**: Run `maestro spec load --category review` to load review standards. Use as quality gate for refactored code.
37
37
  3. **Role Knowledge**:
38
- - Browse: `maestro wiki list --category coding`
38
+ - Browse: `maestro search --category coding`
39
39
  - Identify task-relevant entries, then load: `maestro wiki load <id1> [id2...]`
40
40
  4. All are optional — proceed without if unavailable.
41
41
  </context>
@@ -44,7 +44,7 @@ If not provided, prompt user for scope.
44
44
  Follow '~/.maestro/workflows/refactor.md' completely.
45
45
 
46
46
  **Knowledge inquiry on completion:**
47
- After successful refactoring, ask user once: "Record refactoring pattern as coding convention?" If yes, persist via `invoke_skill("spec-add", "coding \"<title>\" \"<pattern>\" --keywords <kw1>,<kw2>")`.
47
+ After successful refactoring, ask user once: "Record refactoring pattern as coding convention?" If yes, persist via `invoke_skill("spec-add", "coding \"<title>\" \"<pattern>\" --keywords <kw1>,<kw2> --description \"<summary>\"")`.
48
48
 
49
49
  **Next-step routing on completion:**
50
50
  - All tests pass → `/quality-sync` (update codebase docs)
@@ -24,7 +24,7 @@ Post-execution multi-perspective retrospective (复盘) for completed phases. Co
24
24
 
25
25
  <deferred_reading>
26
26
  - @~/.maestro/workflows/issue.md (issues.jsonl schema for auto-creation)
27
- - @~/.maestro/workflows/learn.md (tip routing via manage-learn tip)
27
+ - @~/.maestro/workflows/learn.md (tip routing via manage-knowhow-capture tip)
28
28
  - @~/.maestro/workflows/verify.md (verification.json schema for quality lens parsing)
29
29
  - @~/.maestro/workflows/review.md (review.json schema for quality lens parsing)
30
30
  </deferred_reading>
@@ -41,7 +41,7 @@ Follow `~/.maestro/workflows/retrospective.md` Stages 1–8 in order. Key invari
41
41
  1. **Read-only until Stage 6** — Stages 1–5 must not write anything except the in-memory retrospective record.
42
42
  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`.
43
43
  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).
44
- 4. **Reuse `manage-learn tip` for note routing** — do not duplicate the learning pipeline; invoke via `invoke_skill({ skill: "manage-learn", args: "tip ..." })`.
44
+ 4. **Reuse `manage-knowhow-capture tip` for note routing** — do not duplicate the learning pipeline; invoke via `invoke_skill({ skill: "manage-knowhow-capture", args: "tip ..." })`.
45
45
  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.
46
46
  6. **Stable insight IDs** — `INS-{8 hex}` from `hash(phase_num + lens + title)` so re-runs do not duplicate.
47
47
  7. **Archive before overwrite** — if existing `retrospective.{md,json}` are being replaced, move them to `{artifact_dir}/.history/` with a timestamp suffix first.
@@ -57,7 +57,7 @@ Follow `~/.maestro/workflows/retrospective.md` Stages 1–8 in order. Key invari
57
57
  | E005 | error | Phase argument out of range / phase directory not found | scan_unreviewed |
58
58
  | W001 | warning | One or more lens agents failed — proceeding with partial coverage | multi_lens_analysis |
59
59
  | W002 | warning | Existing retrospective.json found and not `--all` — prompted user to overwrite | scan_unreviewed |
60
- | W003 | warning | `manage-learn tip` did not return parseable INS id; fell back to direct write | route_outputs |
60
+ | W003 | warning | `manage-knowhow-capture tip` did not return parseable INS id; fell back to direct write | route_outputs |
61
61
  | W004 | warning | `--compare` target phase has no retrospective.json; delta omitted | load_artifacts |
62
62
  </error_codes>
63
63
 
@@ -71,9 +71,9 @@ Follow `~/.maestro/workflows/retrospective.md` Stages 1–8 in order. Key invari
71
71
  - [ ] If routing enabled (default): every recommendation either created an artifact or was explicitly skipped by user
72
72
  - [ ] Spec entries (if any) appended as `<spec-entry>` to matching `.workflow/specs/{category-file}.md`
73
73
  - [ ] Issue rows (if any) match canonical issues.jsonl schema (status "open", full issue_history, all required fields)
74
- - [ ] Note tips (if any) created via `invoke_skill({ skill: "manage-learn", args: "tip ..." })`
74
+ - [ ] Note tips (if any) created via `invoke_skill({ skill: "manage-knowhow-capture", args: "tip ..." })`
75
75
  - [ ] `.workflow/specs/learnings.md` appended with one `<spec-entry>` per insight regardless of routing target
76
76
  - [ ] No existing phase artifacts modified (verification.json, review.json, plan.json untouched)
77
77
  - [ ] Confirmation banner displays routing counts and next-step suggestions
78
- - [ ] 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
78
+ - [ ] 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
79
79
  </success_criteria>