maestro-flow 0.5.35 → 0.5.36

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 (269) hide show
  1. package/.agents/agents/cli-explore-agent.md +71 -68
  2. package/.agents/agents/workflow-analyzer.md +1 -0
  3. package/.agents/agents/workflow-debugger.md +1 -0
  4. package/.agents/agents/workflow-executor.md +1 -0
  5. package/.agents/skills/domain-add/SKILL.md +71 -0
  6. package/.agents/skills/maestro/SKILL.md +7 -6
  7. package/.agents/skills/maestro-amend/SKILL.md +0 -2
  8. package/.agents/skills/maestro-analyze/SKILL.md +9 -0
  9. package/.agents/skills/maestro-brainstorm/SKILL.md +10 -1
  10. package/.agents/skills/maestro-collab/SKILL.md +14 -1
  11. package/.agents/skills/maestro-next/SKILL.md +15 -4
  12. package/.agents/skills/maestro-overlay/SKILL.md +4 -3
  13. package/.agents/skills/maestro-plan/SKILL.md +12 -3
  14. package/.agents/skills/maestro-ralph/SKILL.md +89 -14
  15. package/.agents/skills/maestro-tools-register/SKILL.md +0 -6
  16. package/.agents/skills/maestro-ui-codify/SKILL.md +0 -2
  17. package/.agents/skills/manage-kg-extractors/SKILL.md +0 -2
  18. package/.agents/skills/quality-test/SKILL.md +0 -2
  19. package/.agents/skills/spec-load/SKILL.md +0 -1
  20. package/.agents/skills/spec-setup/SKILL.md +0 -1
  21. package/.agents/skills/team-lifecycle-v4/roles/analyst/role.md +13 -7
  22. package/.agents/skills/team-quality-assurance/roles/scout/role.md +15 -11
  23. package/.agents/skills/team-tech-debt/roles/scanner/role.md +1 -1
  24. package/.agents/skills/team-ultra-analyze/roles/explorer/role.md +23 -16
  25. package/.agy/agents/cli-explore-agent.md +71 -68
  26. package/.agy/agents/workflow-analyzer.md +1 -0
  27. package/.agy/agents/workflow-debugger.md +1 -0
  28. package/.agy/agents/workflow-executor.md +1 -0
  29. package/.agy/skills/domain-add/SKILL.md +68 -0
  30. package/.agy/skills/maestro/SKILL.md +7 -6
  31. package/.agy/skills/maestro-amend/SKILL.md +0 -2
  32. package/.agy/skills/maestro-analyze/SKILL.md +9 -0
  33. package/.agy/skills/maestro-brainstorm/SKILL.md +10 -1
  34. package/.agy/skills/maestro-collab/SKILL.md +14 -1
  35. package/.agy/skills/maestro-next/SKILL.md +15 -4
  36. package/.agy/skills/maestro-overlay/SKILL.md +4 -3
  37. package/.agy/skills/maestro-plan/SKILL.md +12 -3
  38. package/.agy/skills/maestro-ralph/SKILL.md +89 -14
  39. package/.agy/skills/maestro-tools-register/SKILL.md +0 -6
  40. package/.agy/skills/maestro-ui-codify/SKILL.md +0 -2
  41. package/.agy/skills/manage-kg-extractors/SKILL.md +0 -2
  42. package/.agy/skills/quality-test/SKILL.md +0 -2
  43. package/.agy/skills/spec-load/SKILL.md +0 -1
  44. package/.agy/skills/spec-setup/SKILL.md +0 -1
  45. package/.agy/skills/team-lifecycle-v4/roles/analyst/role.md +13 -7
  46. package/.agy/skills/team-quality-assurance/roles/scout/role.md +15 -11
  47. package/.agy/skills/team-tech-debt/roles/scanner/role.md +1 -1
  48. package/.agy/skills/team-ultra-analyze/roles/explorer/role.md +23 -16
  49. package/.claude/agents/cli-explore-agent.md +71 -68
  50. package/.claude/agents/workflow-analyzer.md +1 -0
  51. package/.claude/agents/workflow-debugger.md +1 -0
  52. package/.claude/agents/workflow-executor.md +1 -0
  53. package/.claude/commands/domain-add.md +69 -0
  54. package/.claude/commands/maestro-amend.md +0 -2
  55. package/.claude/commands/maestro-analyze.md +9 -0
  56. package/.claude/commands/maestro-brainstorm.md +10 -1
  57. package/.claude/commands/maestro-collab.md +14 -1
  58. package/.claude/commands/maestro-next.md +15 -4
  59. package/.claude/commands/maestro-overlay.md +4 -3
  60. package/.claude/commands/maestro-plan.md +12 -3
  61. package/.claude/commands/maestro-ralph.md +89 -14
  62. package/.claude/commands/maestro-tools-register.md +0 -6
  63. package/.claude/commands/maestro-ui-codify.md +0 -2
  64. package/.claude/commands/maestro.md +7 -6
  65. package/.claude/commands/manage-kg-extractors.md +0 -2
  66. package/.claude/commands/quality-test.md +0 -2
  67. package/.claude/commands/spec-load.md +0 -1
  68. package/.claude/commands/spec-setup.md +0 -1
  69. package/.claude/skills/team-lifecycle-v4/roles/analyst/role.md +13 -7
  70. package/.claude/skills/team-quality-assurance/roles/scout/role.md +15 -11
  71. package/.claude/skills/team-tech-debt/roles/scanner/role.md +1 -1
  72. package/.claude/skills/team-ultra-analyze/roles/explorer/role.md +23 -16
  73. package/.codex/skills/domain-add/SKILL.md +79 -0
  74. package/.codex/skills/domain-discover/SKILL.md +43 -0
  75. package/.codex/skills/domain-list/SKILL.md +38 -0
  76. package/.codex/skills/learn-follow/SKILL.md +0 -3
  77. package/.codex/skills/learn-investigate/SKILL.md +0 -3
  78. package/.codex/skills/learn-retro/SKILL.md +0 -2
  79. package/.codex/skills/maestro/SKILL.md +17 -11
  80. package/.codex/skills/maestro-amend/SKILL.md +0 -2
  81. package/.codex/skills/maestro-analyze/SKILL.md +16 -3
  82. package/.codex/skills/maestro-blueprint/SKILL.md +0 -4
  83. package/.codex/skills/maestro-brainstorm/SKILL.md +16 -2
  84. package/.codex/skills/maestro-collab/SKILL.md +14 -1
  85. package/.codex/skills/maestro-companion/SKILL.md +0 -2
  86. package/.codex/skills/maestro-fork/SKILL.md +0 -2
  87. package/.codex/skills/maestro-grill/SKILL.md +0 -1
  88. package/.codex/skills/maestro-next/SKILL.md +12 -5
  89. package/.codex/skills/maestro-plan/SKILL.md +17 -2
  90. package/.codex/skills/maestro-ralph/SKILL.md +4 -3
  91. package/.codex/skills/maestro-roadmap/SKILL.md +0 -2
  92. package/.codex/skills/manage-wiki/SKILL.md +0 -2
  93. package/.codex/skills/odyssey-debug/SKILL.md +0 -2
  94. package/.codex/skills/odyssey-improve/SKILL.md +0 -6
  95. package/.codex/skills/odyssey-review-test-fix/SKILL.md +0 -3
  96. package/.codex/skills/odyssey-ui/SKILL.md +0 -3
  97. package/.codex/skills/spec-setup/SKILL.md +0 -2
  98. package/.codex/skills/team-coordinate/SKILL.md +0 -3
  99. package/.codex/skills/team-lifecycle-v4/instructions/agent-instruction.md +0 -2
  100. package/chains/_intent-map.json +36 -0
  101. package/chains/blueprint-driven.json +49 -0
  102. package/chains/grill-driven.json +51 -0
  103. package/dashboard/dist-server/dashboard/src/server/agents/adapter-factory.js +4 -0
  104. package/dashboard/dist-server/dashboard/src/server/agents/adapter-factory.js.map +1 -1
  105. package/dashboard/dist-server/dashboard/src/server/agents/api-explore-adapter.d.ts +6 -0
  106. package/dashboard/dist-server/dashboard/src/server/agents/api-explore-adapter.js +36 -0
  107. package/dashboard/dist-server/dashboard/src/server/agents/api-explore-adapter.js.map +1 -0
  108. package/dashboard/dist-server/dashboard/src/server/agents/stream-json-adapter.d.ts +1 -1
  109. package/dashboard/dist-server/dashboard/src/server/agents/stream-json-adapter.js.map +1 -1
  110. package/dashboard/dist-server/dashboard/src/server/wiki/search.d.ts +1 -1
  111. package/dashboard/dist-server/dashboard/src/server/wiki/search.js +13 -0
  112. package/dashboard/dist-server/dashboard/src/server/wiki/search.js.map +1 -1
  113. package/dashboard/dist-server/dashboard/src/server/wiki/virtual-wiki-adapters.d.ts +11 -0
  114. package/dashboard/dist-server/dashboard/src/server/wiki/virtual-wiki-adapters.js +492 -1
  115. package/dashboard/dist-server/dashboard/src/server/wiki/virtual-wiki-adapters.js.map +1 -1
  116. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.d.ts +6 -1
  117. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js +92 -4
  118. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js.map +1 -1
  119. package/dashboard/dist-server/dashboard/src/shared/constants.js +2 -0
  120. package/dashboard/dist-server/dashboard/src/shared/constants.js.map +1 -1
  121. package/dashboard/dist-server/shared/agent-types.d.ts +1 -1
  122. package/dashboard/dist-server/src/commands/hooks.js +49 -1
  123. package/dashboard/dist-server/src/commands/hooks.js.map +1 -1
  124. package/dashboard/dist-server/src/graph/kg/extraction/knowledge/domain-extractor.js +4 -2
  125. package/dashboard/dist-server/src/graph/kg/extraction/knowledge/domain-extractor.js.map +1 -1
  126. package/dashboard/dist-server/src/graph/kg/extraction/knowledge-extractor-registry.js +6 -1
  127. package/dashboard/dist-server/src/graph/kg/extraction/knowledge-extractor-registry.js.map +1 -1
  128. package/dashboard/dist-server/src/hooks/session-context.js +37 -1
  129. package/dashboard/dist-server/src/hooks/session-context.js.map +1 -1
  130. package/dashboard/dist-server/src/search/daemon.d.ts +42 -0
  131. package/dashboard/dist-server/src/search/daemon.js +180 -0
  132. package/dashboard/dist-server/src/search/daemon.js.map +1 -0
  133. package/dashboard/dist-server/src/tools/domain-loader.d.ts +4 -1
  134. package/dashboard/dist-server/src/tools/domain-loader.js +56 -25
  135. package/dashboard/dist-server/src/tools/domain-loader.js.map +1 -1
  136. package/dashboard/dist-server/src/tools/domain-schema.d.ts +1 -1
  137. package/dashboard/dist-server/src/tools/domain-schema.js +1 -1
  138. package/dist/shared/agent-types.d.ts +1 -1
  139. package/dist/shared/agent-types.d.ts.map +1 -1
  140. package/dist/src/agents/api-explore/agent-loop.d.ts +14 -0
  141. package/dist/src/agents/api-explore/agent-loop.d.ts.map +1 -0
  142. package/dist/src/agents/api-explore/agent-loop.js +86 -0
  143. package/dist/src/agents/api-explore/agent-loop.js.map +1 -0
  144. package/dist/src/agents/api-explore/config.d.ts +42 -0
  145. package/dist/src/agents/api-explore/config.d.ts.map +1 -0
  146. package/dist/src/agents/api-explore/config.js +99 -0
  147. package/dist/src/agents/api-explore/config.js.map +1 -0
  148. package/dist/src/agents/api-explore/index.d.ts +2 -0
  149. package/dist/src/agents/api-explore/index.d.ts.map +1 -0
  150. package/dist/src/agents/api-explore/index.js +102 -0
  151. package/dist/src/agents/api-explore/index.js.map +1 -0
  152. package/dist/src/agents/api-explore/llm.d.ts +28 -0
  153. package/dist/src/agents/api-explore/llm.d.ts.map +1 -0
  154. package/dist/src/agents/api-explore/llm.js +48 -0
  155. package/dist/src/agents/api-explore/llm.js.map +1 -0
  156. package/dist/src/agents/api-explore/prompt-parser.d.ts +23 -0
  157. package/dist/src/agents/api-explore/prompt-parser.d.ts.map +1 -0
  158. package/dist/src/agents/api-explore/prompt-parser.js +73 -0
  159. package/dist/src/agents/api-explore/prompt-parser.js.map +1 -0
  160. package/dist/src/agents/api-explore/runner.d.ts +65 -0
  161. package/dist/src/agents/api-explore/runner.d.ts.map +1 -0
  162. package/dist/src/agents/api-explore/runner.js +196 -0
  163. package/dist/src/agents/api-explore/runner.js.map +1 -0
  164. package/dist/src/agents/api-explore/session.d.ts +23 -0
  165. package/dist/src/agents/api-explore/session.d.ts.map +1 -0
  166. package/dist/src/agents/api-explore/session.js +57 -0
  167. package/dist/src/agents/api-explore/session.js.map +1 -0
  168. package/dist/src/agents/api-explore/stream-json-emitter.d.ts +10 -0
  169. package/dist/src/agents/api-explore/stream-json-emitter.d.ts.map +1 -0
  170. package/dist/src/agents/api-explore/stream-json-emitter.js +19 -0
  171. package/dist/src/agents/api-explore/stream-json-emitter.js.map +1 -0
  172. package/dist/src/agents/api-explore/system-prompt.d.ts +2 -0
  173. package/dist/src/agents/api-explore/system-prompt.d.ts.map +1 -0
  174. package/dist/src/agents/api-explore/system-prompt.js +31 -0
  175. package/dist/src/agents/api-explore/system-prompt.js.map +1 -0
  176. package/dist/src/agents/api-explore/tools.d.ts +11 -0
  177. package/dist/src/agents/api-explore/tools.d.ts.map +1 -0
  178. package/dist/src/agents/api-explore/tools.js +168 -0
  179. package/dist/src/agents/api-explore/tools.js.map +1 -0
  180. package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
  181. package/dist/src/agents/cli-agent-runner.js +3 -0
  182. package/dist/src/agents/cli-agent-runner.js.map +1 -1
  183. package/dist/src/cli.js +3 -0
  184. package/dist/src/cli.js.map +1 -1
  185. package/dist/src/commands/domain.d.ts.map +1 -1
  186. package/dist/src/commands/domain.js +5 -4
  187. package/dist/src/commands/domain.js.map +1 -1
  188. package/dist/src/commands/explore.d.ts +7 -0
  189. package/dist/src/commands/explore.d.ts.map +1 -0
  190. package/dist/src/commands/explore.js +201 -0
  191. package/dist/src/commands/explore.js.map +1 -0
  192. package/dist/src/commands/hooks.d.ts.map +1 -1
  193. package/dist/src/commands/hooks.js +49 -1
  194. package/dist/src/commands/hooks.js.map +1 -1
  195. package/dist/src/commands/search.d.ts +21 -4
  196. package/dist/src/commands/search.d.ts.map +1 -1
  197. package/dist/src/commands/search.js +289 -93
  198. package/dist/src/commands/search.js.map +1 -1
  199. package/dist/src/commands/workspace.d.ts.map +1 -1
  200. package/dist/src/commands/workspace.js +9 -3
  201. package/dist/src/commands/workspace.js.map +1 -1
  202. package/dist/src/config/cli-tools-defaults.json +2 -1
  203. package/dist/src/graph/kg/extraction/knowledge/domain-extractor.d.ts.map +1 -1
  204. package/dist/src/graph/kg/extraction/knowledge/domain-extractor.js +4 -2
  205. package/dist/src/graph/kg/extraction/knowledge/domain-extractor.js.map +1 -1
  206. package/dist/src/graph/kg/extraction/knowledge-extractor-registry.d.ts.map +1 -1
  207. package/dist/src/graph/kg/extraction/knowledge-extractor-registry.js +6 -1
  208. package/dist/src/graph/kg/extraction/knowledge-extractor-registry.js.map +1 -1
  209. package/dist/src/graph/kg/surface/cli.d.ts.map +1 -1
  210. package/dist/src/graph/kg/surface/cli.js +5 -2
  211. package/dist/src/graph/kg/surface/cli.js.map +1 -1
  212. package/dist/src/hooks/session-context.d.ts.map +1 -1
  213. package/dist/src/hooks/session-context.js +37 -1
  214. package/dist/src/hooks/session-context.js.map +1 -1
  215. package/dist/src/ralph/cmd-next.js +64 -1
  216. package/dist/src/ralph/cmd-next.js.map +1 -1
  217. package/dist/src/ralph/status-schema.d.ts +1 -0
  218. package/dist/src/ralph/status-schema.d.ts.map +1 -1
  219. package/dist/src/search/daemon.d.ts +43 -0
  220. package/dist/src/search/daemon.d.ts.map +1 -0
  221. package/dist/src/search/daemon.js +180 -0
  222. package/dist/src/search/daemon.js.map +1 -0
  223. package/dist/src/tools/__tests__/domain-search-debug.js +3 -1
  224. package/dist/src/tools/__tests__/domain-search-debug.js.map +1 -1
  225. package/dist/src/tools/domain-loader.d.ts +4 -1
  226. package/dist/src/tools/domain-loader.d.ts.map +1 -1
  227. package/dist/src/tools/domain-loader.js +56 -25
  228. package/dist/src/tools/domain-loader.js.map +1 -1
  229. package/dist/src/tools/domain-schema.d.ts +1 -1
  230. package/dist/src/tools/domain-schema.js +1 -1
  231. package/dist/src/utils/update-notices.js +12 -0
  232. package/dist/src/utils/update-notices.js.map +1 -1
  233. package/package.json +5 -3
  234. package/shared/agent-types.ts +1 -1
  235. package/templates/search-tools.md +22 -6
  236. package/workflows/agy-instructions.md +0 -4
  237. package/workflows/analyze.md +2 -2
  238. package/workflows/boundary-grill.md +50 -0
  239. package/workflows/brainstorm.md +6 -5
  240. package/workflows/claude-instructions.md +12 -0
  241. package/workflows/codebase-rebuild.md +0 -1
  242. package/workflows/codex-instructions.md +12 -0
  243. package/workflows/debug.md +0 -4
  244. package/workflows/domain-add.md +115 -0
  245. package/workflows/execute.md +7 -0
  246. package/workflows/explore-usage.md +128 -0
  247. package/workflows/finish-work.md +2 -6
  248. package/workflows/fork.md +0 -4
  249. package/workflows/grill.md +14 -1
  250. package/workflows/harvest.md +0 -3
  251. package/workflows/impeccable/audit.md +0 -2
  252. package/workflows/impeccable/codex.md +0 -4
  253. package/workflows/init.md +9 -0
  254. package/workflows/interview-mechanics.md +3 -2
  255. package/workflows/issue-analyze.md +0 -5
  256. package/workflows/issue-gaps-analyze.codex.md +0 -6
  257. package/workflows/knowledge-audit.md +0 -4
  258. package/workflows/learn.md +0 -6
  259. package/workflows/maestro.codex.md +0 -4
  260. package/workflows/maestro.md +31 -18
  261. package/workflows/merge.md +0 -4
  262. package/workflows/milestone-complete.md +0 -4
  263. package/workflows/overlays.md +0 -10
  264. package/workflows/plan.md +0 -2
  265. package/workflows/roadmap-common.md +0 -4
  266. package/workflows/tdd.md +0 -2
  267. package/workflows/tools-spec.md +1 -7
  268. package/workflows/ui-codify-extract.md +0 -2
  269. package/workflows/ui-codify-package.md +0 -2
