maestro-flow 0.5.41 → 0.5.43

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 (363) hide show
  1. package/.agents/skills/domain-add/SKILL.md +3 -0
  2. package/.agents/skills/learn-decompose/SKILL.md +7 -4
  3. package/.agents/skills/learn-follow/SKILL.md +4 -2
  4. package/.agents/skills/learn-investigate/SKILL.md +8 -6
  5. package/.agents/skills/learn-second-opinion/SKILL.md +6 -3
  6. package/.agents/skills/maestro/SKILL.md +1 -1
  7. package/.agents/skills/maestro-amend/SKILL.md +1 -1
  8. package/.agents/skills/maestro-analyze/SKILL.md +1 -43
  9. package/.agents/skills/maestro-blueprint/SKILL.md +1 -23
  10. package/.agents/skills/maestro-brainstorm/SKILL.md +8 -25
  11. package/.agents/skills/maestro-collab/SKILL.md +6 -2
  12. package/.agents/skills/maestro-companion/SKILL.md +4 -1
  13. package/.agents/skills/maestro-composer/SKILL.md +4 -2
  14. package/.agents/skills/maestro-execute/SKILL.md +27 -9
  15. package/.agents/skills/maestro-fork/SKILL.md +4 -3
  16. package/.agents/skills/maestro-grill/SKILL.md +1 -17
  17. package/.agents/skills/maestro-guard/SKILL.md +2 -2
  18. package/.agents/skills/maestro-impeccable/SKILL.md +2 -1
  19. package/.agents/skills/maestro-init/SKILL.md +1 -1
  20. package/.agents/skills/maestro-merge/SKILL.md +12 -1
  21. package/.agents/skills/maestro-milestone-audit/SKILL.md +1 -15
  22. package/.agents/skills/maestro-milestone-complete/SKILL.md +8 -3
  23. package/.agents/skills/maestro-milestone-release/SKILL.md +8 -4
  24. package/.agents/skills/maestro-overlay/SKILL.md +9 -0
  25. package/.agents/skills/maestro-plan/SKILL.md +6 -62
  26. package/.agents/skills/maestro-player/SKILL.md +2 -2
  27. package/.agents/skills/maestro-quick/SKILL.md +5 -3
  28. package/.agents/skills/maestro-ralph/SKILL.md +8 -8
  29. package/.agents/skills/maestro-ralph-cli/SKILL.md +665 -0
  30. package/.agents/skills/maestro-ralph-cli-execute/SKILL.md +239 -0
  31. package/.agents/skills/maestro-ralph-execute/SKILL.md +127 -11
  32. package/.agents/skills/maestro-roadmap/SKILL.md +1 -9
  33. package/.agents/skills/maestro-swarm-workflow/SKILL.md +16 -14
  34. package/.agents/skills/maestro-tools-register/SKILL.md +16 -1
  35. package/.agents/skills/maestro-ui-codify/SKILL.md +11 -1
  36. package/.agents/skills/maestro-universal-workflow/SKILL.md +28 -5
  37. package/.agents/skills/maestro-update/SKILL.md +10 -7
  38. package/.agents/skills/manage-codebase-rebuild/SKILL.md +5 -1
  39. package/.agents/skills/manage-drift-realign/SKILL.md +6 -2
  40. package/.agents/skills/manage-harvest/SKILL.md +4 -1
  41. package/.agents/skills/manage-issue-discover/SKILL.md +1 -0
  42. package/.agents/skills/manage-kg-extractors/SKILL.md +5 -1
  43. package/.agents/skills/manage-knowhow-capture/SKILL.md +1 -0
  44. package/.agents/skills/manage-knowledge-audit/SKILL.md +3 -0
  45. package/.agents/skills/manage-wiki/SKILL.md +1 -0
  46. package/.agents/skills/odyssey-debug/SKILL.md +2 -1
  47. package/.agents/skills/odyssey-improve/SKILL.md +2 -2
  48. package/.agents/skills/odyssey-planex/SKILL.md +8 -7
  49. package/.agents/skills/odyssey-review-test-fix/SKILL.md +4 -1
  50. package/.agents/skills/odyssey-ui/SKILL.md +4 -4
  51. package/.agents/skills/quality-auto-test/SKILL.md +11 -1
  52. package/.agents/skills/quality-debug/SKILL.md +16 -2
  53. package/.agents/skills/quality-retrospective/SKILL.md +9 -1
  54. package/.agents/skills/quality-review/SKILL.md +8 -0
  55. package/.agents/skills/quality-sync/SKILL.md +2 -2
  56. package/.agents/skills/quality-test/SKILL.md +9 -1
  57. package/.agents/skills/security-audit/SKILL.md +14 -4
  58. package/.agents/skills/spec-add/SKILL.md +5 -2
  59. package/.agents/skills/spec-load/SKILL.md +1 -1
  60. package/.agents/skills/spec-remove/SKILL.md +1 -1
  61. package/.agents/skills/spec-setup/SKILL.md +3 -0
  62. package/.agents/skills/team-adversarial-swarm/workflows/wf-swarm-synthesize.js +248 -248
  63. package/.agents/skills/team-coordinate/specs/role-spec-template.md +197 -198
  64. package/.agents/skills/team-roadmap-dev/SKILL.md +164 -164
  65. package/.agents/skills/team-roadmap-dev/specs/team-config.json +1 -1
  66. package/.agents/skills/team-swarm/roles/analyst/role.md +172 -176
  67. package/.agy/skills/domain-add/SKILL.md +3 -0
  68. package/.agy/skills/learn-decompose/SKILL.md +7 -4
  69. package/.agy/skills/learn-follow/SKILL.md +4 -2
  70. package/.agy/skills/learn-investigate/SKILL.md +8 -6
  71. package/.agy/skills/learn-second-opinion/SKILL.md +6 -3
  72. package/.agy/skills/maestro/SKILL.md +1 -1
  73. package/.agy/skills/maestro-amend/SKILL.md +1 -1
  74. package/.agy/skills/maestro-analyze/SKILL.md +1 -43
  75. package/.agy/skills/maestro-blueprint/SKILL.md +1 -23
  76. package/.agy/skills/maestro-brainstorm/SKILL.md +8 -25
  77. package/.agy/skills/maestro-collab/SKILL.md +6 -2
  78. package/.agy/skills/maestro-companion/SKILL.md +4 -1
  79. package/.agy/skills/maestro-composer/SKILL.md +4 -2
  80. package/.agy/skills/maestro-execute/SKILL.md +27 -9
  81. package/.agy/skills/maestro-fork/SKILL.md +4 -3
  82. package/.agy/skills/maestro-grill/SKILL.md +1 -17
  83. package/.agy/skills/maestro-guard/SKILL.md +2 -2
  84. package/.agy/skills/maestro-impeccable/SKILL.md +2 -1
  85. package/.agy/skills/maestro-init/SKILL.md +1 -1
  86. package/.agy/skills/maestro-merge/SKILL.md +12 -1
  87. package/.agy/skills/maestro-milestone-audit/SKILL.md +1 -15
  88. package/.agy/skills/maestro-milestone-complete/SKILL.md +8 -3
  89. package/.agy/skills/maestro-milestone-release/SKILL.md +8 -4
  90. package/.agy/skills/maestro-overlay/SKILL.md +9 -0
  91. package/.agy/skills/maestro-plan/SKILL.md +6 -62
  92. package/.agy/skills/maestro-player/SKILL.md +2 -2
  93. package/.agy/skills/maestro-quick/SKILL.md +5 -3
  94. package/.agy/skills/maestro-ralph/SKILL.md +8 -8
  95. package/.agy/skills/maestro-ralph-cli/SKILL.md +661 -0
  96. package/.agy/skills/maestro-ralph-cli-execute/SKILL.md +235 -0
  97. package/.agy/skills/maestro-ralph-execute/SKILL.md +127 -11
  98. package/.agy/skills/maestro-roadmap/SKILL.md +1 -9
  99. package/.agy/skills/maestro-swarm-workflow/SKILL.md +16 -14
  100. package/.agy/skills/maestro-tools-register/SKILL.md +16 -1
  101. package/.agy/skills/maestro-ui-codify/SKILL.md +11 -1
  102. package/.agy/skills/maestro-universal-workflow/SKILL.md +28 -5
  103. package/.agy/skills/maestro-update/SKILL.md +10 -7
  104. package/.agy/skills/manage-codebase-rebuild/SKILL.md +5 -1
  105. package/.agy/skills/manage-drift-realign/SKILL.md +6 -2
  106. package/.agy/skills/manage-harvest/SKILL.md +4 -1
  107. package/.agy/skills/manage-issue-discover/SKILL.md +1 -0
  108. package/.agy/skills/manage-kg-extractors/SKILL.md +5 -1
  109. package/.agy/skills/manage-knowhow-capture/SKILL.md +1 -0
  110. package/.agy/skills/manage-knowledge-audit/SKILL.md +3 -0
  111. package/.agy/skills/manage-wiki/SKILL.md +1 -0
  112. package/.agy/skills/odyssey-debug/SKILL.md +2 -1
  113. package/.agy/skills/odyssey-improve/SKILL.md +2 -2
  114. package/.agy/skills/odyssey-planex/SKILL.md +8 -7
  115. package/.agy/skills/odyssey-review-test-fix/SKILL.md +4 -1
  116. package/.agy/skills/odyssey-ui/SKILL.md +4 -4
  117. package/.agy/skills/quality-auto-test/SKILL.md +11 -1
  118. package/.agy/skills/quality-debug/SKILL.md +16 -2
  119. package/.agy/skills/quality-retrospective/SKILL.md +9 -1
  120. package/.agy/skills/quality-review/SKILL.md +8 -0
  121. package/.agy/skills/quality-sync/SKILL.md +2 -2
  122. package/.agy/skills/quality-test/SKILL.md +9 -1
  123. package/.agy/skills/security-audit/SKILL.md +14 -4
  124. package/.agy/skills/spec-add/SKILL.md +5 -2
  125. package/.agy/skills/spec-load/SKILL.md +1 -1
  126. package/.agy/skills/spec-remove/SKILL.md +1 -1
  127. package/.agy/skills/spec-setup/SKILL.md +3 -0
  128. package/.agy/skills/team-adversarial-swarm/workflows/wf-swarm-synthesize.js +248 -248
  129. package/.agy/skills/team-coordinate/specs/role-spec-template.md +197 -198
  130. package/.agy/skills/team-roadmap-dev/SKILL.md +141 -153
  131. package/.agy/skills/team-roadmap-dev/specs/team-config.json +1 -1
  132. package/.agy/skills/team-swarm/roles/analyst/role.md +172 -176
  133. package/.claude/commands/domain-add.md +3 -0
  134. package/.claude/commands/learn-decompose.md +7 -4
  135. package/.claude/commands/learn-follow.md +4 -2
  136. package/.claude/commands/learn-investigate.md +8 -6
  137. package/.claude/commands/learn-second-opinion.md +6 -3
  138. package/.claude/commands/maestro-amend.md +1 -1
  139. package/.claude/commands/maestro-analyze.md +1 -43
  140. package/.claude/commands/maestro-blueprint.md +1 -23
  141. package/.claude/commands/maestro-brainstorm.md +8 -25
  142. package/.claude/commands/maestro-collab.md +6 -2
  143. package/.claude/commands/maestro-companion.md +4 -1
  144. package/.claude/commands/maestro-composer.md +4 -2
  145. package/.claude/commands/maestro-execute.md +27 -9
  146. package/.claude/commands/maestro-fork.md +4 -3
  147. package/.claude/commands/maestro-grill.md +1 -17
  148. package/.claude/commands/maestro-guard.md +2 -2
  149. package/.claude/commands/maestro-impeccable.md +2 -1
  150. package/.claude/commands/maestro-init.md +1 -1
  151. package/.claude/commands/maestro-merge.md +12 -1
  152. package/.claude/commands/maestro-milestone-audit.md +1 -15
  153. package/.claude/commands/maestro-milestone-complete.md +8 -3
  154. package/.claude/commands/maestro-milestone-release.md +8 -4
  155. package/.claude/commands/maestro-overlay.md +9 -0
  156. package/.claude/commands/maestro-plan.md +6 -62
  157. package/.claude/commands/maestro-player.md +2 -2
  158. package/.claude/commands/maestro-quick.md +5 -3
  159. package/.claude/commands/maestro-ralph-cli-execute.md +237 -0
  160. package/.claude/commands/maestro-ralph-cli.md +663 -0
  161. package/.claude/commands/maestro-ralph-execute.md +127 -11
  162. package/.claude/commands/maestro-ralph.md +8 -8
  163. package/.claude/commands/maestro-roadmap.md +1 -9
  164. package/.claude/commands/maestro-swarm-workflow.md +16 -14
  165. package/.claude/commands/maestro-tools-register.md +16 -1
  166. package/.claude/commands/maestro-ui-codify.md +11 -1
  167. package/.claude/commands/maestro-universal-workflow.md +28 -5
  168. package/.claude/commands/maestro-update.md +10 -7
  169. package/.claude/commands/maestro.md +1 -1
  170. package/.claude/commands/manage-codebase-rebuild.md +5 -1
  171. package/.claude/commands/manage-drift-realign.md +6 -2
  172. package/.claude/commands/manage-harvest.md +4 -1
  173. package/.claude/commands/manage-issue-discover.md +1 -0
  174. package/.claude/commands/manage-kg-extractors.md +5 -1
  175. package/.claude/commands/manage-knowhow-capture.md +1 -0
  176. package/.claude/commands/manage-knowledge-audit.md +3 -0
  177. package/.claude/commands/manage-wiki.md +1 -0
  178. package/.claude/commands/odyssey-debug.md +2 -1
  179. package/.claude/commands/odyssey-improve.md +2 -2
  180. package/.claude/commands/odyssey-planex.md +8 -7
  181. package/.claude/commands/odyssey-review-test-fix.md +4 -1
  182. package/.claude/commands/odyssey-ui.md +4 -4
  183. package/.claude/commands/quality-auto-test.md +11 -1
  184. package/.claude/commands/quality-debug.md +16 -2
  185. package/.claude/commands/quality-retrospective.md +9 -1
  186. package/.claude/commands/quality-review.md +8 -0
  187. package/.claude/commands/quality-sync.md +2 -2
  188. package/.claude/commands/quality-test.md +9 -1
  189. package/.claude/commands/security-audit.md +14 -4
  190. package/.claude/commands/spec-add.md +5 -2
  191. package/.claude/commands/spec-load.md +1 -1
  192. package/.claude/commands/spec-remove.md +1 -1
  193. package/.claude/commands/spec-setup.md +3 -0
  194. package/.claude/skills/team-adversarial-swarm/workflows/wf-swarm-synthesize.js +248 -248
  195. package/.claude/skills/team-coordinate/specs/role-spec-template.md +197 -198
  196. package/.claude/skills/team-roadmap-dev/SKILL.md +169 -169
  197. package/.claude/skills/team-roadmap-dev/specs/team-config.json +1 -1
  198. package/.claude/skills/team-swarm/roles/analyst/role.md +181 -185
  199. package/.codex/skills/codify-to-knowhow/SKILL.md +27 -15
  200. package/.codex/skills/domain-add/SKILL.md +5 -3
  201. package/.codex/skills/learn-decompose/SKILL.md +22 -4
  202. package/.codex/skills/learn-follow/SKILL.md +12 -6
  203. package/.codex/skills/learn-investigate/SKILL.md +11 -6
  204. package/.codex/skills/learn-retro/SKILL.md +12 -6
  205. package/.codex/skills/learn-second-opinion/SKILL.md +11 -3
  206. package/.codex/skills/maestro/SKILL.md +19 -13
  207. package/.codex/skills/maestro-amend/SKILL.md +10 -2
  208. package/.codex/skills/maestro-analyze/SKILL.md +7 -1
  209. package/.codex/skills/maestro-blueprint/SKILL.md +1 -1
  210. package/.codex/skills/maestro-brainstorm/SKILL.md +11 -8
  211. package/.codex/skills/maestro-collab/SKILL.md +5 -5
  212. package/.codex/skills/maestro-companion/SKILL.md +4 -1
  213. package/.codex/skills/maestro-composer/SKILL.md +6 -3
  214. package/.codex/skills/maestro-execute/SKILL.md +11 -8
  215. package/.codex/skills/maestro-fork/SKILL.md +4 -3
  216. package/.codex/skills/maestro-grill/SKILL.md +1 -1
  217. package/.codex/skills/maestro-guard/SKILL.md +1 -1
  218. package/.codex/skills/maestro-impeccable/SKILL.md +5 -5
  219. package/.codex/skills/maestro-init/SKILL.md +3 -2
  220. package/.codex/skills/maestro-milestone-audit/SKILL.md +21 -9
  221. package/.codex/skills/maestro-milestone-complete/SKILL.md +3 -3
  222. package/.codex/skills/maestro-milestone-release/SKILL.md +18 -1
  223. package/.codex/skills/maestro-next/SKILL.md +11 -10
  224. package/.codex/skills/maestro-overlay/SKILL.md +16 -6
  225. package/.codex/skills/maestro-player/SKILL.md +11 -5
  226. package/.codex/skills/maestro-quick/SKILL.md +2 -2
  227. package/.codex/skills/maestro-ralph/SKILL.md +44 -31
  228. package/.codex/skills/maestro-ralph-cli/SKILL.md +394 -0
  229. package/.codex/skills/maestro-ralph-cli-execute/SKILL.md +146 -0
  230. package/.codex/skills/maestro-ralph-execute/SKILL.md +105 -24
  231. package/.codex/skills/maestro-roadmap/SKILL.md +8 -2
  232. package/.codex/skills/maestro-tools-execute/SKILL.md +8 -4
  233. package/.codex/skills/maestro-tools-register/SKILL.md +10 -6
  234. package/.codex/skills/maestro-ui-codify/SKILL.md +14 -9
  235. package/.codex/skills/manage-codebase-rebuild/SKILL.md +36 -14
  236. package/.codex/skills/manage-codebase-refresh/SKILL.md +1 -1
  237. package/.codex/skills/manage-drift-realign/SKILL.md +15 -12
  238. package/.codex/skills/manage-harvest/SKILL.md +1 -1
  239. package/.codex/skills/manage-issue/SKILL.md +8 -4
  240. package/.codex/skills/manage-issue-discover/SKILL.md +15 -14
  241. package/.codex/skills/manage-knowhow/SKILL.md +3 -2
  242. package/.codex/skills/manage-knowhow-capture/SKILL.md +4 -3
  243. package/.codex/skills/manage-learn/SKILL.md +2 -2
  244. package/.codex/skills/odyssey-debug/SKILL.md +12 -7
  245. package/.codex/skills/odyssey-improve/SKILL.md +11 -6
  246. package/.codex/skills/odyssey-planex/SKILL.md +14 -8
  247. package/.codex/skills/odyssey-review-test-fix/SKILL.md +12 -7
  248. package/.codex/skills/odyssey-ui/SKILL.md +10 -5
  249. package/.codex/skills/quality-auto-test/SKILL.md +13 -5
  250. package/.codex/skills/quality-debug/SKILL.md +18 -11
  251. package/.codex/skills/quality-refactor/SKILL.md +4 -4
  252. package/.codex/skills/quality-retrospective/SKILL.md +5 -6
  253. package/.codex/skills/quality-review/SKILL.md +18 -11
  254. package/.codex/skills/quality-sync/SKILL.md +2 -2
  255. package/.codex/skills/quality-test/SKILL.md +7 -5
  256. package/.codex/skills/security-audit/SKILL.md +7 -5
  257. package/.codex/skills/spec-add/SKILL.md +9 -7
  258. package/.codex/skills/spec-load/SKILL.md +3 -2
  259. package/.codex/skills/spec-map/SKILL.md +10 -1
  260. package/.codex/skills/spec-remove/SKILL.md +3 -2
  261. package/.codex/skills/team-coordinate/SKILL.md +10 -4
  262. package/.codex/skills/team-lifecycle-v4/SKILL.md +33 -26
  263. package/.codex/skills/team-quality-assurance/SKILL.md +43 -0
  264. package/.codex/skills/team-review/SKILL.md +50 -6
  265. package/.codex/skills/team-tech-debt/SKILL.md +53 -7
  266. package/.codex/skills/team-testing/SKILL.md +50 -2
  267. package/.codex/skills/wiki-connect/SKILL.md +3 -1
  268. package/.codex/skills/wiki-digest/SKILL.md +6 -4
  269. package/dashboard/dist-server/dashboard/src/server/wiki/embedding.d.ts +16 -0
  270. package/dashboard/dist-server/dashboard/src/server/wiki/embedding.js +419 -44
  271. package/dashboard/dist-server/dashboard/src/server/wiki/embedding.js.map +1 -1
  272. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js +43 -5
  273. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js.map +1 -1
  274. package/dashboard/dist-server/src/commands/install-backend.js +31 -16
  275. package/dashboard/dist-server/src/commands/install-backend.js.map +1 -1
  276. package/dashboard/dist-server/src/core/component-defs.js +25 -0
  277. package/dashboard/dist-server/src/core/component-defs.js.map +1 -1
  278. package/dashboard/dist-server/src/graph/kg/db/types.d.ts +3 -0
  279. package/dashboard/dist-server/src/graph/kg/embedding/code-embedding.d.ts +46 -0
  280. package/dashboard/dist-server/src/graph/kg/embedding/code-embedding.js +329 -0
  281. package/dashboard/dist-server/src/graph/kg/embedding/code-embedding.js.map +1 -0
  282. package/dashboard/dist-server/src/graph/kg/embedding/index.d.ts +2 -0
  283. package/dashboard/dist-server/src/graph/kg/embedding/index.js +3 -0
  284. package/dashboard/dist-server/src/graph/kg/embedding/index.js.map +1 -0
  285. package/dashboard/dist-server/src/graph/kg/engine.d.ts +19 -1
  286. package/dashboard/dist-server/src/graph/kg/engine.js +71 -1
  287. package/dashboard/dist-server/src/graph/kg/engine.js.map +1 -1
  288. package/dashboard/dist-server/src/graph/kg/query/scoring.d.ts +5 -0
  289. package/dashboard/dist-server/src/graph/kg/query/scoring.js +85 -1
  290. package/dashboard/dist-server/src/graph/kg/query/scoring.js.map +1 -1
  291. package/dashboard/dist-server/src/graph/kg/query/search.d.ts +7 -0
  292. package/dashboard/dist-server/src/graph/kg/query/search.js +117 -1
  293. package/dashboard/dist-server/src/graph/kg/query/search.js.map +1 -1
  294. package/dashboard/dist-server/src/graph/kg/surface/mcp-tools.js +49 -0
  295. package/dashboard/dist-server/src/graph/kg/surface/mcp-tools.js.map +1 -1
  296. package/dashboard/dist-server/src/hooks/kg-sync-hook.js +3 -0
  297. package/dashboard/dist-server/src/hooks/kg-sync-hook.js.map +1 -1
  298. package/dashboard/dist-server/src/tools/spec-loader.js +7 -3
  299. package/dashboard/dist-server/src/tools/spec-loader.js.map +1 -1
  300. package/dist/src/commands/install-backend.d.ts.map +1 -1
  301. package/dist/src/commands/install-backend.js +31 -16
  302. package/dist/src/commands/install-backend.js.map +1 -1
  303. package/dist/src/core/component-defs.d.ts.map +1 -1
  304. package/dist/src/core/component-defs.js +25 -0
  305. package/dist/src/core/component-defs.js.map +1 -1
  306. package/dist/src/core/plugin-bridge.d.ts.map +1 -1
  307. package/dist/src/core/plugin-bridge.js +17 -0
  308. package/dist/src/core/plugin-bridge.js.map +1 -1
  309. package/dist/src/graph/kg/db/types.d.ts +3 -0
  310. package/dist/src/graph/kg/db/types.d.ts.map +1 -1
  311. package/dist/src/graph/kg/embedding/code-embedding.d.ts +47 -0
  312. package/dist/src/graph/kg/embedding/code-embedding.d.ts.map +1 -0
  313. package/dist/src/graph/kg/embedding/code-embedding.js +329 -0
  314. package/dist/src/graph/kg/embedding/code-embedding.js.map +1 -0
  315. package/dist/src/graph/kg/embedding/index.d.ts +3 -0
  316. package/dist/src/graph/kg/embedding/index.d.ts.map +1 -0
  317. package/dist/src/graph/kg/embedding/index.js +3 -0
  318. package/dist/src/graph/kg/embedding/index.js.map +1 -0
  319. package/dist/src/graph/kg/engine.d.ts +19 -1
  320. package/dist/src/graph/kg/engine.d.ts.map +1 -1
  321. package/dist/src/graph/kg/engine.js +71 -1
  322. package/dist/src/graph/kg/engine.js.map +1 -1
  323. package/dist/src/graph/kg/query/scoring.d.ts +5 -0
  324. package/dist/src/graph/kg/query/scoring.d.ts.map +1 -1
  325. package/dist/src/graph/kg/query/scoring.js +85 -1
  326. package/dist/src/graph/kg/query/scoring.js.map +1 -1
  327. package/dist/src/graph/kg/query/search.d.ts +7 -0
  328. package/dist/src/graph/kg/query/search.d.ts.map +1 -1
  329. package/dist/src/graph/kg/query/search.js +117 -1
  330. package/dist/src/graph/kg/query/search.js.map +1 -1
  331. package/dist/src/graph/kg/surface/mcp-tools.d.ts.map +1 -1
  332. package/dist/src/graph/kg/surface/mcp-tools.js +49 -0
  333. package/dist/src/graph/kg/surface/mcp-tools.js.map +1 -1
  334. package/dist/src/hooks/kg-sync-hook.d.ts.map +1 -1
  335. package/dist/src/hooks/kg-sync-hook.js +3 -0
  336. package/dist/src/hooks/kg-sync-hook.js.map +1 -1
  337. package/dist/src/tools/code-semantic-search.d.ts +10 -0
  338. package/dist/src/tools/code-semantic-search.d.ts.map +1 -0
  339. package/dist/src/tools/code-semantic-search.js +81 -0
  340. package/dist/src/tools/code-semantic-search.js.map +1 -0
  341. package/dist/src/tools/index.d.ts.map +1 -1
  342. package/dist/src/tools/index.js +4 -0
  343. package/dist/src/tools/index.js.map +1 -1
  344. package/dist/src/tools/spec-loader.d.ts.map +1 -1
  345. package/dist/src/tools/spec-loader.js +7 -3
  346. package/dist/src/tools/spec-loader.js.map +1 -1
  347. package/dist/src/tools/wiki-search.d.ts +13 -0
  348. package/dist/src/tools/wiki-search.d.ts.map +1 -0
  349. package/dist/src/tools/wiki-search.js +114 -0
  350. package/dist/src/tools/wiki-search.js.map +1 -0
  351. package/dist/src/utils/update-notices.js +23 -0
  352. package/dist/src/utils/update-notices.js.map +1 -1
  353. package/package.json +4 -1
  354. package/workflows/agy-instructions.md +147 -161
  355. package/workflows/claude-instructions.md +100 -48
  356. package/workflows/codex-instructions.md +147 -161
  357. package/workflows/execute.md +4 -3
  358. package/workflows/explore-usage.md +41 -81
  359. package/workflows/grill.md +11 -0
  360. package/workflows/milestone-audit.md +8 -0
  361. package/workflows/odyssey-base-codex.md +115 -116
  362. package/workflows/odyssey-base.md +89 -91
  363. package/workflows/plan.md +6 -0
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: odyssey-debug
3
3
  description: Long-running debug cycle — archaeology, diagnosis, fix, confirmation, generalization, discovery, and knowledge persistence
