pi-maestro-flow 0.2.0 → 0.3.1

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 +18 -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 -5
  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 +8 -8
  28. package/skills/maestro-amend/SKILL.md +4 -4
  29. package/skills/maestro-analyze/SKILL.md +9 -9
  30. package/skills/maestro-blueprint/SKILL.md +7 -7
  31. package/skills/maestro-brainstorm/SKILL.md +10 -10
  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 +10 -10
  35. package/skills/maestro-execute/SKILL.md +8 -8
  36. package/skills/maestro-fork/SKILL.md +7 -7
  37. package/skills/maestro-grill/SKILL.md +12 -12
  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 +8 -8
  42. package/skills/maestro-merge/SKILL.md +6 -6
  43. package/skills/maestro-milestone-audit/SKILL.md +3 -3
  44. package/skills/maestro-milestone-complete/SKILL.md +8 -8
  45. package/skills/maestro-milestone-release/SKILL.md +9 -9
  46. package/skills/maestro-next/SKILL.md +5 -5
  47. package/skills/maestro-overlay/SKILL.md +19 -19
  48. package/skills/maestro-plan/SKILL.md +8 -8
  49. package/skills/maestro-player/SKILL.md +5 -5
  50. package/skills/maestro-quick/SKILL.md +5 -5
  51. package/skills/maestro-ralph/SKILL.md +15 -15
  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 +17 -17
  56. package/skills/maestro-roadmap/SKILL.md +7 -7
  57. package/skills/maestro-swarm-workflow/SKILL.md +9 -9
  58. package/skills/maestro-tools-execute/SKILL.md +5 -5
  59. package/skills/maestro-tools-register/SKILL.md +7 -7
  60. package/skills/maestro-ui-codify/SKILL.md +8 -8
  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 -4
  64. package/skills/manage-drift-realign/SKILL.md +7 -7
  65. package/skills/manage-harvest/SKILL.md +5 -5
  66. package/skills/manage-issue/SKILL.md +4 -4
  67. package/skills/manage-issue-discover/SKILL.md +7 -7
  68. package/skills/manage-kg-extractors/SKILL.md +3 -3
  69. package/skills/manage-knowhow/SKILL.md +3 -3
  70. package/skills/manage-knowhow-capture/SKILL.md +4 -4
  71. package/skills/manage-knowledge-audit/SKILL.md +5 -5
  72. package/skills/manage-status/SKILL.md +3 -3
  73. package/skills/manage-wiki/SKILL.md +5 -5
  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 -3
  81. package/skills/quality-debug/SKILL.md +3 -3
  82. package/skills/quality-refactor/SKILL.md +3 -3
  83. package/skills/quality-retrospective/SKILL.md +9 -9
  84. package/skills/quality-review/SKILL.md +4 -4
  85. package/skills/quality-sync/SKILL.md +3 -3
  86. package/skills/quality-test/SKILL.md +4 -4
  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 -2
  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 -5
  102. package/skills/spec-load/SKILL.md +3 -3
  103. package/skills/spec-remove/SKILL.md +4 -4
  104. package/skills/spec-setup/SKILL.md +6 -6
  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,10 +1,10 @@
1
1
  ---
2
2
  name: odyssey-improve
3
3
  description: "Long-running codebase improvement cycle — multi-dimensional audit, deep diagnosis, targeted fix, verify, generalize, and engineering knowledge persistence Arguments: <target> [--dimensions <list>] [--fix-threshold <severity>] [--skip-fix] [--skip-generalize] [--auto] [-y] [-c] [--heartbeat]"
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
- <base>@~/.maestro/workflows/odyssey-base.md</base>
7
+ <base>~/.pi/agent/packages/pi-maestro-flow/workflows/odyssey-base.md</base>
8
8
 
9
9
  <purpose>
10
10
  survey → 6-dimension audit → diagnose → fix → verify → generalize → discover → persist.
@@ -154,7 +154,7 @@ S_INTAKE → S_SURVEY → S_AUDIT → S_DIAGNOSE → S_FIX → S_VERIFY → S_GE
154
154
  <transitions>
155
155
  S_INTAKE → S_INTAKE : -c + session found → A_RESUME
156
156
  S_INTAKE → S_SURVEY : target resolved → A_INTAKE
157
- S_INTAKE → S_INTAKE : no target → AskUserQuestion
157
+ S_INTAKE → S_INTAKE : no target → user prompt
158
158
 
159
159
  S_SURVEY → S_AUDIT : complete
160
160
 
@@ -222,19 +222,19 @@ Commit: `"odyssey-improve({slug}): AUDIT — multi-dimension review"`
222
222
  Root cause analysis for critical/high findings — don't fix symptoms.
223
223
 
224
224
  1. Group by dimension, prioritize by severity. For each: hypothesis → trace code path + git history → evidence phase=diagnosis
225
- 2. Ambiguity → evidence phase=decision; Normal: AskUserQuestion | `-y`: defer
225
+ 2. Ambiguity → evidence phase=decision; Normal: user prompt | `-y`: defer
226
226
  3. CLI-assisted for complex findings: `maestro delegate --role analyze --mode analysis` (`run_in_background: true`)
227
227
  4. Write `session.json.diagnoses[]`. Update §4. Mark G3.
228
228
 
229
229
  Commit: `"odyssey-improve({slug}): DIAGNOSE — root cause analysis"`
230
230
 
231
231
  ### A_ESCALATE_DIAGNOSIS