@@ -0,0 +1,43 @@
1
+ ---
2
+ name: domain-discover
3
+ description: Discover domain term candidates from codebase
4
+ argument-hint: "[--auto]"
5
+ allowed-tools: Read, Bash, Glob, Grep
6
+ ---
7
+
8
+ <purpose>
9
+ Scan codebase for potential domain terms not yet in `.workflow/domain/glossary.yaml`. Presents candidates with confidence scores for interactive registration.
10
+
11
+ `--auto`: auto-register candidates with confidence ≥ 0.8 without prompting.
12
+ </purpose>
13
+
14
+ <execution>
15
+
16
+ ### Step 1: Scan Codebase
17
+
18
+ Run `maestro domain discover` to scan TypeScript interfaces, types, enums, const patterns, API routes, and README headings.
19
+
20
+ ### Step 2: Filter Existing
21
+
22
+ Remove candidates already registered in glossary.yaml (by canonical name or alias match).
23
+
24
+ ### Step 3: Present Candidates
25
+
26
+ Display ranked candidates with confidence scores:
27
+
28
+ ```
29
+ === DOMAIN TERM CANDIDATES ({N} found) ===
30
+
31
+ 0.92 session-context — Runtime state container for active workflow session
32
+ 0.85 skill-resolver — Module that maps skill names to SKILL.md file paths
33
+ 0.71 chain-graph — DAG definition for multi-step command sequences
34
+ ...
35
+
36
+ Register? (all | select by number | skip)
37
+ ```
38
+
39
+ ### Step 4: Register Selected
40
+
41
+ For each confirmed candidate, run `maestro domain add "<canonical>" "<definition>"`.
42
+
43
+ </execution>
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: domain-list
3
+ description: List registered domain terms from glossary
4
+ argument-hint: "[--tier core|extended|peripheral]"
5
+ allowed-tools: Read, Bash, Glob, Grep
6
+ ---
7
+
8
+ <purpose>
9
+ List all registered domain terms from `.workflow/domain/glossary.yaml`. Shows canonical name, definition, tier, aliases, and status.
10
+ </purpose>
11
+
12
+ <execution>
13
+
14
+ ### Step 1: Load Glossary
15
+
16
+ Read `.workflow/domain/glossary.yaml`. If not exists, report "No domain glossary — run `maestro domain init`".
17
+
18
+ ### Step 2: Filter and Display
19
+
20
+ Apply optional `--tier` filter. Display terms grouped by tier (core → extended → peripheral):
21
+
22
+ ```
23
+ === DOMAIN TERMS ({N} total) ===
24
+
25
+ [core]
26
+ auth-token — Short-lived credential for API authentication
27
+ aliases: 令牌, access-token | keywords: auth, credential, jwt
28
+ event-bus — Central pub-sub message broker
29
+ aliases: 事件总线 | keywords: pubsub, messaging
30
+
31
+ [extended]
32
+ ...
33
+
34
+ [deprecated]
35
+ wikiindexer → search-engine (successor)
36
+ ```
37
+
38
+ </execution>
@@ -9,9 +9,6 @@ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, request_user_input
9
9
  Guided reading experience for code files, wiki entries, or topics. Walks through content