4
- argument-hint: "<issue> [--skip-fix] [--skip-generalize] [--auto] [-y] [-c] [--heartbeat]"
4
+ argument-hint: "<issue> [--template <name>] [--skip-fix] [--skip-generalize] [--auto] [-y] [-c] [--heartbeat]"
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Write
@@ -237,6 +237,7 @@ All sibling bugs fixed or issued — no leftovers.
237
237
  | E001 | error | No issue, no session | Provide issue or -c |
238
238
  | W001 | warning | No relevant git history | Proceed |
239
239
  | W002 | warning | 3 retries exhausted | INCONCLUSIVE |
240
+ | W003 | warning | Partial archaeology agent failure (Timeline or Blame) | Proceed with available results, log failed agent |
240
241
  | W005 | warning | Pending decisions | Filter evidence phase=decision |
241
242
  | W006 | warning | No CLI tools | Skip explore |
242
243
  </error_codes>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: odyssey-improve
3
3
  description: Long-running codebase improvement cycle — multi-dimensional audit, deep diagnosis, targeted fix, verify, generalize, and engineering knowledge persistence
4
- argument-hint: "<target> [--dimensions <list>] [--skip-fix] [--skip-generalize] [--auto] [-y] [-c] [--heartbeat]"
4
+ argument-hint: "<target> [--dimensions <list>] [--fix-threshold <severity>] [--skip-fix] [--skip-generalize] [--auto] [-y] [-c] [--heartbeat]"
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Write
@@ -189,7 +189,7 @@ Commit: `"odyssey-improve({slug}): DIAGNOSE — root cause analysis"`
189
189
  `retries++`. < 3: `maestro delegate --role analyze`, new hypotheses, → S_DIAGNOSE. >= 3: Normal → AskUserQuestion | `-y` → INCONCLUSIVE → S_RECORD.
