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.
- package/README.md +44 -72
- package/agents/cross-role-reviewer.md +1 -1
- package/agents/impeccable-agent.md +1 -1
- package/agents/ralph-executor.md +1 -1
- package/agents/team-worker.md +1 -1
- package/agents/workflow-analyzer.md +1 -1
- package/agents/workflow-codebase-mapper.md +1 -1
- package/agents/workflow-collab-planner.md +1 -1
- package/agents/workflow-debugger.md +1 -1
- package/agents/workflow-executor.md +1 -1
- package/agents/workflow-integration-checker.md +1 -1
- package/agents/workflow-nyquist-auditor.md +1 -1
- package/agents/workflow-phase-researcher.md +1 -1
- package/agents/workflow-planner.md +1 -1
- package/agents/workflow-project-researcher.md +1 -1
- package/agents/workflow-reviewer.md +1 -1
- package/agents/workflow-verifier.md +1 -1
- package/package.json +13 -4
- package/skills/codify-to-knowhow/SKILL.md +1 -1
- package/skills/delegation-check/SKILL.md +1 -1
- package/skills/domain-add/SKILL.md +5 -7
- package/skills/insight-challenge/SKILL.md +1 -1
- package/skills/learn-decompose/SKILL.md +4 -4
- package/skills/learn-follow/SKILL.md +5 -5
- package/skills/learn-investigate/SKILL.md +5 -5
- package/skills/learn-second-opinion/SKILL.md +5 -5
- package/skills/maestro/SKILL.md +9 -10
- package/skills/maestro-amend/SKILL.md +3 -3
- package/skills/maestro-analyze/SKILL.md +10 -13
- package/skills/maestro-blueprint/SKILL.md +8 -11
- package/skills/maestro-brainstorm/SKILL.md +11 -14
- package/skills/maestro-collab/SKILL.md +4 -4
- package/skills/maestro-companion/SKILL.md +3 -3
- package/skills/maestro-composer/SKILL.md +11 -12
- package/skills/maestro-execute/SKILL.md +9 -12
- package/skills/maestro-fork/SKILL.md +8 -11
- package/skills/maestro-grill/SKILL.md +13 -16
- package/skills/maestro-guard/SKILL.md +5 -5
- package/skills/maestro-help/SKILL.md +3 -3
- package/skills/maestro-impeccable/SKILL.md +7 -7
- package/skills/maestro-init/SKILL.md +9 -12
- package/skills/maestro-merge/SKILL.md +6 -8
- package/skills/maestro-milestone-audit/SKILL.md +3 -5
- package/skills/maestro-milestone-complete/SKILL.md +9 -12
- package/skills/maestro-milestone-release/SKILL.md +9 -11
- package/skills/maestro-next/SKILL.md +5 -5
- package/skills/maestro-overlay/SKILL.md +16 -16
- package/skills/maestro-plan/SKILL.md +9 -12
- package/skills/maestro-player/SKILL.md +5 -5
- package/skills/maestro-quick/SKILL.md +5 -7
- package/skills/maestro-ralph/SKILL.md +16 -17
- package/skills/maestro-ralph-cli/SKILL.md +6 -6
- package/skills/maestro-ralph-cli-execute/SKILL.md +2 -2
- package/skills/maestro-ralph-execute/SKILL.md +4 -4
- package/skills/maestro-ralph-v2/SKILL.md +18 -19
- package/skills/maestro-roadmap/SKILL.md +8 -9
- package/skills/maestro-swarm-workflow/SKILL.md +9 -9
- package/skills/maestro-tools-execute/SKILL.md +5 -7
- package/skills/maestro-tools-register/SKILL.md +7 -9
- package/skills/maestro-ui-codify/SKILL.md +9 -10
- package/skills/maestro-universal-workflow/SKILL.md +15 -15
- package/skills/maestro-update/SKILL.md +10 -10
- package/skills/manage-codebase-rebuild/SKILL.md +4 -6
- package/skills/manage-drift-realign/SKILL.md +8 -11
- package/skills/manage-harvest/SKILL.md +6 -9
- package/skills/manage-issue/SKILL.md +5 -8
- package/skills/manage-issue-discover/SKILL.md +8 -11
- package/skills/manage-kg-extractors/SKILL.md +3 -3
- package/skills/manage-knowhow/SKILL.md +3 -5
- package/skills/manage-knowhow-capture/SKILL.md +4 -6
- package/skills/manage-knowledge-audit/SKILL.md +6 -9
- package/skills/manage-status/SKILL.md +3 -5
- package/skills/manage-wiki/SKILL.md +5 -7
- package/skills/odyssey-debug/SKILL.md +13 -13
- package/skills/odyssey-improve/SKILL.md +15 -15
- package/skills/odyssey-planex/SKILL.md +16 -16
- package/skills/odyssey-review-test-fix/SKILL.md +11 -11
- package/skills/odyssey-ui/SKILL.md +10 -10
- package/skills/prompt-generator/SKILL.md +5 -5
- package/skills/quality-auto-test/SKILL.md +3 -5
- package/skills/quality-debug/SKILL.md +3 -5
- package/skills/quality-refactor/SKILL.md +3 -5
- package/skills/quality-retrospective/SKILL.md +10 -13
- package/skills/quality-review/SKILL.md +5 -8
- package/skills/quality-sync/SKILL.md +3 -5
- package/skills/quality-test/SKILL.md +4 -6
- package/skills/scholar-anti-ai-writing/SKILL.md +1 -1
- package/skills/scholar-citation-verify/SKILL.md +1 -1
- package/skills/scholar-experiment/SKILL.md +2 -2
- package/skills/scholar-ideation/SKILL.md +7 -7
- package/skills/scholar-latex-organizer/SKILL.md +1 -1
- package/skills/scholar-publish/SKILL.md +3 -3
- package/skills/scholar-rebuttal-pro/SKILL.md +3 -3
- package/skills/scholar-review/SKILL.md +1 -1
- package/skills/scholar-writing/SKILL.md +1 -1
- package/skills/security-audit/SKILL.md +2 -4
- package/skills/skill-generator/SKILL.md +3 -3
- package/skills/skill-iter-tune/SKILL.md +3 -3
- package/skills/skill-simplify/SKILL.md +1 -1
- package/skills/skill-tuning/SKILL.md +1 -1
- package/skills/spec-add/SKILL.md +5 -7
- package/skills/spec-load/SKILL.md +3 -5
- package/skills/spec-remove/SKILL.md +4 -6
- package/skills/spec-setup/SKILL.md +6 -8
- package/skills/team-adversarial-swarm/SKILL.md +5 -5
- package/skills/team-arch-opt/SKILL.md +2 -2
- package/skills/team-brainstorm/SKILL.md +3 -3
- package/skills/team-coordinate/SKILL.md +4 -4
- package/skills/team-designer/SKILL.md +1 -1
- package/skills/team-executor/SKILL.md +3 -3
- package/skills/team-frontend/SKILL.md +2 -2
- package/skills/team-frontend-debug/SKILL.md +3 -3
- package/skills/team-interactive-craft/SKILL.md +2 -2
- package/skills/team-issue/SKILL.md +3 -3
- package/skills/team-lifecycle-v4/SKILL.md +4 -4
- package/skills/team-motion-design/SKILL.md +2 -2
- package/skills/team-perf-opt/SKILL.md +3 -3
- package/skills/team-planex/SKILL.md +2 -2
- package/skills/team-quality-assurance/SKILL.md +3 -3
- package/skills/team-review/SKILL.md +3 -3
- package/skills/team-roadmap-dev/SKILL.md +3 -3
- package/skills/team-swarm/SKILL.md +4 -4
- package/skills/team-tech-debt/SKILL.md +2 -2
- package/skills/team-testing/SKILL.md +3 -3
- package/skills/team-ui-polish/SKILL.md +2 -2
- package/skills/team-uidesign/SKILL.md +2 -2
- package/skills/team-ultra-analyze/SKILL.md +4 -4
- package/skills/team-ux-improve/SKILL.md +3 -3
- package/skills/team-visual-a11y/SKILL.md +2 -2
- package/skills/workflow-skill-designer/SKILL.md +8 -8
- package/templates/business-test-report.json +68 -0
- package/templates/config.json +48 -0
- package/templates/context.md +16 -0
- package/templates/doc-index.json +11 -0
- package/templates/index.json +68 -0
- package/templates/issue.json +36 -0
- package/templates/plan.json +38 -0
- package/templates/project.md +60 -0
- package/templates/reflection-log.md +20 -0
- package/templates/roadmap.md +45 -0
- package/templates/scratch-index.json +19 -0
- package/templates/search-tool.json +1 -0
- package/templates/search-tools.md +47 -0
- package/templates/state.json +18 -0
- package/templates/task-summary.md +21 -0
- package/templates/task.json +89 -0
- package/templates/terminology-template.json +22 -0
- package/templates/uat.md +21 -0
- package/templates/validation.json +31 -0
- package/templates/verification.json +37 -0
- package/templates/workflow.md +14 -0
- package/templates/worktree-scope.json +9 -0
- package/templates/worktrees.json +26 -0
- package/workflows/agy-instructions.md +156 -0
- package/workflows/analyze.md +768 -0
- package/workflows/auto-test.md +705 -0
- package/workflows/blueprint.md +406 -0
- package/workflows/boundary-grill.md +50 -0
- package/workflows/brainstorm.md +508 -0
- package/workflows/business-test.md +574 -0
- package/workflows/chinese-response.md +25 -0
- package/workflows/claude-instructions.md +167 -0
- package/workflows/codebase-rebuild.md +267 -0
- package/workflows/codebase-refresh.md +168 -0
- package/workflows/codex-instructions.md +156 -0
- package/workflows/coding-philosophy.md +70 -0
- package/workflows/command-authoring.md +823 -0
- package/workflows/debug.md +409 -0
- package/workflows/delegate-usage.md +99 -0
- package/workflows/domain-add.md +121 -0
- package/workflows/drift-realign.md +396 -0
- package/workflows/execute.md +631 -0
- package/workflows/explore-usage.md +93 -0
- package/workflows/finish-work.md +124 -0
- package/workflows/fork.md +162 -0
- package/workflows/grill.md +494 -0
- package/workflows/harvest.md +478 -0
- package/workflows/impeccable.md +168 -0
- package/workflows/init.md +157 -0
- package/workflows/instruction-authoring-guide.md +97 -0
- package/workflows/integration-test.md +186 -0
- package/workflows/interview-mechanics.md +8 -0
- package/workflows/issue-analyze.md +20 -0
- package/workflows/issue-discover.md +238 -0
- package/workflows/issue-execute.md +110 -0
- package/workflows/issue-gaps-analyze.codex.md +256 -0
- package/workflows/issue-gaps-analyze.md +215 -0
- package/workflows/issue-plan.md +110 -0
- package/workflows/issue.md +338 -0
- package/workflows/knowhow.md +429 -0
- package/workflows/knowledge-audit.md +355 -0
- package/workflows/learn.md +271 -0
- package/workflows/maestro-chain-execute.md +20 -0
- package/workflows/maestro-link-coordinate.md +114 -0
- package/workflows/maestro-super.md +120 -0
- package/workflows/maestro.md +501 -0
- package/workflows/map.md +74 -0
- package/workflows/merge.md +122 -0
- package/workflows/milestone-audit.md +155 -0
- package/workflows/milestone-complete.md +167 -0
- package/workflows/milestone-release.md +82 -0
- package/workflows/odyssey-base-codex.md +305 -0
- package/workflows/odyssey-base.md +256 -0
- package/workflows/overlays.md +109 -0
- package/workflows/plan.md +520 -0
- package/workflows/quick.md +350 -0
- package/workflows/ralph-amend-goal.md +177 -0
- package/workflows/refactor.md +87 -0
- package/workflows/retrospective.md +471 -0
- package/workflows/review.md +448 -0
- package/workflows/roadmap-common.md +193 -0
- package/workflows/roadmap.md +106 -0
- package/workflows/shell-exec-protocol.md +30 -0
- package/workflows/skill-authoring.md +265 -0
- package/workflows/spec-generate.md +475 -0
- package/workflows/specs-add.md +123 -0
- package/workflows/specs-load.md +76 -0
- package/workflows/specs-remove.md +104 -0
- package/workflows/specs-setup.md +316 -0
- package/workflows/status.md +149 -0
- package/workflows/sync.md +116 -0
- package/workflows/tdd.md +255 -0
- package/workflows/test-gen.md +226 -0
- package/workflows/test.md +385 -0
- package/workflows/tools-spec.md +70 -0
- package/workflows/ui-codify-extract.md +372 -0
- package/workflows/ui-codify-knowhow.md +258 -0
- package/workflows/ui-codify-package.md +159 -0
- package/workflows/ui-codify.md +227 -0
- package/workflows/ui-design.md +393 -0
- package/workflows/ui-style.md +201 -0
- package/workflows/verify.md +557 -0
- package/workflows/wiki-connect.md +153 -0
- package/workflows/wiki-digest.md +180 -0
- package/workflows/wiki-manage.md +113 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: odyssey-debug
|
|
3
3
|
description: "Long-running debug cycle — archaeology, diagnosis, fix, confirmation, generalization, discovery, and knowledge persistence Arguments: <issue> [--template <name>] [--skip-fix] [--skip-generalize] [--auto] [-y] [-c] [--heartbeat]"
|
|
4
|
-
allowed-tools: Read Write Edit Bash Glob Grep
|
|
4
|
+
allowed-tools: Read Write Edit Bash Glob Grep teammate maestro
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
<base
|
|
7
|
+
<base>`~/.pi/agent/packages/pi-maestro-flow/workflows/odyssey-base.md</base>`
|
|
8
8
|
|
|
9
9
|
<purpose>
|
|
10
10
|
archaeology → explore → diagnose → fix & confirm → generalize → discover siblings → persist.
|
|
@@ -95,7 +95,7 @@ S_INTAKE → S_ARCHAEOLOGY → S_EXPLORE → S_DIAGNOSE → S_FIX → S_CONFIRM
|
|
|
95
95
|
<transitions>
|
|
96
96
|
S_INTAKE → S_INTAKE : -c + session found → A_RESUME_SESSION
|
|
97
97
|
S_INTAKE → S_ARCHAEOLOGY : issue parsed → A_INTAKE
|
|
98
|
-
S_INTAKE → S_INTAKE : no issue, no session →
|
|
98
|
+
S_INTAKE → S_INTAKE : no issue, no session → user prompt
|
|
99
99
|
|
|
100
100
|
S_ARCHAEOLOGY → S_EXPLORE : complete
|
|
101
101
|
S_EXPLORE → S_DIAGNOSE : complete
|
|
@@ -156,16 +156,16 @@ Write `explore.json` + evidence phase=explore. Update §3. Mark G2. Commit: `"od
|
|
|
156
156
|
### A_DIAGNOSE
|
|
157
157
|
1. Hypotheses from evidence, ranked [HIGH]/[MEDIUM]/[LOW] → §4
|
|
158
158
|
2. Test each → evidence phase=diagnosis
|
|
159
|
-
3. Ambiguity → evidence phase=decision; Normal:
|
|
159
|
+
3. Ambiguity → evidence phase=decision; Normal: user prompt | `-y`: defer
|
|
160
160
|
4. Confirmed → `session.json.root_cause` + §5. Mark G1.
|
|
161
161
|
|
|
162
162
|
Commit: `"odyssey-debug({slug}): DIAGNOSE — root cause confirmed"`
|
|
163
163
|
|
|
164
164
|
### A_ESCALATE_DIAGNOSIS
|
|
165
|
-
`diagnosis_retries++`. < 3: `maestro delegate --role analyze`, new hypotheses, → S_DIAGNOSE. >= 3: Normal →
|
|
165
|
+
`diagnosis_retries++`. < 3: `maestro delegate --role analyze`, new hypotheses, → S_DIAGNOSE. >= 3: Normal → user prompt | `-y` → INCONCLUSIVE → S_RECORD.
|
|
166
166
|
|
|
167
167
|
### A_FIX
|
|
168
|
-
1. Present root cause + proposed fix. Normal:
|
|
168
|
+
1. Present root cause + proposed fix. Normal: user prompt | `-y`: auto proceed
|
|
169
169
|
2. Implement fix, evidence phase=decision
|
|
170
170
|
|
|
171
171
|
Commit: `"odyssey-debug({slug}): FIX — {summary}"`
|
|
@@ -238,7 +238,7 @@ Commit: `"odyssey-debug({slug}): GENERALIZE — pattern scan complete"`
|
|
|
238
238
|
| risk + complex | Create issue |
|
|
239
239
|
| safe | Skip with logged per-item reason |
|
|
240
240
|
|
|
241
|
-
Normal:
|
|
241
|
+
Normal: user prompt per hit | `-y`: auto-fix bugs with fix_template, create issue for rest
|
|
242
242
|
|
|
243
243
|
3. **Cross-phase loops:** `cross_phase_loops++` on fix/diagnose return. `loops >= max_loops` → must log per-item reasons.
|
|
244
244
|
|
|
@@ -254,12 +254,12 @@ Commit: `"odyssey-debug({slug}): DISCOVER — sibling triage complete"`
|
|
|
254
254
|
- Architecture boundary violation → `/spec-add arch`
|
|
255
255
|
- Reusable generalization pattern → `/spec-add coding`
|
|
256
256
|
|
|
257
|
-
2. Mark G6 done. Pending decisions: Normal →
|
|
257
|
+
2. Mark G6 done. Pending decisions: Normal → user prompt | `-y` → skip (show deferred count).
|
|
258
258
|
|
|
259
259
|
3. **Goal audit (hardened):**
|
|
260
260
|
- `done` → confirmed
|
|
261
261
|
- `skipped` → confirmed ONLY if corresponding `skip_when` flag is true
|
|
262
|
-
- **Hard rule:** G4 and G5 CANNOT be `skipped` unless `skip_generalize == true`. Pending without flag → `failed` (Normal:
|
|
262
|
+
- **Hard rule:** G4 and G5 CANNOT be `skipped` unless `skip_generalize == true`. Pending without flag → `failed` (Normal: user prompt | `-y`: record `failed`)
|
|
263
263
|
- `phase_goals_all_done = true` only when all goals pass this audit
|
|
264
264
|
|
|
265
265
|
4. `current_state = "COMPLETED"`, emit completion summary.
|
|
@@ -290,10 +290,10 @@ Commit: `"odyssey-debug({slug}): RECORD — summary and knowledge persistence"`
|
|
|
290
290
|
|
|
291
291
|
| Decision Point | Normal | `-y` |
|
|
292
292
|
|---------------|--------|------|
|
|
293
|
-
| A_DIAGNOSE ambiguity |
|
|
294
|
-
| A_ESCALATE 3-strike |
|
|
295
|
-
| A_FIX direction |
|
|
296
|
-
| A_DISCOVER hit routing |
|
|
293
|
+
| A_DIAGNOSE ambiguity | user prompt | deferred |
|
|
294
|
+
| A_ESCALATE 3-strike | user prompt | INCONCLUSIVE |
|
|
295
|
+
| A_FIX direction | user prompt | auto proceed |
|
|
296
|
+
| A_DISCOVER hit routing | user prompt | auto-fix bugs with template, create issue for rest |
|
|
297
297
|
|
|
298
298
|
### Goal Prompt convergence rules
|
|
299
299
|
|
|
@@ -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
|
|
4
|
+
allowed-tools: Read Write Edit Bash Glob Grep teammate maestro
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
<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 →
|
|
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:
|
|
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 →
|
|
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:
|
|
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:
|
|
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 →
|
|
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:
|
|
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 |
|
|
368
|
-
| A_DIAGNOSE ambiguity |
|
|
369
|
-
| A_ESCALATE 3-strike |
|
|
370
|
-
| A_DISCOVER hit routing |
|
|
371
|
-
| A_DISCOVER ambiguous items |
|
|
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
|
|
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
|
|
4
|
+
allowed-tools: Read Write Edit Bash Glob Grep teammate maestro
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
<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 →
|
|
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:
|
|
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
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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 →
|
|
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:
|
|
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 |
|
|
478
|
-
| S_EXECUTE execution options |
|
|
479
|
-
| S_EXECUTE task blocked (3 retries) |
|
|
480
|
-
| S_VERIFY manual criterion |
|
|
481
|
-
| S_VERIFY max iteration reached |
|
|
482
|
-
| A_DISCOVER hit routing |
|
|
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
|
|
4
|
+
allowed-tools: Read Write Edit Bash Glob Grep teammate maestro
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
<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 →
|
|
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:
|
|
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:
|
|
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 →
|
|
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:
|
|
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 |
|
|
342
|
-
| S_FIX re-review new findings |
|
|
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 |
|
|
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
|
|
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
|
|
4
|
+
allowed-tools: Read Write Edit Bash Glob Grep teammate maestro
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
<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 →
|
|
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:
|
|
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:
|
|
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 →
|
|
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:
|
|
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 |
|
|
347
|
-
| A_DISCOVER hit routing |
|
|
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
|
|
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
|
|
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
|
|
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 `
|
|
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) | `
|
|
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 `
|
|
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
|
|
4
|
+
allowed-tools: Read Write Edit Bash Glob Grep maestro
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
<purpose>
|
|
@@ -10,9 +10,7 @@ Unified automated testing via CSV layer pipeline. Auto-selects scenario source f
|
|
|
10
10
|
Layers L0→L3 sequential (fail-fast), scenarios within layer parallel. `--max-iter 1` = single-pass; default = full iterative cycle.
|
|
11
11
|
</purpose>
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
@~/.maestro/workflows/auto-test.md
|
|
15
|
-
</required_reading>
|
|
13
|
+
> **Required**: Read `~/.pi/agent/packages/pi-maestro-flow/workflows/auto-test.md` before proceeding.
|
|
16
14
|
|
|
17
15
|
<context>
|
|
18
16
|
Phase or task: $ARGUMENTS (required — phase number)
|
|
@@ -60,7 +58,7 @@ Flags, artifact context resolution, and output formats defined in workflow auto-
|
|
|
60
58
|
</invariants>
|
|
61
59
|
|
|
62
60
|
<execution>
|
|
63
|
-
Follow '~/.maestro/workflows/auto-test.md' completely.
|
|
61
|
+
Follow '~/.pi/agent/packages/pi-maestro-flow/workflows/auto-test.md' completely.
|
|
64
62
|
|
|
65
63
|
### Phase Gates (MANDATORY, BLOCKING)
|
|
66
64
|
|
|
@@ -1,16 +1,14 @@
|
|
|
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
|
|
4
|
+
allowed-tools: Read Write Edit Bash Glob Grep teammate maestro
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
<purpose>
|
|
8
8
|
Debug issues using scientific method with subagent isolation and persistent debug state. Three entry modes (standalone, from-UAT, parallel) and structured root cause collection with UAT feedback loop. Full algorithm defined in workflow debug.md.
|
|
9
9
|
</purpose>
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
@~/.maestro/workflows/debug.md
|
|
13
|
-
</required_reading>
|
|
11
|
+
> **Required**: Read `~/.pi/agent/packages/pi-maestro-flow/workflows/debug.md` before proceeding.
|
|
14
12
|
|
|
15
13
|
<context>
|
|
16
14
|
User's issue: $ARGUMENTS
|
|
@@ -54,7 +52,7 @@ Each artifact's type determines its outputs at `.workflow/{a.path}/`:
|
|
|
54
52
|
</invariants>
|
|
55
53
|
|
|
56
54
|
<execution>
|
|
57
|
-
Follow '~/.maestro/workflows/debug.md' completely.
|
|
55
|
+
Follow '~/.pi/agent/packages/pi-maestro-flow/workflows/debug.md' completely.
|
|
58
56
|
|
|
59
57
|
### Phase Gates (MANDATORY, BLOCKING)
|
|
60
58
|
|
|
@@ -1,16 +1,14 @@
|
|
|
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
|
|
4
|
+
allowed-tools: Read Write Edit Bash Glob Grep teammate maestro
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
<purpose>
|
|
8
8
|
Targeted refactoring with safety guarantees: plan → confirm → execute with test verification per change → reflection-log.md.
|
|
9
9
|
</purpose>
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
@~/.maestro/workflows/refactor.md
|
|
13
|
-
</required_reading>
|
|
11
|
+
> **Required**: Read `~/.pi/agent/packages/pi-maestro-flow/workflows/refactor.md` before proceeding.
|
|
14
12
|
|
|
15
13
|
<context>
|
|
16
14
|
Scope: $ARGUMENTS (required)
|
|
@@ -42,7 +40,7 @@ If not provided, prompt user for scope.
|
|
|
42
40
|
</invariants>
|
|
43
41
|
|
|
44
42
|
<execution>
|
|
45
|
-
Follow '~/.maestro/workflows/refactor.md' completely.
|
|
43
|
+
Follow '~/.pi/agent/packages/pi-maestro-flow/workflows/refactor.md' completely.
|
|
46
44
|
|
|
47
45
|
### Phase Gates (MANDATORY, BLOCKING)
|
|
48
46
|
|
|
@@ -1,23 +1,20 @@
|
|
|
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
|
|
4
|
+
allowed-tools: Read Write Edit Bash Glob Grep teammate maestro
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
<purpose>
|
|
8
8
|
Post-execution retrospective (复盘): four parallel lenses (technical/process/quality/decision) → distill insights → route to spec/knowhow/issue stores.
|
|
9
9
|
</purpose>
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
@~/.maestro/workflows/retrospective.md
|
|
13
|
-
</required_reading>
|
|
11
|
+
> **Required**: Read `~/.pi/agent/packages/pi-maestro-flow/workflows/retrospective.md` before proceeding.
|
|
14
12
|
|
|
15
|
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
</deferred_reading>
|
|
13
|
+
> **Reference files** (read when needed):
|
|
14
|
+
> - `~/.pi/agent/packages/pi-maestro-flow/workflows/issue.md` (issues.jsonl schema for auto-creation)
|
|
15
|
+
> - `~/.pi/agent/packages/pi-maestro-flow/workflows/learn.md` (tip routing via manage-knowhow-capture tip)
|
|
16
|
+
> - `~/.pi/agent/packages/pi-maestro-flow/workflows/verify.md` (verification.json schema for quality lens parsing)
|
|
17
|
+
> - `~/.pi/agent/packages/pi-maestro-flow/workflows/review.md` (review.json schema for quality lens parsing)
|
|
21
18
|
|
|
22
19
|
<context>
|
|
23
20
|
Arguments: $ARGUMENTS
|
|
@@ -44,7 +41,7 @@ Modes (scan/single/range/all) and storage paths defined in workflow retrospectiv
|
|
|
44
41
|
</invariants>
|
|
45
42
|
|
|
46
43
|
<execution>
|
|
47
|
-
Follow `~/.maestro/workflows/retrospective.md` Stages 1–8 in order.
|
|
44
|
+
Follow `~/.pi/agent/packages/pi-maestro-flow/workflows/retrospective.md` Stages 1–8 in order.
|
|
48
45
|
|
|
49
46
|
### Phase Gates (MANDATORY, BLOCKING)
|
|
50
47
|
|
|
@@ -64,7 +61,7 @@ Follow `~/.maestro/workflows/retrospective.md` Stages 1–8 in order.
|
|
|
64
61
|
- REQUIRED: `retrospective.json` written with metrics, findings, insights, routing.
|
|
65
62
|
- REQUIRED: `retrospective.md` written (human-readable).
|
|
66
63
|
- REQUIRED: Issue rows match canonical `issues.jsonl` schema (status "open", full fields).
|
|
67
|
-
- REQUIRED: Note tips routed via `
|
|
64
|
+
- REQUIRED: Note tips routed via `invoke /skill: "manage-knowhow-capture", args: "tip ..." })`.
|
|
68
65
|
- 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
66
|
- BLOCKED if routing incomplete: finish all write operations before reporting.
|
|
70
67
|
|
|
@@ -100,7 +97,7 @@ Follow `~/.maestro/workflows/retrospective.md` Stages 1–8 in order.
|
|
|
100
97
|
- [ ] If routing enabled (default): every recommendation either created an artifact or was explicitly skipped by user
|
|
101
98
|
- [ ] Spec entries (if any) appended as `<spec-entry>` to matching `.workflow/specs/{category-file}.md`
|
|
102
99
|
- [ ] Issue rows (if any) match canonical issues.jsonl schema (status "open", full issue_history, all required fields)
|
|
103
|
-
- [ ] Note tips (if any) created via `
|
|
100
|
+
- [ ] Note tips (if any) created via `invoke /skill: "manage-knowhow-capture", args: "tip ..." })`
|
|
104
101
|
- [ ] `.workflow/specs/learnings.md` appended with one `<spec-entry>` per insight regardless of routing target
|
|
105
102
|
- [ ] No existing phase artifacts modified (verification.json, review.json, plan.json untouched)
|
|
106
103
|
- [ ] Confirmation banner displays routing counts and next-step suggestions
|