10
10
  section by section using 4 forcing questions to extract patterns, identify assumptions,
11
11
  and build a structured understanding map. Insights persist to `.workflow/specs/learnings.md`.
12
-
13
- Unlike `learn-decompose` which is parallel pattern extraction, this is sequential
14
- deep reading that builds understanding incrementally.
15
12
  </purpose>
16
13
 
17
14
  <context>
@@ -9,9 +9,6 @@ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, request_user_input
9
9
  Systematic investigation for understanding questions (not bug-fixing). 4-phase approach
10
10
  with scope lock and 3-strike escalation. Produces structured evidence trails and
11
11
  understanding documents that persist to the learning system.
12
-
13
- Unlike `quality-debug` (fixing bugs during execution), this answers "how does X work?",
14
- "why does Y happen?", "what would happen if Z?" questions.
15
12
  </purpose>
16
13
 
17
14
  <context>
@@ -10,8 +10,6 @@ Unified retrospective combining git activity analysis and decision quality evalu
10
10
  Two lenses, usable independently or together:
11
11
  - **git**: Commit metrics, session detection, per-author breakdown, file hotspots, trends
12
12
  - **decision**: Decision tracing across wiki/specs/git, multi-perspective evaluation via 3 parallel agents
13
-
14
- Works on raw git history and wiki/spec data — does not require completed phase artifacts.
15
13
  </purpose>