232
- `retries++`. < 3: `maestro delegate --role analyze`, new hypotheses, → S_DIAGNOSE. >= 3: Normal → AskUserQuestion | `-y` → INCONCLUSIVE → S_RECORD.
232
+ `retries++`. < 3: `maestro delegate --role analyze`, new hypotheses, → S_DIAGNOSE. >= 3: Normal → user prompt | `-y` → INCONCLUSIVE → S_RECORD.
233
233
 
234
234
  ### A_FIX
235
235
  1. Exhaustive fix: ALL diagnosed issues by severity tier (critical → high → medium → low within fix_threshold), one dimension at a time. After each tier, re-verify **current tier's dimension only** (not all dimensions) — new findings at same or higher severity append to current tier. Cross-dimension regression checks run once at S_VERIFY after all tiers complete.
236
236
  2. For each fix: implement → evidence phase=fix
237
- 3. Normal: AskUserQuestion per-fix confirmation | `-y`: auto-proceed, record `deferred`
237
+ 3. Normal: user prompt per-fix confirmation | `-y`: auto-proceed, record `deferred`
238
238
 
239
239
  Commit: `"odyssey-improve({slug}): FIX — improvements applied"`
240
240
 
@@ -306,7 +306,7 @@ Commit: `"odyssey-improve({slug}): GENERALIZE — generalization scan complete"`
306
306
  | risk + complex | Create issue |
307
307
  | safe | Skip with logged per-item reason |
308
308
 
309
- Normal: AskUserQuestion per hit | `-y`: auto-fix bugs with fix_template, create issue for rest
309
+ Normal: user prompt per hit | `-y`: auto-fix bugs with fix_template, create issue for rest
310
310
 
311
311
  3. **Cross-phase loops:** `cross_phase_loops++` on fix/diagnose return. `loops >= max_loops` → must log per-item reasons.
312
312
 
@@ -324,12 +324,12 @@ Commit: `"odyssey-improve({slug}): DISCOVER — discovery triage complete"`
324
324
  - Reliability pattern → `/spec-add coding`
325
325
  Completion summary lists suggested `/spec-add` commands.
326
326
 
327
- 3. Mark G7 done. Pending decisions: Normal → AskUserQuestion | `-y` → skip (show deferred count).
327
+ 3. Mark G7 done. Pending decisions: Normal → user prompt | `-y` → skip (show deferred count).
328
328
 
329
329
  4. **Goal audit (hardened):**
330
330
  - `done` → confirmed
331
331
  - `skipped` → confirmed ONLY if corresponding `skip_when` flag is true
332
- - **Hard rule:** G5 and G6 CANNOT be `skipped` unless `skip_generalize == true`. Pending without flag → `failed` (Normal: AskUserQuestion | `-y`: record `failed`)
332
+ - **Hard rule:** G5 and G6 CANNOT be `skipped` unless `skip_generalize == true`. Pending without flag → `failed` (Normal: user prompt | `-y`: record `failed`)
333
333
  - `phase_goals_all_done = true` only when all goals pass this audit
334
334
 
335
335
  5. `current_state = "COMPLETED"`, emit completion summary.
@@ -364,11 +364,11 @@ Commit: `"odyssey-improve({slug}): RECORD — summary and knowledge persistence"
364
364
 
365
365
  | Decision Point | Normal | `-y` |
366
366
  |---------------|--------|------|
367
- | A_FIX improvement confirmation | AskUserQuestion | auto-proceed, `deferred` |
368
- | A_DIAGNOSE ambiguity | AskUserQuestion | best-effort, `deferred` |
369
- | A_ESCALATE 3-strike | AskUserQuestion 3-way | auto INCONCLUSIVE |
370
- | A_DISCOVER hit routing | AskUserQuestion | auto create issue |
371
- | A_DISCOVER ambiguous items | AskUserQuestion | all `deferred` |
367
+ | A_FIX improvement confirmation | user prompt | auto-proceed, `deferred` |
368
+ | A_DIAGNOSE ambiguity | user prompt | best-effort, `deferred` |
369
+ | A_ESCALATE 3-strike | user prompt 3-way | auto INCONCLUSIVE |
370
+ | A_DISCOVER hit routing | user prompt | auto create issue |
371
+ | A_DISCOVER ambiguous items | user prompt | all `deferred` |
372
372
 
373
373
  `deferred` items shown in completion summary; recoverable via `-c`.
374
374
 
@@ -379,7 +379,7 @@ Exhaust iteration until all findings actioned (fix/issue/decision)
379
379
  and phase_goals_all_done=true.
380
380
  Fix by severity tiers, re-verify after each tier.
381
381
  Baseline captured before fix, compared after to confirm improvement.
382
- Pending decisions must AskUserQuestion — no silent resolve.
382
+ Pending decisions must user prompt — no silent resolve.
383
383
  ```
384
384
 
385
385
  </appendix>
@@ -1,10 +1,10 @@
1
1
  ---
2
2
  name: odyssey-planex
3
3
  description: "Requirement-driven iterative cycle — plan, execute, strict verify, fix loop until acceptance criteria met Arguments: <requirement> [--template <name>] [--max-iterations N] [--skip-generalize] [--auto] [--method agent|cli|auto] [--executor <tool>] [--skip-verify] [--heartbeat] [-y] [-c]"
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
- <base>@~/.maestro/workflows/odyssey-base.md</base>
7
+ <base>~/.pi/agent/packages/pi-maestro-flow/workflows/odyssey-base.md</base>
8
8
 
9
9
  <purpose>
10
10
  Requirement-to-delivery closed loop: parse requirement → define acceptance criteria →
