pi-maestro-flow 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. package/README.md +44 -72
  2. package/agents/cross-role-reviewer.md +1 -1
  3. package/agents/impeccable-agent.md +1 -1
  4. package/agents/ralph-executor.md +1 -1
  5. package/agents/team-worker.md +1 -1
  6. package/agents/workflow-analyzer.md +1 -1
  7. package/agents/workflow-codebase-mapper.md +1 -1
  8. package/agents/workflow-collab-planner.md +1 -1
  9. package/agents/workflow-debugger.md +1 -1
  10. package/agents/workflow-executor.md +1 -1
  11. package/agents/workflow-integration-checker.md +1 -1
  12. package/agents/workflow-nyquist-auditor.md +1 -1
  13. package/agents/workflow-phase-researcher.md +1 -1
  14. package/agents/workflow-planner.md +1 -1
  15. package/agents/workflow-project-researcher.md +1 -1
  16. package/agents/workflow-reviewer.md +1 -1
  17. package/agents/workflow-verifier.md +1 -1
  18. package/package.json +13 -4
  19. package/skills/codify-to-knowhow/SKILL.md +1 -1
  20. package/skills/delegation-check/SKILL.md +1 -1
  21. package/skills/domain-add/SKILL.md +5 -7
  22. package/skills/insight-challenge/SKILL.md +1 -1
  23. package/skills/learn-decompose/SKILL.md +4 -4
  24. package/skills/learn-follow/SKILL.md +5 -5
  25. package/skills/learn-investigate/SKILL.md +5 -5
  26. package/skills/learn-second-opinion/SKILL.md +5 -5
  27. package/skills/maestro/SKILL.md +9 -10
  28. package/skills/maestro-amend/SKILL.md +3 -3
  29. package/skills/maestro-analyze/SKILL.md +10 -13
  30. package/skills/maestro-blueprint/SKILL.md +8 -11
  31. package/skills/maestro-brainstorm/SKILL.md +11 -14
  32. package/skills/maestro-collab/SKILL.md +4 -4
  33. package/skills/maestro-companion/SKILL.md +3 -3
  34. package/skills/maestro-composer/SKILL.md +11 -12
  35. package/skills/maestro-execute/SKILL.md +9 -12
  36. package/skills/maestro-fork/SKILL.md +8 -11
  37. package/skills/maestro-grill/SKILL.md +13 -16
  38. package/skills/maestro-guard/SKILL.md +5 -5
  39. package/skills/maestro-help/SKILL.md +3 -3
  40. package/skills/maestro-impeccable/SKILL.md +7 -7
  41. package/skills/maestro-init/SKILL.md +9 -12
  42. package/skills/maestro-merge/SKILL.md +6 -8
  43. package/skills/maestro-milestone-audit/SKILL.md +3 -5
  44. package/skills/maestro-milestone-complete/SKILL.md +9 -12
  45. package/skills/maestro-milestone-release/SKILL.md +9 -11
  46. package/skills/maestro-next/SKILL.md +5 -5
  47. package/skills/maestro-overlay/SKILL.md +16 -16
  48. package/skills/maestro-plan/SKILL.md +9 -12
  49. package/skills/maestro-player/SKILL.md +5 -5
  50. package/skills/maestro-quick/SKILL.md +5 -7
  51. package/skills/maestro-ralph/SKILL.md +16 -17
  52. package/skills/maestro-ralph-cli/SKILL.md +6 -6
  53. package/skills/maestro-ralph-cli-execute/SKILL.md +2 -2
  54. package/skills/maestro-ralph-execute/SKILL.md +4 -4
  55. package/skills/maestro-ralph-v2/SKILL.md +18 -19
  56. package/skills/maestro-roadmap/SKILL.md +8 -9
  57. package/skills/maestro-swarm-workflow/SKILL.md +9 -9
  58. package/skills/maestro-tools-execute/SKILL.md +5 -7
  59. package/skills/maestro-tools-register/SKILL.md +7 -9
  60. package/skills/maestro-ui-codify/SKILL.md +9 -10
  61. package/skills/maestro-universal-workflow/SKILL.md +15 -15
  62. package/skills/maestro-update/SKILL.md +10 -10
  63. package/skills/manage-codebase-rebuild/SKILL.md +4 -6
  64. package/skills/manage-drift-realign/SKILL.md +8 -11
  65. package/skills/manage-harvest/SKILL.md +6 -9
  66. package/skills/manage-issue/SKILL.md +5 -8
  67. package/skills/manage-issue-discover/SKILL.md +8 -11
  68. package/skills/manage-kg-extractors/SKILL.md +3 -3
  69. package/skills/manage-knowhow/SKILL.md +3 -5
  70. package/skills/manage-knowhow-capture/SKILL.md +4 -6
  71. package/skills/manage-knowledge-audit/SKILL.md +6 -9
  72. package/skills/manage-status/SKILL.md +3 -5
  73. package/skills/manage-wiki/SKILL.md +5 -7
  74. package/skills/odyssey-debug/SKILL.md +13 -13
  75. package/skills/odyssey-improve/SKILL.md +15 -15
  76. package/skills/odyssey-planex/SKILL.md +16 -16
  77. package/skills/odyssey-review-test-fix/SKILL.md +11 -11
  78. package/skills/odyssey-ui/SKILL.md +10 -10
  79. package/skills/prompt-generator/SKILL.md +5 -5
  80. package/skills/quality-auto-test/SKILL.md +3 -5
  81. package/skills/quality-debug/SKILL.md +3 -5
  82. package/skills/quality-refactor/SKILL.md +3 -5
  83. package/skills/quality-retrospective/SKILL.md +10 -13
  84. package/skills/quality-review/SKILL.md +5 -8
  85. package/skills/quality-sync/SKILL.md +3 -5
  86. package/skills/quality-test/SKILL.md +4 -6
  87. package/skills/scholar-anti-ai-writing/SKILL.md +1 -1
  88. package/skills/scholar-citation-verify/SKILL.md +1 -1
  89. package/skills/scholar-experiment/SKILL.md +2 -2
  90. package/skills/scholar-ideation/SKILL.md +7 -7
  91. package/skills/scholar-latex-organizer/SKILL.md +1 -1
  92. package/skills/scholar-publish/SKILL.md +3 -3
  93. package/skills/scholar-rebuttal-pro/SKILL.md +3 -3
  94. package/skills/scholar-review/SKILL.md +1 -1
  95. package/skills/scholar-writing/SKILL.md +1 -1
  96. package/skills/security-audit/SKILL.md +2 -4
  97. package/skills/skill-generator/SKILL.md +3 -3
  98. package/skills/skill-iter-tune/SKILL.md +3 -3
  99. package/skills/skill-simplify/SKILL.md +1 -1
  100. package/skills/skill-tuning/SKILL.md +1 -1
  101. package/skills/spec-add/SKILL.md +5 -7
  102. package/skills/spec-load/SKILL.md +3 -5
  103. package/skills/spec-remove/SKILL.md +4 -6
  104. package/skills/spec-setup/SKILL.md +6 -8
  105. package/skills/team-adversarial-swarm/SKILL.md +5 -5
  106. package/skills/team-arch-opt/SKILL.md +2 -2
  107. package/skills/team-brainstorm/SKILL.md +3 -3
  108. package/skills/team-coordinate/SKILL.md +4 -4
  109. package/skills/team-designer/SKILL.md +1 -1
  110. package/skills/team-executor/SKILL.md +3 -3
  111. package/skills/team-frontend/SKILL.md +2 -2
  112. package/skills/team-frontend-debug/SKILL.md +3 -3
  113. package/skills/team-interactive-craft/SKILL.md +2 -2
  114. package/skills/team-issue/SKILL.md +3 -3
  115. package/skills/team-lifecycle-v4/SKILL.md +4 -4
  116. package/skills/team-motion-design/SKILL.md +2 -2
  117. package/skills/team-perf-opt/SKILL.md +3 -3
  118. package/skills/team-planex/SKILL.md +2 -2
  119. package/skills/team-quality-assurance/SKILL.md +3 -3
  120. package/skills/team-review/SKILL.md +3 -3
  121. package/skills/team-roadmap-dev/SKILL.md +3 -3
  122. package/skills/team-swarm/SKILL.md +4 -4
  123. package/skills/team-tech-debt/SKILL.md +2 -2
  124. package/skills/team-testing/SKILL.md +3 -3
  125. package/skills/team-ui-polish/SKILL.md +2 -2
  126. package/skills/team-uidesign/SKILL.md +2 -2
  127. package/skills/team-ultra-analyze/SKILL.md +4 -4
  128. package/skills/team-ux-improve/SKILL.md +3 -3
  129. package/skills/team-visual-a11y/SKILL.md +2 -2
  130. package/skills/workflow-skill-designer/SKILL.md +8 -8
  131. package/templates/business-test-report.json +68 -0
  132. package/templates/config.json +48 -0
  133. package/templates/context.md +16 -0
  134. package/templates/doc-index.json +11 -0
  135. package/templates/index.json +68 -0
  136. package/templates/issue.json +36 -0
  137. package/templates/plan.json +38 -0
  138. package/templates/project.md +60 -0
  139. package/templates/reflection-log.md +20 -0
  140. package/templates/roadmap.md +45 -0
  141. package/templates/scratch-index.json +19 -0
  142. package/templates/search-tool.json +1 -0
  143. package/templates/search-tools.md +47 -0
  144. package/templates/state.json +18 -0
  145. package/templates/task-summary.md +21 -0
  146. package/templates/task.json +89 -0
  147. package/templates/terminology-template.json +22 -0
  148. package/templates/uat.md +21 -0
  149. package/templates/validation.json +31 -0
  150. package/templates/verification.json +37 -0
  151. package/templates/workflow.md +14 -0
  152. package/templates/worktree-scope.json +9 -0
  153. package/templates/worktrees.json +26 -0
  154. package/workflows/agy-instructions.md +156 -0
  155. package/workflows/analyze.md +768 -0
  156. package/workflows/auto-test.md +705 -0
  157. package/workflows/blueprint.md +406 -0
  158. package/workflows/boundary-grill.md +50 -0
  159. package/workflows/brainstorm.md +508 -0
  160. package/workflows/business-test.md +574 -0
  161. package/workflows/chinese-response.md +25 -0
  162. package/workflows/claude-instructions.md +167 -0
  163. package/workflows/codebase-rebuild.md +267 -0
  164. package/workflows/codebase-refresh.md +168 -0
  165. package/workflows/codex-instructions.md +156 -0
  166. package/workflows/coding-philosophy.md +70 -0
  167. package/workflows/command-authoring.md +823 -0
  168. package/workflows/debug.md +409 -0
  169. package/workflows/delegate-usage.md +99 -0
  170. package/workflows/domain-add.md +121 -0
  171. package/workflows/drift-realign.md +396 -0
  172. package/workflows/execute.md +631 -0
  173. package/workflows/explore-usage.md +93 -0
  174. package/workflows/finish-work.md +124 -0
  175. package/workflows/fork.md +162 -0
  176. package/workflows/grill.md +494 -0
  177. package/workflows/harvest.md +478 -0
  178. package/workflows/impeccable.md +168 -0
  179. package/workflows/init.md +157 -0
  180. package/workflows/instruction-authoring-guide.md +97 -0
  181. package/workflows/integration-test.md +186 -0
  182. package/workflows/interview-mechanics.md +8 -0
  183. package/workflows/issue-analyze.md +20 -0
  184. package/workflows/issue-discover.md +238 -0
  185. package/workflows/issue-execute.md +110 -0
  186. package/workflows/issue-gaps-analyze.codex.md +256 -0
  187. package/workflows/issue-gaps-analyze.md +215 -0
  188. package/workflows/issue-plan.md +110 -0
  189. package/workflows/issue.md +338 -0
  190. package/workflows/knowhow.md +429 -0
  191. package/workflows/knowledge-audit.md +355 -0
  192. package/workflows/learn.md +271 -0
  193. package/workflows/maestro-chain-execute.md +20 -0
  194. package/workflows/maestro-link-coordinate.md +114 -0
  195. package/workflows/maestro-super.md +120 -0
  196. package/workflows/maestro.md +501 -0
  197. package/workflows/map.md +74 -0
  198. package/workflows/merge.md +122 -0
  199. package/workflows/milestone-audit.md +155 -0
  200. package/workflows/milestone-complete.md +167 -0
  201. package/workflows/milestone-release.md +82 -0
  202. package/workflows/odyssey-base-codex.md +305 -0
  203. package/workflows/odyssey-base.md +256 -0
  204. package/workflows/overlays.md +109 -0
  205. package/workflows/plan.md +520 -0
  206. package/workflows/quick.md +350 -0
  207. package/workflows/ralph-amend-goal.md +177 -0
  208. package/workflows/refactor.md +87 -0
  209. package/workflows/retrospective.md +471 -0
  210. package/workflows/review.md +448 -0
  211. package/workflows/roadmap-common.md +193 -0
  212. package/workflows/roadmap.md +106 -0
  213. package/workflows/shell-exec-protocol.md +30 -0
  214. package/workflows/skill-authoring.md +265 -0
  215. package/workflows/spec-generate.md +475 -0
  216. package/workflows/specs-add.md +123 -0
  217. package/workflows/specs-load.md +76 -0
  218. package/workflows/specs-remove.md +104 -0
  219. package/workflows/specs-setup.md +316 -0
  220. package/workflows/status.md +149 -0
  221. package/workflows/sync.md +116 -0
  222. package/workflows/tdd.md +255 -0
  223. package/workflows/test-gen.md +226 -0
  224. package/workflows/test.md +385 -0
  225. package/workflows/tools-spec.md +70 -0
  226. package/workflows/ui-codify-extract.md +372 -0
  227. package/workflows/ui-codify-knowhow.md +258 -0
  228. package/workflows/ui-codify-package.md +159 -0
  229. package/workflows/ui-codify.md +227 -0
  230. package/workflows/ui-design.md +393 -0
  231. package/workflows/ui-style.md +201 -0
  232. package/workflows/verify.md +557 -0
  233. package/workflows/wiki-connect.md +153 -0
  234. package/workflows/wiki-digest.md +180 -0
  235. package/workflows/wiki-manage.md +113 -0
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: maestro
3
3
  description: "Auto-route intent to optimal command chain Arguments: <intent> [-y] [-c] [--dry-run] [--super]"