16
14
 
17
15
  <context>
@@ -180,6 +180,9 @@ Extract:
180
180
  | `overlay` | Create/edit command overlays |
181
181
  | `update` | Update maestro itself |
182
182
  | `harvest` | Extract knowledge from artifacts |
183
+ | `domain_add` | Register a domain term into glossary |
184
+ | `domain_list` | List registered domain terms |
185
+ | `domain_discover` | Discover domain term candidates from codebase |
183
186
  | `wiki` | Manage wiki graph |
184
187
  | `knowhow` | Manage knowhow entries |
185
188
  | `ui_design` | UI design, build new UI |
@@ -434,6 +437,9 @@ S_DECISION_EVAL 入口;镜像 maestro-ralph `A_GOAL_AUDIT_EVALUATE`。Condense
434
437
  | `spec_load` | `spec-load` |
435
438
  | `spec_map` | `manage-codebase-rebuild` |
436
439
  | `spec_remove` | `spec-remove "{description}"` |
440
+ | `domain_add` | `domain-add "{description}"` |
441
+ | `domain_list` | `domain-list` |
442
+ | `domain_discover` | `domain-discover` |
437
443
  | `knowhow_capture` | `manage-knowhow-capture "{description}"` |
438
444
  | `knowhow` | `manage-knowhow "{description}"` |
439
445
  | `issue` | `manage-issue "{description}"` |
@@ -459,26 +465,26 @@ S_DECISION_EVAL 入口;镜像 maestro-ralph `A_GOAL_AUDIT_EVALUATE`。Condense
459
465
 
460
466
  | Chain | Steps (→ = sequential, [B] = context-producing barrier) |
461
467
  |-------|---------------------------------------|
462
- | `feature` | [B] maestro-plan → [B] maestro-execute → quality-review |
468
+ | `feature` | [B] maestro-plan → [B] maestro-execute → quality-review → manage-harvest --auto |
463
469
  | `quality-fix` | [B] maestro-analyze --gaps → [B] maestro-plan --gaps → [B] maestro-execute → quality-review |
464
470
  | `deploy` | quality-review → maestro-milestone-release |
465
- | `blueprint-driven` | maestro-init → [B] maestro-blueprint → [B] maestro-plan --from blueprint:{BLP} → [B] maestro-execute → quality-review |
466
- | `analyze-macro-driven` | [B] maestro-analyze "{intent}" → ◆ post-analyze-scope → (large: [B] maestro-roadmap --from analyze:{ANL} → [B] maestro-analyze {phase} → [B] maestro-plan {phase}) / (medium\|small: [B] maestro-plan --from analyze:{ANL}) → [B] maestro-execute → quality-review |
467
- | `grill-brainstorm` | [B] maestro-grill → [B] maestro-brainstorm --from grill:{GRL} → [B] maestro-plan → [B] maestro-execute → quality-review (**auto_mode: skip grill step, fall back to brainstorm-driven**) |
468
- | `brainstorm-driven` | [B] maestro-brainstorm → [B] maestro-plan → [B] maestro-execute → quality-review |
469
- | `ui-craft-build` | maestro-impeccable build → [B] maestro-plan → [B] maestro-execute → quality-review |
470
- | `roadmap-driven` | maestro-init → [B] maestro-roadmap → [B] maestro-plan → [B] maestro-execute → quality-review |
471
- | `next-milestone` | [B] maestro-roadmap → [B] maestro-plan → [B] maestro-execute → quality-review |
472
- | `full-lifecycle` | [B] maestro-plan → [B] maestro-execute → quality-review → quality-test → maestro-milestone-audit → maestro-milestone-complete |
471
+ | `blueprint-driven` | maestro-init → [B] maestro-blueprint → [B] maestro-plan --from blueprint:{BLP} → [B] maestro-execute → quality-review → manage-harvest --auto |
472
+ | `analyze-macro-driven` | [B] maestro-analyze "{intent}" → ◆ post-analyze-scope → (large: [B] maestro-roadmap --from analyze:{ANL} → [B] maestro-analyze {phase} → [B] maestro-plan {phase}) / (medium\|small: [B] maestro-plan --from analyze:{ANL}) → [B] maestro-execute → quality-review → manage-harvest --auto |
473
+ | `grill-brainstorm` | [B] maestro-grill → [B] maestro-brainstorm --from grill:{GRL} → [B] maestro-plan → [B] maestro-execute → quality-review → manage-harvest --auto (**auto_mode: skip grill step, fall back to brainstorm-driven**) |
474
+ | `brainstorm-driven` | [B] maestro-brainstorm → [B] maestro-plan → [B] maestro-execute → quality-review → manage-harvest --auto |
475
+ | `ui-craft-build` | maestro-impeccable build → [B] maestro-plan → [B] maestro-execute → quality-review → manage-harvest --auto |
476
+ | `roadmap-driven` | maestro-init → [B] maestro-roadmap → [B] maestro-plan → [B] maestro-execute → quality-review → manage-harvest --auto |
477
+ | `next-milestone` | [B] maestro-roadmap → [B] maestro-plan → [B] maestro-execute → quality-review → manage-harvest --auto |
478
+ | `full-lifecycle` | [B] maestro-plan → [B] maestro-execute → quality-review → quality-test → maestro-milestone-audit → maestro-milestone-complete → manage-harvest --auto |
473
479
  | `execute-review` | [B] maestro-execute → quality-review |
474
- | `analyze-plan-execute` | [B] maestro-analyze -q → [B] maestro-plan --dir {scratch_dir} → [B] maestro-execute --dir {scratch_dir} |
480
+ | `analyze-plan-execute` | [B] maestro-analyze -q → [B] maestro-plan --dir {scratch_dir} → [B] maestro-execute --dir {scratch_dir} → manage-harvest --auto |
475
481
  | `quality-loop` | quality-review → quality-test → quality-debug --from-uat → [B] maestro-plan --gaps → [B] maestro-execute |
