maestro-flow 0.3.45 → 0.3.47

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 (289) hide show
  1. package/.claude/agents/ui-design-agent.md +1 -0
  2. package/.claude/agents/workflow-executor.md +3 -0
  3. package/.claude/commands/learn-decompose.md +91 -146
  4. package/.claude/commands/learn-follow.md +102 -137
  5. package/.claude/commands/learn-investigate.md +102 -167
  6. package/.claude/commands/learn-retro.md +100 -243
  7. package/.claude/commands/learn-second-opinion.md +95 -135
  8. package/.claude/commands/maestro-amend.md +95 -232
  9. package/.claude/commands/maestro-analyze.md +1 -6
  10. package/.claude/commands/maestro-collab.md +104 -265
  11. package/.claude/commands/maestro-composer.md +113 -293
  12. package/.claude/commands/maestro-execute.md +11 -17
  13. package/.claude/commands/maestro-impeccable.md +89 -0
  14. package/.claude/commands/maestro-plan.md +1 -6
  15. package/.claude/commands/maestro-player.md +111 -340
  16. package/.claude/commands/maestro-quick.md +9 -0
  17. package/.claude/commands/maestro-ralph-execute.md +167 -210
  18. package/.claude/commands/maestro-ralph.md +245 -426
  19. package/.claude/commands/maestro-tools-register.md +28 -7
  20. package/.claude/commands/maestro-ui-codify.md +13 -0
  21. package/.claude/commands/maestro-ui-craft.md +364 -0
  22. package/.claude/commands/maestro-ui-design.md +12 -1
  23. package/.claude/commands/maestro-verify.md +12 -13
  24. package/.claude/commands/maestro.md +142 -72
  25. package/.claude/commands/manage-knowhow-capture.md +45 -161
  26. package/.claude/commands/quality-auto-test.md +9 -0
  27. package/.claude/commands/quality-debug.md +11 -24
  28. package/.claude/commands/quality-refactor.md +9 -0
  29. package/.claude/commands/quality-review.md +5 -13
  30. package/.claude/commands/quality-test.md +5 -0
  31. package/.claude/commands/spec-add.md +1 -1
  32. package/.claude/commands/spec-load.md +3 -2
  33. package/.claude/skills/maestro-help/SKILL.md +264 -0
  34. package/.claude/skills/maestro-help/index/catalog.json +182 -0
  35. package/.claude/skills/maestro-help/phases/01-parse-intent.md +122 -0
  36. package/.claude/skills/maestro-help/phases/02-search-present.md +181 -0
  37. package/.claude/skills/maestro-help/phases/03-workflow-guide.md +186 -0
  38. package/.claude/skills/maestro-impeccable/SKILL.md +169 -0
  39. package/.codex/agents/team-supervisor.toml +40 -0
  40. package/.codex/agents/team-worker.toml +63 -0
  41. package/.codex/skills/learn-decompose/SKILL.md +1 -1
  42. package/.codex/skills/learn-investigate/SKILL.md +2 -1
  43. package/.codex/skills/maestro/SKILL.md +278 -313
  44. package/.codex/skills/maestro-analyze/SKILL.md +126 -417
  45. package/.codex/skills/maestro-brainstorm/SKILL.md +129 -451
  46. package/.codex/skills/maestro-collab/SKILL.md +134 -547
  47. package/.codex/skills/maestro-execute/SKILL.md +4 -2
  48. package/.codex/skills/maestro-help/SKILL.md +213 -0
  49. package/.codex/skills/maestro-help/catalog.json +182 -0
  50. package/.codex/skills/maestro-impeccable/SKILL.md +112 -0
  51. package/.codex/skills/maestro-plan/SKILL.md +88 -437
  52. package/.codex/skills/maestro-player/SKILL.md +191 -333
  53. package/.codex/skills/maestro-quick/SKILL.md +2 -0
  54. package/.codex/skills/maestro-ralph/SKILL.md +307 -710
  55. package/.codex/skills/maestro-roadmap/SKILL.md +201 -518
  56. package/.codex/skills/maestro-tools-register/SKILL.md +29 -7
  57. package/.codex/skills/maestro-ui-codify/SKILL.md +1 -0
  58. package/.codex/skills/maestro-ui-craft/SKILL.md +341 -0
  59. package/.codex/skills/maestro-ui-design/SKILL.md +10 -0
  60. package/.codex/skills/maestro-verify/SKILL.md +116 -409
  61. package/.codex/skills/manage-knowhow-capture/SKILL.md +18 -3
  62. package/.codex/skills/quality-auto-test/SKILL.md +145 -443
  63. package/.codex/skills/quality-debug/SKILL.md +2 -1
  64. package/.codex/skills/quality-refactor/SKILL.md +1 -1
  65. package/.codex/skills/quality-review/SKILL.md +1 -1
  66. package/.codex/skills/quality-test/SKILL.md +229 -507
  67. package/.codex/skills/spec-add/SKILL.md +1 -1
  68. package/README.md +4 -1
  69. package/README.zh-CN.md +3 -1
  70. package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js +3 -0
  71. package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js.map +1 -1
  72. package/dashboard/dist-server/dashboard/src/server/index.js +5 -3
  73. package/dashboard/dist-server/dashboard/src/server/index.js.map +1 -1
  74. package/dashboard/dist-server/dashboard/src/server/routes/board-state.integration.test.js +3 -3
  75. package/dashboard/dist-server/dashboard/src/server/routes/board-state.integration.test.js.map +1 -1
  76. package/dashboard/dist-server/dashboard/src/server/routes/index.js +14 -5
  77. package/dashboard/dist-server/dashboard/src/server/routes/index.js.map +1 -1
  78. package/dashboard/dist-server/dashboard/src/server/routes/install.js +110 -1
  79. package/dashboard/dist-server/dashboard/src/server/routes/install.js.map +1 -1
  80. package/dashboard/dist-server/dashboard/src/server/routes/maestro-coordinate.d.ts +2 -0
  81. package/dashboard/dist-server/dashboard/src/server/routes/maestro-coordinate.js +181 -0
  82. package/dashboard/dist-server/dashboard/src/server/routes/maestro-coordinate.js.map +1 -0
  83. package/dashboard/dist-server/dashboard/src/server/routes/settings.js +56 -0
  84. package/dashboard/dist-server/dashboard/src/server/routes/settings.js.map +1 -1
  85. package/dashboard/dist-server/dashboard/src/server/routes/wiki.js +2 -0
  86. package/dashboard/dist-server/dashboard/src/server/routes/wiki.js.map +1 -1
  87. package/dashboard/dist-server/dashboard/src/server/state/event-bus.d.ts +2 -0
  88. package/dashboard/dist-server/dashboard/src/server/state/event-bus.js +2 -0
  89. package/dashboard/dist-server/dashboard/src/server/state/event-bus.js.map +1 -1
  90. package/dashboard/dist-server/dashboard/src/server/state/fs-watcher.d.ts +2 -0
  91. package/dashboard/dist-server/dashboard/src/server/state/fs-watcher.js +58 -0
  92. package/dashboard/dist-server/dashboard/src/server/state/fs-watcher.js.map +1 -1
  93. package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.js +2 -2
  94. package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.js.map +1 -1
  95. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js +2 -0
  96. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js.map +1 -1
  97. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-types.d.ts +3 -1
  98. package/dashboard/dist-server/dashboard/src/server/ws/handlers/agent-handler.d.ts +7 -2
  99. package/dashboard/dist-server/dashboard/src/server/ws/handlers/agent-handler.js +7 -1
  100. package/dashboard/dist-server/dashboard/src/server/ws/handlers/agent-handler.js.map +1 -1
  101. package/dashboard/dist-server/dashboard/src/shared/constants.d.ts +2 -0
  102. package/dashboard/dist-server/dashboard/src/shared/constants.js +9 -9
  103. package/dashboard/dist-server/dashboard/src/shared/constants.js.map +1 -1
  104. package/dashboard/dist-server/dashboard/src/shared/maestro-session-types.d.ts +113 -0
  105. package/dashboard/dist-server/dashboard/src/shared/maestro-session-types.js +6 -0
  106. package/dashboard/dist-server/dashboard/src/shared/maestro-session-types.js.map +1 -0
  107. package/dashboard/dist-server/dashboard/src/shared/types.d.ts +4 -3
  108. package/dashboard/dist-server/dashboard/src/shared/ws-protocol.d.ts +1 -1
  109. package/dashboard/dist-server/dashboard/src/shared/ws-protocol.js.map +1 -1
  110. package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
  111. package/dist/src/agents/cli-agent-runner.js +1 -3
  112. package/dist/src/agents/cli-agent-runner.js.map +1 -1
  113. package/dist/src/agents/cli-history-store.d.ts +5 -0
  114. package/dist/src/agents/cli-history-store.d.ts.map +1 -1
  115. package/dist/src/agents/cli-history-store.js +65 -13
  116. package/dist/src/agents/cli-history-store.js.map +1 -1
  117. package/dist/src/cli.js +13 -0
  118. package/dist/src/cli.js.map +1 -1
  119. package/dist/src/commands/command-help.d.ts +3 -0
  120. package/dist/src/commands/command-help.d.ts.map +1 -0
  121. package/dist/src/commands/command-help.js +60 -0
  122. package/dist/src/commands/command-help.js.map +1 -0
  123. package/dist/src/commands/config.d.ts.map +1 -1
  124. package/dist/src/commands/config.js +17 -0
  125. package/dist/src/commands/config.js.map +1 -1
  126. package/dist/src/commands/delegate.d.ts.map +1 -1
  127. package/dist/src/commands/delegate.js +12 -2
  128. package/dist/src/commands/delegate.js.map +1 -1
  129. package/dist/src/commands/impeccable.d.ts +10 -0
  130. package/dist/src/commands/impeccable.d.ts.map +1 -0
  131. package/dist/src/commands/impeccable.js +181 -0
  132. package/dist/src/commands/impeccable.js.map +1 -0
  133. package/dist/src/commands/knowhow.d.ts.map +1 -1
  134. package/dist/src/commands/knowhow.js +7 -4
  135. package/dist/src/commands/knowhow.js.map +1 -1
  136. package/dist/src/commands/spec.js +1 -1
  137. package/dist/src/commands/spec.js.map +1 -1
  138. package/dist/src/commands/wiki.d.ts.map +1 -1
  139. package/dist/src/commands/wiki.js +5 -1
  140. package/dist/src/commands/wiki.js.map +1 -1
  141. package/dist/src/config/cli-tools-config.d.ts.map +1 -1
  142. package/dist/src/config/cli-tools-config.js +10 -7
  143. package/dist/src/config/cli-tools-config.js.map +1 -1
  144. package/dist/src/core/addon-registry.d.ts +31 -0
  145. package/dist/src/core/addon-registry.d.ts.map +1 -0
  146. package/dist/src/core/addon-registry.js +28 -0
  147. package/dist/src/core/addon-registry.js.map +1 -0
  148. package/dist/src/hooks/plugins/spec-injection-plugin.js +9 -4
  149. package/dist/src/hooks/plugins/spec-injection-plugin.js.map +1 -1
  150. package/dist/src/hooks/spec-injector.js +2 -2
  151. package/dist/src/hooks/spec-injector.js.map +1 -1
  152. package/dist/src/index.d.ts +2 -0
  153. package/dist/src/index.d.ts.map +1 -1
  154. package/dist/src/index.js +1 -0
  155. package/dist/src/index.js.map +1 -1
  156. package/dist/src/tools/impeccable/critique-storage.d.ts +28 -0
  157. package/dist/src/tools/impeccable/critique-storage.d.ts.map +1 -0
  158. package/dist/src/tools/impeccable/critique-storage.js +120 -0
  159. package/dist/src/tools/impeccable/critique-storage.js.map +1 -0
  160. package/dist/src/tools/impeccable/design-parser.d.ts +90 -0
  161. package/dist/src/tools/impeccable/design-parser.d.ts.map +1 -0
  162. package/dist/src/tools/impeccable/design-parser.js +696 -0
  163. package/dist/src/tools/impeccable/design-parser.js.map +1 -0
  164. package/dist/src/tools/impeccable/detect-csp.d.ts +6 -0
  165. package/dist/src/tools/impeccable/detect-csp.d.ts.map +1 -0
  166. package/dist/src/tools/impeccable/detect-csp.js +130 -0
  167. package/dist/src/tools/impeccable/detect-csp.js.map +1 -0
  168. package/dist/src/tools/impeccable/is-generated.d.ts +4 -0
  169. package/dist/src/tools/impeccable/is-generated.d.ts.map +1 -0
  170. package/dist/src/tools/impeccable/is-generated.js +56 -0
  171. package/dist/src/tools/impeccable/is-generated.js.map +1 -0
  172. package/dist/src/tools/impeccable/live/accept.d.ts +50 -0
  173. package/dist/src/tools/impeccable/live/accept.d.ts.map +1 -0
  174. package/dist/src/tools/impeccable/live/accept.js +556 -0
  175. package/dist/src/tools/impeccable/live/accept.js.map +1 -0
  176. package/dist/src/tools/impeccable/live/bootstrap.d.ts +2 -0
  177. package/dist/src/tools/impeccable/live/bootstrap.d.ts.map +1 -0
  178. package/dist/src/tools/impeccable/live/bootstrap.js +244 -0
  179. package/dist/src/tools/impeccable/live/bootstrap.js.map +1 -0
  180. package/dist/src/tools/impeccable/live/complete.d.ts +7 -0
  181. package/dist/src/tools/impeccable/live/complete.d.ts.map +1 -0
  182. package/dist/src/tools/impeccable/live/complete.js +67 -0
  183. package/dist/src/tools/impeccable/live/complete.js.map +1 -0
  184. package/dist/src/tools/impeccable/live/completion.d.ts +24 -0
  185. package/dist/src/tools/impeccable/live/completion.d.ts.map +1 -0
  186. package/dist/src/tools/impeccable/live/completion.js +26 -0
  187. package/dist/src/tools/impeccable/live/completion.js.map +1 -0
  188. package/dist/src/tools/impeccable/live/inject.d.ts +41 -0
  189. package/dist/src/tools/impeccable/live/inject.d.ts.map +1 -0
  190. package/dist/src/tools/impeccable/live/inject.js +394 -0
  191. package/dist/src/tools/impeccable/live/inject.js.map +1 -0
  192. package/dist/src/tools/impeccable/live/poll.d.ts +24 -0
  193. package/dist/src/tools/impeccable/live/poll.d.ts.map +1 -0
  194. package/dist/src/tools/impeccable/live/poll.js +180 -0
  195. package/dist/src/tools/impeccable/live/poll.js.map +1 -0
  196. package/dist/src/tools/impeccable/live/resume.d.ts +5 -0
  197. package/dist/src/tools/impeccable/live/resume.d.ts.map +1 -0
  198. package/dist/src/tools/impeccable/live/resume.js +30 -0
  199. package/dist/src/tools/impeccable/live/resume.js.map +1 -0
  200. package/dist/src/tools/impeccable/live/server.d.ts +6 -0
  201. package/dist/src/tools/impeccable/live/server.d.ts.map +1 -0
  202. package/dist/src/tools/impeccable/live/server.js +867 -0
  203. package/dist/src/tools/impeccable/live/server.js.map +1 -0
  204. package/dist/src/tools/impeccable/live/session-store.d.ts +72 -0
  205. package/dist/src/tools/impeccable/live/session-store.d.ts.map +1 -0
  206. package/dist/src/tools/impeccable/live/session-store.js +281 -0
  207. package/dist/src/tools/impeccable/live/session-store.js.map +1 -0
  208. package/dist/src/tools/impeccable/live/static/live-browser-session.js +123 -0
  209. package/dist/src/tools/impeccable/live/static/live-browser.js +4860 -0
  210. package/dist/src/tools/impeccable/live/static/modern-screenshot.umd.js +14 -0
  211. package/dist/src/tools/impeccable/live/status.d.ts +2 -0
  212. package/dist/src/tools/impeccable/live/status.d.ts.map +1 -0
  213. package/dist/src/tools/impeccable/live/status.js +52 -0
  214. package/dist/src/tools/impeccable/live/status.js.map +1 -0
  215. package/dist/src/tools/impeccable/live/wrap.d.ts +33 -0
  216. package/dist/src/tools/impeccable/live/wrap.d.ts.map +1 -0
  217. package/dist/src/tools/impeccable/live/wrap.js +572 -0
  218. package/dist/src/tools/impeccable/live/wrap.js.map +1 -0
  219. package/dist/src/tools/impeccable/load-context.d.ts +13 -0
  220. package/dist/src/tools/impeccable/load-context.d.ts.map +1 -0
  221. package/dist/src/tools/impeccable/load-context.js +79 -0
  222. package/dist/src/tools/impeccable/load-context.js.map +1 -0
  223. package/dist/src/tools/impeccable/paths.d.ts +34 -0
  224. package/dist/src/tools/impeccable/paths.d.ts.map +1 -0
  225. package/dist/src/tools/impeccable/paths.js +102 -0
  226. package/dist/src/tools/impeccable/paths.js.map +1 -0
  227. package/dist/src/tools/spec-entry-parser.d.ts +1 -1
  228. package/dist/src/tools/spec-entry-parser.d.ts.map +1 -1
  229. package/dist/src/tools/spec-entry-parser.js +1 -1
  230. package/dist/src/tools/spec-entry-parser.js.map +1 -1
  231. package/dist/src/tools/spec-init.d.ts.map +1 -1
  232. package/dist/src/tools/spec-init.js +26 -1
  233. package/dist/src/tools/spec-init.js.map +1 -1
  234. package/dist/src/tools/spec-loader.d.ts +1 -1
  235. package/dist/src/tools/spec-loader.d.ts.map +1 -1
  236. package/dist/src/tools/spec-loader.js +2 -0
  237. package/dist/src/tools/spec-loader.js.map +1 -1
  238. package/dist/src/tools/store-knowhow.d.ts.map +1 -1
  239. package/dist/src/tools/store-knowhow.js +15 -6
  240. package/dist/src/tools/store-knowhow.js.map +1 -1
  241. package/package.json +5 -3
  242. package/workflows/claude-instructions.md +17 -5
  243. package/workflows/cli-tools-usage.md +10 -3
  244. package/workflows/delegate-usage.md +3 -2
  245. package/workflows/impeccable/adapt.md +190 -0
  246. package/workflows/impeccable/animate.md +175 -0
  247. package/workflows/impeccable/audit.md +133 -0
  248. package/workflows/impeccable/bolder.md +113 -0
  249. package/workflows/impeccable/brand.md +118 -0
  250. package/workflows/impeccable/clarify.md +174 -0
  251. package/workflows/impeccable/codex.md +105 -0
  252. package/workflows/impeccable/cognitive-load.md +106 -0
  253. package/workflows/impeccable/color-and-contrast.md +105 -0
  254. package/workflows/impeccable/colorize.md +154 -0
  255. package/workflows/impeccable/craft.md +123 -0
  256. package/workflows/impeccable/critique.md +261 -0
  257. package/workflows/impeccable/delight.md +302 -0
  258. package/workflows/impeccable/distill.md +111 -0
  259. package/workflows/impeccable/document.md +439 -0
  260. package/workflows/impeccable/extract.md +69 -0
  261. package/workflows/impeccable/harden.md +347 -0
  262. package/workflows/impeccable/heuristics-scoring.md +234 -0
  263. package/workflows/impeccable/interaction-design.md +195 -0
  264. package/workflows/impeccable/layout.md +141 -0
  265. package/workflows/impeccable/live.md +622 -0
  266. package/workflows/impeccable/motion-design.md +109 -0
  267. package/workflows/impeccable/onboard.md +234 -0
  268. package/workflows/impeccable/optimize.md +258 -0
  269. package/workflows/impeccable/overdrive.md +130 -0
  270. package/workflows/impeccable/personas.md +179 -0
  271. package/workflows/impeccable/polish.md +242 -0
  272. package/workflows/impeccable/product.md +62 -0
  273. package/workflows/impeccable/quieter.md +99 -0
  274. package/workflows/impeccable/responsive-design.md +114 -0
  275. package/workflows/impeccable/shape.md +165 -0
  276. package/workflows/impeccable/spatial-design.md +100 -0
  277. package/workflows/impeccable/teach.md +168 -0
  278. package/workflows/impeccable/typeset.md +124 -0
  279. package/workflows/impeccable/typography.md +159 -0
  280. package/workflows/impeccable/ux-writing.md +107 -0
  281. package/workflows/impeccable.md +164 -0
  282. package/workflows/maestro.md +7 -3
  283. package/workflows/skill-authoring.md +265 -0
  284. package/workflows/specs-add.md +3 -2
  285. package/workflows/specs-load.md +2 -1
  286. package/workflows/specs-setup.md +21 -1
  287. package/workflows/tools-spec.md +20 -13
  288. package/.claude/commands/maestro-link-coordinate.md +0 -71
  289. package/.codex/skills/maestro-link-coordinate/SKILL.md +0 -257