4
- allowed-tools: Read Write Edit Bash Glob Grep Agent AskUserQuestion TodoWrite
4
+ allowed-tools: Read Write Edit Bash Glob Grep teammate maestro
5
5
  ---
6
6
 
7
7
  <purpose>
@@ -9,10 +9,9 @@ Orchestrate all maestro commands: classify intent → select chain → create se
9
9
  Session: `.workflow/.maestro/{session_id}/status.json`.
10
10
  </purpose>
11
11
 
12
- <deferred_reading>
13
- - [maestro.md](~/.maestro/workflows/maestro.md) — read at execution start for intent analysis + chain selection
14
- - [maestro-super.md](~/.maestro/workflows/maestro-super.md) — read when `--super` flag active
15
- </deferred_reading>
12
+ > **Reference files** (read when needed):
13
+ > - [maestro.md](~/.pi/agent/packages/pi-maestro-flow/workflows/maestro.md) — read at execution start for intent analysis + chain selection
14
+ > - [maestro-super.md](~/.pi/agent/packages/pi-maestro-flow/workflows/maestro-super.md) — read when `--super` flag active
16
15
 
17
16
  <context>
18
17
  $ARGUMENTS — user intent text, or special keywords.
@@ -95,10 +94,10 @@ S_CONFIRM:
95
94
  → END WHEN: user cancels