476
482
  | `quality-loop-partial` | [B] maestro-plan --gaps → [B] maestro-execute → quality-review |
477
483
  | `review-fix` | [B] maestro-plan --gaps → [B] maestro-execute → quality-review |
478
484
  | `milestone-close` | maestro-milestone-audit → maestro-milestone-complete |
479
485
  | `milestone-release` | maestro-milestone-audit → maestro-milestone-release |
480
486
  | `phase_transition` | maestro-milestone-audit → maestro-milestone-complete |
481
- | `issue-full` | [B] maestro-analyze --gaps → [B] maestro-plan --gaps → [B] maestro-execute → quality-review → manage-issue close |
487
+ | `issue-full` | [B] maestro-analyze --gaps → [B] maestro-plan --gaps → [B] maestro-execute → quality-review → manage-issue close → manage-harvest --auto |
482
488
  | `issue-quick` | [B] maestro-plan --gaps → [B] maestro-execute → quality-review → manage-issue close |
483
489
 
484
490
  > When S_DECOMPOSE ran, a `decision:post-goal-audit` node is appended as the final node (after the last evidence-producing step; before milestone-complete/close-out if the chain ends with one). `[B]` now denotes a context-producing skill (artifacts read into `session.context`) — execution is still sequential (no parallelism; spawning removed).
@@ -6,8 +6,6 @@ allowed-tools: Read, Write, Bash, Glob, Grep, request_user_input
6
6
  ---
7
7
  <purpose>
8
8
  Signal-driven overlay generator — collect workflow deficiency signals from multiple sources, diagnose which commands need amendment, batch-generate targeted overlays. All amendments use overlay system (`~/.maestro/overlays/*.json`) — non-invasive, idempotent, survives reinstall.
9
-
10
- Differs from `$maestro-overlay` (single explicit intent). This command **discovers** what needs amending by analyzing workflow artifacts.
11
9
  </purpose>
12
10
 
13
11
  <required_reading>
@@ -14,8 +14,6 @@ Wave 1 (CLI exploration, parallel) -> Wave 2 (6-dimension scoring, parallel) ->
14
14
  **Dual-layer scope (D-003)**:
15
15
  - **Macro layer** (text argument, e.g. `analyze "auth refactor"`): broad impact exploration. Produces `scope_verdict ∈ {small, medium, large}` to drive downstream routing (roadmap vs plan).
16
16
  - **Phase layer** (numeric argument, e.g. `analyze 1`): phase-scoped deep analysis under `current_milestone`. Milestone resolved via D-007 `phase_slugs` reverse lookup, NEVER direct `current_milestone` read.
17
-
18
- Produces context-package.json (standardized cross-command context contract) in all modes.
19
17
  </purpose>
20
18
 
21
19
  <context>
@@ -151,7 +149,12 @@ S_WAVE_1:
151
149
  -> ERROR WHEN: all failed
152
150
 
153
151
  S_WAVE_2:
154
- -> S_WAVE_3 DO: A_SPAWN_WAVE_2
152
+ -> S_BOUNDARY_GRILL DO: A_SPAWN_WAVE_2
153
+
154
+ S_BOUNDARY_GRILL:
155
+ -> S_WAVE_3 WHEN: no boundary conflicts detected DO: —
156
+ -> S_WAVE_3 WHEN: conflicts detected + resolved DO: A_BOUNDARY_GRILL
157
+ GUARD: max 3 conflicts × 3 questions; non-blocking (see boundary-grill.md)
155
158
 
156
159
  S_WAVE_3:
157
160
  -> S_AGGREGATE DO: A_SPAWN_WAVE_3
@@ -237,6 +240,14 @@ Write to `conclusions.json.scope_verdict` (all modes that produce conclusions);
237
240
 
238
241
  Gray area detection: domain-aware (things users SEE/CALL/RUN/READ), phase-specific (skip prior decided areas).
239
242
 
243
+ ### A_BOUNDARY_GRILL
244
+
245
+ Run boundary grill per `~/.maestro/workflows/boundary-grill.md` after Wave 2 scoring, before Wave 3 synthesis.
246
+ Input: Wave 1 exploration findings + Wave 2 dimension scores. Scope guard: "only analyze decisions; do not prejudge plan/execute concerns".
247
+ Detect RSC (scope violations), MOD (module boundary crossings), DEC (upstream locked vs code reality).
248
+ IF conflicts → results to `analysis.md` § Boundary Grill Results + update `context.md` Locked/Free/Deferred.
249
+ Non-blocking: conflicts produce warnings, pipeline continues.
250
+
240
251
  ### A_AGGREGATE_RESULTS
241
252
 
242
253
  1. Export results.csv
@@ -310,6 +321,8 @@ Protocol: read before analysis, append-only, dedup by type+key.
310
321
  - [ ] Decision Recording Protocol applied to all decisions
311
322
  - [ ] Confidence scored per dimension with factor-based model (full mode)
312
323
  - [ ] Readiness gate checked before synthesis (wave 3)
324
+ - [ ] Boundary grill executed between Wave 2 and Wave 3 (skip if no conflicts detected)
325
+ - [ ] Boundary grill results written to analysis.md § Boundary Grill Results (if conflicts found)
313
326
  - [ ] Pressure pass completed ≥ 1 time on highest-risk dimension before synthesis
314
327
  - [ ] Deferred items auto-created as issues
315
328
  - [ ] Scope creep redirected to Deferred section
@@ -7,10 +7,6 @@ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, spawn_agents_on_csv, request
7
7
  <purpose>
8
8
  Formal specification document chain producing a complete specification package through 7 sequential phases (P0–P6, plus P1.5 requirement expansion) with multi-CLI analysis and interactive refinement. Pure documentation — no code generation, no roadmap generation.
9
9
 
10
- Parallel to `brainstorm` as an upstream origin command:
11
- - **brainstorm** = divergent exploration (lightweight, multi-role creative)
12
- - **blueprint** = convergent documentation (heavyweight, 7-phase formal spec chain)
13
-
14
10
  Output: `.workflow/blueprint/BLP-{slug}-{date}/` containing Product Brief, PRD, Architecture, and Epics.
15
11
  </purpose>
16
12
 
@@ -316,8 +316,13 @@ S_WAVE_2 → S_AGGREGATE WHEN: all failed DO: skip review
316
316
  S_CHECK_2 → S_WAVE_3 WHEN: -y OR user "Proceed"
317
317
  S_CHECK_2 → S_WAVE_2 WHEN: user "Add Roles" DO: add new role rows, spawn only new
318
318
 
319
- S_WAVE_3 → S_RESOLVE DO: spawn wave-3, capture review_findings (conflicts/gaps/synergies with patch_targets)
320
- S_WAVE_3 → S_AGGREGATE WHEN: zero findings DO: log "No cross-role issues detected", skip resolve
319
+ S_WAVE_3 → S_BOUNDARY_GRILL DO: spawn wave-3, capture review_findings (conflicts/gaps/synergies with patch_targets)
320
+ S_WAVE_3 → S_AGGREGATE WHEN: zero findings DO: log "No cross-role issues detected", skip resolve
321
+
322
+ S_BOUNDARY_GRILL:
323
+ → S_RESOLVE WHEN: no boundary conflicts detected DO: —
324
+ → S_RESOLVE WHEN: conflicts detected + resolved DO: A_BOUNDARY_GRILL
325
+ GUARD: max 3 conflicts × 3 questions; non-blocking (see boundary-grill.md)
321
326
 
322
327
  S_RESOLVE → S_AGGREGATE DO: A_APPLY_RESOLUTIONS (orchestrator iterates patch_targets and applies Edits)