@@ -153,7 +153,7 @@ S_INTAKE → S_PLAN → S_EXECUTE → S_VERIFY → S_FIX → S_GENERALIZE → S_
153
153
  <transitions>
154
154
  S_INTAKE → S_INTAKE : -c + session found (resume)
155
155
  S_INTAKE → S_PLAN : requirement + criteria defined
156
- S_INTAKE → S_INTAKE : no requirement → AskUserQuestion
156
+ S_INTAKE → S_INTAKE : no requirement → user prompt
157
157
 
158
158
  S_PLAN → S_EXECUTE
159
159
  S_EXECUTE → S_VERIFY
@@ -182,7 +182,7 @@ S_RECORD → END
182
182
 
183
183
  1. Parse requirement and flags, generate slug, create SESSION_DIR
184
184
  2. **Define acceptance criteria** — analyze requirement → derive testable criteria. Each gets `verify_method`: test | grep | cli-review | manual
185
- - Normal: AskUserQuestion to confirm/edit
185
+ - Normal: user prompt to confirm/edit
186
186
  - `-y`: auto-derive, record `{"phase":"decision","type":"criteria-confirmation","status":"deferred"}`
187
187
  3. Search prior knowledge: `maestro search`, related sessions
188
188
  4. Write session.json + understanding.md section 1. Mark G1 done. Emit Goal Prompt.
@@ -214,7 +214,7 @@ Commit: `"odyssey-planex({slug}): PLAN — create execution plan"`
214
214
 
215
215
  Load available tools: `maestro delegate-config show --json`.
216
216
 
217
- Present AskUserQuestion with 3 questions:
217
+ Present user prompt with 3 questions:
218
218
  1. **Executor** — Auto (domain routing) | Agent (all tasks) | specific CLI tool | Other (custom domain routing)
219
219
  2. **Review** — Skip | {tool} review (git diff quality check)
220
220
  3. **Verify** — Auto (delegate convergence + structure + anti-pattern check) | specific tool | Skip
@@ -239,7 +239,7 @@ Execute tasks per plan order. Independent tasks may run in parallel.
239
239
 
240
240
  **Agent path:**
241
241
  ```
242
- Spawn Agent with: task definition, acceptance criteria refs, prior task summaries, specs_content
242
+ dispatch via teammate with: task definition, acceptance criteria refs, prior task summaries, specs_content
243
243
  Agent implements → verifies convergence → auto-fix (max 3) → returns result
244
244
  ```
245
245
 
@@ -335,7 +335,7 @@ Iron gate — every acceptance criterion checked objectively.
335
335
  | `test` | Run relevant tests, check pass/fail |
336
336
  | `grep` | Grep for expected pattern |
337
337
  | `cli-review` | `maestro delegate "PURPOSE: Verify criterion {criterion_id}: {criterion}\nTASK: Read implementation code \| Check behavior matches criterion \| Report pass/fail with file:line evidence\nMODE: analysis\nCONTEXT: @{relevant_files}\nEXPECTED: JSON {criterion_id, status: passed\|failed, evidence: [{file, line, detail}]}" --role review --mode analysis` |
338
- | `manual` | Normal: AskUserQuestion / `-y`: record `deferred` |
338
+ | `manual` | Normal: user prompt / `-y`: record `deferred` |
339
339
 
340
340
  Record per criterion: `{"phase":"verification","type":"criterion-check","criterion_id":"AC1","method":"","result":"passed|failed","evidence":"","iteration":N}`. Update acceptance_criteria[].status. Append to iterations[].
341
341
 
@@ -421,7 +421,7 @@ Commit: `"odyssey-planex({slug}): GENERALIZE — pattern scan complete"`
421
421
  | risk + complex | Create issue |
422
422
  | safe | Skip with logged per-item reason |
423
423
 
424
- Normal: AskUserQuestion per hit | `-y`: auto-route to execute, create issue for rest
424
+ Normal: user prompt per hit | `-y`: auto-route to execute, create issue for rest
425
425
 
426
426
  3. **Cross-phase loops:** `loops >= max_loops` → must log per-item reasons, advance to S_RECORD.
427
427
 
@@ -438,12 +438,12 @@ Commit: `"odyssey-planex({slug}): DISCOVER — findings classified"`
438
438
  - Acceptance criteria template → `/spec-add review`
439
439
  - Generalization pattern → `/spec-add coding`
440
440
 
441
- 3. Mark G7 done. Pending decisions: Normal → AskUserQuestion | `-y` → skip (show deferred count).
441
+ 3. Mark G7 done. Pending decisions: Normal → user prompt | `-y` → skip (show deferred count).
442
442
 
443
443
  4. **Goal audit (hardened):**
444
444
  - `done` → confirmed
445
445
  - `skipped` → confirmed ONLY if corresponding `skip_when` flag is true
446
- - **Hard rule:** G5 and G6 CANNOT be `skipped` unless `skip_generalize == true`. Pending without flag → `failed` (Normal: AskUserQuestion | `-y`: record `failed`)
446
+ - **Hard rule:** G5 and G6 CANNOT be `skipped` unless `skip_generalize == true`. Pending without flag → `failed` (Normal: user prompt | `-y`: record `failed`)
447
447
  - `phase_goals_all_done = true` only when all goals pass this audit
448
448
 
449
449
  5. `current_state = "COMPLETED"`, emit completion summary.
@@ -474,12 +474,12 @@ Commit: `"odyssey-planex({slug}): RECORD — session summary"`
474
474
 
475
475
  | Decision Point | Normal | `-y` |
476
476
  |---------------|--------|------|