190
190
 
191
191
  ### A_FIX
192
- 1. Exhaustive fix: ALL diagnosed issues by severity tier (critical → high → medium → low within fix_threshold), one dimension at a time. After each tier, re-verify — new findings append to current tier.
192
+ 1. Exhaustive fix: ALL diagnosed issues by severity tier (critical → high → medium → low within fix_threshold), one dimension at a time. After each tier, re-verify **current tier's dimension only** (not all dimensions) — new findings at same or higher severity append to current tier. Cross-dimension regression checks run once at S_VERIFY after all tiers complete.
193
193
  2. For each fix: implement → evidence phase=fix
194
194
  3. Normal: AskUserQuestion per-fix confirmation | `-y`: auto-proceed, record `deferred`
195
195
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: odyssey-planex
3
3
  description: Requirement-driven iterative cycle — plan, execute, strict verify, fix loop until acceptance criteria met
4
- argument-hint: "<requirement> [--max-iterations N] [--skip-generalize] [--auto] [--method agent|cli|auto] [--executor <tool>] [--skip-verify] [--heartbeat] [-y] [-c]"
4
+ argument-hint: "<requirement> [--template <name>] [--max-iterations N] [--skip-generalize] [--auto] [--method agent|cli|auto] [--executor <tool>] [--skip-verify] [--heartbeat] [-y] [-c]"
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Write
@@ -108,7 +108,7 @@ Applies to: **S_PLAN, S_VERIFY, S_GENERALIZE**. Logic in base.
108
108
  <state_machine>
