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,161 +1,147 @@
1
- # Codex Code Guidelines
2
-
3
-
4
- - **Delegate Usage**: @~/.maestro/workflows/delegate-usage.md
5
- - **Explore Usage**: @~/.maestro/workflows/explore-usage.md
6
- - **CLI Endpoints Config**: @~/.maestro/cli-tools.json
7
-
8
- **Strictly follow the cli-tools.json configuration**
9
-
10
- ## Explore Priority
11
-
12
- `maestro explore` takes priority over Glob, Grep, and Read. When locating files or searching code patterns, call `maestro explore` first and stop to wait for results.
13
-
14
- # Coding Philosophy
15
-
16
- ## Core Beliefs
17
-
18
- - **Pursue good taste** - Eliminate edge cases to make code logic natural and elegant
19
- - **Embrace extreme simplicity** - Complexity is the root of all evil
20
- - **Be pragmatic** - Code must solve real-world problems, not hypothetical ones
21
- - **Data structures first** - Bad programmers worry about code; good programmers worry about data structures
22
- - **Never break backward compatibility** - Existing functionality is sacred and inviolable
23
- - **Incremental progress over big bangs** - Small changes that compile and pass tests
24
- - **Learning from existing code** - Study and plan before implementing
25
- - **Clear intent over clever code** - Be boring and obvious
26
- - **Follow existing code style** - Match import patterns, naming conventions, and formatting of existing codebase
27
- - **Minimize changes** - Only modify what's directly required; avoid refactoring, adding features, or "improving" code beyond the request
28
- - **No unsolicited documentation** - NEVER generate reports, documentation files, or summaries without explicit user request. If required, save to .workflow/.scratchpad/
29
-
30
- ## Simplicity Means
31
-
32
- - Single responsibility per function/class
33
- - Avoid premature abstractions
34
- - No clever tricks - choose the boring solution
35
- - If you need to explain it, it's too complex
36
-
37
- ## Fix, Don't Hide
38
-
39
- **Solve problems, don't silence symptoms** - Skipped tests, `@ts-ignore`, empty catch, `as any`, excessive timeouts = hiding bugs, not fixing them
40
-
41
- **NEVER**:
42
- - Make assumptions - verify with existing code
43
- - Generate reports, summaries, or documentation files without explicit user request
44
- - Use suppression mechanisms (`skip`, `ignore`, `disable`) without fixing root cause
45
-
46
- **ALWAYS**:
47
- - Plan complex tasks thoroughly before implementation
48
- - Generate task decomposition for multi-module work (>3 modules or >5 subtasks)
49
- - Track progress using TODO checklists for complex tasks
50
- - Validate planning documents before starting development
51
- - Commit working code incrementally
52
- - Update plan documentation and progress tracking as you go
53
- - Learn from existing implementations
54
- - Stop after 3 failed attempts and reassess
55
- - **Edit fallback**: When Edit tool fails 2+ times on same file, try Bash sed/awk first, then Write to recreate if still failing
56
-
57
- ## Learning the Codebase
58
-
59
- - Find 3 similar features/components
60
- - Identify common patterns and conventions
61
- - Use same libraries/utilities when possible
62
- - Follow existing test patterns
63
-
64
- ## Tooling
65
-
66
- - Use project's existing build system
67
- - Use project's test framework
68
- - Use project's formatter/linter settings
69
- - Don't introduce new tools without strong justification
70
-
71
- ## Content Uniqueness Rules
72
-
73
- - **Each layer owns its abstraction level** - no content sharing between layers
74
- - **Reference, don't duplicate** - point to other layers, never copy content
75
- - **Maintain perspective** - each layer sees the system at its appropriate scale
76
- - **Avoid implementation creep** - higher layers stay architectural
77
-
78
- # Context Requirements
79
-
80
- Before implementation, always:
81
- - Identify 3+ existing similar patterns
82
- - Map dependencies and integration points
83
- - Understand testing framework and coding conventions
84
-
85
- ## Knowledge System
86
-
87
- **Gate rule: On any coding/modification/debugging task, run `maestro search` + `maestro load` BEFORE reading code or editing files.**
88
-
89
- ### Required (every task, no exceptions)
90
-
91
- ```bash
92
- # Search relevant knowledge (1-3 keywords, multiple short queries beat one long one)
93
- maestro search "<topic phrase>"
94
-
95
- # Load specs for the task type
96
- maestro load --type spec --category coding # coding tasks
97
- maestro load --type spec --category arch # architecture decisions
98
- maestro load --type spec --category test # test writing
99
- maestro load --type spec --category ui # UI work
100
- ```
101
-
102
- **Query rules:**
103
- - Use **1-3 core keywords** per query — never dump all context into one search
104
- - Separate concepts from symbols: `maestro search "topology layout"` + `maestro search "DetailedTopologySVG" --code`
105
- - Add as needed: `maestro search "query" --kg` (KG full-source), `maestro kg callers <fn>` (call chain), `maestro kg context <node>` (node context)
106
-
107
- ```bash
108
- # ❌ Bad: keyword dump
109
- maestro search "topology display frontend DetailedTopologySVG elk"
110
-
111
- # ✅ Good: targeted multi-search + spec load
112
- maestro search "topology layout"
113
- maestro search "DetailedTopologySVG" --code
114
- maestro load --type spec --category coding
115
- ```
116
-
117
- ### Load & Search reference
118
-
119
- ```bash
120
- maestro load --type <type> [--list] [--category <cat>] [--keyword <word>] [--id <id>]
121
- maestro search "<query>" [--type <type>] [--category <cat>] [--code] [--kg] [--json]
122
- ```
123
-
124
- **`--category` values** (for `--type spec`): `coding`, `arch`, `debug`, `test`, `review`, `learning`, `ui`
125
- **`--keyword`**: free-text filter on title/body/tags — use to narrow within a category
126
-
127
- **`--type` values**: `spec`, `knowhow`, `domain`, `issue`, `session`, `scratch`, `note`, `project`, `roadmap`
128
-
129
- | Action | Command |
130
- |--------|---------|
131
- | Load coding specs | `maestro load --type spec --category coding` |
132
- | Load arch specs with keyword | `maestro load --type spec --category arch --keyword auth` |
133
- | List sessions | `maestro load --type session --list` |
134
- | Load specific knowhow | `maestro load --type knowhow --id <id>` |
135
- | Search sessions | `maestro search "query" --type session` |
136
- | Code graph search | `maestro search "symbol" --code` |
137
- | KG full-source search | `maestro search "query" --kg` |
138
-
139
- ### Record
140
-
141
- | What | Command |
142
- |------|---------|
143
- | Spec | `/spec-add <category> "title" "content" --keywords kw1,kw2 --description "summary"` |
144
- | Knowhow | `/manage-knowhow-capture` (`--spec-category <cat>` to bridge into agent injection) |
145
-
146
- Category routing: decisions→`arch`, patterns→`coding`, pitfalls→`debug`/`learning`, rules→`review`, tests→`test`.
147
-
148
- ### Confidence & Conflict Marking
149
-
150
- When search results conflict with current context, **mark the entry**:
151
-
152
- ```bash
153
- maestro spec conflict mark <file> <line> --note "<reason>"
154
- maestro spec conflict list
155
- ```
156
-
157
- Levels: `high` (verified) → `medium` (default) → `low` (stale) → `contested` (conflict detected).
158
-
159
- - `contested` → sorted last during injection, labeled `[CONTESTED]` with conflict note
160
- - `low` → labeled `[LOW CONFIDENCE]`
161
- - Resolution handled by `/manage-knowledge-audit`
1
+ # Maestro
2
+
3
+ - **Coding Philosophy**: @~/.maestro/workflows/coding-philosophy.md
4
+
5
+ ## Delegate & CLI
6
+
7
+ - **CLI Endpoints Config**: @~/.maestro/cli-tools.json
8
+
9
+ `maestro delegate "<PROMPT>" --to <tool> --mode analysis|write` — dispatch tasks to external CLI tools (gemini, codex, claude, opencode).
10
+ Always `run_in_background: true`. Full guide: `cat ~/.maestro/workflows/delegate-usage.md`
11
+
12
+ **Strictly follow the cli-tools.json configuration**
13
+
14
+ ## Explore
15
+
16
+ `maestro explore` takes priority over Glob, Grep, and Read. When locating files or searching code patterns, call `maestro explore` first and stop to wait for results.
17
+
18
+ ```bash
19
+ maestro explore "FIND: <target + condition>\nSCOPE: <paths>" [more prompts...] [options]
20
+ ```
21
+
22
+ Lightweight read-only codebase search. 1 prompt = 1 agent. Not for write-mode/long sessions — use `delegate`.
23
+
24
+ | Option | Description |
25
+ |--------|-------------|
26
+ | `-e, --endpoint <names>` | Endpoint name(s), comma-separated |
27
+ | `--all` | Fan out each prompt to all endpoints |
28
+ | `--max-turns <n>` | Max agent turns per job |
29
+ | `-f, --file <path>` | Load prompts from JSON or text file |
30
+ | `--cd <dir>` | Working directory |
31
+ | `--json` | Output results as JSON |
32
+
33
+ ### Context Injection
34
+
35
+ Explore agent 无项目认知,调用前注入上下文:
36
+
37
+ | 注入项 | 写入字段 | 内容 |
38
+ |--------|----------|------|
39
+ | 结构 | SCOPE | 相关目录的具体路径(非通配泛扫) |
40
+ | 领域 | SCOPE | `maestro search` 已返回的关键文件路径 |
41
+ | 约束 | ATTENTION | 框架、语言、命名惯例 |
42
+
43
+ ```
44
+ FIND: authentication middleware that validates JWT tokens
45
+ SCOPE: src/middleware/, src/auth/, src/api/routes/
46
+ ATTENTION: Express.js, middleware files named *.middleware.ts
47
+ ```
48
+
49
+ ### Prompt Structure
50
+
51
+ **FIND + SCOPE 为最低标准。** 每个字段一句陈述句,禁止嵌套条件。
52
+
53
+ | Field | Required | Rule |
54
+ |-------|----------|------|
55
+ | `FIND` | **Yes** | 可判定的具体目标(什么 + 判定条件) |
56
+ | `SCOPE` | **Yes** | 明确路径或 glob,禁止 `**/*` 泛扫 |
57
+ | `EXCLUDE` | No | 要跳过的文件类型或目录 |
58
+ | `ATTENTION` | No | 框架、命名惯例、已知陷阱 |
59
+ | `EXPECTED` | Recommended | 输出格式:`file:line` 列表 / 摘要 / JSON |
60
+
61
+ ```
62
+ FIND: Functions that call db.query() with string concatenation instead of $1/$2
63
+ SCOPE: src/db/**/*.ts, src/api/**/*.ts
64
+ EXCLUDE: **/*.test.ts
65
+ EXPECTED: file:line list with the SQL string
66
+ ```
67
+
68
+ ### Cross-Search
69
+
70
+ 对重要搜索,用 2-3 个不同角度的 prompt 并发,结果由 Claude 交叉验证。
71
+
72
+ **按角度拆分,不按关键词拆分:**
73
+
74
+ | 角度 | Prompt A | Prompt B |
75
+ |------|----------|----------|
76
+ | 定义 vs 调用 | 找函数定义 | 找调用点 |
77
+ | 正例 vs 反例 | 找正确用法 | 找遗漏用法 |
78
+ | 入口 vs 实现 | 找 export/路由 | 找内部逻辑 |
79
+ | 按文件类型 | .ts 中的用法 | .vue 中的用法 |
80
+
81
+ ```bash
82
+ maestro explore \
83
+ "FIND: All functions exported from auth module\nSCOPE: src/auth/\nEXPECTED: function name + file:line" \
84
+ "FIND: All imports from auth module\nSCOPE: src/**/*.ts\nEXCLUDE: src/auth/\nEXPECTED: import path + file:line" \
85
+ --json
86
+ ```
87
+
88
+ **结果置信度:**
89
+ - 双命中 高置信,直接使用
90
+ - 单命中 → 用 Grep/Read 二次确认
91
+ - 零命中 → 换角度重搜或目标不存在
92
+
93
+ ### Execution
94
+
95
+ Multi-prompt background;single lookup foreground:
96
+
97
+ ```
98
+ Bash({ command: "maestro explore \"p1\" \"p2\" --json", run_in_background: true })
99
+ Bash({ command: "maestro explore \"FIND: ...\nSCOPE: ...\"" })
100
+ ```
101
+
102
+ Session: `maestro explore show` / `maestro explore output <id>`
103
+
104
+ ## Knowledge System
105
+
106
+ **Gate rule**: run `maestro search` + `maestro load` BEFORE reading code or editing files.
107
+
108
+ ```bash
109
+ maestro search "<query>" [--type <type>] [--category <cat>] [--code] [--kg]
110
+ maestro load --type <type> [--list] [--category <cat>] [--keyword <word>] [--id <id>]
111
+ ```
112
+
113
+ **--type**: `spec`, `knowhow`, `domain`, `issue`, `session`, `scratch`, `note`, `project`, `roadmap`
114
+ **--category** (spec only): `coding`, `arch`, `debug`, `test`, `review`, `learning`, `ui`
115
+
116
+ ### Query Rules
117
+
118
+ 1-3 core keywords per query — multiple short queries beat one long one.
119
+ Separate concepts from symbols. Add `--code` for symbols, `--kg` for full-source.
120
+
121
+ ```bash
122
+ # ❌ keyword dump
123
+ maestro search "topology display frontend DetailedTopologySVG elk"
124
+
125
+ # targeted
126
+ maestro search "topology layout"
127
+ maestro search "DetailedTopologySVG" --code
128
+ maestro load --type spec --category coding
129
+ ```
130
+
131
+ ### Record
132
+
133
+ | What | Command |
134
+ |------|---------|
135
+ | Spec | `/spec-add <category> "title" "content" --keywords kw1,kw2 --description "summary"` |
136
+ | Knowhow | `/manage-knowhow-capture` (`--spec-category <cat>` for agent injection) |
137
+
138
+ Category routing: decisions→`arch`, patterns→`coding`, pitfalls→`debug`/`learning`, rules→`review`, tests→`test`.
139
+
140
+ ### Conflict Marking
141
+
142
+ ```bash
143
+ maestro spec conflict mark <file> <line> --note "<reason>"
144
+ ```
145
+
146
+ Levels: `high` `medium` (default) → `low` (`[LOW CONFIDENCE]`) → `contested` (`[CONTESTED]`).
147
+ Resolution: `/manage-knowledge-audit`
@@ -5,89 +5,141 @@
5
5
  ## Delegate & CLI