477
- | S_INTAKE criteria confirmation | AskUserQuestion | auto-derive, `deferred` |
478
- | S_EXECUTE execution options | AskUserQuestion | use defaults (auto/Skip/Auto), `confirmed: true` |
479
- | S_EXECUTE task blocked (3 retries) | AskUserQuestion: continue or stop | auto continue, log blocked |
480
- | S_VERIFY manual criterion | AskUserQuestion | `deferred` |
481
- | S_VERIFY max iteration reached | AskUserQuestion | auto accept, `deferred` |
482
- | A_DISCOVER hit routing | AskUserQuestion | auto-route to execute, create issue for rest |
477
+ | S_INTAKE criteria confirmation | user prompt | auto-derive, `deferred` |
478
+ | S_EXECUTE execution options | user prompt | use defaults (auto/Skip/Auto), `confirmed: true` |
479
+ | S_EXECUTE task blocked (3 retries) | user prompt: continue or stop | auto continue, log blocked |
480
+ | S_VERIFY manual criterion | user prompt | `deferred` |
481
+ | S_VERIFY max iteration reached | user prompt | auto accept, `deferred` |
482
+ | A_DISCOVER hit routing | user prompt | auto-route to execute, create issue for rest |
483
483
 
484
484
  ### Goal Prompt convergence rules
485
485
 
@@ -1,10 +1,10 @@
1
1
  ---
2
2
  name: odyssey-review-test-fix
3
3
  description: "Deep review + fix cycle — archaeology, exploration, multi-dimensional review, targeted fix, generalization, discovery, and knowledge persistence Arguments: <target> [--dimensions <list>] [--fix-threshold critical|high|medium|low|all] [--skip-fix] [--skip-generalize] [--auto] [-y] [-c] [--heartbeat]"
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
- <base>@~/.maestro/workflows/odyssey-base.md</base>
7
+ <base>~/.pi/agent/packages/pi-maestro-flow/workflows/odyssey-base.md</base>
8
8
 
9
9
  <purpose>
10
10
  archaeology → explore → multi-dimensional review → fix ALL findings → confirm → generalize → discover → persist. Zero-residual: every finding gets an action.
@@ -139,7 +139,7 @@ S_INTAKE → S_ARCHAEOLOGY → S_EXPLORE → S_REVIEW → S_FIX → S_CONFIRM
139
139
  <transitions>
140
140
  S_INTAKE → S_INTAKE : -c + session found → A_RESUME_SESSION
141
141
  S_INTAKE → S_ARCHAEOLOGY : target resolved → A_INTAKE
142
- S_INTAKE → S_INTAKE : no target → AskUserQuestion
142
+ S_INTAKE → S_INTAKE : no target → user prompt
143
143
 
144
144
  S_ARCHAEOLOGY → S_EXPLORE : complete
145
145
  S_EXPLORE → S_REVIEW : complete
@@ -214,7 +214,7 @@ for tier in [critical, high, medium, low].filter(>= threshold):
214
214
  tier done → auto-commit
215
215
  ```
216
216
 
217
- Normal: AskUserQuestion per tier. `-y`: auto-fix all.
217
+ Normal: user prompt per tier. `-y`: auto-fix all.
218
218
  Remaining > 0 → retry (max_fix_rounds = 5). Unchanged 2 rounds → classify each individually. After 5 rounds with remaining > 0 → escalate: Normal: AskUserQuestion (continue/accept/reclassify) | `-y`: classify remaining as `deferred`, proceed.
219
219
  Blanket "pre-existing" forbidden.
220
220
 
@@ -288,7 +288,7 @@ Commit: `"odyssey-review({slug}): GENERALIZE — pattern scan complete"`
288
288
  | risk + complex | Create issue |
289
289
  | safe | Skip with logged per-item reason |
290
290
 
291
- Normal: AskUserQuestion per hit | `-y`: auto-fix with template, create issue for rest
291
+ Normal: user prompt per hit | `-y`: auto-fix with template, create issue for rest
292
292
 
293
293
  3. **Cross-phase loops:** `loops >= max_loops` → must log per-item reasons, advance to S_RECORD.
294
294
 
@@ -304,12 +304,12 @@ Commit: `"odyssey-review({slug}): DISCOVER — sibling triage complete"`
304
304
  - Architecture violation pattern → `/spec-add arch`
305
305
  - Reusable generalization pattern → `/spec-add coding`
306
306
 
307
- 2. Mark G6 done. Pending decisions: Normal → AskUserQuestion | `-y` → skip (show deferred count).
307
+ 2. Mark G6 done. Pending decisions: Normal → user prompt | `-y` → skip (show deferred count).
308
308
 
309
309
  3. **Goal audit (hardened):**
310
310
  - `done` → confirmed
311
311
  - `skipped` → confirmed ONLY if corresponding `skip_when` flag is true
312
- - **Hard rule:** G4 and G5 CANNOT be `skipped` unless `skip_generalize == true`. Pending without flag → `failed` (Normal: AskUserQuestion | `-y`: record `failed`)
312
+ - **Hard rule:** G4 and G5 CANNOT be `skipped` unless `skip_generalize == true`. Pending without flag → `failed` (Normal: user prompt | `-y`: record `failed`)
313
313
  - `phase_goals_all_done = true` only when all goals pass this audit
314
314
 
315
315
  4. `current_state = "COMPLETED"`, emit completion summary.
@@ -338,10 +338,10 @@ Commit: `"odyssey-review({slug}): RECORD — summary and knowledge persistence"`
338
338
 
339
339
  | Decision Point | Normal | `-y` |
340
340
  |---------------|--------|------|
341
- | S_FIX tier candidates | AskUserQuestion | auto-fix, deferred |
342
- | S_FIX re-review new findings | AskUserQuestion | auto-append |
341
+ | S_FIX tier candidates | user prompt | auto-fix, deferred |
342
+ | S_FIX re-review new findings | user prompt | auto-append |
343
343
  | S_CONFIRM needs_rework | Display → S_FIX | auto proceed |
344
- | A_DISCOVER hit routing | AskUserQuestion | auto-fix with template, create issue for rest |
344
+ | A_DISCOVER hit routing | user prompt | auto-fix with template, create issue for rest |
345
345
 
346
346
  ### Goal Prompt convergence rules
347
347
 
@@ -349,7 +349,7 @@ Commit: `"odyssey-review({slug}): RECORD — summary and knowledge persistence"`
349
349
  Stop when remaining_actionable == 0, confirmation == confirmed,
350
350
  generalization exhausted, phase_goals_all_done=true.
351
351
  Fix iterates by severity tier; each tier re-reviews modified area, new findings appended.
352
- Every finding must have action (fix/issue/decision). Decision pending must AskUserQuestion.
352
+ Every finding must have action (fix/issue/decision). Decision pending must user prompt.
353
353
  ```