323
328
 
@@ -382,6 +387,13 @@ When ui-designer is among selected roles, establish visual direction before Wave
382
387
  explore generates multi-style HTML prototypes, visual comparison, user selection/mix, and produces DESIGN.md.
383
388
  ui-designer agents in Wave 2 then focus on UX/visual design referencing DESIGN.md.
384
389
 
390
+ ### A_BOUNDARY_GRILL
391
+
392
+ Run boundary grill per `~/.maestro/workflows/boundary-grill.md` after cross-role review, before resolution application.
393
+ Input: reviewer findings + role Decision Digests. Scope guard: "only brainstorm decisions; do not pre-resolve roadmap/plan choices".
394
+ IF conflicts → results to `guidance-specification.md` §12.5 Boundary Grill Results + feed into S_RESOLVE.
395
+ Non-blocking: conflicts produce warnings, pipeline continues.
396
+
385
397
  ### A_APPLY_RESOLUTIONS
386
398
 
387
399
  For each finding in `review_findings`:
@@ -442,6 +454,8 @@ Protocol: read before analysis, append-only, dedup by type+key.
442
454
  - [ ] system-architect/analysis.md §3 includes Data Model + State Machine when system-architect selected
443
455
  - [ ] Each {role}/analysis.md §2 Decisions table has ≥ 1 row per feature
444
456
  - [ ] Cross-role review (W3) executed; reviewer output includes `patch_targets[]` for every finding
457
+ - [ ] Boundary grill executed after cross-role review (skip if no conflicts detected)
458
+ - [ ] Boundary grill results written to guidance-specification.md §12.5 (if conflicts found)
445
459
  - [ ] If findings: resolutions applied via Edit AND logged in guidance §12 "Cross-Role Resolutions"
446
460
  - [ ] If zero findings: final report explicitly notes "No cross-role issues detected"; guidance §12 unchanged
447
461
  - [ ] Heading-drift patch failures surfaced (not silently dropped)
@@ -100,7 +100,12 @@ S_FAN_OUT:
100
100
  → ERROR(E004) WHEN: all failed OR fewer than 2 completed
101
101
 
102
102
  S_CROSS_VERIFY:
103
- S_SYNTHESIZE DO: A_CROSS_VERIFY
103
+ S_BOUNDARY_GRILL DO: A_CROSS_VERIFY
104
+
105
+ S_BOUNDARY_GRILL:
106
+ → S_SYNTHESIZE WHEN: no boundary conflicts detected DO: —
107
+ → S_SYNTHESIZE WHEN: conflicts detected + resolved DO: A_BOUNDARY_GRILL
108
+ GUARD: max 3 conflicts × 3 questions; non-blocking (see boundary-grill.md)
104
109
 
105
110
  S_SYNTHESIZE:
106
111
  → S_AGGREGATE DO: A_SYNTHESIZE
@@ -229,6 +234,12 @@ Compute: `consensus_level = consensus_count / total_findings * 100`
229
234
 
230
235
  Write results to `{scratchDir}/cross-verify.md`.
231
236
 
237
+ ### A_BOUNDARY_GRILL
238
+
239
+ Run boundary grill per `~/.maestro/workflows/boundary-grill.md` after cross-verification.
240
+ Input: classified CONFLICT findings + per-tool outputs. Check upstream scope if `--from` used.
241
+ IF conflicts → tag with resolution, feed into A_SYNTHESIZE. No conflicts → pass through.
242
+
232
243
  ### A_SYNTHESIZE
233
244
 
234
245
  Generate 3 output files from cross-verify results:
@@ -313,6 +324,8 @@ Generate 3 output files from cross-verify results:
313
324
  - [ ] Blocking poll loop ran until pending_sessions empty — no early exit
314
325
  - [ ] Per-tool raw outputs saved to {scratchDir}/per-tool/
315
326
  - [ ] Cross-verify: CONSENSUS/CONFLICT/UNIQUE classified, consensus_level computed
327
+ - [ ] Boundary grill executed on CONFLICT items (skip if no boundary conflicts detected)
328
+ - [ ] Boundary grill results written to collab-report.md § Boundary Grill Results (if conflicts found)
316
329
  - [ ] collab-report.md + context.md + conclusions.json produced
317
330
  - [ ] CLB artifact registered in state.json
318
331
  - [ ] Partial degradation: continued if 2+ tools succeeded
@@ -9,8 +9,6 @@ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, request_user_input
9
9
  Task companion command — pairs with any task to provide knowledge context loading,
10
10
  structured companion document recording, insight capture, and skill routing.
11
11
 
12
- Does not create sessions or modify workflow state. Pure side-car utility.
13
-
14
12
  Four modes:
15
13
  - **before** — Pre-task: load spec + knowhow index + codebase index, create companion doc
16
14
  - **note** — Mid-task: append a structured entry to the active companion doc
@@ -12,8 +12,6 @@ the worktree. Since `.workflow/` is gitignored, this command explicitly copies p
12
12
  and milestone scratch artifacts into the worktree.
13
13
 
14
14
  Also supports `--sync` mode to pull latest main into an active worktree.
15
-
16
- Produces `.workflow/worktrees.json` registry in the main worktree and `.workflow/worktree-scope.json` marker in the worktree, and writes a scoped `state.json` inside the worktree containing only the forked milestone's artifacts.
17
15
  </purpose>
18
16
 
19
17
  <required_reading>
@@ -7,7 +7,6 @@ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, request_user_input
7
7
  <purpose>
8
8
  Socratic stress-testing of a plan, idea, or requirement against codebase reality. Walks every branch of the decision tree one question at a time — challenging vague terminology against existing code, probing edge cases with concrete scenarios, and verifying assumptions with code evidence. Produces a verified context package (grill-report.md + terminology.md + context-package.json) for downstream brainstorm/analyze/roadmap consumption.
9
9
 
10
- Positioned BEFORE brainstorm in the pipeline: grill stress-tests and sharpens; brainstorm generates and elaborates.
11
10
 
12
11
  Codex specifics:
13
12
  - **No agent spawning** — codebase exploration runs directly via Glob/Grep/Read in coordinator context.
@@ -19,10 +19,6 @@ Codex specifics:
19
19
  - **Skill pool discovery via CLI** — `maestro ralph skills --platform codex --json --quiet`(project `.codex/skills/` 覆盖 global `~/.codex/skills/`)
20
20
  - **No session, no status.json, no goal** — 不调 `create_goal` / `update_plan`,由目标 skill 自行管理产出
21
21
 
22
- 与 `$maestro` / `$maestro-ralph` 区别:
23
- - 不创建 session、不构建 chain、不写 status.json
24
- - 始终只推 1 个 top pick,最多列 2-3 个备选
25
- - 适用场景:意图清晰且单步即可完成;或需要定向推荐时
26
22
  </purpose>
27
23
 
28
24
  <context>
@@ -132,7 +128,8 @@ ls -la .workflow/.maestro/ 2>/dev/null | head -5 # 进行中的 session
132
128
  | 最新 artifact = plan | execute | `maestro-execute {phase}` |
133
129
  | 最新 artifact = execute | review | `quality-review {phase}` |
134
130
  | review verdict=PASS | test-gen | `quality-auto-test {phase}` |
135
- | 测试全绿 | milestone-audit | `maestro-milestone-audit` |
131
+ | 测试全绿 + current_milestone 存在 | milestone-audit | `maestro-milestone-audit` |
132
+ | 测试全绿 + current_milestone=null (standalone) | review-done | 回退到 `quality-review` 或 `manage-status`(无 milestone 上下文时不推荐 milestone 命令) |
136
133
  | 当前 milestone 全 phase 完成 | milestone-complete | `maestro-milestone-complete` |