109
109
 
110
110
  <states>
111
- S_INTAKE → S_PLAN → S_EXECUTE → S_VERIFY → S_GENERALIZE → S_DISCOVER → S_RECORD → END
111
+ S_INTAKE → S_PLAN → S_EXECUTE → S_VERIFY → S_FIX → S_GENERALIZE → S_DISCOVER → S_RECORD → END
112
112
  </states>
113
113
 
114
114
  <transitions>
@@ -122,7 +122,7 @@ S_EXECUTE → S_VERIFY
122
122
  S_VERIFY → S_GENERALIZE : all passed AND NOT skip_generalize
123
123
  S_VERIFY → S_RECORD : all passed AND skip_generalize
124
124
  S_VERIFY → S_FIX : some failed AND iteration < max
125
- S_VERIFY → S_PLAN : fundamental plan flaw → cross_phase_loops++ (replan)
125
+ S_VERIFY → S_PLAN : fundamental plan flaw → cross_phase_loops++ (replan). **Criteria preservation:** acceptance_criteria[] statuses are preserved; only plan.tasks[] are regenerated. Previously passed criteria retain `passed` status; failed criteria reset to `pending` for re-verification after new plan execution.
126
126
  S_VERIFY → S_RECORD : some failed AND iteration >= max (escalate)