@@ -0,0 +1,181 @@
1
+ # Phase 2: Search & Present
2
+
3
+ 查询 catalog.json 并格式化呈现结果。覆盖 Mode 1/2/3/6/7。
4
+
5
+ ## Objective
6
+
7
+ - 根据 Phase 1 输出的 mode 和 query 搜索 catalog
8
+ - 读取 source 文件获取详情(Mode 2)
9
+ - 检测项目状态提供智能推荐(Mode 3)
10
+ - 格式化呈现搜索结果
11
+
12
+ ## Execution
13
+
14
+ ### Mode 1: Command Search
15
+
16
+ ```
17
+ 1. Read catalog.json
18
+ 2. Search commands[] + cli_commands[]:
19
+ - Filter by: name contains query (case-insensitive)
20
+ - OR: description contains query
21
+ - OR: category matches query
22
+ 3. Sort by relevance (exact name match > starts with > contains)
23
+ 4. Present top 5 results:
24
+ ```
25
+
26
+ **输出格式**:
27
+
28
+ ```markdown
29
+ 找到 {N} 个匹配命令:
30
+
31
+ **/{command-name}** — {description}
32
+ 分类: {category} | 详细: {source file exists? → "查看详情 →" : "catalog only"}
33
+
34
+ **/{command-name-2}** — {description}
35
+ ...
36
+ ```
37
+
38
+ ### Mode 2: Command Documentation
39
+
40
+ ```
41
+ 1. Locate command in catalog.json commands[] by name
42
+ 2. Read the source file (e.g., "../../commands/maestro-analyze.md")
43
+ 3. Extract key sections:
44
+ - <purpose> content
45
+ - argument-hint
46
+ - usage examples from <context>
47
+ 4. If a guide file references this command, read relevant section
48
+ 5. Present structured documentation:
49
+ ```
50
+
51
+ **输出格式**:
52
+
53
+ ```markdown
54
+ ## /{command-name}
55
+
56
+ **用途**: {description}
57
+
58
+ **参数**: {argument-hint}
59
+
60
+ **用法**:
61
+ {extracted examples or usage patterns}
62
+
63
+ **分类**: {category}
64
+
65
+ **相关 Guide**: {guide file name if applicable}
66
+ ```
67
+
68
+ **Guide 映射**:
69
+
70
+ | 命令 | Guide 文档 |
71
+ |------|-----------|
72
+ | maestro-analyze/plan/execute/verify | `guide/command-usage-guide.md` (主干管线) |
73
+ | maestro-init/roadmap | `guide/quick-start-guide.md` |
74
+ | maestro-ralph | `guide/maestro-ralph-guide.md` |
75
+ | maestro (协调器) | `guide/maestro-coordinator-guide.md` |
76
+ | manage-* | `guide/command-usage-guide.md` (管理) |
77
+ | quality-* | `guide/command-usage-guide.md` (质量) |
78
+ | delegate | `guide/delegate-async-guide.md` |
79
+ | overlay/amend | `guide/overlay-guide.md` |
80
+
81
+ ### Mode 3: Smart Recommendations
82
+
83
+ ```
84
+ 1. Detect project state from Phase 1
85
+ 2. Match state to workflow template from catalog.workflows
86
+ 3. Present recommendations with WHY:
87
+ ```
88
+
89
+ **状态 → 推荐映射**:
90
+
91
+ | 当前状态 | 推荐命令 | 原因 |
92
+ |---------|---------|------|
93
+ | 无 .workflow/ | `/maestro-init` | 项目未初始化,需要先创建工作区 |
94
+ | init 完成,无 roadmap | `/maestro-roadmap` | 需要路线图指导后续 Phase |
95
+ | roadmap 完成,phase=pending | `/maestro-analyze` | 准备开始分析阶段 |
96
+ | analyze 完成 | `/maestro-plan` | 分析完成,进入规划 |
97
+ | plan 完成 | `/maestro-execute` | 规划完成,开始执行 |
98
+ | execute 完成 | `/maestro-verify` | 执行完成,验证成果 |
99
+ | verify 有 gaps | `/maestro-analyze --gaps` | 发现差距,重新分析 |
100
+ | verify 通过 | `/quality-review` | 进入质量管线 |
101
+ | quality 全通过 | `/maestro-milestone-audit` | 准备里程碑审计 |
102
+ | 所有 Phase 完成 | `/maestro-milestone-complete` | 里程碑可以关闭 |
103
+
104
+ ### Mode 6: Skill & Agent Browsing
105
+
106
+ **Skills**:
107
+ ```
108
+ 1. Read catalog.json skills[]
109
+ 2. If category specified: filter by category
110
+ 3. Group by category: meta / team / knowledge
111
+ 4. Present:
112
+ ```
113
+
114
+ ```markdown
115
+ ## Skills ({total} 个)
116
+
117
+ ### Meta (2)
118
+ - **workflow-skill-designer** — 设计 orchestrator+phases 工作流 skill
119
+ - **skill-iter-tune** — 迭代 execute-evaluate-improve 调优
120
+
121
+ ### Team (6)
122
+ - **team-coordinate** — 通用团队协调,动态生成 role-specs
123
+ - **team-executor** — 团队执行,恢复会话
124
+ - **team-lifecycle-v4** — 8 角色完整生命周期
125
+ - **team-quality-assurance** — QA 质量保障流水线
126
+ - **team-review** — 多维度代码审查
127
+ - **team-tech-debt** — 技术债务识别和清理
128
+ - **team-testing** — 测试规划和执行
129
+
130
+ ### Knowledge (1)
131
+ - **codify-to-knowhow** — Manifest 驱动的知识资产生成
132
+ ```
133
+
134
+ **Agents**:
135
+ ```
136
+ 1. Read catalog.json agents[]
137
+ 2. Group by category: workflow / team / planning / cli / ui
138
+ 3. Present with category headers
139
+ ```
140
+
141
+ ### Mode 7: CLI Command Reference
142
+
143
+ ```
144
+ 1. Read catalog.json cli_commands[]
145
+ 2. Group by category: setup / dashboard / execution / knowledge / config / team / visualization
146
+ 3. Present table with command, alias, description:
147
+ ```
148
+
149
+ ```markdown
150
+ ## CLI 终端命令 (21 个)
151
+
152
+ ### 安装与更新 (setup)
153
+ | 命令 | 别名 | 用途 |
154
+ |------|------|------|
155
+ | `maestro install` | — | 安装 Maestro 资源 |
156
+ | `maestro uninstall` | — | 卸载已安装资源 |
157
+ | `maestro update` | — | 检查/安装最新版本 |
158
+ | `maestro launcher` | — | Claude Code 启动器 |
159
+
160
+ ### 任务执行 (execution)
161
+ | 命令 | 别名 | 用途 |
162
+ |------|------|------|
163
+ | `maestro delegate` | — | 委派任务给 AI 智能体 |
164
+ | `maestro coordinate` | `coord` | 图工作流协调器 |
165
+ | `maestro cli` | — | 运行 CLI 智能体工具 |
166
+ | `maestro run` | — | 执行指定工作流 |
167
+ | `maestro serve` | — | 启动工作流服务器 |
168
+ ...
169
+ ```
170
+
171
+ ## Error Handling
172
+
173
+ | 场景 | 处理 |
174
+ |------|------|
175
+ | 搜索无结果 | 模糊匹配最近命令,建议使用 `/maestro-help` 查看全部 |
176
+ | Source 文件不存在 | 仅提供 catalog 描述,标注 "详细信息不可用" |
177
+ | Catalog 读取失败 | 回退到 Glob 扫描 .claude/commands/*.md |
178
+
179
+ ## Output
180
+
181
+ 格式化的搜索/文档/推荐结果,直接展示给用户。
@@ -0,0 +1,186 @@
1
+ # Phase 3: Workflow Guide
2
+
3
+ 工作流推荐和新手引导。覆盖 Mode 4/5。
4
+
5
+ ## Objective
6
+
7
+ - 根据用户任务推荐最合适的工作流
8
+ - 为新手提供入门指引
9
+ - 给出具体命令序列和说明
10
+
11
+ ## Execution
12
+
13
+ ### Mode 4: Workflow Guide
14
+
15
+ 根据用户描述的任务类型推荐工作流:
16
+
17
+ #### Step 4.1: 任务分类
18
+
19
+ ```javascript
20
+ // 任务类型识别
21
+ const taskPatterns = [
22
+ { type: "new_project", patterns: ["新项目", "从头开始", "new project", "创建项目"] },
23
+ { type: "feature", patterns: ["添加功能", "新功能", "add feature", "实现"] },
24
+ { type: "bugfix", patterns: ["修复", "bug", "fix", "问题"] },
25
+ { type: "refactor", patterns: ["重构", "refactor", "优化", "改进"] },
26
+ { type: "analysis", patterns: ["分析", "analyze", "调查", "investigate"] },
27
+ { type: "review", patterns: ["审查", "review", "检查", "check"] },
28
+ { type: "test", patterns: ["测试", "test", "验证"] },
29
+ { type: "explore", patterns: ["探索", "explore", "头脑风暴", "brainstorm"] },
30
+ { type: "knowledge", patterns: ["知识", "knowhow", "学习", "learn"] },
31
+ ]
32
+ ```
33
+
34
+ #### Step 4.2: 推荐工作流
35
+
36
+ **新项目** (复杂度: 高):
37
+
38
+ ```markdown
39
+ ## 新项目工作流
40
+
41
+ ### 路径 1: 最简路径(适合快速启动)
42
+ 1. `/maestro-init` — 初始化 .workflow/ 目录
43
+ 2. `/maestro-roadmap "项目目标" -y` — 生成路线图
44
+ 3. 按里程碑执行: analyze → plan → execute → verify
45
+
46
+ ### 路径 2: 从头脑风暴开始(适合需要创意探索)
47
+ 1. `/maestro-brainstorm "项目描述"` — 多角色头脑风暴
48
+ 2. `/maestro-init --from-brainstorm ANL-xxx` — 基于分析初始化
49
+ 3. `/maestro-roadmap "创建路线图" -y`
50
+
51
+ ### 路径 3: 完整规范链(适合大型项目)
52
+ 1. `/maestro-init`
53
+ 2. `/maestro-spec-generate` — 7 阶段规范生成
54
+ ```
55
+
56
+ **功能开发** (复杂度: 中):
57
+
58
+ ```markdown
59
+ ## 功能开发工作流
60
+
61
+ ### 主干管线(标准流程)
62
+ 1. `/maestro-analyze [phase]` — 分析需求和现有代码
63
+ 2. `/maestro-plan [phase]` — 生成执行计划
64
+ 3. `/maestro-execute [phase]` — 执行实现
65
+ 4. `/maestro-verify [phase]` — 验证成果
66
+
67
+ ### 快速渠道(简单功能)
68
+ 1. `/maestro-quick "功能描述"` — 一键完成
69
+
70
+ ### 全自动
71
+ 1. `/maestro -y "功能描述"` — 自动选择并执行完整流程
72
+ ```
73
+
74
+ **Bug 修复** (复杂度: 低-中):
75
+
76
+ ```markdown
77
+ ## Bug 修复工作流
78
+
79
+ ### 快速修复(已知问题)
80
+ 1. `/maestro-quick "修复 Bug 描述"`
81
+
82
+ ### Issue 闭环(需要追踪)
83
+ 1. `/manage-issue-discover by-prompt "问题描述"` — 发现 Issue
84
+ 2. `/manage-issue create --title "Bug 标题" --severity high` — 创建 Issue
85
+ 3. `/maestro-analyze --gaps ISS-xxx` — 根因分析
86
+ 4. `/maestro-plan --gaps` — 方案规划
87
+ 5. `/maestro-execute` — 执行修复
88
+ 6. `/manage-issue close ISS-xxx --resolution "Fixed"` — 关闭 Issue
89
+ ```
90
+
91
+ **代码审查**:
92
+
93
+ ```markdown
94
+ ## 质量管线
95
+
96
+ 1. `/quality-review [phase] --level standard` — 多维代码审查
97
+ 2. `/quality-auto-test [phase]` — 自动测试(智能路由)
98
+ 3. `/quality-test [phase]` — 业务测试(UAT)
99
+
100
+ ### 测试失败修复循环
101
+ 1. `/quality-debug --from-uat [phase]` — 诊断失败
102
+ 2. `/maestro-plan [phase] --gaps` — 生成修复计划
103
+ 3. `/maestro-execute [phase]` — 执行修复
104
+ 4. `/quality-auto-test [phase] --re-run` — 重跑失败场景
105
+ ```
106
+
107
+ #### Step 4.3: 工作流全景图
108
+
109
+ 对需要全景视角的用户,展示 Mermaid 图:
110
+
111
+ ```
112
+ 主干管线: analyze → plan → execute → verify → quality (review/test) → milestone-audit → milestone-complete
113
+ 快速渠道: maestro-quick → (直接完成)
114
+ Issue 闭环: discover → create → analyze --gaps → plan --gaps → execute → close
115
+ 全自动: /maestro -y → (自动路由)
116
+ ```
117
+
118
+ #### Step 4.4: 关键概念说明
119
+
120
+ 对不熟悉 Maestro 的用户,简要说明核心概念:
121
+
122
+ ```markdown
123
+ ## 核心概念
124
+
125
+ - **Milestone**: 项目阶段,包含多个 Phase
126
+ - **Phase**: 单个工作单元,走 analyze → plan → execute → verify 生命周期
127
+ - **Overlay**: 非侵入式命令补丁,扩展命令行为而不修改源文件
128
+ - **Delegate**: 将子任务委派给外部 AI 工具(Gemini/Claude/Codex)
129
+ - **Spec**: 项目规范,自动注入到工作流中作为约束
130
+ - **Wiki**: 知识图谱,存储详细技术文档
131
+ - **Ralph**: 自适应决策引擎,动态调整执行链
132
+ ```
133
+
134
+ ### Mode 5: Beginner Onboarding
135
+
136
+ #### Step 5.1: 展示核心命令
137
+
138
+ 从 `catalog.json essential_commands[]` 读取核心命令列表:
139
+
140
+ ```markdown
141
+ ## Maestro Flow 快速入门
142
+
143
+ ### 10 个核心命令
144
+
145
+ | # | 命令 | 用途 | 何时使用 |
146
+ |---|------|------|---------|
147
+ | 1 | `/maestro` | 智能协调器 | 不确定用哪个命令时,告诉它你的目标 |
148
+ | 2 | `/maestro-init` | 初始化项目 | 首次使用,创建 .workflow/ 结构 |
149
+ | 3 | `/maestro-roadmap` | 生成路线图 | 初始化后,规划里程碑 |
150
+ | 4 | `/maestro-analyze` | 分析 | 开始一个 Phase 的分析 |
151
+ | 5 | `/maestro-plan` | 规划 | 分析完成后,生成执行计划 |
152
+ | 6 | `/maestro-execute` | 执行 | 计划完成后,执行实现 |
153
+ | 7 | `/maestro-verify` | 验证 | 执行完成后,检查成果 |
154
+ | 8 | `/maestro-quick` | 快速任务 | 简单任务跳过管线 |
155
+ | 9 | `/quality-review` | 代码审查 | 执行后进行质量检查 |
156
+ | 10 | `/manage-issue` | Issue 管理 | 追踪和解决 Bug |
157
+ ```
158
+
159
+ #### Step 5.2: 快速入门路径
160
+
161
+ ```markdown
162
+ ### 5 分钟上手
163
+
164
+ 1. **安装**: `maestro install --force`
165
+ 2. **初始化**: `/maestro-init`
166
+ 3. **开始工作**: `/maestro "你的任务描述"` — 自动选择最佳工作流
167
+
168
+ ### 10 分钟深入
169
+
170
+ 阅读 `guide/quick-start-guide.md` 了解完整功能。
171
+ ```
172
+
173
+ #### Step 5.3: 分类浏览引导
174
+
175
+ ```markdown
176
+ ### 想了解更多?
177
+
178
+ - **全部命令**: `/maestro-help` 查看完整目录
179
+ - **工作流指南**: `/maestro-help workflow` 了解工作流选择
180
+ - **Skill 浏览**: `/maestro-help skills` 查看可用 Skill
181
+ - **CLI 命令**: `/maestro-help cli` 查看终端命令
182
+ ```
183
+
184
+ ## Output
185
+
186
+ 结构化的工作流推荐或新手引导内容,直接展示给用户。
@@ -0,0 +1,169 @@
1
+ ---
2
+ name: maestro-impeccable
3
+ description: Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a frontend interface. Covers websites, landing pages, dashboards, product UI, app shells, components, forms, settings, onboarding, and empty states. Handles UX review, visual hierarchy, information architecture, cognitive load, accessibility, performance, responsive behavior, theming, anti-patterns, typography, fonts, spacing, layout, alignment, color, motion, micro-interactions, UX copy, error states, edge cases, i18n, and reusable design systems or tokens. Also use for bland designs that need to become bolder or more delightful, loud designs that should become quieter, live browser iteration on UI elements, or ambitious visual effects that should feel technically extraordinary. Not for backend-only or non-UI tasks.
4
+ version: 1.0.0
5
+ user-invocable: true
6
+ argument-hint: "[craft|shape · audit|critique · animate|bolder|colorize|delight|layout|overdrive|quieter|typeset · adapt|clarify|distill · harden|onboard|optimize|polish · teach|document|extract|live] [target] [--skip-harvest] [-y]"
7
+ allowed-tools:
8
+ - Bash(maestro impeccable *)
9
+ - Write
10
+ ---
11
+
12
+ Designs and iterates production-grade frontend interfaces. Real working code, committed design choices, exceptional craft. Automatically harvests design knowledge to `.workflow/knowhow/` for cross-session accumulation.
13
+
14
+ ## Setup
15
+
16
+ Before any design work or file edits:
17
+
18
+ 1. Load context (PRODUCT.md / DESIGN.md) via the loader script.
19
+ 2. Identify the register and load the matching register reference (brand.md or product.md).
20
+ 3. **If the user invoked a sub-command (e.g. `craft`, `shape`, `audit`), load its reference file too.** Non-negotiable: `craft` without `craft.md` loaded means skipping the shape-and-confirm step.
21
+
22
+ Skipping these produces generic output that ignores the project.
23
+
24
+ ### 1. Context gathering
25
+
26
+ Two files, case-insensitive. PRODUCT.md and DESIGN.md are stored at `.workflow/impeccable/`.
27
+
28
+ - **PRODUCT.md**: required. Users, brand, tone, anti-references, strategic principles.
29
+ - **DESIGN.md**: optional, strongly recommended. Colors, typography, elevation, components.
30
+
31
+ Both are registered in the spec system under category `ui` via `spec add`. Load with:
32
+
33
+ ```bash
34
+ maestro spec load --category ui
35
+ ```
36
+
37
+ This surfaces all design context (product + visual) from `.workflow/specs/ui-conventions.md`. If specs are not initialized, fall back to the legacy loader:
38
+
39
+ ```bash
40
+ maestro impeccable load-context
41
+ ```
42
+
43
+ Consume the full output. Never pipe through `head`, `tail`, `grep`, or `jq`.
44
+
45
+ If the output is already in this session, don't re-run. Exceptions: you just ran `teach` or `document` (they rewrite the files and re-register specs), or the user manually edited one.
46
+
47
+ `live` already warms context via `maestro impeccable live`. If you've run `live`, skip context loading.
48
+
49
+ If PRODUCT.md is missing/empty/placeholder (`[TODO]`, <200 chars): run `teach`, then resume the original task. If the original task was `craft`, resume into `shape` first.
50
+
51
+ If DESIGN.md is missing: nudge once per session (*"Run `/maestro-impeccable document` for more on-brand output"*), then proceed.
52
+
53
+ ### 2. Register
54
+
55
+ Every design task is **brand** (marketing, landing, campaign: design IS the product) or **product** (app UI, admin, dashboard: design SERVES the product).
56
+
57
+ Identify before designing. Priority: (1) cue in the task; (2) surface in focus; (3) `register` field in PRODUCT.md. First match wins.
58
+
59
+ Load the matching reference: [brand.md](~/.maestro/workflows/impeccable/brand.md) or [product.md](~/.maestro/workflows/impeccable/product.md).
60
+
61
+ ## Shared design laws
62
+
63
+ Apply to every design, both registers. Match complexity to vision. Vary across projects; never converge on the same choices.
64
+
65
+ ### Color
66
+
67
+ - Use OKLCH. Reduce chroma near lightness extremes.
68
+ - Never `#000` or `#fff`. Tint neutrals toward brand hue (chroma 0.005-0.01).
69
+ - Pick **color strategy** first: Restrained → Committed → Full palette → Drenched.
70
+
71
+ ### Theme
72
+
73
+ Write one sentence of physical scene before choosing dark/light. Run the sentence, not the category.
74
+
75
+ ### Typography
76
+
77
+ - Body line length: 65-75ch.
78
+ - Hierarchy: scale + weight contrast (≥1.25 ratio).
79
+
80
+ ### Layout
81
+
82
+ - Vary spacing for rhythm. Cards only when truly best affordance. No nested cards.
83
+
84
+ ### Motion
85
+
86
+ - No CSS layout property animations. Ease-out with exponential curves.
87
+
88
+ ### Absolute bans
89
+
90
+ Match-and-refuse: side-stripe borders, gradient text, glassmorphism as default, hero-metric template, identical card grids, modal as first thought.
91
+
92
+ ### Copy
93
+
94
+ Every word earns its place. No em dashes.
95
+
96
+ ### AI slop test
97
+
98
+ Two-altitude category-reflex check. If someone could guess theme+palette from category alone, or guess aesthetic family from category+anti-references, rework until neither is obvious.
99
+
100
+ See [~/.maestro/workflows/impeccable/brand.md](~/.maestro/workflows/impeccable/brand.md) for reflex-reject aesthetic lanes.
101
+
102
+ ## Commands
103
+
104
+ | Command | Category | Description | Reference |
105
+ |---|---|---|---|
106
+ | `craft [feature]` | Build | Shape, then build end-to-end | [~/.maestro/workflows/impeccable/craft.md](~/.maestro/workflows/impeccable/craft.md) |
107
+ | `shape [feature]` | Build | Plan UX/UI before code | [~/.maestro/workflows/impeccable/shape.md](~/.maestro/workflows/impeccable/shape.md) |
108
+ | `teach` | Build | Set up PRODUCT.md and DESIGN.md | [~/.maestro/workflows/impeccable/teach.md](~/.maestro/workflows/impeccable/teach.md) |
109
+ | `document` | Build | Generate DESIGN.md from code | [~/.maestro/workflows/impeccable/document.md](~/.maestro/workflows/impeccable/document.md) |
110
+ | `extract [target]` | Build | Pull tokens/components into design system | [~/.maestro/workflows/impeccable/extract.md](~/.maestro/workflows/impeccable/extract.md) |
111
+ | `critique [target]` | Evaluate | UX review with heuristic scoring | [~/.maestro/workflows/impeccable/critique.md](~/.maestro/workflows/impeccable/critique.md) |
112
+ | `audit [target]` | Evaluate | Technical quality checks | [~/.maestro/workflows/impeccable/audit.md](~/.maestro/workflows/impeccable/audit.md) |
113
+ | `polish [target]` | Refine | Final quality pass | [~/.maestro/workflows/impeccable/polish.md](~/.maestro/workflows/impeccable/polish.md) |
114
+ | `bolder [target]` | Refine | Amplify bland designs | [~/.maestro/workflows/impeccable/bolder.md](~/.maestro/workflows/impeccable/bolder.md) |
115
+ | `quieter [target]` | Refine | Tone down aggressive designs | [~/.maestro/workflows/impeccable/quieter.md](~/.maestro/workflows/impeccable/quieter.md) |
116
+ | `distill [target]` | Refine | Strip to essence | [~/.maestro/workflows/impeccable/distill.md](~/.maestro/workflows/impeccable/distill.md) |
117
+ | `harden [target]` | Refine | Production-ready: errors, i18n, edge cases | [~/.maestro/workflows/impeccable/harden.md](~/.maestro/workflows/impeccable/harden.md) |
118
+ | `onboard [target]` | Refine | First-run flows, empty states | [~/.maestro/workflows/impeccable/onboard.md](~/.maestro/workflows/impeccable/onboard.md) |
119
+ | `animate [target]` | Enhance | Add purposeful motion | [~/.maestro/workflows/impeccable/animate.md](~/.maestro/workflows/impeccable/animate.md) |
120
+ | `colorize [target]` | Enhance | Add strategic color | [~/.maestro/workflows/impeccable/colorize.md](~/.maestro/workflows/impeccable/colorize.md) |
121
+ | `typeset [target]` | Enhance | Improve typography | [~/.maestro/workflows/impeccable/typeset.md](~/.maestro/workflows/impeccable/typeset.md) |
122
+ | `layout [target]` | Enhance | Fix spacing, rhythm, hierarchy | [~/.maestro/workflows/impeccable/layout.md](~/.maestro/workflows/impeccable/layout.md) |
123
+ | `delight [target]` | Enhance | Add personality | [~/.maestro/workflows/impeccable/delight.md](~/.maestro/workflows/impeccable/delight.md) |
124
+ | `overdrive [target]` | Enhance | Push past conventional limits | [~/.maestro/workflows/impeccable/overdrive.md](~/.maestro/workflows/impeccable/overdrive.md) |
125
+ | `clarify [target]` | Fix | Improve UX copy and labels | [~/.maestro/workflows/impeccable/clarify.md](~/.maestro/workflows/impeccable/clarify.md) |
126
+ | `adapt [target]` | Fix | Adapt for devices/screens | [~/.maestro/workflows/impeccable/adapt.md](~/.maestro/workflows/impeccable/adapt.md) |
127
+ | `optimize [target]` | Fix | Fix UI performance | [~/.maestro/workflows/impeccable/optimize.md](~/.maestro/workflows/impeccable/optimize.md) |
128
+ | `live` | Iterate | Browser-based variant generation | [~/.maestro/workflows/impeccable/live.md](~/.maestro/workflows/impeccable/live.md) |
129
+
130
+ ### Routing rules
131
+
132
+ 1. **No argument**: render command menu grouped by category.
133
+ 2. **First word matches command**: load its reference file, follow instructions. Rest is target.
134
+ 3. **No match**: general design invocation with full argument as context.
135
+
136
+ ## Harvest — Design Knowledge Accumulation
137
+
138
+ After every command execution (except `live`), harvest design decisions into `.workflow/knowhow/` for cross-session reuse. Skip if `--skip-harvest` flag is set.
139
+
140
+ ### Harvest routing
141
+
142
+ | Command | Type | Prefix | Extract |
143
+ |---------|------|--------|---------|
144
+ | craft | decision + asset | DCS- + AST- | Design decisions + tokens (dual entry) |
145
+ | shape | decision | DCS- | Key decisions from brief |
146
+ | teach | reference | REF- | Brand/user/principles from PRODUCT.md |
147
+ | document | asset | AST- | Token system from DESIGN.md YAML |
148
+ | extract | asset | AST- | Design system patterns |
149
+ | critique | tip | TIP- | Scores + P0/P1 findings |
150
+ | audit | tip | TIP- | 5-dimension scores |
151
+ | polish | tip | TIP- | Polish points |
152
+ | bolder/quieter/distill | decision | DCS- | Direction decisions |
153
+ | harden/onboard | tip | TIP- | Patterns applied |
154
+ | animate | decision | DCS- | Animation strategy |
155
+ | colorize | decision | DCS- | Color strategy + OKLCH values |
156
+ | typeset | decision | DCS- | Typography decisions |
157
+ | layout | decision | DCS- | Layout/spacing decisions |
158
+ | delight/overdrive | decision | DCS- | Creative decisions |
159
+ | clarify/adapt/optimize | tip | TIP- | Fix points |
160
+
161
+ ### Harvest execution
162
+
163
+ 1. **Determine type** from routing table.
164
+ 2. **Extract** from output files (document, critique) or conversation context (others).
165
+ 3. **Write knowhow**:
166
+ - DCS-/TIP-/REF- → `store_knowhow` MCP: `{operation: "add", type, title: "maestro-impeccable <cmd>: <description>", body, tags: ["impeccable", "<cmd>", ...]}`
167
+ - AST- → Write to `.workflow/knowhow/AST-impeccable-<slug>-<YYYYMMDD>.md` with YAML frontmatter (`category: ui`)
168
+ 4. **Spec index** (DCS-/AST- only): `maestro spec add ui "<title>" "<summary>" --keywords impeccable,<cmd>,... --ref knowhow/<file>`
169
+ 5. **Report**: one-line summary with knowhow ID.
@@ -0,0 +1,40 @@
1
+ name = "team_supervisor"
2
+ description = "Resident pipeline supervisor. Spawned once, woken via followup_task for checkpoint verification. Read-only."
3
+ model = "gpt-5.4"
4
+ model_reasoning_effort = "high"
5
+ sandbox_mode = "read-only"
6
+
7
+ developer_instructions = """
8
+ You are a resident pipeline supervisor (message-driven lifecycle).
9
+
10
+ ## Lifecycle
11
+ Init -> idle -> [wake -> execute checkpoint -> idle]* -> shutdown
12
+
13
+ Unlike team_worker (task-driven), you are message-driven:
14
+ - Spawned once at session start
15
+ - Woken by coordinator via followup_task with checkpoint requests
16
+ - Stay alive across checkpoints, maintaining context continuity
17
+
18
+ ## Boot Protocol
19
+ 1. Parse role assignment from message (role_spec, session, session_id, requirement)
20
+ 2. Read role_spec to load checkpoint definitions
21
+ 3. Load baseline context (all role states, session state)
22
+ 4. Report ready via report_agent_job_result
23
+ 5. Wait for checkpoint requests via followup_task
24
+
25
+ ## Per Checkpoint
26
+ 1. Parse checkpoint request from followup_task message (task_id, scope)
27
+ 2. Read artifacts specified in checkpoint scope
28
+ 3. Load incremental context (new data since last wake)
29
+ 4. Optionally read worker progress milestones from team_msg for risk assessment
30
+ 5. Verify cross-artifact consistency per role.md definitions
31
+ 6. Issue verdict: pass (>= 0.8), warn (0.5-0.79), block (< 0.5)
32
+ 7. Write report to discoveries/{checkpoint_id}.json
33
+ 8. Report findings via report_agent_job_result
34
+
35
+ ## Constraints
36
+ - Read-only: never modify source artifacts
37
+ - Never issue pass when critical inconsistencies exist
38
+ - Never block for minor style issues
39
+ - Only communicate with coordinator
40
+ """
@@ -0,0 +1,63 @@
1
+ name = "team_worker"
2
+ description = "Generic team worker agent. Role-specific behavior loaded from role.md at spawn time via message parameter."
3
+ model = "gpt-5.4"
4
+ model_reasoning_effort = "high"
5
+ sandbox_mode = "workspace-write"
6
+
7
+ developer_instructions = """
8
+ You are a team worker agent. You execute a specific role within a team pipeline.
9
+
10
+ ## Boot Protocol
11
+ 1. Parse role assignment from message (role, role_spec path, session, session_id, requirement)
12
+ 2. Read role_spec file to load Phase 2-4 domain instructions
13
+ 3. Read session state from session path
14
+ 4. Execute built-in Phase 1 (task discovery from tasks.json)
15
+ 5. Execute role-specific Phase 2-4 defined in role.md
16
+ 6. Report progress milestones via team_msg at phase boundaries
17
+ 7. Write deliverables to session artifacts directory
18
+ 8. Write findings to discoveries/{task_id}.json
19
+ 9. Report completion via team_msg type="task_complete" + report_agent_job_result
20
+
21
+ ## Task State
22
+ - tasks.json is source of truth (NOT CSV)
23
+ - Filter tasks by your role prefix + status=pending + no blocked deps
24
+ - Update task status in tasks.json (pending -> in_progress -> completed)
25
+
26
+ ## Inner Loop
27
+ If inner_loop=true, process ALL same-prefix tasks sequentially:
28
+ Phase 1 -> Phase 2-4 -> Phase 5-L (loop) -> repeat
29
+ Until no more same-prefix pending tasks -> Phase 5-F (final report)
30
+
31
+ ## Progress Milestones
32
+ Report progress via mcp__maestro-tools__team_msg at natural phase boundaries:
33
+ - type="progress" with progress_pct, phase, status
34
+ - type="blocker" immediately on errors (don't wait for next milestone)
35
+ - type="task_complete" after report_agent_job_result
36
+ See agent-instruction.md "Progress Milestone Protocol" for format.
37
+
38
+ ## Output Schema
39
+ {
40
+ "id": "<task_id>",
41
+ "status": "completed | failed",
42
+ "role": "<role_name>",
43
+ "findings": "<max 500 chars>",
44
+ "artifact": "<artifact_path>",
45
+ "files_modified": [],
46
+ "error": ""
47
+ }
48
+
49
+ ## Constraints
50
+ - Only process tasks matching your role prefix
51
+ - Never modify tasks outside your scope
52
+ - Report to coordinator via team_msg + report_agent_job_result
53
+ - Use CLI tools (maestro delegate) or direct tools for exploration
54
+
55
+ ## Maestro Delegate Execution (MANDATORY)
56
+ When calling `maestro delegate` via exec_command:
57
+ 1. Set yield_time_ms: 30000 (initial 30s wait)
58
+ 2. If session_id returned (command still running) → poll with write_stdin(session_id, chars="", yield_time_ms=15000→60000) in a loop
59
+ 3. NEVER skip polling, NEVER abandon — delegate output is required
60
+ 4. Increase poll interval: 15s → 30s → 60s (cap)
61
+ 5. Parse result only after command completes
62
+ Protocol: @~/.maestro/workflows/delegate-protocol.codex.md
63
+ """
@@ -50,7 +50,7 @@ $ARGUMENTS — target path/module and optional flags.
50
50
  Parse flags from `$ARGUMENTS`: `-y`/`--yes`, `--patterns <list>`, `--save-spec`, `--save-wiki`, `--continue`, `-c N`.
51
51
  Extract remaining text as target path/module.
52
52
 
53
- Resolve target to file list. Load existing patterns from `coding-conventions.md` + `specs/learnings.md` for dedup set.
53
+ Resolve target to file list. Load coding specs: `maestro spec load --category coding` for documented patterns and conventions. Load existing patterns from `coding-conventions.md` + `specs/learnings.md` for dedup set. Browse wiki: `maestro wiki list --category coding`, load relevant entries.
54
54
 
55
55
  ### Phase 2: Wave 1 — Parallel Dimension Scans
56
56
 
@@ -28,7 +28,8 @@ $ARGUMENTS — question text and optional flags.
28
28
 
29
29
  ### Stage 1: Frame the Question
30
30
  - Parse question, generate slug, create investigation directory
31
- - Search prior knowledge: wiki search, grep specs/learnings.md, read debug-notes.md
31
+ - Load debug specs: `maestro spec load --category debug` for known issues and patterns
32
+ - Search prior knowledge: `maestro wiki list --category debug`, wiki search, grep specs/learnings.md
32
33
  - Write initial `understanding.md`
33
34
 
34
35
  ### Stage 2: Evidence Collection