96
95
 
97
96
  S_DISPATCH:
98
- → END DO: Skill({ skill: "maestro-ralph-execute" })
97
+ → END DO: invoke /skill: "maestro-ralph-execute" })
99
98
 
100
99
  S_FALLBACK:
101
- → S_CLASSIFY WHEN: user provides new intent DO: AskUserQuestion
100
+ → S_CLASSIFY WHEN: user provides new intent DO: user prompt
102
101
  → END WHEN: user cancels
103
102
 
104
103
  </transitions>
@@ -117,7 +116,7 @@ S_FALLBACK:
117
116
 
118
117
  ### A_CLASSIFY_INTENT
119
118
 
120
- 1. Read `~/.maestro/workflows/maestro.md` from deferred_reading
119
+ 1. Read `~/.pi/agent/packages/pi-maestro-flow/workflows/maestro.md` from deferred_reading
121
120
  2. Match intent to task_type via chain catalog (semantic)
122
121
  3. Select chain from chainMap,遵循拓扑约束:
123
122
  - 压力测试/拷问/验证假设/grill/stress-test → `grill`(**-y 模式透传 `-y` 到 grill,grill 以 Auto mode 执行,不跳过**)
@@ -133,7 +132,7 @@ S_FALLBACK:
133
132
 
134
133
  ### A_CLARIFY
135
134
 
136
- 1. `AskUserQuestion` with parsed intent + available chain options
135
+ 1. `user prompt` with parsed intent + available chain options
137
136
  2. Re-classify with user response
138
137
 
139
138
  ### A_DECOMPOSE_TASKS
@@ -141,7 +140,7 @@ S_FALLBACK:
141
140
  设 `session.decomposition_owner = "maestro"`。下游 ralph 只消费不二次提问(invariant 4)。Condensed:
142
141
 
143
142
  1. 分类意图广度。narrow / 单步 / `{status,init,quick}` 链跳过
144
- 2. broad/medium → `AskUserQuestion` ≤3 轮:Scope / Constraints / Definition of Done
143
+ 2. broad/medium → `user prompt` ≤3 轮:Scope / Constraints / Definition of Done
145
144
  3. 派生 `execution_criteria` + `task_decomposition`(每个 sub-goal 含 `done_when` + `evidence` + `lifecycle` + `completion_confirmed: false`)
146
145
  4. **status.json 唯一真源**:写入 `boundary_contract` / `execution_criteria` / `task_decomposition`;不生成 markdown 清单
147
146
  5. 在最后一个 evidence-producing stage(execute/review/test)之后、`milestone-complete` 之前追加 `decision:post-goal-audit`。ralph-execute 在该节点按需动态生长 `steps[]`
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: maestro-amend
3
3
  description: "Generate overlays to fix workflow command deficiencies Arguments: [description] [--from-verify <dir>] [--from-review <dir>] [--from-session <id>] [--from-issues ISS-xxx,...] [--scan] [--dry-run] [-y]"
4
- allowed-tools: Read Write Bash Glob Grep AskUserQuestion
4
+ allowed-tools: Read Write Bash Glob Grep maestro
5
5
  ---
6
6
 
7
7
  <purpose>
@@ -9,7 +9,7 @@ Signal-driven overlay generator — collect workflow deficiency signals from mul
9
9
  </purpose>
10
10
 
11
11
  <required_reading>
12
- @~/.maestro/workflows/overlays.md
12
+ Read and follow `~/.pi/agent/packages/pi-maestro-flow/workflows/overlays.md`.
13
13
  @~/.maestro/cli-tools.json
14
14
  </required_reading>
15
15
 
@@ -27,7 +27,7 @@ $ARGUMENTS — optional description and/or source flags.
27
27
  | `--scan` | Auto-scan .workflow/ | Discover all workflow-related signals |
28
28
  | _(positional text)_ | User description | Direct observation |
29
29
 
30
- Multiple combinable. No flags + no description → interactive (scan + AskUserQuestion).
30
+ Multiple combinable. No flags + no description → interactive (scan + user prompt).
31
31
 