6
6
 
7
7
  - **Delegate Usage**: @~/.maestro/workflows/delegate-usage.md
8
- - **Explore Usage**: @~/.maestro/workflows/explore-usage.md
9
8
  - **CLI Endpoints Config**: @~/.maestro/cli-tools.json
10
9
 
11
10
  **Strictly follow the cli-tools.json configuration**
12
11
 
13
- ## Explore Priority
12
+ ## Explore
14
13
 
15
14
  `maestro explore` takes priority over Glob, Grep, and Read. When locating files or searching code patterns, call `maestro explore` first and stop to wait for results.
16
15
 
17
- ## Knowledge System
16
+ ```bash
17
+ maestro explore "FIND: <target + condition>\nSCOPE: <paths>" [more prompts...] [options]
18
+ ```
18
19
 
19
- **Gate rule: On any coding/modification/debugging task, run `maestro search` + `maestro load` BEFORE reading code or editing files.**
20
+ Lightweight read-only codebase search. 1 prompt = 1 agent. Not for write-mode/long sessions use `delegate`.
20
21
 
21
- ### Required (every task, no exceptions)
22
+ | Option | Description |
23
+ |--------|-------------|
24
+ | `-e, --endpoint <names>` | Endpoint name(s), comma-separated |
25
+ | `--all` | Fan out each prompt to all endpoints |
26
+ | `--max-turns <n>` | Max agent turns per job |
27
+ | `-f, --file <path>` | Load prompts from JSON or text file |
28
+ | `--cd <dir>` | Working directory |
29
+ | `--json` | Output results as JSON |
30
+
31
+ ### Context Injection
32
+
33
+ Explore agent 无项目认知,调用前注入上下文:
34
+
35
+ | 注入项 | 写入字段 | 内容 |
36
+ |--------|----------|------|
37
+ | 结构 | SCOPE | 相关目录的具体路径(非通配泛扫) |
38
+ | 领域 | SCOPE | `maestro search` 已返回的关键文件路径 |
39
+ | 约束 | ATTENTION | 框架、语言、命名惯例 |
40
+
41
+ ```
42
+ FIND: authentication middleware that validates JWT tokens
43
+ SCOPE: src/middleware/, src/auth/, src/api/routes/
44
+ ATTENTION: Express.js, middleware files named *.middleware.ts
45
+ ```
46
+
47
+ ### Prompt Structure
48
+
49
+ **FIND + SCOPE 为最低标准。** 每个字段一句陈述句,禁止嵌套条件。
50
+
51
+ | Field | Required | Rule |
52
+ |-------|----------|------|
53
+ | `FIND` | **Yes** | 可判定的具体目标(什么 + 判定条件) |
54
+ | `SCOPE` | **Yes** | 明确路径或 glob,禁止 `**/*` 泛扫 |
55
+ | `EXCLUDE` | No | 要跳过的文件类型或目录 |
56
+ | `ATTENTION` | No | 框架、命名惯例、已知陷阱 |
57
+ | `EXPECTED` | Recommended | 输出格式:`file:line` 列表 / 摘要 / JSON |
22
58
 