354
354
 
355
355
  </appendix>
@@ -1,10 +1,10 @@
1
1
  ---
2
2
  name: odyssey-ui
3
3
  description: "Long-running UI optimization cycle — visual survey, multi-dimensional audit, divergent exploration, fix, verify, generalize, and design knowledge persistence Arguments: <target> [--dimensions <list>] [--fix-threshold <severity>] [--skip-fix] [--skip-generalize] [--auto] [-y] [-c] [--heartbeat]"
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
- <base>@~/.maestro/workflows/odyssey-base.md</base>
7
+ <base>~/.pi/agent/packages/pi-maestro-flow/workflows/odyssey-base.md</base>
8
8
 
9
9
  <purpose>
10
10
  survey → 6-dimension audit → divergent exploration → fix → verify → generalize → discover → persist.
@@ -138,7 +138,7 @@ S_INTAKE → S_SURVEY → S_AUDIT → S_DIVERGE → S_FIX → S_VERIFY → S_GEN
138
138
  <transitions>
139
139
  S_INTAKE → S_INTAKE : -c + session found → A_RESUME
140
140
  S_INTAKE → S_SURVEY : target resolved → A_INTAKE
141
- S_INTAKE → S_INTAKE : no target → AskUserQuestion
141
+ S_INTAKE → S_INTAKE : no target → user prompt
142
142
 
143
143
  S_SURVEY → S_AUDIT : complete
144
144
  S_AUDIT → S_DIVERGE : complete
@@ -221,7 +221,7 @@ Commit: `"odyssey-ui({slug}): DIVERGE — creative exploration"`
221
221
  Skip if `--skip-fix`.
222
222
  1. **Exhaustive fix**: ALL findings/ideas by priority tier (critical → high → medium → low + high-impact ideas). After each tier, re-review — new findings append.
223
223
  2. Each fix → evidence phase=fix
224
- 3. Normal: AskUserQuestion per-fix | `-y`: auto-proceed, record `deferred`
224
+ 3. Normal: user prompt per-fix | `-y`: auto-proceed, record `deferred`
225
225
 
226
226
  Commit: `"odyssey-ui({slug}): FIX — implement improvements"`
227
227
 
@@ -291,7 +291,7 @@ Commit: `"odyssey-ui({slug}): GENERALIZE — pattern scan complete"`
291
291
  | risk + design decision needed | Create issue |
292
292
  | safe | Skip with logged per-item reason |
293
293
 
294
- Normal: AskUserQuestion per hit | `-y`: auto-fix with template, create issue for rest
294
+ Normal: user prompt per hit | `-y`: auto-fix with template, create issue for rest
295
295
 
296
296
  3. **Cross-phase loops:** `loops >= max_loops` → must log per-item reasons, advance to S_RECORD.
297
297
 
@@ -307,12 +307,12 @@ Commit: `"odyssey-ui({slug}): DISCOVER — sibling triage complete"`
307
307
  - Accessibility rule: WCAG requirement + implementation approach → `/spec-add ui`
308
308
  - Reusable generalization pattern: signature + application scope → `/spec-add coding`
309
309
 
310
- 2. Mark G7 done. Pending decisions: Normal → AskUserQuestion | `-y` → skip (show deferred count).
310
+ 2. Mark G7 done. Pending decisions: Normal → user prompt | `-y` → skip (show deferred count).
311
311
 
312
312
  3. **Goal audit (hardened):**
313
313
  - `done` → confirmed
314
314
  - `skipped` → confirmed ONLY if corresponding `skip_when` flag is true
315
- - **Hard rule:** G5 and G6 CANNOT be `skipped` unless `skip_generalize == true`. Pending without flag → `failed` (Normal: AskUserQuestion | `-y`: record `failed`)
315
+ - **Hard rule:** G5 and G6 CANNOT be `skipped` unless `skip_generalize == true`. Pending without flag → `failed` (Normal: user prompt | `-y`: record `failed`)
316
316
  - `phase_goals_all_done = true` only when all goals pass this audit
317
317
 
318
318
  4. `current_state = "COMPLETED"`, emit completion summary.
@@ -343,8 +343,8 @@ Commit: `"odyssey-ui({slug}): RECORD — summary and knowledge persistence"`
343
343
 
344
344
  | Decision Point | Normal | `-y` |
345
345
  |---------------|--------|------|