127
127
 
128
128
  S_FIX → S_VERIFY (loop)
@@ -295,7 +295,7 @@ Iron gate — every acceptance criterion checked objectively.
295
295
  |--------|--------|
296
296
  | `test` | Run relevant tests, check pass/fail |
297
297
  | `grep` | Grep for expected pattern |
298
- | `cli-review` | `maestro delegate --role review --mode analysis` with criterion as focus |
298
+ | `cli-review` | `maestro delegate "PURPOSE: Verify criterion {criterion_id}: {criterion}\nTASK: Read implementation code \| Check behavior matches criterion \| Report pass/fail with file:line evidence\nMODE: analysis\nCONTEXT: @{relevant_files}\nEXPECTED: JSON {criterion_id, status: passed\|failed, evidence: [{file, line, detail}]}" --role review --mode analysis` |
299
299
  | `manual` | Normal: AskUserQuestion / `-y`: record `deferred` |
300
300
 
301
301
  Record per criterion: `{"phase":"verification","type":"criterion-check","criterion_id":"AC1","method":"","result":"passed|failed","evidence":"","iteration":N}`. Update acceptance_criteria[].status. Append to iterations[].
@@ -312,11 +312,12 @@ Commit: `"odyssey-planex({slug}): VERIFY — acceptance check"`
312
312
  2. For each failed criterion: diagnose gap → targeted code fix