32
32
  **Control**: `--dry-run` (preview, don't install), `-y` (skip confirmations)
33
33
 
@@ -1,22 +1,19 @@
1
1
  ---
2
2
  name: maestro-analyze
3
3
  description: "Use when a topic needs structured multi-dimensional investigation before planning or decision-making Arguments: [milestone|topic] [-y] [-c] [-q] [--gaps [ISS-ID]]"
4
- allowed-tools: Read Write Edit Bash Glob Grep Agent AskUserQuestion
4
+ allowed-tools: Read Write Edit Bash Glob Grep teammate maestro
5
5
  ---
6
6
 
7
7
  <purpose>
8
8
  Multi-dimensional analysis of a proposal, decision, or architecture choice via CLI-assisted exploration and interactive discussion. Produces analysis.md (6-dimension scoring), context.md (Locked/Free/Deferred decisions), conclusions.json, and discussion.md with Go/No-Go recommendation. Use `--gaps` for issue root cause analysis feeding `plan --gaps`.
9
9
  </purpose>
10
10
 
11
- <required_reading>
12
- @~/.maestro/workflows/analyze.md
13
- </required_reading>
11
+ > **Required**: Read `~/.pi/agent/packages/pi-maestro-flow/workflows/analyze.md` before proceeding.
14
12
 
15
- <deferred_reading>
16
- - [state.json](~/.maestro/templates/state.json) — read when registering artifact
17
- - [issue-gaps-analyze.md](~/.maestro/workflows/issue-gaps-analyze.md) — read when --gaps is triggered
18
- - [boundary-grill.md](~/.maestro/workflows/boundary-grill.md) — read when boundary conflicts detected (between Phase 4 and Phase 5)
19
- </deferred_reading>
13
+ > **Reference files** (read when needed):
14
+ > - [state.json](~/.pi/agent/packages/pi-maestro-flow/templates/state.json) — read when registering artifact
15
+ > - [issue-gaps-analyze.md](~/.pi/agent/packages/pi-maestro-flow/workflows/issue-gaps-analyze.md) — read when --gaps is triggered
16
+ > - [boundary-grill.md](~/.pi/agent/packages/pi-maestro-flow/workflows/boundary-grill.md) — read when boundary conflicts detected (between Phase 4 and Phase 5)
20
17
 
21
18
  <context>
22
19
  $ARGUMENTS -- milestone number for micro mode, topic text for macro/adhoc mode, no args for current milestone.
@@ -64,7 +61,7 @@ Output directory format, artifact registration schema, and output artifact listi
64
61
  </context>
65
62
 
66
63
  <interview_protocol>
67
- Follows @~/.maestro/workflows/interview-mechanics.md standard.
64
+ Follows `~/.pi/agent/packages/pi-maestro-flow/workflows/interview-mechanics.md` standard.
68
65
 
69
66
  **Interaction mode**: convergent menu-driven
70
67
  **Decision tree** (strict order): scope (phase / topic / milestone-wide / adhoc / --gaps) → depth (quick / standard / deep) → dimensions (which of the 6 to keep) → Go/No-Go threshold
@@ -76,11 +73,11 @@ Follows @~/.maestro/workflows/interview-mechanics.md standard.
76
73
  </interview_protocol>
77
74
 
78
75
  <execution>
79
- Follow '~/.maestro/workflows/analyze.md' completely.
76
+ Follow '~/.pi/agent/packages/pi-maestro-flow/workflows/analyze.md' completely.
80
77
 
81
78
  ### --gaps Mode
82
79
 
83
- When `--gaps` is present, follow `~/.maestro/workflows/issue-gaps-analyze.md` instead of the standard pipeline.
80
+ When `--gaps` is present, follow `~/.pi/agent/packages/pi-maestro-flow/workflows/issue-gaps-analyze.md` instead of the standard pipeline.
84
81
  </execution>
85
82
 
86
83
  <completion>
@@ -125,7 +122,7 @@ Status verdicts:
125
122
 
126
123
  ### Session seal
127
124
 
128
- @~/.maestro/workflows/finish-work.md — SESSION_DIR=OUTPUT_DIR, SESSION_TYPE=analyze, SESSION_ID={artifact_id}, LINKED_MILESTONE={target_milestone or null}
125
+ Read and follow `~/.pi/agent/packages/pi-maestro-flow/workflows/finish-work.md`. — SESSION_DIR=OUTPUT_DIR, SESSION_TYPE=analyze, SESSION_ID={artifact_id}, LINKED_MILESTONE={target_milestone or null}
129
126
  </completion>
130
127
 
131
128
  <error_codes>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: maestro-blueprint
3
3
  description: "Generate formal specification package (Product Brief, PRD, Architecture, Epics) through 6-phase document chain Arguments: <idea or @file> [-y] [-c] [--from <source>]"
4
- allowed-tools: Read Write Edit Bash Glob Grep Agent AskUserQuestion
4
+ allowed-tools: Read Write Edit Bash Glob Grep teammate maestro
5
5
  ---
6
6
 
7
7
  <purpose>
@@ -10,13 +10,10 @@ allowed-tools: Read Write Edit Bash Glob Grep Agent AskUserQuestion
10
10
  Pipeline: brainstorm (optional) → **blueprint** → analyze / roadmap / plan.
11
11
  </purpose>
12
12
 
13
- <required_reading>
14
- @~/.maestro/workflows/blueprint.md
15
- </required_reading>
13
+ > **Required**: Read `~/.pi/agent/packages/pi-maestro-flow/workflows/blueprint.md` before proceeding.
16
14
 
17
- <deferred_reading>
18
- - [blueprint-config.json](~/.maestro/templates/blueprint-config.json) — read when initializing blueprint configuration
19
- </deferred_reading>
15
+ > **Reference files** (read when needed):
16
+ > - [blueprint-config.json](~/.pi/agent/packages/pi-maestro-flow/templates/blueprint-config.json) — read when initializing blueprint configuration
20
17
 
21
18
  <context>
22
19
  $ARGUMENTS -- idea text, @file reference, or upstream context source.
@@ -46,7 +43,7 @@ $ARGUMENTS -- idea text, @file reference, or upstream context source.
46
43
  </context>
47
44
 
48
45
  <interview_protocol>
49
- Follows @~/.maestro/workflows/interview-mechanics.md standard.
46
+ Follows `~/.pi/agent/packages/pi-maestro-flow/workflows/interview-mechanics.md` standard.
50
47
 
51
48
  **Interaction mode**: convergent menu-driven, depth-first
52
49
  **Decision tree** (strict depth-first): scope (full product / feature set / single feature) → spec type (service / api / library / platform) → focus areas → whether to run codebase exploration → requirement priorities
@@ -57,7 +54,7 @@ Follows @~/.maestro/workflows/interview-mechanics.md standard.
57
54
  </interview_protocol>
58
55
 
59
56
  <execution>
60
- Follow `~/.maestro/workflows/blueprint.md` completely.
57
+ Follow `~/.pi/agent/packages/pi-maestro-flow/workflows/blueprint.md` completely.
61
58
 
62
59
  ### Phase chain
63
60
 
@@ -151,9 +148,9 @@ Status verdicts:
151
148
  - [ ] Readiness gate: Pass (>=80%) or Review (>=60%) with documented caveats
152
149
  - [ ] Artifact registered in state.json (type=blueprint)
153
150
  - [ ] context-package.json generated for downstream consumption
154
- - [ ] On gate Pass/Review: session sealed via finish-work (finish-work.md includes AskUserQuestion confirmation before state.json artifact registration and optional spec/knowhow extraction). On Fail: skip — session stays active, excluded from wiki search.
151
+ - [ ] On gate Pass/Review: session sealed via finish-work (finish-work.md includes user prompt confirmation before state.json artifact registration and optional spec/knowhow extraction). On Fail: skip — session stays active, excluded from wiki search.
155
152
  </success_criteria>
156
153
 
157
154
  <on_complete>
158
- @~/.maestro/workflows/finish-work.md — SESSION_DIR={session_dir}, SESSION_TYPE=blueprint, SESSION_ID={session_id}, LINKED_MILESTONE=null
155
+ Read and follow `~/.pi/agent/packages/pi-maestro-flow/workflows/finish-work.md`. — SESSION_DIR={session_dir}, SESSION_TYPE=blueprint, SESSION_ID={session_id}, LINKED_MILESTONE=null
159
156
  </on_complete>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: maestro-brainstorm
3
3
  description: "Use when exploring ideas, evaluating approaches, or needing multi-perspective analysis before implementation Arguments: [topic|role-name] [--yes] [--count N] [--session ID] [--update] [--skip-questions] [--include-questions] [--style-skill PKG] [--review-only] [--from <source>]"
4
- allowed-tools: Read Write Edit Bash Glob Grep Agent AskUserQuestion
4
+ allowed-tools: Read Write Edit Bash Glob Grep teammate maestro
5
5
  ---
6
6
 
7
7
  <purpose>
@@ -10,16 +10,13 @@ Multi-role brainstorming with cross-role conflict resolution. Auto mode: guidanc
10
10
  Pipeline: grill (optional) → **brainstorm** → roadmap / analyze / blueprint.
11
11
  </purpose>
12
12
 
13
- <required_reading>
14
- @~/.maestro/workflows/brainstorm.md
15
- </required_reading>
13
+ > **Required**: Read `~/.pi/agent/packages/pi-maestro-flow/workflows/brainstorm.md` before proceeding.
16
14
 
17
- <deferred_reading>
18
- - [scratch-index.json](~/.maestro/templates/scratch-index.json) — read when operating in scratch mode
19
- - [index.json](~/.maestro/templates/index.json) — read when operating in phase mode
20
- - [brainstorm-visualize.md](~/.maestro/workflows/brainstorm-visualize.md) — read when html-prototypes/ produced and user wants to browse them
21
- - [boundary-grill.md](~/.maestro/workflows/boundary-grill.md) — read when boundary conflicts detected (in cross-role review)
22
- </deferred_reading>
15
+ > **Reference files** (read when needed):
16
+ > - [scratch-index.json](~/.pi/agent/packages/pi-maestro-flow/templates/scratch-index.json) — read when operating in scratch mode
17
+ > - [index.json](~/.pi/agent/packages/pi-maestro-flow/templates/index.json) — read when operating in phase mode
18
+ > - [brainstorm-visualize.md](~/.pi/agent/packages/pi-maestro-flow/workflows/brainstorm-visualize.md) — read when html-prototypes/ produced and user wants to browse them
19
+ > - [boundary-grill.md](~/.pi/agent/packages/pi-maestro-flow/workflows/boundary-grill.md) — read when boundary conflicts detected (in cross-role review)
23
20
 
24
21
  <context>
25
22
  $ARGUMENTS -- topic text for auto mode, or role name for single role mode.
@@ -57,7 +54,7 @@ $ARGUMENTS -- topic text for auto mode, or role name for single role mode.
57
54
  </context>
58
55
 
59
56
  <interview_protocol>
60
- Follows @~/.maestro/workflows/interview-mechanics.md standard.
57
+ Follows `~/.pi/agent/packages/pi-maestro-flow/workflows/interview-mechanics.md` standard.
61
58
 
62
59
  **Interaction mode**: convergent menu-driven
63
60
  **Decision tree** (flexible order — user may jump between branches): mode (auto / single-role / review-only) → role selection and --count → --from upstream source (grill:ID, blueprint:ID, @file, path) → whether to enable design-research and DESIGN.md sub-pipeline
@@ -68,7 +65,7 @@ Follows @~/.maestro/workflows/interview-mechanics.md standard.
68
65
  </interview_protocol>
69
66
 
70
67
  <execution>
71
- Follow '~/.maestro/workflows/brainstorm.md' completely.
68
+ Follow '~/.pi/agent/packages/pi-maestro-flow/workflows/brainstorm.md' completely.
72
69
 
73
70
  ### Phase Gates (MANDATORY, BLOCKING)
74
71
 
@@ -134,7 +131,7 @@ Status verdicts:
134
131
  | Quick roadmap needed | `/maestro-roadmap --from brainstorm:{artifact_id}` |
135
132
  | Need deeper analysis first | `/maestro-analyze {topic} --from brainstorm:{artifact_id}` |
136
133
  | Need stress-testing first | `/maestro-grill {topic}` |
137
- | `html-prototypes/` produced with 2+ files and user wants to browse | Load `~/.maestro/workflows/brainstorm-visualize.md` and launch visualizer server |
134
+ | `html-prototypes/` produced with 2+ files and user wants to browse | Load `~/.pi/agent/packages/pi-maestro-flow/workflows/brainstorm-visualize.md` and launch visualizer server |
138
135
  | DESIGN.md established during Step 3.5 | `/maestro-impeccable build <feature-description>` |
139
136
 
140
137
  **Single role mode:**
@@ -189,5 +186,5 @@ Status verdicts:
189
186
  </success_criteria>
190
187
 
191
188
  <on_complete>
192
- @~/.maestro/workflows/finish-work.md — SESSION_DIR={output_dir}, SESSION_TYPE=brainstorm, SESSION_ID={artifact_id}, LINKED_MILESTONE=null
189
+ Read and follow `~/.pi/agent/packages/pi-maestro-flow/workflows/finish-work.md`. — SESSION_DIR={output_dir}, SESSION_TYPE=brainstorm, SESSION_ID={artifact_id}, LINKED_MILESTONE=null
193
190
  </on_complete>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: maestro-collab
3
3
  description: "Use when a question needs cross-verification from multiple CLI tools or diverse analytical perspectives Arguments: <requirement> [--tools agy,qwen,claude] [--mode analysis|write] [--rule <template>] [-y]"
4
- allowed-tools: Read Write Bash Glob Grep Agent AskUserQuestion
4
+ allowed-tools: Read Write Bash Glob Grep teammate maestro
5
5
  ---
6
6
 
7
7
  <purpose>
@@ -45,7 +45,7 @@ S_REPORT — 显示摘要 + next-step routing PERSIST:
45
45
 
46
46
  S_PARSE:
47
47
  → S_DISCOVER WHEN: requirement non-empty DO: extract requirement, tools, mode, rule, autoYes
48
- → S_PARSE WHEN: requirement empty DO: AskUserQuestion for requirement
48
+ → S_PARSE WHEN: requirement empty DO: user prompt for requirement
49
49
 
50
50
  S_DISCOVER:
51
51
  → S_CONFIRM WHEN: eligible tools >= 2 DO: A_DISCOVER_TOOLS
@@ -79,7 +79,7 @@ S_SYNTHESIZE:
79
79
  S_REGISTER:
80
80
  → S_REPORT WHEN: user confirms or -y DO: append CLB artifact to state.json (type: collab, scope: adhoc)
81
81
  → S_REPORT WHEN: user declines DO: skip artifact registration, proceed to report
82
- GUARD: AskUserQuestion "Register collab artifact to state.json?" (skipped if -y)
82
+ GUARD: user prompt "Register collab artifact to state.json?" (skipped if -y)
83
83
 
84
84
  S_REPORT:
85
85
  → END DO: display summary (requirement, tools, consensus_level, per-tool status, artifact id, output dir)
@@ -137,7 +137,7 @@ If consensus_level < 40%: W003.
137
137
 
138
138
  ### A_BOUNDARY_GRILL
139
139
 
140
- Run boundary grill per `~/.maestro/workflows/boundary-grill.md`.
140
+ Run boundary grill per `~/.pi/agent/packages/pi-maestro-flow/workflows/boundary-grill.md`.
141
141
  Input: classified CONFLICT findings + per-tool outputs. Check upstream scope if `--from` used.
142
142
  IF conflicts → tag with resolution, feed into A_GENERATE_OUTPUTS. No conflicts → pass through.
143
143
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: maestro-companion
3
3
  description: "Knowledge companion — load context, record companion doc, capture insights, route to skills Arguments: [before|note|after|route] [--task <description>] [--type <task_type>] [--category <cat>]"
4
- allowed-tools: Read Write Edit Bash Glob Grep Skill AskUserQuestion
4
+ allowed-tools: Read Write Edit Bash Glob Grep maestro
5
5
  ---
6
6
 
7
7
  <purpose>
@@ -439,7 +439,7 @@ Promotable entries:
439
439
 
440
440
  ### 3. Promote entries
441
441
 
442
- If promotable entries exist, AskUserQuestion:
442
+ If promotable entries exist, user prompt:
443
443
 
444
444
  - Option 1: "Promote to spec" — short coding/arch/test constraint
445
445
  - Option 2: "Promote to knowhow" — detailed recipe/template/decision/tip
@@ -517,7 +517,7 @@ Delegates intent routing to maestro-next, which recommends the best single comma
517
517
  - [ ] note: typed entries cross-posted to matching context tables (decisions→Decisions, hypothesis→Hypotheses, etc.)
518
518
  - [ ] after: companion doc entries reviewed and promotable items identified
519
519
  - [ ] after: outcome fields populated (files_changed, completed, status)
520
- - [ ] after: AskUserQuestion routes to spec-add or manage-knowhow-capture
520
+ - [ ] after: user prompt routes to spec-add or manage-knowhow-capture
521
521
  - [ ] after: todo entries extracted to follow_up field
522
522
  - [ ] after: companion doc marked completed, active pointer cleared
523
523
  - [ ] after: accumulation reminder + next-step routing displayed
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: maestro-composer
3
3
  description: "Compose reusable workflow templates from natural language Arguments: <workflow-description> [--resume] [--edit <template-path>]"
4
- allowed-tools: Read Write Edit Bash Glob Grep Agent AskUserQuestion Skill
4
+ allowed-tools: Read Write Edit Bash Glob Grep teammate maestro
5
5
  ---
6
6
 
7
7
  <purpose>
@@ -9,10 +9,9 @@ Interactive workflow template composer: natural language to DAG template.
9
9
  Three modes: new design (default), resume (`--resume`), edit (`--edit <path>`).
10
10
  </purpose>
11
11
 
12
- <deferred_reading>
13
- - [node-catalog](~/.maestro/templates/workflows/specs/node-catalog.md) — read at Phase 2 (Resolve)
14
- - [template-schema](~/.maestro/templates/workflows/specs/template-schema.md) — read at Phase 5 (Persist)
15
- </deferred_reading>
12
+ > **Reference files** (read when needed):
13
+ > - [node-catalog](~/.pi/agent/packages/pi-maestro-flow/templates/workflows/specs/node-catalog.md) — read at Phase 2 (Resolve)
14
+ > - [template-schema](~/.pi/agent/packages/pi-maestro-flow/templates/workflows/specs/template-schema.md) — read at Phase 5 (Persist)
16
15
 
17
16
  <context>
18
17
  $ARGUMENTS — natural language description, or flags.
@@ -20,8 +19,8 @@ $ARGUMENTS — natural language description, or flags.
20
19
  **Flags**: `--resume` (resume in-progress design), `--edit <path>` (edit existing template)
21
20
 
22
21
  **Constants**:
23
- - Template dir: `~/.maestro/templates/workflows/`
24
- - Template index: `~/.maestro/templates/workflows/index.json`
22
+ - Template dir: `~/.pi/agent/packages/pi-maestro-flow/templates/workflows/`
23
+ - Template index: `~/.pi/agent/packages/pi-maestro-flow/templates/workflows/index.json`
25
24
  - Design drafts: `.workflow/templates/design-drafts/`
26
25
  - Template ID: `wft-<slug>-<YYYYMMDD>`, Node ID: `N-<seq>`, Checkpoint: `CP-<seq>`
27
26
  - Max nodes: 20
@@ -31,14 +30,14 @@ $ARGUMENTS — natural language description, or flags.
31
30
  2. **Coding specs**: Run `maestro load --type spec --category coding` to load coding conventions. Informs executor argument defaults and context injection.
32
31
  3. Optional — proceed without if unavailable.
33
32
 
34
- **Output boundary**: ALL file writes MUST target `~/.maestro/templates/workflows/` (template JSON + index.json) and `.workflow/templates/design-drafts/` (intermediate drafts) only. NEVER modify source code or `.claude/commands/` files.
33
+ **Output boundary**: ALL file writes MUST target `~/.pi/agent/packages/pi-maestro-flow/templates/workflows/` (template JSON + index.json) and `.workflow/templates/design-drafts/` (intermediate drafts) only. NEVER modify source code or `.claude/commands/` files.
35
34
  </context>
36
35
 
37
36
  <invariants>
38
37
  1. **Max 20 nodes** — workflow templates MUST NOT exceed 20 nodes; larger workflows MUST be split into sub-workflows
39
38
  2. **Acyclic DAG** — generated template MUST be a directed acyclic graph; cycles MUST be detected and rejected before persistence
40
39
  3. **No orphan nodes** — every node MUST be reachable from at least one edge; unreachable nodes MUST be flagged
41
- 4. **Confirmation before write** — template JSON MUST be shown to user via AskUserQuestion before writing to `~/.maestro/templates/workflows/`; cancellation saves draft only
40
+ 4. **Confirmation before write** — template JSON MUST be shown to user via user prompt before writing to `~/.pi/agent/packages/pi-maestro-flow/templates/workflows/`; cancellation saves draft only
42
41
  5. **Draft preservation** — abandoning at any confirmation gate MUST save current progress to design-drafts directory; NEVER discard user's partial work
43
42
  6. **Deferred reading only** — node-catalog and template-schema MUST be read at their designated phases (P2, P5), NEVER loaded eagerly at startup
44
43
  </invariants>
@@ -98,7 +97,7 @@ S_PERSIST:
98
97
 
99
98
  ### A_PARSE_INTENT
100
99
 
101
- 1. Parse description (if empty: AskUserQuestion for workflow description)
100
+ 1. Parse description (if empty: user prompt for workflow description)
102
101
  2. Extract candidate nodes via semantic signals:
103
102
 
104
103
  | Signal | Type hint |
@@ -156,8 +155,8 @@ Write `nodes.json`. Display resolved node list.
156
155
 
157
156
  Read deferred `template-schema.md` (fallback to built-in structure).
158
157
  Assemble template JSON: template_id, name, nodes, edges, checkpoints, context_schema, execution_mode.
159
- **Confirmation gate**: AskUserQuestion showing template summary (ID, node count, variables) before writing.
160
- - User confirms → write to `~/.maestro/templates/workflows/<slug>.json` and update index.json.
158
+ **Confirmation gate**: user prompt showing template summary (ID, node count, variables) before writing.
159
+ - User confirms → write to `~/.pi/agent/packages/pi-maestro-flow/templates/workflows/<slug>.json` and update index.json.
161
160
  - User cancels → save draft, do not write template or index.
162
161
  Display: path, ID, node count, variables, execute/edit commands. Clean up draft dir.
163
162
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: maestro-execute
3
3
  description: "Use when a confirmed plan is ready for implementation Arguments: [milestone] [--auto-commit] [--method agent|cli|auto] [--executor <tool>] [--dir <path>] [-y]"
4
- allowed-tools: Read Write Edit Bash Glob Grep Agent AskUserQuestion
4
+ allowed-tools: Read Write Edit Bash Glob Grep teammate maestro
5
5
  ---
6
6
 
7
7
  <purpose>
@@ -9,14 +9,11 @@ Execute confirmed plan tasks via wave-based parallel dispatch.
9
9
  Consumes plan from maestro-plan; registers EXC artifact in state.json.
10
10
  </purpose>
11
11
 
12
- <required_reading>
13
- @~/.maestro/workflows/execute.md
14
- </required_reading>
12
+ > **Required**: Read `~/.pi/agent/packages/pi-maestro-flow/workflows/execute.md` before proceeding.
15
13
 
16
- <deferred_reading>
17
- - [task.json](~/.maestro/templates/task.json) — read when reading task definitions
18
- - [state.json](~/.maestro/templates/state.json) — read when registering artifact
19
- </deferred_reading>
14
+ > **Reference files** (read when needed):
15
+ > - [task.json](~/.pi/agent/packages/pi-maestro-flow/templates/task.json) — read when reading task definitions
16
+ > - [state.json](~/.pi/agent/packages/pi-maestro-flow/templates/state.json) — read when registering artifact
20
17
 
21
18
  <context>
22
19
  $ARGUMENTS — milestone number, or no args for current milestone, with optional flags.
@@ -26,7 +23,7 @@ $ARGUMENTS — milestone number, or no args for current milestone, with optional
26
23
  | Flag | Effect | Default |
27
24
  |------|--------|---------|
28
25
  | `--auto-commit` | Auto-commit after each completed task | false |
29
- | `--method agent\|cli\|auto` | Execution method: Agent tool, CLI delegate, or auto-select | `auto` |
26
+ | `--method agent\|cli\|auto` | Execution method: teammate tool, CLI delegate, or auto-select | `auto` |
30
27
  | `--executor <tool>` | Explicit executor tool for CLI delegate mode | First enabled in config |
31
28
  | `--dir <path>` | Execute a specific plan directory instead of auto-discovery | — |
32
29
  | `-y` / `--yes` | Auto mode — skip ALL interactive questions (executor selection, wave progression, blocked prompts) | false |
@@ -63,7 +60,7 @@ Bash("maestro collab preflight --phase <phase-number>")
63
60
  ```
64
61
  If exit code is 1, present warnings and ask whether to proceed.
65
62
 
66
- Follow '~/.maestro/workflows/execute.md' completely.
63
+ Follow '~/.pi/agent/packages/pi-maestro-flow/workflows/execute.md' completely.
67
64
 
68
65
  ### Phase Gates (MANDATORY, BLOCKING)
69
66
 
@@ -82,7 +79,7 @@ Follow '~/.maestro/workflows/execute.md' completely.
82
79
  - IF all tasks in a wave failed: halt wave progression, report E005 with per-task failure reasons. Do NOT proceed to next wave — downstream waves depend on current wave outputs.
83
80
  - IF cascading failure (wave N fails → wave N+1 has unmet dependencies): mark all dependent tasks in subsequent waves as `blocked` with reason `"upstream_wave_failed"`. Skip blocked waves and proceed to completion with partial results.
84
81
  - `-y` mode: auto-skip blocked waves without prompting, log warning W002.
85
- - Non `-y` mode: `AskUserQuestion` with options [retry wave / skip and continue / abort execution].
82
+ - Non `-y` mode: `user prompt` with options [retry wave / skip and continue / abort execution].
86
83
 
87
84
  **GATE 3: All Tasks → Completion**
88
85
  - REQUIRED: All waves executed in dependency order (or explicitly skipped via Gate 2.5).
@@ -127,7 +124,7 @@ For each completed/failed TASK with issue_id:
127
124
  all task_refs completed → proposed issue.status = "resolved"
128
125
  any task_ref failed → proposed issue.status = "in_progress"
129
126
  IF NOT auto_mode (-y):
130
- AskUserQuestion: "Update issue {issue_id} status to {proposed_status}?" [Yes / Skip]
127
+ user prompt: "Update issue {issue_id} status to {proposed_status}?" [Yes / Skip]
131
128
  IF Skip → continue to next task without writing
132
129
  Append history entry: { action: "executed", at: <ISO>, by: "maestro-execute", summary: "TASK-{NNN} {status}" }
133
130
  Write updated issue back to issues.jsonl
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: maestro-fork
3
3
  description: "Create or sync milestone worktree for parallel dev Arguments: -m <milestone-number> [--base <branch>] [--sync]"
4
- allowed-tools: Read Write Edit Bash Glob Grep Agent AskUserQuestion
4
+ allowed-tools: Read Write Edit Bash Glob Grep teammate maestro
5
5
  ---
6
6
 
7
7
  <purpose>
@@ -9,14 +9,11 @@ Create or sync a milestone-level git worktree for parallel development.
9
9
  Supports `--sync` mode to pull latest main changes into an active worktree.
10
10
  </purpose>
11
11
 
12
- <required_reading>
13
- @~/.maestro/workflows/fork.md
14
- </required_reading>
12
+ > **Required**: Read `~/.pi/agent/packages/pi-maestro-flow/workflows/fork.md` before proceeding.
15
13
 
16
- <deferred_reading>
17
- - [worktrees.json](~/.maestro/templates/worktrees.json) — read when updating registry
18
- - [worktree-scope.json](~/.maestro/templates/worktree-scope.json) — read when writing scope marker
19
- </deferred_reading>
14
+ > **Reference files** (read when needed):
15
+ > - [worktrees.json](~/.pi/agent/packages/pi-maestro-flow/templates/worktrees.json) — read when updating registry
16
+ > - [worktree-scope.json](~/.pi/agent/packages/pi-maestro-flow/templates/worktree-scope.json) — read when writing scope marker
20
17
 
21
18
  <context>
22
19
  $ARGUMENTS -- milestone number and optional flags.
@@ -25,7 +22,7 @@ Modes (`Fork` / `Sync`), flags (`-m`, `--base`, `--sync`), milestone resolution,
25
22
  </context>
26
23
 
27
24
  <execution>
28
- Follow '~/.maestro/workflows/fork.md' completely.
25
+ Follow '~/.pi/agent/packages/pi-maestro-flow/workflows/fork.md' completely.
29
26
 
30
27
  Fork and sync algorithm steps are defined in workflow `fork.md`.
31
28
 
@@ -45,7 +42,7 @@ Fork and sync algorithm steps are defined in workflow `fork.md`.
45
42
  - BLOCKED if missing: worktree creation failed or shared files not copied — do not proceed to artifact scoping.
46
43
 
47
44
  **GATE 3: Artifact Copy → Completion**
48
- - REQUIRED: AskUserQuestion confirmation before registry writes — show milestone scope, worktree path, and state entries to be written. User must confirm or abort.
45
+ - REQUIRED: user prompt confirmation before registry writes — show milestone scope, worktree path, and state entries to be written. User must confirm or abort.
49
46
  - REQUIRED: `worktree-scope.json` written with milestone scope (after confirmation).
50
47
  - REQUIRED: Scoped `state.json` written (only this milestone's artifacts) (after confirmation).
51
48
  - REQUIRED: `worktrees.json` registry updated in main worktree (after confirmation).
@@ -67,7 +64,7 @@ Fork and sync algorithm steps are defined in workflow `fork.md`.
67
64
  |-----------|-----------|
68
65
  | Fork complete | `cd {wt.path} && /maestro-analyze` |
69
66
  | Fork + automated | `maestro delegate "run full lifecycle for milestone" --cd {wt.path} --mode write` |
70
- | Fork + status check | Skill({ skill: "manage-status" }) |
67
+ | Fork + status check | invoke /skill: "manage-status" }) |
71
68
  | Sync complete | Resume work in worktree |
72
69
  | Sync conflicts found | Resolve manually, then retry |
73
70
  </completion>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: maestro-grill
3
3
  description: "Use when stress-testing a plan, idea, or requirement against codebase reality before brainstorming Arguments: <topic|plan> [-y] [-c] [--from <source>] [--depth shallow|standard|deep]"
4
- allowed-tools: Read Write Edit Bash Glob Grep Agent AskUserQuestion
4
+ allowed-tools: Read Write Edit Bash Glob Grep teammate maestro
5
5
  ---
6
6
 
7
7
  <purpose>
@@ -10,13 +10,10 @@ Socratic stress-testing of plans/ideas against codebase reality. Produces grill-
10
10
  Pipeline position: BEFORE brainstorm (stress-test → then elaborate).
11
11
  </purpose>
12
12
 
13
- <required_reading>
14
- @~/.maestro/workflows/grill.md
15
- </required_reading>
13
+ > **Required**: Read `~/.pi/agent/packages/pi-maestro-flow/workflows/grill.md` before proceeding.
16
14
 
17
- <deferred_reading>
18
- - [state.json](~/.maestro/templates/state.json) — read when registering artifact
19
- </deferred_reading>
15
+ > **Reference files** (read when needed):
16
+ > - [state.json](~/.pi/agent/packages/pi-maestro-flow/templates/state.json) — read when registering artifact
20
17
 
21
18
  <context>
22
19
  $ARGUMENTS -- topic/plan text for interactive mode, or --from source for upstream input.
@@ -47,7 +44,7 @@ $ARGUMENTS -- topic/plan text for interactive mode, or --from source for upstrea
47
44
  </context>
48
45
 
49
46
  <interview_protocol>
50
- Follows @~/.maestro/workflows/interview-mechanics.md standard.
47
+ Follows `~/.pi/agent/packages/pi-maestro-flow/workflows/interview-mechanics.md` standard.
51
48
 
52
49
  **Interaction mode override**: adversarial Socratic — NOT menu-driven
53
50
  **Question style**:
@@ -62,7 +59,7 @@ Follows @~/.maestro/workflows/interview-mechanics.md standard.
62
59
  </interview_protocol>
63
60
 
64
61
  <execution>
65
- Follow '~/.maestro/workflows/grill.md' completely.
62
+ Follow '~/.pi/agent/packages/pi-maestro-flow/workflows/grill.md' completely.
66
63
 
67
64
  ### Phase Gates (MANDATORY, BLOCKING)
68
65
 
@@ -116,11 +113,11 @@ Status verdicts:
116
113
 
117
114
  | Condition | Suggestion |
118
115
  |-----------|-----------|
119
- | Need multi-role elaboration | `Skill({ skill: "maestro-brainstorm", args: "{topic} --from grill:{artifact_id}" })` |
120
- | Need deep technical analysis | `Skill({ skill: "maestro-analyze", args: "{topic} --from grill:{artifact_id}" })` |
121
- | Scope is clear, ready for roadmap | `Skill({ skill: "maestro-roadmap", args: "--from grill:{artifact_id}" })` |
122
- | Need formal spec package | `Skill({ skill: "maestro-blueprint", args: "--from grill:{artifact_id}" })` |
123
- | More branches to walk | `Skill({ skill: "maestro-grill", args: "{topic} -c" })` |
116
+ | Need multi-role elaboration | `invoke /skill: "maestro-brainstorm", args: "{topic} --from grill:{artifact_id}" })` |
117
+ | Need deep technical analysis | `invoke /skill: "maestro-analyze", args: "{topic} --from grill:{artifact_id}" })` |
118
+ | Scope is clear, ready for roadmap | `invoke /skill: "maestro-roadmap", args: "--from grill:{artifact_id}" })` |
119
+ | Need formal spec package | `invoke /skill: "maestro-blueprint", args: "--from grill:{artifact_id}" })` |
120
+ | More branches to walk | `invoke /skill: "maestro-grill", args: "{topic} -c" })` |
124
121
  </completion>
125
122
 
126
123
  <error_codes>
@@ -143,9 +140,9 @@ Status verdicts:
143
140
  - [ ] Risk register captures all unresolved tensions
144
141
  - [ ] `context-package.json` generated with schema "context-package/1.0"
145
142
  - [ ] Artifact registered in state.json (type=grill, id=GRL-xxx)
146
- - [ ] Session sealed via finish-work (finish-work.md includes AskUserQuestion confirmation before state.json artifact registration and optional spec/knowhow extraction)
143
+ - [ ] Session sealed via finish-work (finish-work.md includes user prompt confirmation before state.json artifact registration and optional spec/knowhow extraction)
147
144
  </success_criteria>
148
145
 
149
146
  <on_complete>
150
- @~/.maestro/workflows/finish-work.md — SESSION_DIR={output_dir}, SESSION_TYPE=grill, SESSION_ID={artifact_id}, LINKED_MILESTONE=null
147
+ Read and follow `~/.pi/agent/packages/pi-maestro-flow/workflows/finish-work.md`. — SESSION_DIR={output_dir}, SESSION_TYPE=grill, SESSION_ID={artifact_id}, LINKED_MILESTONE=null
151
148
  </on_complete>