23
- ```bash
24
- # Search relevant knowledge (1-3 keywords, multiple short queries beat one long one)
25
- maestro search "<topic phrase>"
26
-
27
- # Load specs for the task type
28
- maestro load --type spec --category coding # coding tasks
29
- maestro load --type spec --category arch # architecture decisions
30
- maestro load --type spec --category test # test writing
31
- maestro load --type spec --category ui # UI work
32
59
  ```
60
+ FIND: Functions that call db.query() with string concatenation instead of $1/$2
61
+ SCOPE: src/db/**/*.ts, src/api/**/*.ts
62
+ EXCLUDE: **/*.test.ts
63
+ EXPECTED: file:line list with the SQL string
64
+ ```
65
+
66
+ ### Cross-Search
33
67
 
34
- **Query rules:**
35
- - Use **1-3 core keywords** per query — never dump all context into one search
36
- - Separate concepts from symbols: `maestro search "topology layout"` + `maestro search "DetailedTopologySVG" --code`
37
- - Add as needed: `maestro search "query" --kg` (KG full-source), `maestro kg callers <fn>` (call chain), `maestro kg context <node>` (node context)
68
+ 对重要搜索,用 2-3 个不同角度的 prompt 并发,结果由 Claude 交叉验证。
69
+
70
+ **按角度拆分,不按关键词拆分:**
71
+
72
+ | 角度 | Prompt A | Prompt B |
73
+ |------|----------|----------|
74
+ | 定义 vs 调用 | 找函数定义 | 找调用点 |
75
+ | 正例 vs 反例 | 找正确用法 | 找遗漏用法 |
76
+ | 入口 vs 实现 | 找 export/路由 | 找内部逻辑 |
77
+ | 按文件类型 | .ts 中的用法 | .vue 中的用法 |
38
78
 
39
79
  ```bash
40
- # Bad: keyword dump
41
- maestro search "topology display frontend DetailedTopologySVG elk"
80
+ maestro explore \
81
+ "FIND: All functions exported from auth module\nSCOPE: src/auth/\nEXPECTED: function name + file:line" \
82
+ "FIND: All imports from auth module\nSCOPE: src/**/*.ts\nEXCLUDE: src/auth/\nEXPECTED: import path + file:line" \
83
+ --json
84
+ ```
85
+
86
+ **结果置信度:**
87
+ - 双命中 → 高置信,直接使用
88
+ - 单命中 → 用 Grep/Read 二次确认
89
+ - 零命中 → 换角度重搜或目标不存在
90
+
91
+ ### Execution
92
+
93
+ Multi-prompt — background;single lookup — foreground:
42
94
 
43
- # ✅ Good: targeted multi-search + spec load
44
- maestro search "topology layout"
45
- maestro search "DetailedTopologySVG" --code
46
- maestro load --type spec --category coding
47
95
  ```
