maestro-flow 0.4.26 → 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 (380) 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 +1 -1
  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 +3 -0
  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 +4 -1
  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 +2 -2
  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/spec-add/SKILL.md +5 -3
  190. package/.codex/skills/spec-remove/SKILL.md +2 -2
  191. package/.codex/skills/team-coordinate/SKILL.md +1 -1
  192. package/.codex/skills/wiki-digest/SKILL.md +2 -2
  193. package/chains/brainstorm-driven.json +2 -34
  194. package/chains/full-lifecycle.json +2 -34
  195. package/chains/next-milestone.json +0 -7
  196. package/chains/quality-loop.json +3 -19
  197. package/chains/roadmap-driven.json +2 -34
  198. package/chains/spec-driven.json +2 -34
  199. package/chains/ui-craft-build.json +2 -23
  200. package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js +8 -11
  201. package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js.map +1 -1
  202. package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.d.ts +1 -0
  203. package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.js +3 -1
  204. package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.js.map +1 -1
  205. package/dashboard/dist-server/dashboard/src/server/wiki/stress.test.js +1 -0
  206. package/dashboard/dist-server/dashboard/src/server/wiki/stress.test.js.map +1 -1
  207. package/dashboard/dist-server/dashboard/src/server/wiki/virtual-wiki-adapters.js +9 -0
  208. package/dashboard/dist-server/dashboard/src/server/wiki/virtual-wiki-adapters.js.map +1 -1
  209. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js +9 -4
  210. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js.map +1 -1
  211. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-types.d.ts +3 -0
  212. package/dashboard/dist-server/dashboard/src/server/wiki/writer.d.ts +4 -0
  213. package/dashboard/dist-server/dashboard/src/server/wiki/writer.js +5 -3
  214. package/dashboard/dist-server/dashboard/src/server/wiki/writer.js.map +1 -1
  215. package/dashboard/dist-server/src/types/index.d.ts +2 -0
  216. package/dist/src/cli.js +1 -0
  217. package/dist/src/cli.js.map +1 -1
  218. package/dist/src/commands/hooks.d.ts.map +1 -1
  219. package/dist/src/commands/hooks.js +55 -5
  220. package/dist/src/commands/hooks.js.map +1 -1
  221. package/dist/src/commands/install-backend.d.ts.map +1 -1
  222. package/dist/src/commands/install-backend.js +2 -1
  223. package/dist/src/commands/install-backend.js.map +1 -1
  224. package/dist/src/commands/install.d.ts.map +1 -1
  225. package/dist/src/commands/install.js +16 -1
  226. package/dist/src/commands/install.js.map +1 -1
  227. package/dist/src/commands/kg.d.ts +1 -1
  228. package/dist/src/commands/kg.d.ts.map +1 -1
  229. package/dist/src/commands/kg.js +285 -112
  230. package/dist/src/commands/kg.js.map +1 -1
  231. package/dist/src/commands/knowhow.d.ts.map +1 -1
  232. package/dist/src/commands/knowhow.js +28 -37
  233. package/dist/src/commands/knowhow.js.map +1 -1
  234. package/dist/src/commands/ralph.js +1 -1
  235. package/dist/src/commands/ralph.js.map +1 -1
  236. package/dist/src/commands/search.d.ts +36 -0
  237. package/dist/src/commands/search.d.ts.map +1 -0
  238. package/dist/src/commands/search.js +120 -0
  239. package/dist/src/commands/search.js.map +1 -0
  240. package/dist/src/commands/spec.d.ts.map +1 -1
  241. package/dist/src/commands/spec.js +15 -59
  242. package/dist/src/commands/spec.js.map +1 -1
  243. package/dist/src/commands/update.d.ts.map +1 -1
  244. package/dist/src/commands/update.js +7 -0
  245. package/dist/src/commands/update.js.map +1 -1
  246. package/dist/src/commands/wiki.d.ts.map +1 -1
  247. package/dist/src/commands/wiki.js +6 -21
  248. package/dist/src/commands/wiki.js.map +1 -1
  249. package/dist/src/core/component-defs.d.ts +13 -0
  250. package/dist/src/core/component-defs.d.ts.map +1 -1
  251. package/dist/src/core/component-defs.js +37 -85
  252. package/dist/src/core/component-defs.js.map +1 -1
  253. package/dist/src/core/skill-converter.d.ts +25 -0
  254. package/dist/src/core/skill-converter.d.ts.map +1 -0
  255. package/dist/src/core/skill-converter.js +605 -0
  256. package/dist/src/core/skill-converter.js.map +1 -0
  257. package/dist/src/graph/codegraph-adapter.d.ts +147 -0
  258. package/dist/src/graph/codegraph-adapter.d.ts.map +1 -0
  259. package/dist/src/graph/codegraph-adapter.js +266 -0
  260. package/dist/src/graph/codegraph-adapter.js.map +1 -0
  261. package/dist/src/hooks/constants.d.ts +4 -0
  262. package/dist/src/hooks/constants.d.ts.map +1 -1
  263. package/dist/src/hooks/constants.js +14 -1
  264. package/dist/src/hooks/constants.js.map +1 -1
  265. package/dist/src/hooks/context-format.d.ts +46 -0
  266. package/dist/src/hooks/context-format.d.ts.map +1 -0
  267. package/dist/src/hooks/context-format.js +58 -0
  268. package/dist/src/hooks/context-format.js.map +1 -0
  269. package/dist/src/hooks/index.d.ts +2 -0
  270. package/dist/src/hooks/index.d.ts.map +1 -1
  271. package/dist/src/hooks/index.js +2 -0
  272. package/dist/src/hooks/index.js.map +1 -1
  273. package/dist/src/hooks/keyword-spec-injector.d.ts +1 -1
  274. package/dist/src/hooks/keyword-spec-injector.d.ts.map +1 -1
  275. package/dist/src/hooks/keyword-spec-injector.js +92 -7
  276. package/dist/src/hooks/keyword-spec-injector.js.map +1 -1
  277. package/dist/src/hooks/kg-context-injector.d.ts +19 -0
  278. package/dist/src/hooks/kg-context-injector.d.ts.map +1 -0
  279. package/dist/src/hooks/kg-context-injector.js +139 -0
  280. package/dist/src/hooks/kg-context-injector.js.map +1 -0
  281. package/dist/src/hooks/kg-sync-hook.d.ts +22 -0
  282. package/dist/src/hooks/kg-sync-hook.d.ts.map +1 -0
  283. package/dist/src/hooks/kg-sync-hook.js +139 -0
  284. package/dist/src/hooks/kg-sync-hook.js.map +1 -0
  285. package/dist/src/hooks/plugins/spec-injection-plugin.js +2 -2
  286. package/dist/src/hooks/plugins/spec-injection-plugin.js.map +1 -1
  287. package/dist/src/hooks/skill-context.d.ts.map +1 -1
  288. package/dist/src/hooks/skill-context.js +0 -1
  289. package/dist/src/hooks/skill-context.js.map +1 -1
  290. package/dist/src/hooks/spec-injector.d.ts.map +1 -1
  291. package/dist/src/hooks/spec-injector.js +66 -13
  292. package/dist/src/hooks/spec-injector.js.map +1 -1
  293. package/dist/src/hooks/statusline.d.ts +8 -1
  294. package/dist/src/hooks/statusline.d.ts.map +1 -1
  295. package/dist/src/hooks/statusline.js +45 -29
  296. package/dist/src/hooks/statusline.js.map +1 -1
  297. package/dist/src/hooks/wiki-role-loader.js +1 -1
  298. package/dist/src/hooks/wiki-role-loader.js.map +1 -1
  299. package/dist/src/ralph/cmd-skills.d.ts.map +1 -1
  300. package/dist/src/ralph/cmd-skills.js +9 -2
  301. package/dist/src/ralph/cmd-skills.js.map +1 -1
  302. package/dist/src/ralph/skill-scanner.d.ts +1 -1
  303. package/dist/src/ralph/skill-scanner.d.ts.map +1 -1
  304. package/dist/src/ralph/skill-scanner.js +14 -0
  305. package/dist/src/ralph/skill-scanner.js.map +1 -1
  306. package/dist/src/ralph/status-schema.d.ts +1 -1
  307. package/dist/src/ralph/status-schema.d.ts.map +1 -1
  308. package/dist/src/tools/spec-entry-parser.d.ts +2 -1
  309. package/dist/src/tools/spec-entry-parser.d.ts.map +1 -1
  310. package/dist/src/tools/spec-entry-parser.js +7 -4
  311. package/dist/src/tools/spec-entry-parser.js.map +1 -1
  312. package/dist/src/tools/spec-loader.d.ts.map +1 -1
  313. package/dist/src/tools/spec-loader.js +27 -3
  314. package/dist/src/tools/spec-loader.js.map +1 -1
  315. package/dist/src/tools/spec-writer.d.ts +10 -1
  316. package/dist/src/tools/spec-writer.d.ts.map +1 -1
  317. package/dist/src/tools/spec-writer.js +86 -7
  318. package/dist/src/tools/spec-writer.js.map +1 -1
  319. package/dist/src/tools/store-knowhow.d.ts.map +1 -1
  320. package/dist/src/tools/store-knowhow.js +27 -7
  321. package/dist/src/tools/store-knowhow.js.map +1 -1
  322. package/dist/src/tui/install-ui/ExecutionView.d.ts.map +1 -1
  323. package/dist/src/tui/install-ui/ExecutionView.js +7 -1
  324. package/dist/src/tui/install-ui/ExecutionView.js.map +1 -1
  325. package/dist/src/tui/install-ui/InstallExecution.d.ts.map +1 -1
  326. package/dist/src/tui/install-ui/InstallExecution.js +5 -1
  327. package/dist/src/tui/install-ui/InstallExecution.js.map +1 -1
  328. package/dist/src/types/index.d.ts +2 -0
  329. package/dist/src/types/index.d.ts.map +1 -1
  330. package/dist/src/utils/cli-format.d.ts +6 -0
  331. package/dist/src/utils/cli-format.d.ts.map +1 -1
  332. package/dist/src/utils/cli-format.js +25 -0
  333. package/dist/src/utils/cli-format.js.map +1 -1
  334. package/dist/src/utils/update-notices.js +19 -0
  335. package/dist/src/utils/update-notices.js.map +1 -1
  336. package/package.json +5 -2
  337. package/templates/workflows/specs/node-catalog.md +0 -2
  338. package/workflows/analyze.md +9 -4
  339. package/workflows/auto-test.md +2 -2
  340. package/workflows/business-test.md +1 -1
  341. package/workflows/claude-instructions.md +23 -11
  342. package/workflows/codex-instructions.md +2 -3
  343. package/workflows/execute.md +153 -7
  344. package/workflows/fork.md +1 -1
  345. package/workflows/integration-test.md +1 -1
  346. package/workflows/maestro-super.md +1 -1
  347. package/workflows/maestro.codex.md +18 -34
  348. package/workflows/maestro.md +34 -42
  349. package/workflows/review.md +1 -1
  350. package/workflows/status.md +2 -2
  351. package/workflows/swarm/wf-verify.js +1 -1
  352. package/workflows/test-gen.md +2 -2
  353. package/workflows/test.md +1 -1
  354. package/workflows/updates/README.md +41 -0
  355. package/workflows/updates/update-v3-setup.md +79 -0
  356. package/workflows/verify.md +7 -1
  357. package/.agents/skills/learn-retro/SKILL.md +0 -159
  358. package/.agents/skills/maestro-learn/SKILL.md +0 -142
  359. package/.agents/skills/maestro-verify/SKILL.md +0 -146
  360. package/.agents/skills/manage-codebase-refresh/SKILL.md +0 -62
  361. package/.agents/skills/manage-learn/SKILL.md +0 -67
  362. package/.agents/skills/wiki-connect/SKILL.md +0 -64
  363. package/.agents/skills/wiki-digest/SKILL.md +0 -70
  364. package/.agy/skills/learn-retro/SKILL.md +0 -159
  365. package/.agy/skills/maestro-learn/SKILL.md +0 -142
  366. package/.agy/skills/maestro-verify/SKILL.md +0 -146
  367. package/.agy/skills/manage-codebase-refresh/SKILL.md +0 -62
  368. package/.agy/skills/manage-learn/SKILL.md +0 -64
  369. package/.agy/skills/wiki-connect/SKILL.md +0 -64
  370. package/.agy/skills/wiki-digest/SKILL.md +0 -70
  371. package/.claude/commands/learn-retro.md +0 -157
  372. package/.claude/commands/maestro-learn.md +0 -140
  373. package/.claude/commands/maestro-verify.md +0 -144
  374. package/.claude/commands/manage-codebase-refresh.md +0 -60
  375. package/.claude/commands/manage-learn.md +0 -65
  376. package/.claude/commands/wiki-connect.md +0 -62
  377. package/.claude/commands/wiki-digest.md +0 -68
  378. package/.codex/skills/maestro-verify/SKILL.md +0 -254
  379. package/chains/execute-verify.json +0 -59
  380. package/chains/singles/verify.json +0 -26