137
134
  | 任一 stage 产物含 gaps/failed | debug | `quality-debug {gap}` |
138
135
 
@@ -155,6 +152,16 @@ brainstorm → blueprint → init → analyze-macro → roadmap
155
152
  | `name` 关键词命中 intent | 中 | intent 含 "test" → quality-test/quality-auto-test 加分 |
156
153
  | Workflow 簇匹配 | 中 | intent 涉及学习/知识/issue 等场景触发对应簇 |
157
154
  | Recent activity 反向避免 | 低 | 刚完成的 stage 短期内降权 |
155
+ | **前置条件不满足** | **禁止** | 候选 skill 的前置条件未满足时,直接从候选池移除(如 `maestro-milestone-*` 在 `current_milestone=null` 时移除) |
156
+
157
+ **前置条件检查(评分前执行,不满足则移除候选):**
158
+
159
+ | Skill | 前置条件 |
160
+ |-------|---------|
161
+ | `maestro-milestone-audit` | `current_milestone` 存在且非 null |
162
+ | `maestro-milestone-complete` | `current_milestone` 存在且非 null |
163
+ | `maestro-milestone-release` | `current_milestone` 存在且非 null |
164
+ | `maestro-merge` | 存在活跃的 fork 分支 |
158
165
 
159
166
  **特殊意图处理:**
160
167
 
@@ -153,8 +153,13 @@ S_WAVE_1 → S_WAVE_2 DO: spawn parallel explorations, merge results, build p
153
153
 
154
154
  S_WAVE_2 → S_CHECK DO: spawn planning agent, merge results
155
155
 
156
- S_CHECK → S_CONFIRM WHEN: plan passes or max 3 iterations DO: A_PLAN_CHECK
157
- S_CHECK → S_WAVE_2 WHEN: plan fails check, iterations < 3 DO: feed checker feedback back
156
+ S_CHECK → S_BOUNDARY_GRILL WHEN: plan passes or max 3 iterations DO: A_PLAN_CHECK
157
+ S_CHECK → S_WAVE_2 WHEN: plan fails check, iterations < 3 DO: feed checker feedback back
158
+
159
+ S_BOUNDARY_GRILL:
160
+ → S_CONFIRM WHEN: no boundary conflicts detected DO: —
161
+ → S_CONFIRM WHEN: conflicts detected + resolved DO: A_BOUNDARY_GRILL
162
+ GUARD: max 3 conflicts × 3 questions; non-blocking (see boundary-grill.md)
158
163
 
159
164
  S_CONFIRM → S_REGISTER WHEN: -y OR user confirms
160
165
  S_CONFIRM → S_CSV_GEN WHEN: user wants to modify
@@ -224,6 +229,13 @@ Consumes all exploration findings + context.md + specs. Produces:
224
229
 