346
- | A_FIX improvement confirmation | AskUserQuestion | auto-proceed, deferred |
347
- | A_DISCOVER hit routing | AskUserQuestion | auto-fix with template, create issue for rest |
346
+ | A_FIX improvement confirmation | user prompt | auto-proceed, deferred |
347
+ | A_DISCOVER hit routing | user prompt | auto-fix with template, create issue for rest |
348
348
 
349
349
  ### Goal Prompt convergence rules
350
350
 
@@ -352,7 +352,7 @@ Commit: `"odyssey-ui({slug}): RECORD — summary and knowledge persistence"`
352
352
  Stop when audit + diverge findings all addressed (fix/issue/decision),
353
353
  phase_goals_all_done=true. Fix by impact x severity per tier.
354
354
  Re-review after each tier — new findings append and continue.
355
- Pending decisions must AskUserQuestion — no self-resolve.
355
+ Pending decisions must user prompt — no self-resolve.
356
356
  ```
357
357
 
358
358
  </appendix>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: prompt-generator
3
3
  description: "Generate or convert Claude Code prompt files — command orchestrators, skill files, agent role definitions, or style conversion of existing files. Follows GSD-style content separation with built-in quality gates. Triggers on \"create command\", \"new command\", \"create skill\", \"new skill\", \"create agent\", \"new agent\", \"convert command\", \"convert skill\", \"convert agent\", \"prompt generator\", \"优化\"."
4
- allowed-tools: Read Write Edit Bash Glob AskUserQuestion
4
+ allowed-tools: Read Write Edit Bash Glob maestro
5
5
  ---
6
6
 
7
7
  <purpose>
@@ -169,7 +169,7 @@ Read 1-2 similar files to extract patterns: section structure, naming convention
169
169
  | Standard | Multi-aspect domain | `<role>` + 2-4 domain sections |
170
170
  | Expert | Deep domain with rules | `<role>` + 4-6 domain sections |
171
171
 
172
- If unclear, ask user with AskUserQuestion.
172
+ If unclear, ask user with user prompt.
173
173
 
174
174
  ## 5. Generate Content
175
175
 
@@ -193,7 +193,7 @@ Generate a complete command file with:
193
193
  **Command writing rules:**
194
194
  - Steps are **numbered** (`## 1.`, `## 2.`) — follow `plan-phase.md` and `new-project.md` style
195
195
  - Use banners for phase transitions: `━━━ SKILL ► ACTION ━━━`
196
- - Agent spawning uses `Agent({ subagent_type, prompt, description, run_in_background })` pattern
196
+ - Agent spawning uses `teammate({ subagent_type, prompt, description, run_in_background })` pattern
197
197
  - Prompt to agents uses `<objective>`, `<files_to_read>`, `<output>` blocks
198
198
  - Include `<offer_next>` block with formatted completion status
199
199
  - Handle agent return markers: `## TASK COMPLETE`, `## TASK BLOCKED`, `## CHECKPOINT REACHED`
@@ -341,7 +341,7 @@ Set `$TARGET_PATH = $SOURCE_PATH` (in-place conversion) unless user specifies ou
341
341
  | `<process>` with numbered steps | At least 3 `## N.` headers |
342
342
  | Step 1 is initialization | Parses args or loads context |
343
343
  | Last step is status/report | Displays results or routes to `<offer_next>` |
344
- | Agent spawning (if complex) | `Agent({` call with `subagent_type` |
344
+ | Agent spawning (if complex) | `teammate({` call with `subagent_type` |
345
345
  | Agent prompt structure | `<files_to_read>` + `<objective>` or `<output>` blocks |
346
346
  | Return handling | Routes on `## TASK COMPLETE` / `## TASK BLOCKED` markers |
347
347
  | `<offer_next>` | Banner + summary + next command suggestion |
@@ -375,7 +375,7 @@ Set `$TARGET_PATH = $SOURCE_PATH` (in-place conversion) unless user specifies ou
375
375
  | Examples present | Each domain section has 1+ comparison table or decision table |
376
376
  | `<output_contract>` | Defines return markers (COMPLETE/BLOCKED/CHECKPOINT) |
377
377
  | `<quality_gate>` | 3+ checkbox self-check items |
378
- | Content separation | No `AskUserQuestion`, no banner display, no argument parsing |
378
+ | Content separation | No `user prompt`, no banner display, no argument parsing |
379
379
 
380
380
  ### 6d. Quality Gate Result
381
381
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: quality-auto-test
3
3
  description: "Use when test coverage needs automated expansion or existing tests need iterative convergence Arguments: <phase> [-y] [-c N] [--max-iter N] [--layer L0|L1|L2|L3] [--dry-run] [--re-run]"
4
- allowed-tools: Read Write Edit Bash Glob Grep AskUserQuestion
4
+ allowed-tools: Read Write Edit Bash Glob Grep maestro
5
5
  ---
6
6
 
7
7
  <purpose>