96
+ Bash({ command: "maestro explore \"p1\" \"p2\" --json", run_in_background: true })
97
+ Bash({ command: "maestro explore \"FIND: ...\nSCOPE: ...\"" })
98
+ ```
99
+
100
+ Session: `maestro explore show` / `maestro explore output <id>`
48
101
 
49
- ### Load & Search reference
102
+ ## Knowledge System
103
+
104
+ **Gate rule**: run `maestro search` + `maestro load` BEFORE reading code or editing files.
50
105
 
51
106
  ```bash
107
+ maestro search "<query>" [--type <type>] [--category <cat>] [--code] [--kg]
52
108
  maestro load --type <type> [--list] [--category <cat>] [--keyword <word>] [--id <id>]
53
- maestro search "<query>" [--type <type>] [--category <cat>] [--code] [--kg] [--json]
54
109
  ```
55
110
 
56
- **`--category` values** (for `--type spec`): `coding`, `arch`, `debug`, `test`, `review`, `learning`, `ui`
57
- **`--keyword`**: free-text filter on title/body/tags use to narrow within a category
111
+ **--type**: `spec`, `knowhow`, `domain`, `issue`, `session`, `scratch`, `note`, `project`, `roadmap`
112
+ **--category** (spec only): `coding`, `arch`, `debug`, `test`, `review`, `learning`, `ui`
58
113
 
59
- **`--type` values**: `spec`, `knowhow`, `domain`, `issue`, `session`, `scratch`, `note`, `project`, `roadmap`
114
+ ### Query Rules
60
115
 
61
- | Action | Command |
62
- |--------|---------|
63
- | Load coding specs | `maestro load --type spec --category coding` |
64
- | Load arch specs with keyword | `maestro load --type spec --category arch --keyword auth` |
65
- | List sessions | `maestro load --type session --list` |
66
- | Load specific knowhow | `maestro load --type knowhow --id <id>` |
67
- | Search sessions | `maestro search "query" --type session` |
68
- | Code graph search | `maestro search "symbol" --code` |
69
- | KG full-source search | `maestro search "query" --kg` |
116
+ 1-3 core keywords per query — multiple short queries beat one long one.
117
+ Separate concepts from symbols. Add `--code` for symbols, `--kg` for full-source.
118
+
119
+ ```bash
120
+ # keyword dump
121
+ maestro search "topology display frontend DetailedTopologySVG elk"
122
+
123
+ # targeted
124
+ maestro search "topology layout"
125
+ maestro search "DetailedTopologySVG" --code
126
+ maestro load --type spec --category coding
127
+ ```
70
128
 
71
129
  ### Record
72
130
 
73
131
  | What | Command |
74
132
  |------|---------|
75
133
  | Spec | `/spec-add <category> "title" "content" --keywords kw1,kw2 --description "summary"` |
76
- | Knowhow | `/manage-knowhow-capture` (`--spec-category <cat>` to bridge into agent injection) |
134
+ | Knowhow | `/manage-knowhow-capture` (`--spec-category <cat>` for agent injection) |
77
135
 
78
136
  Category routing: decisions→`arch`, patterns→`coding`, pitfalls→`debug`/`learning`, rules→`review`, tests→`test`.
79
137
 
80
- ### Confidence & Conflict Marking
81
-
82
- When search results conflict with current context, **mark the entry**:
138
+ ### Conflict Marking
83
139
 
84
140
  ```bash
85
141
  maestro spec conflict mark <file> <line> --note "<reason>"
86
- maestro spec conflict list
87
142
  ```
88
143
 
89
- Levels: `high` (verified) → `medium` (default) → `low` (stale) → `contested` (conflict detected).
90
-
91
- - `contested` → sorted last during injection, labeled `[CONTESTED]` with conflict note
92
- - `low` → labeled `[LOW CONFIDENCE]`
93
- - Resolution handled by `/manage-knowledge-audit`
144
+ Levels: `high` → `medium` (default) → `low` (`[LOW CONFIDENCE]`) → `contested` (`[CONTESTED]`).
145
+ Resolution: `/manage-knowledge-audit`