313
313
  3. CLI fix review (optional):
314
314
  ```bash
315
- maestro delegate "PURPOSE: Review fixes for failing criteria
316
- TASK: Check fix correctness | Verify no regressions on passing criteria
315
+ maestro delegate "PURPOSE: Review fixes for failing criteria; success = no regressions and fixes correct
316
+ TASK: Check fix correctness | Verify no regressions on passing criteria | Report verdict with file:line evidence
317
317
  MODE: analysis
318
318
  CONTEXT: @{modified_files} | Passing: {passing} | Fixed: {fixed}
319
- EXPECTED: JSON {verdict, regression_risk, concerns}
319
+ EXPECTED: JSON {verdict: passed|concerns_found, regression_risk: low|medium|high, concerns: [{criterion_id, file, line, description}]}
320
+ CONSTRAINTS: Read-only | Check ALL passing criteria for regressions
320
321
  " --role review --mode analysis
321
322
  ```
322
323
  4. Append evidence (fix), update understanding.md section 5 → S_VERIFY
@@ -133,6 +133,8 @@ Glob latest session → read `session.json` → jump to `current_state`.
133
133
  ### A_ARCHAEOLOGY
134
134
  2 parallel Agents: Timeline (`git log --oneline -20 -- {files}`) + Blame (top 3 files `git blame -L {region}`). Evidence phase=archaeology.
135
135
 
136
+ **Error handling:** If any archaeology agent fails (Timeline or Blame), log W003 and proceed with available results. If delegate fails, log W003 and proceed with local agent results only.
137
+
136
138
  `maestro delegate --role analyze --mode analysis` (`run_in_background: true`):
137
139
  - PURPOSE: Review recent modifications related to {target}
138
140
  - EXPECTED: JSON [{commit_sha, risk_level, analysis, could_cause_issue, explanation}]
@@ -170,7 +172,7 @@ for tier in [critical, high, medium, low].filter(>= threshold):
170
172
  ```
171
173
 
172
174
  Normal: AskUserQuestion per tier. `-y`: auto-fix all.
173
- Remaining > 0 → retry (no max_loops limit). Unchanged 2 rounds → classify each individually.
175
+ Remaining > 0 → retry (max_fix_rounds = 5). Unchanged 2 rounds → classify each individually. After 5 rounds with remaining > 0 → escalate: Normal: AskUserQuestion (continue/accept/reclassify) | `-y`: classify remaining as `deferred`, proceed.
174
176
  Blanket "pre-existing" forbidden.
175
177
 
176
178
  Commit per tier: `"odyssey-review({slug}): FIX-{tier} — {N} items fixed"`
@@ -235,6 +237,7 @@ Every finding must have action (fix/issue/decision). Decision pending must AskUs
235
237
  | E002 | error | Target path not found | Check path |
236
238
  | W001 | warning | No git history | Proceed |
237
239
  | W002 | warning | Some dimension agents failed | Partial coverage |
240
+ | W003 | warning | Archaeology agent or delegate failure | Proceed with available results |
238
241
  </error_codes>
239
242
 
240
243
  <success_criteria>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: odyssey-ui
3
3
  description: Long-running UI optimization cycle — visual survey, multi-dimensional audit, divergent exploration, fix, verify, generalize, and design knowledge persistence
4
- argument-hint: "<target> [--dimensions <list>] [--skip-fix] [--skip-generalize] [--auto] [-y] [-c] [--heartbeat]"
4
+ argument-hint: "<target> [--dimensions <list>] [--fix-threshold <severity>] [--skip-fix] [--skip-generalize] [--auto] [-y] [-c] [--heartbeat]"
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Write
@@ -136,7 +136,7 @@ Glob latest session → read `session.json` → jump to `current_state`.
136
136
  ### A_SURVEY
137
137
  1. **Design system inventory**: Scan for design tokens, CSS variables, theme imports
138
138
  2. **Current state analysis**: Styling patterns, layout strategy, component hierarchy
139
- 3. **CLI-assisted**: `maestro delegate --role analyze` — survey tokens, spacing, typography, hierarchy, consistency
139
+ 3. **CLI-assisted**: `maestro delegate --role analyze --mode analysis` — survey tokens, spacing, typography, hierarchy, consistency
140
140
  4. Append evidence phase=survey. Update section 2. Mark G1.
141
141
 
142
142
  Commit: `"odyssey-ui({slug}): SURVEY — design token inventory"`
@@ -167,7 +167,7 @@ Goes beyond defect fixing — "what would make this delightful?"
167
167
 
168
168
  Each returns `[{idea, category (polish|delight), impact, effort, description, inspiration}]`
169
169
 
170
- **Step 2 — CLI-assisted**: `maestro delegate --role analyze` — polish opportunities, micro-interactions, visual rhythm, delight moments
170
+ **Step 2 — CLI-assisted**: `maestro delegate --role analyze --mode analysis` — polish opportunities, micro-interactions, visual rhythm, delight moments
171
171
 
172
172
  **Step 3 — Consolidate**: Merge audit findings + divergent ideas → prioritized list (severity x impact x effort).
173
173
  Append evidence phase=diverge. Update section 4. Mark G3.
@@ -184,7 +184,7 @@ Commit: `"odyssey-ui({slug}): FIX — implement improvements"`
184
184
 
185
185
  ### A_VERIFY
186
186
  1. Run tests (lint, unit, visual regression)
187
- 2. `maestro delegate --role review` — visual correctness, interaction states, accessibility, responsive
187
+ 2. `maestro delegate --role review --mode analysis` — visual correctness, interaction states, accessibility, responsive
188
188
  3. `needs_rework` → S_FIX. `verified` → mark G4. Update section 5, write `confirmation`.
189
189
 
190
190
  Commit: `"odyssey-ui({slug}): VERIFY — visual verification"`
@@ -25,6 +25,8 @@ Layers L0→L3 sequential (fail-fast), scenarios within layer parallel. `--max-i
25
25
  Phase or task: $ARGUMENTS (required — phase number)
26
26
 
27
27
  **Flags:**
28
+ - `-c N` — Resume from iteration N of an existing session (skips setup, resumes from last checkpoint)
29
+ - `-y` — Skip confirmation prompts for artifact registration and issue creation
28
30
  - `--max-iter N` — Maximum outer iterations (default: 5). Set to 1 for single-pass generation only.