@@ -11,7 +11,7 @@ Layers L0→L3 sequential (fail-fast), scenarios within layer parallel. `--max-i
11
11
  </purpose>
12
12
 
13
13
  <required_reading>
14
- @~/.maestro/workflows/auto-test.md
14
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/auto-test.md
15
15
  </required_reading>
16
16
 
17
17
  <context>
@@ -60,7 +60,7 @@ Flags, artifact context resolution, and output formats defined in workflow auto-
60
60
  </invariants>
61
61
 
62
62
  <execution>
63
- Follow '~/.maestro/workflows/auto-test.md' completely.
63
+ Follow '~/.pi/agent/packages/pi-maestro-flow/workflows/auto-test.md' completely.
64
64
 
65
65
  ### Phase Gates (MANDATORY, BLOCKING)
66
66
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: quality-debug
3
3
  description: "Use when bugs, test failures, or unexpected behavior need systematic root cause investigation Arguments: [issue description] [-c] [--from-uat <phase>] [--parallel]"
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,7 +9,7 @@ Debug issues using scientific method with subagent isolation and persistent debu
9
9
  </purpose>
10
10
 
11
11
  <required_reading>
12
- @~/.maestro/workflows/debug.md
12
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/debug.md
13
13
  </required_reading>
14
14
 
15
15
  <context>
@@ -54,7 +54,7 @@ Each artifact's type determines its outputs at `.workflow/{a.path}/`:
54
54
  </invariants>
55
55
 
56
56
  <execution>
57
- Follow '~/.maestro/workflows/debug.md' completely.
57
+ Follow '~/.pi/agent/packages/pi-maestro-flow/workflows/debug.md' completely.
58
58
 
59
59
  ### Phase Gates (MANDATORY, BLOCKING)
60
60
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: quality-refactor
3
3
  description: "Use when accumulated tech debt needs systematic identification and safe reduction Arguments: [<scope>]"
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,7 +9,7 @@ Targeted refactoring with safety guarantees: plan → confirm → execute with t
9
9
  </purpose>
10
10
 
11
11
  <required_reading>
12
- @~/.maestro/workflows/refactor.md
12
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/refactor.md
13
13
  </required_reading>
14
14
 
15
15
  <context>
@@ -42,7 +42,7 @@ If not provided, prompt user for scope.
42
42
  </invariants>
43
43
 
44
44
  <execution>
45
- Follow '~/.maestro/workflows/refactor.md' completely.
45
+ Follow '~/.pi/agent/packages/pi-maestro-flow/workflows/refactor.md' completely.
46
46
 
47
47
  ### Phase Gates (MANDATORY, BLOCKING)
48
48
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: quality-retrospective
3
3
  description: "Use after completing a phase to extract lessons, patterns, and improvement opportunities Arguments: [phase|N..M] [--lens technical|process|quality|decision] [--all] [--no-route] [--compare N] [-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,14 @@ Post-execution retrospective (复盘): four parallel lenses (technical/process/q
9
9
  </purpose>
10
10
 
11
11
  <required_reading>
12
- @~/.maestro/workflows/retrospective.md
12
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/retrospective.md
13
13
  </required_reading>
14
14
 
15
15
  <deferred_reading>
16
- - @~/.maestro/workflows/issue.md (issues.jsonl schema for auto-creation)
17
- - @~/.maestro/workflows/learn.md (tip routing via manage-knowhow-capture tip)
18
- - @~/.maestro/workflows/verify.md (verification.json schema for quality lens parsing)
19
- - @~/.maestro/workflows/review.md (review.json schema for quality lens parsing)
16
+ - ~/.pi/agent/packages/pi-maestro-flow/workflows/issue.md (issues.jsonl schema for auto-creation)
17
+ - ~/.pi/agent/packages/pi-maestro-flow/workflows/learn.md (tip routing via manage-knowhow-capture tip)
18
+ - ~/.pi/agent/packages/pi-maestro-flow/workflows/verify.md (verification.json schema for quality lens parsing)
19
+ - ~/.pi/agent/packages/pi-maestro-flow/workflows/review.md (review.json schema for quality lens parsing)
20
20
  </deferred_reading>
21
21
 
22
22
  <context>
@@ -44,7 +44,7 @@ Modes (scan/single/range/all) and storage paths defined in workflow retrospectiv
44
44
  </invariants>
45
45
 
46
46
  <execution>
47
- Follow `~/.maestro/workflows/retrospective.md` Stages 1–8 in order.
47
+ Follow `~/.pi/agent/packages/pi-maestro-flow/workflows/retrospective.md` Stages 1–8 in order.
48
48
 
49
49
  ### Phase Gates (MANDATORY, BLOCKING)
50
50
 
@@ -64,7 +64,7 @@ Follow `~/.maestro/workflows/retrospective.md` Stages 1–8 in order.
64
64
  - REQUIRED: `retrospective.json` written with metrics, findings, insights, routing.
65
65
  - REQUIRED: `retrospective.md` written (human-readable).
66
66
  - REQUIRED: Issue rows match canonical `issues.jsonl` schema (status "open", full fields).
67
- - REQUIRED: Note tips routed via `Skill({ skill: "manage-knowhow-capture", args: "tip ..." })`.
67
+ - REQUIRED: Note tips routed via `invoke /skill: "manage-knowhow-capture", args: "tip ..." })`.
68
68
  - REQUIRED: Unless `-y` flag is set, confirm before each external write (issues.jsonl append, spec-entry append, knowhow-capture). With `-y`, skip all confirmation prompts.
69
69
  - BLOCKED if routing incomplete: finish all write operations before reporting.
70
70
 
@@ -100,7 +100,7 @@ Follow `~/.maestro/workflows/retrospective.md` Stages 1–8 in order.
100
100
  - [ ] If routing enabled (default): every recommendation either created an artifact or was explicitly skipped by user
101
101
  - [ ] Spec entries (if any) appended as `<spec-entry>` to matching `.workflow/specs/{category-file}.md`
102
102
  - [ ] Issue rows (if any) match canonical issues.jsonl schema (status "open", full issue_history, all required fields)
103
- - [ ] Note tips (if any) created via `Skill({ skill: "manage-knowhow-capture", args: "tip ..." })`
103
+ - [ ] Note tips (if any) created via `invoke /skill: "manage-knowhow-capture", args: "tip ..." })`
104
104
  - [ ] `.workflow/specs/learnings.md` appended with one `<spec-entry>` per insight regardless of routing target
105
105
  - [ ] No existing phase artifacts modified (verification.json, review.json, plan.json untouched)
106
106
  - [ ] Confirmation banner displays routing counts and next-step suggestions
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: quality-review
3
3
  description: "Use after execution to evaluate code quality across correctness, security, performance, and architecture Arguments: <phase> [--level quick|standard|deep] [--dimensions security,architecture,...] [--skip-specs]"
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,11 +9,11 @@ Multi-dimensional code review on a phase's changed files. Three levels (quick/st
9
9
  </purpose>
10
10
 
11
11
  <required_reading>
12
- @~/.maestro/workflows/review.md
12
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/review.md
13
13
  </required_reading>
14
14
 
15
15
  <deferred_reading>
16
- - [index.json](~/.maestro/templates/index.json) — read when updating phase index after review
16
+ - [index.json](~/.pi/agent/packages/pi-maestro-flow/templates/index.json) — read when updating phase index after review
17
17
  </deferred_reading>
18
18
 
19
19
  <context>
@@ -60,7 +60,7 @@ Each artifact's type determines its outputs at `.workflow/{a.path}/`:
60
60
  </invariants>
61
61
 
62
62
  <execution>
63
- Follow '~/.maestro/workflows/review.md' completely.
63
+ Follow '~/.pi/agent/packages/pi-maestro-flow/workflows/review.md' completely.
64
64
 
65
65
  ### Phase Gates (MANDATORY, BLOCKING)
66
66
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: quality-sync
3
3
  description: "Sync codebase docs by tracing git diff impact Arguments: [--full] [--since <commit|HEAD~N>] [--dry-run]"
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,7 +9,7 @@ Sync codebase docs after code changes: git diff → trace impact via doc-index.j
9
9
  </purpose>
10
10
 
11
11
  <required_reading>
12
- @~/.maestro/workflows/sync.md
12
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/sync.md
13
13
  </required_reading>
14
14
 
15
15
  <context>
@@ -30,7 +30,7 @@ $ARGUMENTS -- optional flags:
30
30
  </invariants>
31
31
 
32
32
  <execution>
33
- Follow '~/.maestro/workflows/sync.md' completely.
33
+ Follow '~/.pi/agent/packages/pi-maestro-flow/workflows/sync.md' completely.
34
34
 
35
35
  ### Phase Gates (MANDATORY, BLOCKING)
36
36
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: quality-test
3
3
  description: "Use when implementation needs user acceptance testing with interactive verification and gap closure Arguments: [phase] [--smoke] [--auto-fix] [--frontend-verify]"
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,7 +9,7 @@ UAT-style conversational testing for a completed phase. Interactive scenario wal
9
9
  </purpose>
10
10
 
11
11
  <required_reading>
12
- @~/.maestro/workflows/test.md
12
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/test.md
13
13
  </required_reading>
14
14
 
15
15
  <context>
@@ -31,7 +31,7 @@ Flags, artifact context resolution, and output directory format defined in workf
31
31
  </invariants>
32
32
 
33
33
  <execution>
34
- **Mode select:** `--frontend-verify` → 走下方 **Frontend Verify Mode**(确定性浏览器 smoke,**不是**对话式 UAT);否则 Follow '~/.maestro/workflows/test.md' completely.
34
+ **Mode select:** `--frontend-verify` → 走下方 **Frontend Verify Mode**(确定性浏览器 smoke,**不是**对话式 UAT);否则 Follow '~/.pi/agent/packages/pi-maestro-flow/workflows/test.md' completely.
35
35
 
36
36
  ### Frontend Verify Mode (`--frontend-verify`)
37
37
 
@@ -54,7 +54,7 @@ Ralph-invoked 完成:`maestro ralph complete <idx> --status {STATUS} --evidenc
54
54
 