@@ -1,140 +0,0 @@
1
- ---
2
- name: maestro-learn
3
- description: Route learning intent to learn-* commands
4
- argument-hint: "<intent> [-y] [--dry-run] [--chain <name>]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Bash
9
- - Glob
10
- - Grep
11
- - Agent
12
- - AskUserQuestion
13
- ---
14
- <purpose>
15
- Route learning requests to the optimal learn command or multi-step chain. Supports direct chain selection via `--chain` or intent-based routing via keyword matching.
16
-
17
- Executes commands sequentially via Skill() with session tracking.
18
- </purpose>
19
-
20
- <context>
21
- $ARGUMENTS — user learning intent text, or flags.
22
-
23
- **Flags:**
24
- - `-y` / `--yes` — Auto mode: skip confirmation
25
- - `--dry-run` — Show planned chain without executing
26
- - `--chain <name>` — Force a specific chain (bypass intent detection)
27
-
28
- **Available learn commands:**
29
- | Command | Purpose |
30
- |---------|---------|
31
- | `learn-follow` | Guided reading with forcing questions, pattern extraction |
32
- | `learn-investigate` | Hypothesis-driven question investigation |
33
- | `learn-decompose` | 4-dimension parallel pattern extraction |
34
- | `learn-second-opinion` | Multi-perspective review/challenge/consult |
35
- | `learn-retro` | Unified retrospective (git metrics + decision evaluation) |
36
-
37
- **Available chains:**
38
- | Chain | Steps | Use when |
39
- |-------|-------|----------|
40
- | `follow` | learn-follow | Read/understand code or docs |
41
- | `investigate` | learn-investigate | Answer a "how/why" question |
42
- | `decompose` | learn-decompose | Catalog patterns in a module |
43
- | `second-opinion` | learn-second-opinion | Get review/challenge on code |
44
- | `retro` | learn-retro --lens all | Full retrospective (git + decisions) |
45
- | `deep-understand` | follow → decompose → second-opinion | Thorough module analysis |
46
- | `pattern-catalog` | decompose --save-spec --save-wiki → second-opinion --mode review | Full pattern extraction + review |
47
-
48
- **Storage:**
49
- - `.workflow/knowhow/.maestro-learn/{session_id}/status.json` — Session tracking
50
- - All learn command outputs go to `.workflow/knowhow/`
51
- </context>
52
-
53
- <execution>
54
-
55
- ### Step 1: Parse & Route
56
-
57
- Parse flags (`-y`, `--dry-run`, `--chain`). Extract intent text.
58
-
59
- **If `--chain` specified:** validate against known chains, jump to Step 2.
60
-
61
- **Intent routing table** (match first token or keywords):
62
-
63
- | Keywords | Route |
64
- |----------|-------|
65
- | File path (contains `/` or `\`) | `follow` |
66
- | Wiki ID (`type-slug` pattern) | `follow` |
67
- | read, follow, walk through, understand, 阅读, 跟读 | `follow` |
68
- | why, how, what if, investigate, 为什么, 怎么 | `investigate` |
69
- | pattern, decompose, catalog, 分解, 模式 | `decompose` |
70
- | opinion, review, challenge, consult, 评审, 挑战 | `second-opinion` |
71
- | retro, git, commit, decision, 回顾 | `retro` |
72
- | thorough, deep, 全面, 深入 | `deep-understand` |
73
-
74
- **If no match:** present menu via AskUserQuestion:
75
- ```
76
- What would you like to do?
77
- 1. Read through code/docs → follow
78
- 2. Investigate a question → investigate
79
- 3. Find patterns in code → decompose
80
- 4. Get a second opinion → second-opinion
81
- 5. Retrospective → retro
82
- ```
83
-
84
- Max 1 clarification round. If still unclear: error.
85
-
86
- ### Step 2: Resolve Target & Build Args
87
-
88
- - File path → pass directly
89
- - Wiki ID → pass directly
90
- - Topic string → pass as quoted argument
91
- - Extract any flags (--depth, --days, --lens, --mode, --scope, etc.)
92
-
93
- **Chain → command mapping:**
94
- ```
95
- follow → Skill("learn-follow", "{target} {flags}")
96
- investigate → Skill("learn-investigate", "\"{target}\" {flags}")
97
- decompose → Skill("learn-decompose", "{target} {flags}")
98
- second-opinion → Skill("learn-second-opinion", "{target} {flags}")
99
- retro → Skill("learn-retro", "{flags}")
100
- deep-understand → [learn-follow --depth deep, learn-decompose --save-spec, learn-second-opinion --mode challenge]
101
- pattern-catalog → [learn-decompose --save-spec --save-wiki, learn-second-opinion --mode review]
102
- ```
103
-
104
- ### Step 3: Confirm & Execute
105
-
106
- **If `--dry-run`:** display chain plan and exit.
107
-
108
- **If not `-y`:** show plan, ask for confirmation.
109
-
110
- **Execute:**
111
- 1. Create session dir: `.workflow/knowhow/.maestro-learn/learn-{timestamp}/`
112
- 2. Write `status.json` with chain steps
113
- 3. Execute each step via `Skill()`:
114
- - On success: mark completed, continue
115
- - On failure (interactive): ask retry/skip/abort
116
- - On failure (auto): skip and continue
117
- 4. Display session summary with artifact list and next-step suggestion
118
-
119
- </execution>
120
-
121
- <error_codes>
122
- | Code | Severity | Description | Recovery |
123
- |------|----------|-------------|----------|
124
- | E001 | error | No intent provided | Provide a learning goal or use --chain |
125
- | E002 | error | Cannot determine intent after clarification | Rephrase or use --chain directly |
126
- | E003 | error | Chain step failed + user chose abort | Partial progress saved in status.json |
127
- | E005 | error | Invalid --chain name | Show valid chains |
128
- | W001 | warning | Intent ambiguous between commands | Present options |
129
- | W002 | warning | Chain step completed with warnings | Log and continue |
130
- </error_codes>
131
-
132
- <success_criteria>
133
- - [ ] Intent routed to correct chain (or --chain validated)
134
- - [ ] Target resolved and arguments assembled
135
- - [ ] Session directory created with status.json
136
- - [ ] All chain steps executed via Skill()
137
- - [ ] Error handling: retry/skip/abort per step
138
- - [ ] Session summary displayed with next-step routing
139
- - [ ] No files modified outside `.workflow/knowhow/`
140
- </success_criteria>
@@ -1,144 +0,0 @@
1
- ---
2
- name: maestro-verify
3
- description: Use after execution to verify goals are actually achieved with evidence-based structural checks
4
- argument-hint: "[phase] [--skip-tests] [--skip-antipattern] [--dir <path>]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - Glob
11
- - Grep
12
- - Agent
13
- - AskUserQuestion
14
- ---
15
- <purpose>
16
- Verify execution results through three complementary methods:
17
- 1. **Goal-Backward verification** — 3-layer check (Truths → Artifacts → Wiring) that validates goals are actually achieved
18
- 2. **Anti-pattern scan** — detect stubs, placeholders, TODO/FIXME, empty returns in modified files
19
- 3. **Nyquist test coverage validation** — requirement-to-test mapping with gap classification
20
-
21
- Supports dual-level verification:
22
- - **Single plan**: `verify --dir scratch/{YYYYMMDD}-plan-xxx` — verifies one plan, writes `verification.json` into plan dir
23
- - **Milestone**: `verify` (no args) — aggregates all execute artifacts for current milestone into `scratch/{YYYYMMDD}-verify-M{N}-{slug}/milestone-verification.json`
24
-
25
- Registers VRF artifact in state.json on completion.
26
- </purpose>
27
-
28
- <required_reading>
29
- @~/.maestro/workflows/verify.md
30
- </required_reading>
31
-
32
- <deferred_reading>
33
- - [verification.json](~/.maestro/templates/verification.json) — read when generating output
34
- - [validation.json](~/.maestro/templates/validation.json) — read when generating test output
35
- </deferred_reading>
36
-
37
- <context>
38
- $ARGUMENTS — phase number or no args for milestone-wide, with optional flags.
39
-
40
- ### Flags
41
-
42
- | Flag | Effect | Default |
43
- |------|--------|---------|
44
- | `--skip-tests` | Skip Nyquist test coverage validation (V2), only run Goal-Backward verification | false |
45
- | `--skip-antipattern` | Skip anti-pattern scan step | false |
46
- | `--dir <path>` | Verify a single plan directory instead of milestone-wide | — (milestone mode) |
47
-
48
- **Scope routing:**
49
- | Input | Scope | Resolution |
50
- |-------|-------|------------|
51
- | `--dir scratch/{dir}` | single plan | Verify one plan, write verification.json into plan dir |
52
- | numeric arg | phase | Verify all execute artifacts for that phase |
53
- | no args | milestone | Aggregate all execute artifacts for current milestone |
54
-
55
- Output paths and VRF artifact registration schema are defined in workflow `verify.md`.
56
-
57
- ### Pre-load context (before verification)
58
-
59
- 1. **Codebase docs**: If `.workflow/codebase/` exists, read `ARCHITECTURE.md` for expected module wiring and `FEATURES.md` for component mapping. Use in Layer 3 (Connection) checks.
60
- 2. **Review specs**: Run `maestro spec load --category review` to load review standards. Use as quality baseline for anti-pattern scan and constraint checks.
61
- 3. **Wiki constraints**: Run `maestro wiki search "architecture constraint" --json 2>/dev/null`. If results found, include documented invariants as additional truth checks in Layer 1.
62
- 4. **Role Knowledge**:
63
- - Browse: `maestro wiki list --category review`
64
- - Load task-relevant entries: `maestro wiki load <id1> [id2...]`
65
- 5. All are optional — proceed without if unavailable.
66
- </context>
67
-
68
- <execution>
69
- Follow '~/.maestro/workflows/verify.md' completely.
70
-
71
- ### Post-verify Knowledge Inquiry
72
-
73
- | Condition | Ask | Route |
74
- |-----------|-----|-------|
75
- | Anti-pattern blockers found (TODO/FIXME/stubs) | "Update quality-rules.md?" | spec-add quality |
76
- | Architecture constraint violations | "Update architecture-constraints.md?" | spec-add arch |
77
- | Recurring test coverage gap (same module across tasks) | "Add to test-conventions.md?" | spec-add test |
78
-
79
- On confirm → `Skill("spec-add", "<category> <content>")`.
80
-
81
- </execution>
82
-
83
- <completion>
84
- ### Standalone report
85
-
86
- ```
87
- === VERIFY COMPLETE ===
88
- STATUS: DONE|DONE_WITH_CONCERNS|NEEDS_RETRY
89
- CONCERNS: {description if applicable}
90
- NEXT: /quality-review
91
- === END VERIFY ===
92
- ```
93
-
94
- Status mapping:
95
- - **DONE** — All checks pass, no gaps → NEXT: /quality-review
96
- - **DONE_WITH_CONCERNS** — Gaps found (must-have failures or anti-pattern blockers) → NEXT: /maestro-execute (after /maestro-plan --gaps)
97
- - **NEEDS_RETRY** — Verification could not complete (missing artifacts, corrupt data)
98
-
99
- ### Ralph-invoked completion
100
-
101
- End the step by calling the CLI (no text block output):
102
- ```
103
- maestro ralph complete <idx> --status {STATUS} [--evidence {path}]
104
- ```
105
-
106
- Status verdicts:
107
- - **DONE** — Normal completion
108
- - **DONE_WITH_CONCERNS** — Completed with caveats; pass `--concerns`
109
- - **NEEDS_RETRY** — Tooling error / transient issue; ralph will retry
110
- - **BLOCKED** — External hard blocker; pass `--reason`
111
-
112
- ### Next-step routing
113
-
114
- | Condition | Suggestion |
115
- |-----------|-----------|
116
- | All checks pass, no gaps | `/quality-review` |
117
- | Gaps found (must-have failures or anti-pattern blockers) | `/maestro-plan --gaps` |
118
- | Low test coverage (Nyquist gaps) | `/quality-auto-test` |
119
-
120
- **Gap-fix closure loop:**
121
- Gaps found → maestro-plan --gaps → maestro-execute → maestro-verify (re-run)
122
- </completion>
123
-
124
- <error_codes>
125
- | Code | Severity | Condition | Recovery |
126
- |------|----------|-----------|----------|
127
- | E001 | error | No executed plans found for verification | Run maestro-execute first |
128
- | E002 | error | Plan directory not found | Check --dir path |
129
- | E003 | error | No execution results found (missing summaries) | Run maestro-execute first |
130
- | W001 | warning | Test coverage below configured threshold | Review coverage gaps |
131
- | W002 | warning | Anti-pattern blockers found in modified files | Fix blockers before proceeding |
132
- </error_codes>
133
-
134
- <success_criteria>
135
- - [ ] Must-haves established (from convergence.criteria in tasks)
136
- - [ ] All truths verified with status and evidence (Layer 1)
137
- - [ ] All artifacts checked at L1 (exists), L2 (substantive), L3 (wired) (Layer 2)
138
- - [ ] All key links verified with evidence (Layer 3)
139
- - [ ] Anti-patterns scanned and categorized (unless skipped)
140
- - [ ] Nyquist test coverage assessed (unless skipped)
141
- - [ ] Fix plans generated for identified gaps
142
- - [ ] verification.json written to plan dir (single plan) or milestone verify dir
143
- - [ ] VRF artifact registered in state.json
144
- </success_criteria>
@@ -1,60 +0,0 @@
1
- ---
2
- name: manage-codebase-refresh
3
- description: Refresh codebase docs from recent changes
4
- argument-hint: "[--since <date>] [--deep]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - Glob
11
- - Grep
12
- - Agent
13
- - AskUserQuestion
14
- ---
15
-
16
- <purpose>
17
- Incrementally refresh .workflow/codebase/ documentation based on changes since the last rebuild or refresh. Detects which files have changed (via git diff), identifies which codebase docs are affected, selectively re-runs mapper agents on those areas only, and updates timestamps. Much faster than a full rebuild for ongoing maintenance.
18
- </purpose>
19
-
20
- <required_reading>
21
- @~/.maestro/workflows/codebase-refresh.md
22
- </required_reading>
23
-
24
- <context>
25
- $ARGUMENTS -- optional flags.
26
-
27
- **Flags:**
28
- - `--since <date>` -- Override change detection window (ISO date or relative like "3d")
29
- - `--deep` -- Force deeper re-scan even for files with minor changes
30
-
31
- **State files:**
32
- - `.workflow/` -- must be initialized
33
- - `.workflow/codebase/` -- must contain existing docs (from prior rebuild)
34
- - `.workflow/codebase/doc-index.json` -- documentation index with timestamps
35
- - `.workflow/codebase/knowledge-graph.json` -- Knowledge Graph (optional, for KG impact analysis)
36
- - `.workflow/state.json` -- contains `codebase_last_rebuilt` timestamp
37
- </context>
38
-
39
- <execution>
40
- Follow '~/.maestro/workflows/codebase-refresh.md' completely.
41
- </execution>
42
-
43
- <error_codes>
44
- | Code | Meaning |
45
- |------|----------------------------------------------------------|
46
- | E001 | .workflow/ not initialized |
47
- | E002 | No codebase/ docs exist, use codebase-rebuild instead |
48
- | W001 | No changes detected since last refresh |
49
- </error_codes>
50
-
51
- <success_criteria>
52
- - [ ] Changed files detected via git diff since last refresh
53
- - [ ] Affected documentation entries identified from doc-index.json
54
- - [ ] KG impact analysis run (if knowledge-graph.json exists): `maestro kg diff-wiki --json`
55
- - [ ] Affected wiki entries flagged with warnings (if any)
56
- - [ ] Only affected docs refreshed (selective mapper re-run)
57
- - [ ] doc-index.json timestamps updated per affected entry
58
- - [ ] state.json updated with codebase_last_refreshed timestamp
59
- - [ ] Next step routing: `/manage-status` or `/spec-load` to use updated docs
60
- </success_criteria>
@@ -1,65 +0,0 @@
1
- ---
2
- name: manage-learn
3
- description: Capture and search learning insights and tips
4
- argument-hint: "[<text> | tip <text> | list | search | show <id>] [--category <cat>] [--tag t1,t2] [--phase N]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - Glob
11
- - Grep
12
- - AskUserQuestion
13
- ---
14
- <purpose>
15
- Unified atomic knowledge capture for the workflow learning library. Captures two types of knowledge:
16
- - **Insights**: Timeless "eureka moment" entries (patterns, gotchas, techniques) — the default mode
17
- - **Tips**: Quick contextual notes for cross-session recovery (formerly in `manage-knowhow-capture tip`)
18
-
19
- Both types are stored in `.workflow/specs/learnings.md` as `<spec-entry>` blocks with auto-detected phase linkage and keyword-based category inference. Tips are distinguished by `source: "tip"` and implicitly tagged `tip`. Same store as retrospective output, so search and list see the entire knowledge corpus.
20
- </purpose>
21
-
22
- <required_reading>
23
- @~/.maestro/workflows/learn.md
24
- </required_reading>
25
-
26
- <context>
27
- Arguments: $ARGUMENTS
28
-
29
- **Modes (auto-detected from first token):**
30
- - `"<insight text>"` (or any non-keyword text) → insight capture mode
31
- - `tip <text>` → tip capture mode (quick contextual note, auto-tagged `tip`)
32
- - `list` → list recent entries (default 20)
33
- - `search <query>` → `maestro spec load --category learning` or text search across `.workflow/specs/learnings.md`
34
- - `show <INS-id>` → full detail with phase context
35
- - empty → AskUserQuestion to prompt for text
36
-
37
- Flags, storage paths, and shared store rationale defined in workflow learn.md.
38
- </context>
39
-
40
- <execution>
41
- Follow `~/.maestro/workflows/learn.md` Stages 1–5 in order.
42
- </execution>
43
-
44
- <error_codes>
45
- | Code | Severity | Description | Stage |
46
- |------|----------|-------------|-------|
47
- | E001 | error | `.workflow/` not initialized — run `/maestro-init` first | parse_input |
48
- | E002 | error | Unknown `--category` value (allowed: pattern, antipattern, decision, tool, gotcha, technique, tip) | parse_input |
49
- | E003 | error | `show` mode requires an INS-id argument | show |
50
- | E004 | error | Insight id not found in `.workflow/specs/learnings.md` | show |
51
- | W001 | warning | Auto-phase detection found a current_phase but no matching artifact in registry; phase set to null | capture |
52
- </error_codes>
53
-
54
- <success_criteria>
55
- - [ ] Mode correctly routed (capture / list / search / show)
56
- - [ ] Capture: `<spec-entry>` block appended to `.workflow/specs/learnings.md` with all required fields
57
- - [ ] Capture: phase auto-link resolves correctly via artifact registry when `state.json` has `current_phase`
58
- - [ ] Capture: category inference produces a sensible default when `--category` absent
59
- - [ ] List: filters apply, output sorted newest-first, default limit 20
60
- - [ ] Search: results ranked by title (3) > tags (2) > summary (1) match
61
- - [ ] Show: full insight displayed with phase context and routed-artifact link if any
62
- - [ ] No file modifications outside `.workflow/specs/learnings.md` and `.workflow/knowhow/`
63
- - [ ] Confirmation banner displayed with INS-id and next-step hints
64
- - [ ] Next step: `/manage-learn list` to browse, or `/manage-learn search <query>` to find related insights
65
- </success_criteria>
@@ -1,62 +0,0 @@
1
- ---
2
- name: wiki-connect
3
- description: Find and link hidden connections in wiki graph
4
- argument-hint: "[--scope <type>] [--min-similarity N] [--fix] [--max N]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Bash
9
- - Glob
10
- - Grep
11
- - Agent
12
- - AskUserQuestion
13
- ---
14
- <required_reading>
15
- @~/.maestro/workflows/wiki-connect.md
16
- </required_reading>
17
-
18
- <purpose>
19
- Knowledge graph link discovery and health improvement. Analyzes the wiki index to find orphaned entries, missing connections, and transitive link gaps, then suggests or auto-applies new `related` links to improve graph connectivity.
20
-
21
- Leverages maestro's unique wiki graph infrastructure (BM25 search, backlinks, health scoring) — no equivalent in gstack. Directly improves the quality of all downstream wiki consumers (search, digest, follow-along).
22
- </purpose>
23
-
24
- <context>
25
- Arguments: $ARGUMENTS
26
-
27
- Flags, storage paths, and CLI commands defined in workflow wiki-connect.md.
28
- </context>
29
-
30
- <execution>
31
- Follow '~/.maestro/workflows/wiki-connect.md' completely (Stages 1-6).
32
-
33
- **Next-step routing:**
34
- - Generate knowledge digest → `/wiki-digest <topic>`
35
- - Follow-along on orphan → `/learn-follow <wiki-id>`
36
- - View full graph → `maestro wiki graph`
37
- </execution>
38
-
39
- <error_codes>
40
- | Code | Severity | Condition | Recovery |
41
- |------|----------|-----------|----------|
42
- | E001 | error | No wiki entries found (empty index) | Initialize wiki content first, or run `/maestro-init` |
43
- | E002 | error | `maestro wiki` CLI not available | Check maestro installation |
44
- | W001 | warning | No connection candidates found above threshold | Lower --min-similarity or check if graph is already well-connected |
45
- | W002 | warning | Some wiki update calls failed during --fix | Partial application; retry failed entries manually |
46
- | W003 | warning | Health score unchanged after fix | Connections may not have improved the specific health metrics |
47
- </error_codes>
48
-
49
- <success_criteria>
50
- - [ ] Wiki index loaded with entry count and type distribution
51
- - [ ] Baseline health score recorded
52
- - [ ] Orphans identified and rescue candidates generated
53
- - [ ] Connection candidates scored and ranked
54
- - [ ] Results filtered by --min-similarity and limited by --max
55
- - [ ] Suggestions displayed with scores and reasons
56
- - [ ] If --fix: entries updated with new `related` links
57
- - [ ] If --fix: new health score computed and delta reported
58
- - [ ] Report written to `wiki-connections-{date}.md`
59
- - [ ] Graph insights appended to `specs/learnings.md` as `<spec-entry>` blocks
60
- - [ ] No unintended entry modifications (only `related` field changed)
61
- - [ ] Summary displayed with next-step routing
62
- </success_criteria>
@@ -1,68 +0,0 @@
1
- ---
2
- name: wiki-digest
3
- description: Generate wiki digest with theme clustering and gap analysis
4
- argument-hint: "[<topic>|--recent N] [--type <type>] [--format brief|full]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Bash
9
- - Glob
10
- - Grep
11
- - Agent
12
- - AskUserQuestion
13
- ---
14
- <purpose>
15
- Knowledge synthesis command that generates actionable digests from the wiki knowledge graph. Clusters entries by semantic theme, identifies knowledge gaps, and produces a coverage heatmap. Unique to maestro — leverages the wiki graph (BM25 search, backlinks, health) to surface trends and missing knowledge.
16
-
17
- Unlike `maestro wiki list` which shows raw entries, this command synthesizes and interprets the knowledge base, producing a curated summary with gap analysis and recommended next actions.
18
- </purpose>
19
-
20
- <required_reading>
21
- @~/.maestro/workflows/wiki-digest.md
22
- </required_reading>
23
-
24
- <deferred_reading>
25
- - @~/.maestro/workflows/issue.md (issues.jsonl canonical schema for `--create-issues` routing)
26
- </deferred_reading>
27
-
28
- <context>
29
- Arguments: $ARGUMENTS
30
-
31
- Flags, scope resolution, storage paths, and CLI commands defined in workflow wiki-digest.md.
32
- </context>
33
-
34
- <execution>
35
- Follow '~/.maestro/workflows/wiki-digest.md' completely (Stages 1-8).
36
-
37
- **Next-step routing:**
38
- - Deep dive on a theme → `/learn-follow <wiki-id>`
39
- - Fix graph gaps → `/wiki-connect --fix`
40
- - Decompose code for missing patterns → `/learn-decompose <path>`
41
- - Create missing entries → `maestro wiki create --type <type> --slug <slug>`
42
- - Triage gap issues → `/manage-issue list --source wiki-digest`
43
- </execution>
44
-
45
- <error_codes>
46
- | Code | Severity | Condition | Recovery |
47
- |------|----------|-----------|----------|
48
- | E001 | error | No wiki entries found (empty index) | Initialize wiki content first |
49
- | E002 | error | Topic search returned 0 results | Broaden topic or check wiki content |
50
- | W001 | warning | Too few entries (<5) for meaningful theme clustering | Digest produced but themes may be trivial |
51
- | W002 | warning | specs/learnings.md not found — skipping cross-reference | Proceed without knowhow context |
52
- | W003 | warning | Some entry bodies failed to load — partial summaries | Note incomplete entries in digest |
53
- </error_codes>
54
-
55
- <success_criteria>
56
- - [ ] Scope parsed and entries loaded
57
- - [ ] Baseline health score recorded
58
- - [ ] Entries clustered into 3-5 semantic themes
59
- - [ ] Per-theme analysis: summary, key entries, gaps, health
60
- - [ ] Cross-reference with specs/learnings.md completed
61
- - [ ] Coverage heatmap generated (type × theme matrix)
62
- - [ ] Knowledge gaps identified with suggested actions
63
- - [ ] If `--create-issues`: gap issues created in `issues.jsonl` (deduped)
64
- - [ ] Digest written to `KNW-digest-{slug}-{date}.md`
65
- - [ ] Meta-insights appended to `specs/learnings.md` as `<spec-entry>` blocks
66
- - [ ] No files modified outside `.workflow/knowhow/` and `.workflow/issues/` (issues only when `--create-issues`)
67
- - [ ] Summary displayed with key findings and next-step routing
68
- </success_criteria>