225
230
  Verifies plan.json and every .task/*.json exists on disk before reporting completed; else report blocked.
226
231
 
232
+ ### A_BOUNDARY_GRILL
233
+
234
+ Run boundary grill per `~/.maestro/workflows/boundary-grill.md` after plan-checker pass.
235
+ Input: plan.json tasks + convergence criteria + upstream context. Scope guard: "only plan scope; do not re-analyze or re-scope".
236
+ IF conflicts → results to plan.json `boundary_grill` section + affected TASK files. DEC conflicts add `boundary_warning` to confidence.
237
+ Non-blocking: warnings, not hard stops.
238
+
227
239
  ### A_PLAN_CHECK
228
240
  Run plan-checker: coverage, dependency validity, criteria quality, pressure pass on highest-complexity task.
229
241
  Confidence: 5-dimension factor model + readiness gate.
@@ -263,6 +275,9 @@ Collision detection against same-milestone plans.
263
275
  - [ ] .task/TASK-*.json with read_first[] (file being modified + source of truth files)
264
276
  - [ ] Every task has convergence.criteria[] with grep-verifiable conditions (no subjective language)
265
277
  - [ ] Every task action and implementation contain concrete values (no "align X with Y")
278
+ - [ ] Boundary grill executed after plan-checker pass (skip if no conflicts detected)
279
+ - [ ] Boundary grill results written to plan.json `boundary_grill` section (if conflicts found)
280
+ - [ ] DEC conflicts reflected in confidence `boundary_warning` factor
266
281
  - [ ] Plan confidence scored with 5-dimension factor model
267
282
  - [ ] Readiness gate checked before collision detection
268
283
  - [ ] Pressure pass completed on highest-complexity task
@@ -294,7 +294,8 @@ resolve_milestone(phase_number):
294
294
  |-----------|----------|
295
295
  | review.json: verdict=="BLOCK" | `review-failed` |
296
296
  | review.json: verdict!="BLOCK" | `test` |
297
- | uat.md: all passed | `milestone-audit` |
297
+ | uat.md: all passed + `session.milestone` 存在 | `milestone-audit` |
298
+ | uat.md: all passed + `session.milestone=null` (standalone) | 标记 session completed(无 milestone 可审计) |
298
299
  | uat.md: has failures | `test-failed` |
299
300
 
300
301
  ### A_DETERMINE_QUALITY_MODE
@@ -376,7 +377,7 @@ narrow → derive defaults from intent + codebase, skip questions.
376
377
 
377
378
  ### A_BUILD_STEPS
378
379
 
379
- Generate steps from `session.lifecycle_position` to `milestone-complete`.
380
+ Generate steps from `session.lifecycle_position` to `milestone-complete`(`session.milestone` 存在时)或最后一个质量门(standalone 时)。
380
381
 
381
382
  | Stage | Skill (independent) | Skill (unified) | Decision after | quality_mode |
382
383
  |-------|---------------------|-----------------|----------------|--------------|
@@ -408,7 +409,7 @@ Generate steps from `session.lifecycle_position` to `milestone-complete`.
408
409
  3.5. **grill auto_confirm 跳过**:`auto_confirm == true` 时删除 `grill` stage(grill 为交互式苏格拉底拷问,不支持自动模式);brainstorm args 不含 `--from grill:*`
409
410
  4. **决策节点**:每个 Decision after 非空的 stage 之后插入 `{ decision: "<gate>", retry_count: 0, max_retries: 2, command_scope: null, command_path: null }`
410
411
  5. **goal-audit 插入**:`task_decomposition` 存在时,在最后一个 evidence-producing stage(verify/review/test)之后、`milestone-complete` 之前插入 `decision:post-goal-audit`
411
- 6. **终点硬约束**:chain 以 `milestone-complete` 结尾
412
+ 6. **终点硬约束**:`session.milestone` 存在时 chain 以 `milestone-complete` 结尾;`session.milestone=null`(standalone)时跳过 `milestone-audit` + `milestone-complete` stage,chain 以最后一个质量门 stage 结尾
412
413
  7. **goal_ref 传播**:`task_decomposition` 存在时,每个 step 按 `step.stage ∈ g.lifecycle` 匹配 `step.goal_ref = g.id`(多匹配取字典序最小);decision 节点不打 goal_ref
413
414
  8. **占位符**:independent 保留 `{phase}` `{intent}`;unified 不带 `{phase}`
414
415
  9. **command_path 解析**(每个执行 step,decision 节点跳过):
@@ -11,8 +11,6 @@ Generate a milestone/phase roadmap using `spawn_agents_on_csv` with 2-wave analy
11
11
  Wave 1: parallel analysis (scope, risk, dependency). Wave 2: assembly -> roadmap.md with Milestone > Phase hierarchy.
12
12
 
13
13
  Additional: `--revise` (modify existing roadmap), `--review` (read-only health check).
14
-
15
- For formal specification documents (Product Brief, PRD, Architecture, Epics), use `maestro-blueprint` instead.
16
14
  </purpose>
17
15
 
18
16
  <context>
@@ -7,8 +7,6 @@ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, request_user_input
7
7
 
8
8
  <purpose>
9
9
  Unified wiki graph management. Health monitoring, interactive search, orphan cleanup, and graph statistics. Day-to-day operations to keep the knowledge graph healthy.
10
-
11
- Complements `wiki-connect` (link discovery) and `wiki-digest` (synthesis) with operational tooling.
12
10
  </purpose>
13
11
 
14
12
  <required_reading>
@@ -8,8 +8,6 @@ allowed-tools: spawn_agents_on_csv, Read, Write, Edit, Bash, Glob, Grep, request
8
8
  <purpose>
9
9
  Closed-loop deep debugging: archaeology (what changed) → explore (call chains, error gaps) → diagnose (hypothesis-driven) → fix & confirm → generalize (举一反三) → discover siblings → persist learnings.
10
10
 
11
- Unlike `quality-debug` (fast fix), this treats every bug as a learning signal — digs into git history before hypotheses, confirms fixes with CLI review, scans for siblings of the root cause.
12
-
13
11
  Core philosophy:
14
12
  - **Archaeology before hypothesis** — look at what changed before guessing why
15
13
  - **Fix one, find many** — a single bug reveals a class of bugs
@@ -9,12 +9,6 @@ allowed-tools: spawn_agents_on_csv, Read, Write, Edit, Bash, Glob, Grep, request
9
9
  Deep codebase improvement: survey (dependency + complexity baseline) -> audit (6 dimensions) ->
10
10
  diagnose (root cause analysis) -> fix -> verify -> generalize -> discover -> record.
11
11
 
12
- Unlike `$quality-review` (single pass), this is a persistent session with evidence trails,
13
- baseline metrics, iterative improvement, and codebase-wide generalization. `--skip-fix` for audit-only.
14
-
15
- Focuses on **program runtime quality** — performance, security, architecture, reliability,
16
- observability, maintainability. Combines static analysis with runtime-aware reasoning.
17
-
18
12
  Core philosophy:
19
13
  - **Measure before improving** — baseline first, then optimize
20
14
  - **Root cause over symptom** — trace each issue to its origin
@@ -9,9 +9,6 @@ allowed-tools: spawn_agents_on_csv, Read, Write, Edit, Bash, Glob, Grep, request
9
9
  Deep code review with generalization: archaeology → explore → multi-dimensional review →
10
10
  fix all findings → confirm → generalize (举一反三) → discover → persist.
11
11
 
12
- Unlike `quality-review` (pipeline gate verdict), this reviews AND fixes: exhaustive documentation,
13
- targeted fixes, codebase-wide generalization, decision journal. `--skip-fix` for review-only.
14
-
15
12
  **三句哲学约束(穷尽迭代):**
16
13
  1. **零遗留** — 每个 finding 必须是 action item(修复 / issue / 决策),不允许只报告不处理
17
14
  2. **穷尽迭代** — 按 severity 从高到低逐轮修复,直到 0 remaining actionable findings 才退出 fix loop
@@ -9,9 +9,6 @@ allowed-tools: spawn_agents_on_csv, Read, Write, Edit, Bash, Glob, Grep, request
9
9
  Deep UI polish cycle: survey (design tokens + pattern inventory) -> audit (6 dimensions) ->
10
10
  diverge (creative exploration) -> fix -> verify -> generalize -> discover -> record.
11
11
 
12
- Unlike `$maestro-impeccable` (single command), this is a persistent session with evidence trails,
13
- decision journal, iterative improvement, and codebase-wide generalization. `--skip-fix` for audit-only.
14
-
15
12
  Core philosophy:
16
13
  - **Every pixel tells a story** — subtle details create the experience
17
14
  - **Diverge before converge** — explore creatively, then implement methodically
@@ -9,8 +9,6 @@ allowed-tools: Read, Write, Bash, Glob, Grep
9
9
  Initialize project specs by scanning the codebase and generating spec files in `.workflow/specs/`.
10
10
  Core files (coding, arch, learning) always created. Optional files created only when relevant signals detected.
11
11
 
12
- Triggered automatically by `maestro-init` for **existing projects** (source files detected). Greenfield projects skip this — specs are populated progressively by analyze, plan, and execute stages.
13
-
14
12
  ```bash
15
13
  $spec-setup
16
14
  ```
@@ -7,9 +7,6 @@ allowed-tools: spawn_agents_on_csv, Read, Write, Edit, Bash, Glob, Grep, request
7
7
 
8
8
  <purpose>
9
9
  Wave-based multi-role coordination via `spawn_agents_on_csv`. Dynamic role generation + linear wave execution with per-wave evaluation gates.
10
-
11
- **Core difference from other team skills**: Roles are NOT predefined — they are dynamically generated from task analysis at runtime. Each role's behavioral instructions are encoded directly into the CSV `description` column, eliminating the need for role-spec files.
12
-
13
10
  **Core workflow**: Analyze Task → Generate Dynamic Roles → Build CSV → Wave-by-Wave Execution with Evaluation → Aggregate Results
14
11
 
15
12
  ```
@@ -1,7 +1,5 @@
1
1
  # Team Lifecycle v4 — Agent Instruction
2
2
 
3
- This instruction is loaded by team-worker agents when spawned with roles: `analyst`, `writer`, `planner`, `executor`, `tester`, `reviewer`.
4
-
5
3
  ---
6
4
 
7
5
  ## Role-Based Execution
@@ -20,6 +20,24 @@
20
20
  "flags": "i",
21
21
  "route": { "graph": "spec-driven" }
22
22
  },
23
+ {
24
+ "type": "grill",
25
+ "regex": "grill|stress.?test|压力测试|拷问|验证假设",
26
+ "flags": "i",
27
+ "route": { "graph": "grill-driven" }
28
+ },
29
+ {
30
+ "type": "blueprint",
31
+ "regex": "blueprint|蓝图|7.?phase|正式.*文档",
32
+ "flags": "i",
33
+ "route": { "graph": "blueprint-driven" }
34
+ },
35
+ {
36
+ "type": "analyze_macro",
37
+ "regex": "overhaul|migrate|rewrite|revamp|全面重写|整体迁移",
38
+ "flags": "i",
39
+ "route": { "graph": "analyze-plan-execute" }
40
+ },
23
41
  {
24
42
  "type": "brainstorm",
25
43
  "regex": "brainstorm|ideate|头脑风暴|发散",
@@ -176,6 +194,24 @@
176
194
  "flags": "i",
177
195
  "route": { "graph": "singles/codebase-refresh" }
178
196
  },
197
+ {
198
+ "type": "domain_add",
199
+ "regex": "domain.*add|领域.*注册|register.*domain|添加.*领域",
200
+ "flags": "i",
201
+ "route": { "graph": "singles/domain-add" }
202
+ },
203
+ {
204
+ "type": "domain_list",
205
+ "regex": "domain.*list|领域.*列表|list.*domain",
206
+ "flags": "i",
207
+ "route": { "graph": "singles/domain-list" }
208
+ },
209
+ {
210
+ "type": "domain_discover",
211
+ "regex": "domain.*discover|领域.*发现|discover.*term",
212
+ "flags": "i",
213
+ "route": { "graph": "singles/domain-discover" }
214
+ },
179
215
  {
180
216
  "type": "spec_setup",
181
217
  "regex": "spec.*setup|规范.*初始化",