29
31
  - `--layer L` — Start from or restrict to specific layer (L0|L1|L2|L3)
30
32
  - `--dry-run` — Generate test plan only, do not execute
@@ -90,6 +92,14 @@ Follow '~/.maestro/workflows/auto-test.md' completely.
90
92
  - Generate regression test scenarios from confirmed root causes, marked `source: "debug_root_cause"`
91
93
 
92
94
  **Register artifact on completion:**
95
+
96
+ Unless `-y` flag is set, confirm before writing:
97
+ ```
98
+ AskUserQuestion("Register auto-test artifact TST-{NNN} in state.json? (yes/no)")
99
+ → yes: proceed with write
100
+ → no: skip registration, continue to next-step routing
101
+ ```
102
+
93
103
  ```
94
104
  Append to state.json.artifacts[]:
95
105
  {
@@ -147,7 +157,7 @@ Append to state.json.artifacts[]:
147
157
  - [ ] report.json includes confidence section
148
158
  - [ ] index.json updated with auto_test section
149
159
  - [ ] If spec source: traceability matrix built, traceability.md written
150
- - [ ] If failures: issues auto-created in issues.jsonl
160
+ - [ ] If failures: issues created in issues.jsonl (confirmed by user unless `-y`)
151
161
  - [ ] If gap source: validation.json gaps updated (MISSING→COVERED)
152
162
  - [ ] Next step routed based on convergence status
153
163
  </success_criteria>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: quality-debug
3
3
  description: Use when bugs, test failures, or unexpected behavior need systematic root cause investigation
4
- argument-hint: "[issue description] [--from-uat <phase>] [--parallel]"
4
+ argument-hint: "[issue description] [-c] [--from-uat <phase>] [--parallel]"
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Write
@@ -73,6 +73,14 @@ Follow '~/.maestro/workflows/debug.md' completely.
73
73
  - BLOCKED if inconclusive: resume session or escalate.
74
74
 
75
75
  **Register artifact on completion (phase-scoped only):**
76
+
77
+ Confirm before writing:
78
+ ```
79
+ AskUserQuestion("Register debug artifact DBG-{NNN} in state.json? (yes/no)")
80
+ → yes: proceed with write
81
+ → no: skip registration, continue to knowledge inquiry
82
+ ```
83
+
76
84
  ```
77
85
  Append to state.json.artifacts[]:
78
86
  {
@@ -92,13 +100,19 @@ Append to state.json.artifacts[]:
92
100
 
93
101
  ### Post-debug Knowledge Inquiry
94
102
 
103
+ For each matching condition, ask the user explicitly:
104
+
95
105
  | Condition | Ask | Route |
96
106
  |-----------|-----|-------|
97
107
  | Recurring root cause pattern (seen in prior debug) | "Document in debug-notes.md?" | spec-add debug |
98
108
  | Non-obvious fix / workaround | "Record as learning?" | spec-add learning |
99
109
  | Root cause = architectural boundary violation | "Update architecture-constraints.md?" | spec-add arch |
100
110
 
101
- On confirm → `Skill("spec-add", "<category> <content> --description \"<summary>\"")`.
111
+ ```
112
+ AskUserQuestion("<ask text> (yes/no)")
113
+ → yes: Skill("spec-add", "<category> <content> --description \"<summary>\"")
114
+ → no: skip this entry, proceed to next condition or completion
115
+ ```
102
116
 
103
117
  </execution>
104
118
 
@@ -30,7 +30,14 @@ Post-execution retrospective (复盘): four parallel lenses (technical/process/q
30
30
  <context>
31
31
  Arguments: $ARGUMENTS
32
32
 
33
- Modes (scan/single/range/all), flags (--lens, --no-route, --compare, -y), and storage paths defined in workflow retrospective.md Argument Shape and Stages 1-7.
33
+ **Flags:**
34
+ - `-y` — Skip confirmation prompts for external writes (issues.jsonl, spec entries, knowhow capture)
35
+ - `--no-route` — Skip routing stage (produce retrospective files only, no spec/issue/knowhow writes)
36
+ - `--compare N` — Compare current phase retrospective against phase N (requires single phase argument)
37
+ - `--all` — Run retrospective on all completed phases that lack retrospective.json
38
+ - `--lens <name>` — Restrict to specific lens (technical|process|quality|decision); default: all four
39
+
40
+ Modes (scan/single/range/all) and storage paths defined in workflow retrospective.md Argument Shape and Stages 1-7.
34
41
  </context>
35
42
 
36
43
  <execution>
@@ -55,6 +62,7 @@ Follow `~/.maestro/workflows/retrospective.md` Stages 1–8 in order.
55
62
  - REQUIRED: `retrospective.md` written (human-readable).
56
63
  - REQUIRED: Issue rows match canonical `issues.jsonl` schema (status "open", full fields).
57
64
  - REQUIRED: Note tips routed via `Skill({ skill: "manage-knowhow-capture", args: "tip ..." })`.
65
+ - REQUIRED: Unless `-y` flag is set, confirm before each external write (issues.jsonl append, spec-entry append, knowhow-capture). With `-y`, skip all confirmation prompts.
58
66
  - BLOCKED if routing incomplete: finish all write operations before reporting.
59
67
 
60
68
  ### Execution Constraints
@@ -80,6 +80,14 @@ Follow '~/.maestro/workflows/review.md' completely.
80
80
  - `REVIEW_DIR/review.json` — findings, severity distribution, verdict
81
81
 
82
82
  **Register artifact on completion:**
83
+
84
+ Confirm before writing state.json and issues.jsonl:
85
+ ```
86
+ AskUserQuestion("Register review artifact REV-{NNN} in state.json and create {N} issues in issues.jsonl? (yes/no)")
87
+ → yes: proceed with both writes
88
+ → no: skip registration and issue creation, continue to completion
89
+ ```
90
+
83
91
  ```
84
92
  Append to state.json.artifacts[]:
85
93
  {
@@ -42,7 +42,7 @@ Follow '~/.maestro/workflows/sync.md' completely.
42
42
 
43
43
  **GATE 3: Refresh → Completion**
44
44
  - REQUIRED: `.workflow/codebase/` docs refreshed for affected components.
45
- - REQUIRED: state.json updated with sync timestamp.
45
+ - REQUIRED: If `--dry-run` is set, skip state.json write and report what would change. Otherwise, update state.json with sync timestamp.
46
46
  - BLOCKED if missing: do not report completion without updated docs.
47
47
  </execution>
48
48
 
@@ -80,7 +80,7 @@ maestro ralph complete <idx> --status {STATUS} [--evidence {path}]
80
80
  </error_codes>
81
81
 
82
82
  <success_criteria>
83
- - [ ] state.json updated with current sync timestamp
83
+ - [ ] state.json updated with current sync timestamp (skipped if `--dry-run`)
84
84
  - [ ] Codebase docs refreshed for all affected components
85
85
  - [ ] doc-index.json reflects current file state
86
86
  - [ ] Changes tracked and logged
@@ -90,6 +90,14 @@ Follow '~/.maestro/workflows/test.md' completely.
90
90
  - Generate regression test scenarios from confirmed root causes, marked `source: "debug_root_cause"`
91
91
 
92
92
  **Register artifact on completion:**
93
+
94
+ Confirm before writing:
95
+ ```
96
+ AskUserQuestion("Register test artifact TST-{NNN} in state.json? (yes/no)")
97
+ → yes: proceed with write
98
+ → no: skip registration, continue to completion
99
+ ```
100
+
93
101
  ```
94
102
  Append to state.json.artifacts[]:
95
103
  {
@@ -163,7 +171,7 @@ maestro ralph complete <idx> --status {STATUS} [--evidence {path}]
163
171
  - [ ] Pressure pass completed if > 80% pass rate
164
172
  - [ ] Confidence summary appended to uat.md
165
173
  - [ ] index.json uat fields updated
166
- - [ ] If issues: parallel debug agents spawned per gap cluster
174
+ - [ ] If issues: confirm with user before spawning parallel debug agents per gap cluster
167
175
  - [ ] Gaps updated with root_cause, fix_direction, affected_files
168
176
  - [ ] Gap-fix loop triggered if --auto-fix (max 2 iterations)
169
177
  - [ ] Next step routed (phase-transition if pass, verify if auto-fix success, debug --from-uat if issues, test-gen if low coverage)
@@ -98,10 +98,12 @@ Check for:
98
98
 
99
99
  **Phase 4: Secrets Detection** (standard + deep)
100
100
 
101
- ```bash
102
- # Current codebase
103
- grep -rn --include="*.ts" --include="*.js" --include="*.json" --include="*.env*" \
104
- -E "(password|secret|api.?key|token|credential).*=.*['\"][^'\"]{8,}" . || true
101
+ ```
102
+ Grep({
103
+ pattern: "(password|secret|api.?key|token|credential).*=.*['\"][^'\"]{8,}",
104
+ glob: "*.{ts,js,json,env*}",
105
+ output_mode: "content"
106
+ })
105
107
  ```
106
108
 
107
109
  Check `.env.example` for leaked values. Check `.gitignore` for missing `.env` patterns.
@@ -159,6 +161,14 @@ Summary: {total} findings ({critical} critical, {high} high, {medium} medium, {l
159
161
  ```
160
162
 
161
163
  **Register artifact on completion:**
164
+
165
+ Confirm before writing:
166
+ ```
167
+ AskUserQuestion("Register security-audit artifact RVW-{NNN} in state.json? (yes/no)")
168
+ → yes: proceed with write
169
+ → no: skip registration, continue to completion
170
+ ```
171
+
162
172
  ```
163
173
  Append to state.json.artifacts[]:
164
174
  {
@@ -1,13 +1,14 @@
1
1
  ---
2
2
  name: spec-add
3
3
  description: Add spec entry by category with role tagging
4
- argument-hint: "[--scope project|global|team|personal] <category> <content>"
4
+ argument-hint: "[--scope project|global|team|personal] [-y] <category> <content>"
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Write
8
8
  - Bash
9
9
  - Glob
10
10
  - Grep
11
+ - AskUserQuestion
11
12
  ---
12
13
  <purpose>
13
14
  Add `<spec-entry>` to specs by category. 4 scopes: project (default), global, team, personal.
@@ -45,6 +46,8 @@ Scope-to-directory mapping, category-to-file mapping, and entry format defined i
45
46
 
46
47
  <execution>
47
48
  Follow '~/.maestro/workflows/specs-add.md' completely.
49
+
50
+ **Confirmation gate**: Unless -y flag is passed, after formatting the `<spec-entry>` block but before appending to the target file, AskUserQuestion showing the formatted entry, target file path, and scope. Proceed only on user confirm.
48
51
  </execution>
49
52
 
50
53
  <error_codes>
@@ -52,7 +55,7 @@ Follow '~/.maestro/workflows/specs-add.md' completely.
52
55
  |------|----------|-------------|-------|
53
56
  | E001 | fatal | Category and content are both required | parse_input |
54
57
  | E002 | fatal | Specs directory not initialized -- run `maestro spec init --scope <scope>` | validate_entry |
55
- | E003 | fatal | Invalid category -- must be one of: coding, arch, quality, debug, test, review, learning, tools, ui | parse_input |
58
+ | E003 | fatal | Invalid category -- must be one of: coding, arch, quality, debug, test, review, learning, ui | parse_input |
56
59
  | E004 | fatal | Invalid scope -- must be one of: project, global, team, personal | parse_input |
57
60
  | E005 | fatal | Personal scope requires uid -- use `--uid` or run `maestro collab join` first | parse_input |
58
61
  </error_codes>
@@ -27,7 +27,7 @@ $ARGUMENTS -- optional flags and keyword
27
27
  - `global`: global + project merged (~/.maestro/specs/ + .workflow/specs/)
28
28
  - `team`: project + team shared (.workflow/collab/specs/)
29
29
  - `personal`: project + team + personal (requires uid)
30
- - `--category <category>` — Load by category: primary category doc (full) + cross-file entries with matching category attr. Categories: coding, arch, test, review, debug, learning, ui.
30
+ - `--category <category>` — Load by category: primary category doc (full) + cross-file entries with matching category attr. Categories: coding, arch, quality, test, review, debug, learning, ui.
31
31
  - `--keyword <word>` — Filter by keyword within entries
32
32
 
33
33
  **File → Primary Category mapping:**
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: spec-remove
3
3
  description: Remove spec entry by ID
4
- argument-hint: "<entry-id> [--cascade]"
4
+ argument-hint: "<entry-id> [--cascade] [-y]"
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Write
@@ -8,6 +8,7 @@ allowed-tools:
8
8
  - Bash
9
9
  - Glob
10
10
  - Grep
11
+ - AskUserQuestion
11
12
  ---
12
13
  <purpose>
13
14
  Initialize `.workflow/specs/` by scanning codebase for conventions. Core files always created; optional files created when signals detected. Also generates recipe knowhow for detected workflows.
@@ -27,6 +28,8 @@ $ARGUMENTS (no arguments expected)
27
28
 
28
29
  <execution>
29
30
  Follow '~/.maestro/workflows/specs-setup.md' completely.
31
+
32
+ **Confirmation gate**: After scanning codebase and determining which files/directories will be created (core specs, optional specs, recipe knowhow), AskUserQuestion showing the full list of files to create with their categories and detected signals. Proceed only on user confirm.
30
33
  </execution>
31
34
 
32
35
  <error_codes>