55
55
  ---
56
56
 
57
- Follow '~/.maestro/workflows/test.md' completely.
57
+ Follow '~/.pi/agent/packages/pi-maestro-flow/workflows/test.md' completely.
58
58
 
59
59
  ### Phase Gates (MANDATORY, BLOCKING)
60
60
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: scholar-anti-ai-writing
3
3
  description: "Remove AI writing patterns from academic prose. Detects and fixes inflated symbolism, promotional language, superficial analyses, vague attributions, AI vocabulary, and formulaic structures. Supports English and Chinese. Triggers on \"remove AI patterns\", \"humanize text\", \"anti-AI polish\", \"去除AI写作痕迹\", \"人性化处理\"."
4
- allowed-tools: Read Write Edit Bash Glob Grep AskUserQuestion TodoWrite
4
+ allowed-tools: Read Write Edit Bash Glob Grep maestro
5
5
  ---
6
6
 
7
7
  # Scholar Anti-AI Writing
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: scholar-citation-verify
3
3
  description: "Four-layer citation verification for academic papers. Scans LaTeX/BibTeX files, verifies every citation via WebSearch and Google Scholar, generates verification report with fix suggestions. Triggers on \"verify citations\", \"check references\", \"citation verification\", \"prevent fake citations\", \"引用验证\"."
4
- allowed-tools: Read Write Edit Bash Glob Grep WebSearch WebFetch AskUserQuestion TodoWrite
4
+ allowed-tools: Read Write Edit Bash Glob Grep WebSearch WebFetch maestro
5
5
  ---
6
6
 
7
7
  # Scholar Citation Verify