pi-maestro-flow 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/agents/team-worker.md +1 -1
  2. package/agents/workflow-analyzer.md +1 -1
  3. package/agents/workflow-codebase-mapper.md +1 -1
  4. package/agents/workflow-collab-planner.md +1 -1
  5. package/agents/workflow-debugger.md +1 -1
  6. package/agents/workflow-executor.md +1 -1
  7. package/agents/workflow-integration-checker.md +1 -1
  8. package/agents/workflow-nyquist-auditor.md +1 -1
  9. package/agents/workflow-phase-researcher.md +1 -1
  10. package/agents/workflow-planner.md +1 -1
  11. package/agents/workflow-project-researcher.md +1 -1
  12. package/agents/workflow-reviewer.md +1 -1
  13. package/agents/workflow-verifier.md +1 -1
  14. package/package.json +8 -3
  15. package/skills/domain-add/SKILL.md +3 -1
  16. package/skills/maestro/SKILL.md +4 -3
  17. package/skills/maestro-amend/SKILL.md +2 -2
  18. package/skills/maestro-analyze/SKILL.md +10 -7
  19. package/skills/maestro-blueprint/SKILL.md +8 -5
  20. package/skills/maestro-brainstorm/SKILL.md +11 -8
  21. package/skills/maestro-composer/SKILL.md +4 -3
  22. package/skills/maestro-execute/SKILL.md +8 -5
  23. package/skills/maestro-fork/SKILL.md +8 -5
  24. package/skills/maestro-grill/SKILL.md +8 -5
  25. package/skills/maestro-init/SKILL.md +9 -6
  26. package/skills/maestro-merge/SKILL.md +3 -1
  27. package/skills/maestro-milestone-audit/SKILL.md +3 -1
  28. package/skills/maestro-milestone-complete/SKILL.md +6 -3
  29. package/skills/maestro-milestone-release/SKILL.md +4 -2
  30. package/skills/maestro-overlay/SKILL.md +4 -4
  31. package/skills/maestro-plan/SKILL.md +10 -7
  32. package/skills/maestro-quick/SKILL.md +3 -1
  33. package/skills/maestro-ralph/SKILL.md +3 -2
  34. package/skills/maestro-ralph-v2/SKILL.md +3 -2
  35. package/skills/maestro-roadmap/SKILL.md +8 -7
  36. package/skills/maestro-tools-execute/SKILL.md +3 -1
  37. package/skills/maestro-tools-register/SKILL.md +3 -1
  38. package/skills/maestro-ui-codify/SKILL.md +6 -5
  39. package/skills/manage-codebase-rebuild/SKILL.md +3 -1
  40. package/skills/manage-drift-realign/SKILL.md +9 -6
  41. package/skills/manage-harvest/SKILL.md +8 -5
  42. package/skills/manage-issue/SKILL.md +6 -3
  43. package/skills/manage-issue-discover/SKILL.md +8 -5
  44. package/skills/manage-knowhow/SKILL.md +3 -1
  45. package/skills/manage-knowhow-capture/SKILL.md +3 -1
  46. package/skills/manage-knowledge-audit/SKILL.md +8 -5
  47. package/skills/manage-status/SKILL.md +3 -1
  48. package/skills/manage-wiki/SKILL.md +3 -1
  49. package/skills/odyssey-debug/SKILL.md +1 -1
  50. package/skills/odyssey-improve/SKILL.md +1 -1
  51. package/skills/odyssey-planex/SKILL.md +1 -1
  52. package/skills/odyssey-review-test-fix/SKILL.md +1 -1
  53. package/skills/odyssey-ui/SKILL.md +1 -1
  54. package/skills/quality-auto-test/SKILL.md +3 -1
  55. package/skills/quality-debug/SKILL.md +3 -1
  56. package/skills/quality-refactor/SKILL.md +3 -1
  57. package/skills/quality-retrospective/SKILL.md +10 -7
  58. package/skills/quality-review/SKILL.md +6 -3
  59. package/skills/quality-sync/SKILL.md +3 -1
  60. package/skills/quality-test/SKILL.md +3 -1
  61. package/skills/security-audit/SKILL.md +3 -1
  62. package/skills/spec-add/SKILL.md +3 -1
  63. package/skills/spec-load/SKILL.md +3 -1
  64. package/skills/spec-remove/SKILL.md +3 -1
  65. package/skills/spec-setup/SKILL.md +3 -1
  66. package/src/providers/provider-registry.ts +15 -10
  67. package/src/tools/delegate.ts +1 -1
  68. package/src/tools/explore.ts +2 -2
  69. package/src/tools/moa.ts +2 -2
@@ -77,7 +77,7 @@ Before executing role-specific logic, load available cross-role context:
77
77
  Follow the instructions loaded from the role_spec body. This contains the domain-specific execution phases for the role. Key rules:
78
78
 
79
79
  - Team workers cannot call Agent() to spawn other agents
80
- - Use CLI tools (`maestro delegate`) or direct tools (Read, Grep, Glob) for analysis — see @~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md for tool selection
80
+ - Use CLI tools (`maestro delegate`) or direct tools (Read, Grep, Glob) for analysis — see ~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md for tool selection
81
81
  - If agent delegation is needed, send a request to the coordinator via SendMessage
82
82
 
83
83
  ### Context-Aware Signal Emission (Optional)
@@ -17,7 +17,7 @@ tools:
17
17
  You perform structured multi-dimensional analysis of technical topics, proposals, or decisions. You evaluate across six standard dimensions, score each with evidence, and produce actionable recommendations. You are invoked when a decision needs rigorous evaluation before proceeding.
18
18
 
19
19
  ## Search Tools
20
- @~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
20
+ ~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
21
21
 
22
22
  ## Process
23
23
 
@@ -15,7 +15,7 @@ tools:
15
15
  You analyze an existing codebase from a specific focus area (tech, arch, features, or concerns). You are typically spawned 4 times in parallel, each mapping a different dimension of the codebase. Your output feeds into planning and execution agents.
16
16
 
17
17
  ## Search Tools
18
- @~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
18
+ ~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
19
19
 
20
20
  ## Process
21
21
 
@@ -14,7 +14,7 @@ tools:
14
14
  You are a collaborative planner that works within a pre-allocated task ID range. Multiple collab-planners run in parallel, each responsible for planning a subset of the work. You coordinate through a shared plan-note.md file and produce task definitions within your assigned ID range.
15
15
 
16
16
  ## Search Tools
17
- @~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md
17
+ ~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md
18
18
 
19
19
  ## Process
20
20
 
@@ -16,7 +16,7 @@ tools:
16
16
  You perform hypothesis-driven debugging of issues identified by verification or testing. You form hypotheses, design experiments, execute them, and log structured evidence. You iterate until the root cause is found and a fix is implemented, or you reach a checkpoint requiring user input. Maximum 5 hypothesis cycles before checkpoint.
17
17
 
18
18
  ## Search Tools
19
- @~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
19
+ ~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
20
20
 
21
21
  ## Process
22
22
 
@@ -16,7 +16,7 @@ tools:
16
16
  You implement a single task from the execution plan. Each task is executed atomically: you make the code changes, verify the convergence criteria are met, run test commands if defined, create an atomic git commit, and write a completion summary. You never modify code outside the task's scope.
17
17
 
18
18
  ## Search Tools
19
- @~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
19
+ ~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
20
20
 
21
21
  ## Process
22
22
 
@@ -14,7 +14,7 @@ tools:
14
14
  You validate cross-phase integration at milestone boundaries. You check that shared interfaces match across phases, data contracts are honored, and no cross-phase dependencies are broken. You are invoked during milestone audits to ensure phases compose correctly.
15
15
 
16
16
  ## Search Tools
17
- @~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
17
+ ~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
18
18
 
19
19
  ## Schema Reference
20
20
  N/A -- reads code artifacts, not task JSON.
@@ -15,7 +15,7 @@ tools:
15
15
  You audit test coverage by mapping requirements to test files, calculating coverage metrics, identifying gaps, and generating test stubs for missing coverage. Named after the Nyquist theorem -- you ensure the testing "sample rate" is sufficient to capture the signal of correctness.
16
16
 
17
17
  ## Search Tools
18
- @~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
18
+ ~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
19
19
 
20
20
  ## Schema Reference
21
21
  - `@templates/validation.json` -- defines the validation artifact schema for coverage data and gap reporting
@@ -16,7 +16,7 @@ tools:
16
16
  You research the implementation approach for a specific phase of the roadmap. You investigate libraries, patterns, and potential pitfalls relevant to that phase's goals, producing a research document that the planner consumes when creating tasks.
17
17
 
18
18
  ## Search Tools
19
- @~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md
19
+ ~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md
20
20
 
21
21
  ## Process
22
22
 
@@ -15,7 +15,7 @@ tools:
15
15
  You create structured execution plans from context, research, and specifications. You group work into feature-level tasks, assign them to parallel waves, set dependencies only when truly needed, and define verifiable convergence criteria. You support both full planning (detailed) and quick mode (one task per feature, minimal waves).
16
16
 
17
17
  ## Search Tools
18
- @~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
18
+ ~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
19
19
 
20
20
  ## Process
21
21
 
@@ -16,7 +16,7 @@ tools:
16
16
  You are a domain researcher for project initialization. You explore a specific angle of the project domain (tech stack, architecture, features, or concerns) and produce a focused research document. You are typically spawned 4 times in parallel, each with a different focus angle.
17
17
 
18
18
  ## Search Tools
19
- @~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md
19
+ ~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md
20
20
 
21
21
  ## Schema Reference
22
22
  N/A -- produces markdown research documents, not task JSON artifacts.
@@ -14,7 +14,7 @@ tools:
14
14
  You perform focused code review for a single dimension (e.g., security, performance, architecture). You analyze changed files, identify issues with evidence, classify severity, and produce structured findings. You are read-only and never modify project files.
15
15
 
16
16
  ## Search Tools
17
- @~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
17
+ ~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
18
18
 
19
19
  ## Process
20
20
 
@@ -14,7 +14,7 @@ tools:
14
14
  You perform goal-backward verification of completed work using a three-layer checking approach. You verify that artifacts exist, contain real substance, and are properly connected to the rest of the system. You also validate each task's convergence criteria individually. You are read-only and never modify project files.
15
15
 
16
16
  ## Search Tools
17
- @~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
17
+ ~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
18
18
 
19
19
  ## Process
20
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-maestro-flow",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Pi extension for Maestro workflow orchestration — explore, delegate, MOA tools, 113 skills, 82 workflow docs, and 28 agent definitions",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -33,7 +33,7 @@
33
33
  ]
34
34
  },
35
35
  "dependencies": {
36
- "pi-maestro-teammate": "^0.1.0",
36
+ "pi-maestro-teammate": "^0.2.0",
37
37
  "@earendil-works/pi-tui": "0.74.0",
38
38
  "typebox": "1.1.24"
39
39
  },
@@ -61,7 +61,12 @@
61
61
  "maestro": {
62
62
  "required": true,
63
63
  "minVersion": "1.0.0",
64
- "features": ["search", "load", "delegate", "explore"],
64
+ "features": [
65
+ "search",
66
+ "load",
67
+ "delegate",
68
+ "explore"
69
+ ],
65
70
  "installUrl": "https://github.com/catlog22/maestro2"
66
71
  }
67
72
  }
@@ -8,7 +8,9 @@ allowed-tools: Read Write Bash Glob Grep maestro
8
8
  Register a domain term into `.workflow/domain/glossary.yaml`. Domain terms are automatically injected into agent context via hooks (domain-compact for all prompts, domain-expanded on keyword match).
9
9
  </purpose>
10
10
 
11
- > **Required**: Read `~/.pi/agent/packages/pi-maestro-flow/workflows/domain-add.md` before proceeding.
11
+ <required_reading>
12
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/domain-add.md
13
+ </required_reading>
12
14
 
13
15
  <context>
14
16
  $ARGUMENTS -- expects `<canonical> "<definition>"`
@@ -9,9 +9,10 @@ Orchestrate all maestro commands: classify intent → select chain → create se
9
9
  Session: `.workflow/.maestro/{session_id}/status.json`.
10
10
  </purpose>
11
11
 
12
- > **Reference files** (read when needed):
13
- > - [maestro.md](~/.pi/agent/packages/pi-maestro-flow/workflows/maestro.md) — read at execution start for intent analysis + chain selection
14
- > - [maestro-super.md](~/.pi/agent/packages/pi-maestro-flow/workflows/maestro-super.md) — read when `--super` flag active
12
+ <deferred_reading>
13
+ - [maestro.md](~/.pi/agent/packages/pi-maestro-flow/workflows/maestro.md) — read at execution start for intent analysis + chain selection
14
+ - [maestro-super.md](~/.pi/agent/packages/pi-maestro-flow/workflows/maestro-super.md) — read when `--super` flag active
15
+ </deferred_reading>
15
16
 
16
17
  <context>
17
18
  $ARGUMENTS — user intent text, or special keywords.
@@ -9,8 +9,8 @@ Signal-driven overlay generator — collect workflow deficiency signals from mul
9
9
  </purpose>
10
10
 
11
11
  <required_reading>
12
- Read and follow `~/.pi/agent/packages/pi-maestro-flow/workflows/overlays.md`.
13
- @~/.maestro/cli-tools.json
12
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/overlays.md
13
+ ~/.maestro/cli-tools.json
14
14
  </required_reading>
15
15
 
16
16
  <context>
@@ -8,12 +8,15 @@ allowed-tools: Read Write Edit Bash Glob Grep teammate maestro
8
8
  Multi-dimensional analysis of a proposal, decision, or architecture choice via CLI-assisted exploration and interactive discussion. Produces analysis.md (6-dimension scoring), context.md (Locked/Free/Deferred decisions), conclusions.json, and discussion.md with Go/No-Go recommendation. Use `--gaps` for issue root cause analysis feeding `plan --gaps`.
9
9
  </purpose>
10
10
 
11
- > **Required**: Read `~/.pi/agent/packages/pi-maestro-flow/workflows/analyze.md` before proceeding.
11
+ <required_reading>
12
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/analyze.md
13
+ </required_reading>
12
14
 
13
- > **Reference files** (read when needed):
14
- > - [state.json](~/.pi/agent/packages/pi-maestro-flow/templates/state.json) — read when registering artifact
15
- > - [issue-gaps-analyze.md](~/.pi/agent/packages/pi-maestro-flow/workflows/issue-gaps-analyze.md) — read when --gaps is triggered
16
- > - [boundary-grill.md](~/.pi/agent/packages/pi-maestro-flow/workflows/boundary-grill.md) — read when boundary conflicts detected (between Phase 4 and Phase 5)
15
+ <deferred_reading>
16
+ - [state.json](~/.pi/agent/packages/pi-maestro-flow/templates/state.json) — read when registering artifact
17
+ - [issue-gaps-analyze.md](~/.pi/agent/packages/pi-maestro-flow/workflows/issue-gaps-analyze.md) — read when --gaps is triggered
18
+ - [boundary-grill.md](~/.pi/agent/packages/pi-maestro-flow/workflows/boundary-grill.md) — read when boundary conflicts detected (between Phase 4 and Phase 5)
19
+ </deferred_reading>
17
20
 
18
21
  <context>
19
22
  $ARGUMENTS -- milestone number for micro mode, topic text for macro/adhoc mode, no args for current milestone.
@@ -61,7 +64,7 @@ Output directory format, artifact registration schema, and output artifact listi
61
64
  </context>
62
65
 
63
66
  <interview_protocol>
64
- Follows `~/.pi/agent/packages/pi-maestro-flow/workflows/interview-mechanics.md` standard.
67
+ Follows ~/.pi/agent/packages/pi-maestro-flow/workflows/interview-mechanics.md standard.
65
68
 
66
69
  **Interaction mode**: convergent menu-driven
67
70
  **Decision tree** (strict order): scope (phase / topic / milestone-wide / adhoc / --gaps) → depth (quick / standard / deep) → dimensions (which of the 6 to keep) → Go/No-Go threshold
@@ -122,7 +125,7 @@ Status verdicts:
122
125
 
123
126
  ### Session seal
124
127
 
125
- Read and follow `~/.pi/agent/packages/pi-maestro-flow/workflows/finish-work.md`. — SESSION_DIR=OUTPUT_DIR, SESSION_TYPE=analyze, SESSION_ID={artifact_id}, LINKED_MILESTONE={target_milestone or null}
128
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/finish-work.md — SESSION_DIR=OUTPUT_DIR, SESSION_TYPE=analyze, SESSION_ID={artifact_id}, LINKED_MILESTONE={target_milestone or null}
126
129
  </completion>
127
130
 
128
131
  <error_codes>
@@ -10,10 +10,13 @@ allowed-tools: Read Write Edit Bash Glob Grep teammate maestro
10
10
  Pipeline: brainstorm (optional) → **blueprint** → analyze / roadmap / plan.
11
11
  </purpose>
12
12
 
13
- > **Required**: Read `~/.pi/agent/packages/pi-maestro-flow/workflows/blueprint.md` before proceeding.
13
+ <required_reading>
14
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/blueprint.md
15
+ </required_reading>
14
16
 
15
- > **Reference files** (read when needed):
16
- > - [blueprint-config.json](~/.pi/agent/packages/pi-maestro-flow/templates/blueprint-config.json) — read when initializing blueprint configuration
17
+ <deferred_reading>
18
+ - [blueprint-config.json](~/.pi/agent/packages/pi-maestro-flow/templates/blueprint-config.json) — read when initializing blueprint configuration
19
+ </deferred_reading>
17
20
 
18
21
  <context>
19
22
  $ARGUMENTS -- idea text, @file reference, or upstream context source.
@@ -43,7 +46,7 @@ $ARGUMENTS -- idea text, @file reference, or upstream context source.
43
46
  </context>
44
47
 
45
48
  <interview_protocol>
46
- Follows `~/.pi/agent/packages/pi-maestro-flow/workflows/interview-mechanics.md` standard.
49
+ Follows ~/.pi/agent/packages/pi-maestro-flow/workflows/interview-mechanics.md standard.
47
50
 
48
51
  **Interaction mode**: convergent menu-driven, depth-first
49
52
  **Decision tree** (strict depth-first): scope (full product / feature set / single feature) → spec type (service / api / library / platform) → focus areas → whether to run codebase exploration → requirement priorities
@@ -152,5 +155,5 @@ Status verdicts:
152
155
  </success_criteria>
153
156
 
154
157
  <on_complete>
155
- Read and follow `~/.pi/agent/packages/pi-maestro-flow/workflows/finish-work.md`. — SESSION_DIR={session_dir}, SESSION_TYPE=blueprint, SESSION_ID={session_id}, LINKED_MILESTONE=null
158
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/finish-work.md — SESSION_DIR={session_dir}, SESSION_TYPE=blueprint, SESSION_ID={session_id}, LINKED_MILESTONE=null
156
159
  </on_complete>
@@ -10,13 +10,16 @@ Multi-role brainstorming with cross-role conflict resolution. Auto mode: guidanc
10
10
  Pipeline: grill (optional) → **brainstorm** → roadmap / analyze / blueprint.
11
11
  </purpose>
12
12
 
13
- > **Required**: Read `~/.pi/agent/packages/pi-maestro-flow/workflows/brainstorm.md` before proceeding.
13
+ <required_reading>
14
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/brainstorm.md
15
+ </required_reading>
14
16
 
15
- > **Reference files** (read when needed):
16
- > - [scratch-index.json](~/.pi/agent/packages/pi-maestro-flow/templates/scratch-index.json) — read when operating in scratch mode
17
- > - [index.json](~/.pi/agent/packages/pi-maestro-flow/templates/index.json) — read when operating in phase mode
18
- > - [brainstorm-visualize.md](~/.pi/agent/packages/pi-maestro-flow/workflows/brainstorm-visualize.md) — read when html-prototypes/ produced and user wants to browse them
19
- > - [boundary-grill.md](~/.pi/agent/packages/pi-maestro-flow/workflows/boundary-grill.md) — read when boundary conflicts detected (in cross-role review)
17
+ <deferred_reading>
18
+ - [scratch-index.json](~/.pi/agent/packages/pi-maestro-flow/templates/scratch-index.json) — read when operating in scratch mode
19
+ - [index.json](~/.pi/agent/packages/pi-maestro-flow/templates/index.json) — read when operating in phase mode
20
+ - [brainstorm-visualize.md](~/.pi/agent/packages/pi-maestro-flow/workflows/brainstorm-visualize.md) — read when html-prototypes/ produced and user wants to browse them
21
+ - [boundary-grill.md](~/.pi/agent/packages/pi-maestro-flow/workflows/boundary-grill.md) — read when boundary conflicts detected (in cross-role review)
22
+ </deferred_reading>
20
23
 
21
24
  <context>
22
25
  $ARGUMENTS -- topic text for auto mode, or role name for single role mode.
@@ -54,7 +57,7 @@ $ARGUMENTS -- topic text for auto mode, or role name for single role mode.
54
57
  </context>
55
58
 
56
59
  <interview_protocol>
57
- Follows `~/.pi/agent/packages/pi-maestro-flow/workflows/interview-mechanics.md` standard.
60
+ Follows ~/.pi/agent/packages/pi-maestro-flow/workflows/interview-mechanics.md standard.
58
61
 
59
62
  **Interaction mode**: convergent menu-driven
60
63
  **Decision tree** (flexible order — user may jump between branches): mode (auto / single-role / review-only) → role selection and --count → --from upstream source (grill:ID, blueprint:ID, @file, path) → whether to enable design-research and DESIGN.md sub-pipeline
@@ -186,5 +189,5 @@ Status verdicts:
186
189
  </success_criteria>
187
190
 
188
191
  <on_complete>
189
- Read and follow `~/.pi/agent/packages/pi-maestro-flow/workflows/finish-work.md`. — SESSION_DIR={output_dir}, SESSION_TYPE=brainstorm, SESSION_ID={artifact_id}, LINKED_MILESTONE=null
192
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/finish-work.md — SESSION_DIR={output_dir}, SESSION_TYPE=brainstorm, SESSION_ID={artifact_id}, LINKED_MILESTONE=null
190
193
  </on_complete>
@@ -9,9 +9,10 @@ Interactive workflow template composer: natural language to DAG template.
9
9
  Three modes: new design (default), resume (`--resume`), edit (`--edit <path>`).
10
10
  </purpose>
11
11
 
12
- > **Reference files** (read when needed):
13
- > - [node-catalog](~/.pi/agent/packages/pi-maestro-flow/templates/workflows/specs/node-catalog.md) — read at Phase 2 (Resolve)
14
- > - [template-schema](~/.pi/agent/packages/pi-maestro-flow/templates/workflows/specs/template-schema.md) — read at Phase 5 (Persist)
12
+ <deferred_reading>
13
+ - [node-catalog](~/.pi/agent/packages/pi-maestro-flow/templates/workflows/specs/node-catalog.md) — read at Phase 2 (Resolve)
14
+ - [template-schema](~/.pi/agent/packages/pi-maestro-flow/templates/workflows/specs/template-schema.md) — read at Phase 5 (Persist)
15
+ </deferred_reading>
15
16
 
16
17
  <context>
17
18
  $ARGUMENTS — natural language description, or flags.
@@ -9,11 +9,14 @@ Execute confirmed plan tasks via wave-based parallel dispatch.
9
9
  Consumes plan from maestro-plan; registers EXC artifact in state.json.
10
10
  </purpose>
11
11
 
12
- > **Required**: Read `~/.pi/agent/packages/pi-maestro-flow/workflows/execute.md` before proceeding.
13
-
14
- > **Reference files** (read when needed):
15
- > - [task.json](~/.pi/agent/packages/pi-maestro-flow/templates/task.json) — read when reading task definitions
16
- > - [state.json](~/.pi/agent/packages/pi-maestro-flow/templates/state.json) — read when registering artifact
12
+ <required_reading>
13
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/execute.md
14
+ </required_reading>
15
+
16
+ <deferred_reading>
17
+ - [task.json](~/.pi/agent/packages/pi-maestro-flow/templates/task.json) — read when reading task definitions
18
+ - [state.json](~/.pi/agent/packages/pi-maestro-flow/templates/state.json) — read when registering artifact
19
+ </deferred_reading>
17
20
 
18
21
  <context>
19
22
  $ARGUMENTS — milestone number, or no args for current milestone, with optional flags.
@@ -9,11 +9,14 @@ Create or sync a milestone-level git worktree for parallel development.
9
9
  Supports `--sync` mode to pull latest main changes into an active worktree.
10
10
  </purpose>
11
11
 
12
- > **Required**: Read `~/.pi/agent/packages/pi-maestro-flow/workflows/fork.md` before proceeding.
13
-
14
- > **Reference files** (read when needed):
15
- > - [worktrees.json](~/.pi/agent/packages/pi-maestro-flow/templates/worktrees.json) — read when updating registry
16
- > - [worktree-scope.json](~/.pi/agent/packages/pi-maestro-flow/templates/worktree-scope.json) — read when writing scope marker
12
+ <required_reading>
13
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/fork.md
14
+ </required_reading>
15
+
16
+ <deferred_reading>
17
+ - [worktrees.json](~/.pi/agent/packages/pi-maestro-flow/templates/worktrees.json) — read when updating registry
18
+ - [worktree-scope.json](~/.pi/agent/packages/pi-maestro-flow/templates/worktree-scope.json) — read when writing scope marker
19
+ </deferred_reading>
17
20
 
18
21
  <context>
19
22
  $ARGUMENTS -- milestone number and optional flags.
@@ -10,10 +10,13 @@ Socratic stress-testing of plans/ideas against codebase reality. Produces grill-
10
10
  Pipeline position: BEFORE brainstorm (stress-test → then elaborate).
11
11
  </purpose>
12
12
 
13
- > **Required**: Read `~/.pi/agent/packages/pi-maestro-flow/workflows/grill.md` before proceeding.
13
+ <required_reading>
14
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/grill.md
15
+ </required_reading>
14
16
 
15
- > **Reference files** (read when needed):
16
- > - [state.json](~/.pi/agent/packages/pi-maestro-flow/templates/state.json) — read when registering artifact
17
+ <deferred_reading>
18
+ - [state.json](~/.pi/agent/packages/pi-maestro-flow/templates/state.json) — read when registering artifact
19
+ </deferred_reading>
17
20
 
18
21
  <context>
19
22
  $ARGUMENTS -- topic/plan text for interactive mode, or --from source for upstream input.
@@ -44,7 +47,7 @@ $ARGUMENTS -- topic/plan text for interactive mode, or --from source for upstrea
44
47
  </context>
45
48
 
46
49
  <interview_protocol>
47
- Follows `~/.pi/agent/packages/pi-maestro-flow/workflows/interview-mechanics.md` standard.
50
+ Follows ~/.pi/agent/packages/pi-maestro-flow/workflows/interview-mechanics.md standard.
48
51
 
49
52
  **Interaction mode override**: adversarial Socratic — NOT menu-driven
50
53
  **Question style**:
@@ -144,5 +147,5 @@ Status verdicts:
144
147
  </success_criteria>
145
148
 
146
149
  <on_complete>
147
- Read and follow `~/.pi/agent/packages/pi-maestro-flow/workflows/finish-work.md`. — SESSION_DIR={output_dir}, SESSION_TYPE=grill, SESSION_ID={artifact_id}, LINKED_MILESTONE=null
150
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/finish-work.md — SESSION_DIR={output_dir}, SESSION_TYPE=grill, SESSION_ID={artifact_id}, LINKED_MILESTONE=null
148
151
  </on_complete>
@@ -9,12 +9,15 @@ Initialize project: detect state, create `.workflow/` with project.md, state.jso
9
9
  Entry point; downstream: maestro-roadmap or maestro-brainstorm.
10
10
  </purpose>
11
11
 
12
- > **Required**: Read `~/.pi/agent/packages/pi-maestro-flow/workflows/init.md` before proceeding.
12
+ <required_reading>
13
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/init.md
14
+ </required_reading>
13
15
 
14
- > **Reference files** (read when needed):
15
- > - [project.md](~/.pi/agent/packages/pi-maestro-flow/templates/project.md) — read when generating project description
16
- > - [state.json](~/.pi/agent/packages/pi-maestro-flow/templates/state.json) — read when creating initial state
17
- > - [config.json](~/.pi/agent/packages/pi-maestro-flow/templates/config.json) — read when creating workflow configuration
16
+ <deferred_reading>
17
+ - [project.md](~/.pi/agent/packages/pi-maestro-flow/templates/project.md) — read when generating project description
18
+ - [state.json](~/.pi/agent/packages/pi-maestro-flow/templates/state.json) — read when creating initial state
19
+ - [config.json](~/.pi/agent/packages/pi-maestro-flow/templates/config.json) — read when creating workflow configuration
20
+ </deferred_reading>
18
21
 
19
22
  <context>
20
23
  $ARGUMENTS — none for interactive mode, or `-y` with `@file` reference for auto mode.
@@ -41,7 +44,7 @@ Check for `.workflow/state.json` -- loads context if project already initialized
41
44
  </invariants>
42
45
 
43
46
  <interview_protocol>
44
- Follows `~/.pi/agent/packages/pi-maestro-flow/workflows/interview-mechanics.md` standard.
47
+ Follows ~/.pi/agent/packages/pi-maestro-flow/workflows/interview-mechanics.md standard.
45
48
 
46
49
  **Interaction mode**: convergent menu-driven
47
50
  **Decision tree** (strict order): project type (greenfield / existing codebase onboarding) → tech stack detection and confirmation → directory structure preferences → initial configuration (specs categories, wiki bootstrap)
@@ -9,7 +9,9 @@ Merge a milestone worktree branch back into main, sync scratch artifacts, and re
9
9
  Two-phase: git merge first, artifact sync second (only after git succeeds).
10
10
  </purpose>
11
11
 
12
- > **Required**: Read `~/.pi/agent/packages/pi-maestro-flow/workflows/merge.md` before proceeding.
12
+ <required_reading>
13
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/merge.md
14
+ </required_reading>
13
15
 
14
16
  <context>
15
17
  $ARGUMENTS -- milestone number and optional flags.
@@ -9,7 +9,9 @@ Audit milestone for phase coverage, execution completeness, and integration gaps
9
9
  Produces audit-report.md with PASS/FAIL verdict.
10
10
  </purpose>
11
11
 
12
- > **Required**: Read `~/.pi/agent/packages/pi-maestro-flow/workflows/milestone-audit.md` before proceeding.
12
+ <required_reading>
13
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/milestone-audit.md
14
+ </required_reading>
13
15
 
14
16
  <context>
15
17
  Milestone: $ARGUMENTS (optional -- defaults to current_milestone from state.json).
@@ -9,10 +9,13 @@ Archive passed milestone: validate, archive artifacts, extract knowhow, advance
9
9
  Requires audit PASS; produces milestone archive and learnings.
10
10
  </purpose>
11
11
 
12
- > **Required**: Read `~/.pi/agent/packages/pi-maestro-flow/workflows/milestone-complete.md` before proceeding.
12
+ <required_reading>
13
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/milestone-complete.md
14
+ </required_reading>
13
15
 
14
- > **Reference files** (read when needed):
15
- > - [state.json](~/.pi/agent/packages/pi-maestro-flow/templates/state.json) — read when updating milestone_history and advancing state
16
+ <deferred_reading>
17
+ - [state.json](~/.pi/agent/packages/pi-maestro-flow/templates/state.json) — read when updating milestone_history and advancing state
18
+ </deferred_reading>
16
19
 
17
20
  <context>
18
21
  Milestone: $ARGUMENTS (optional -- defaults to current_milestone from state.json).
@@ -10,7 +10,9 @@ Package a completed milestone into a releasable version: version bump → change
10
10
  Pipeline position: downstream of `/maestro-milestone-complete`. Terminal command.
11
11
  </purpose>
12
12
 
13
- > **Required**: Read `~/.pi/agent/packages/pi-maestro-flow/workflows/milestone-release.md` before proceeding.
13
+ <required_reading>
14
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/milestone-release.md
15
+ </required_reading>
14
16
 
15
17
  <context>
16
18
  $ARGUMENTS -- optional explicit version string and flags.
@@ -38,7 +40,7 @@ $ARGUMENTS -- optional explicit version string and flags.
38
40
  </context>
39
41
 
40
42
  <interview_protocol>
41
- Follows `~/.pi/agent/packages/pi-maestro-flow/workflows/interview-mechanics.md` standard.
43
+ Follows ~/.pi/agent/packages/pi-maestro-flow/workflows/interview-mechanics.md standard.
42
44
 
43
45
  **Decision points**: version bump type (major / minor / patch / custom), changelog review and confirmation
44
46
  **Scope guard**: only release decisions; do not prejudge next milestone scope
@@ -10,8 +10,8 @@ Turn natural-language instructions into command overlays — JSON patch files th
10
10
  </purpose>
11
11
 
12
12
  <required_reading>
13
- Read and follow `~/.pi/agent/packages/pi-maestro-flow/workflows/overlays.md`.
14
- @~/.maestro/cli-tools.json
13
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/overlays.md
14
+ ~/.maestro/cli-tools.json
15
15
  </required_reading>
16
16
 
17
17
  <context>
@@ -22,7 +22,7 @@ Read and follow `~/.pi/agent/packages/pi-maestro-flow/workflows/overlays.md`.
22
22
 
23
23
  **Where overlays live**
24
24
  - User overlays: `~/.maestro/overlays/*.json` — created by this skill
25
- - Shared docs: `~/.maestro/overlays/docs/*.md` — referenced via `@~/.maestro/overlays/docs/*.md` inside patch content
25
+ - Shared docs: `~/.maestro/overlays/docs/*.md` — referenced via `~/.maestro/overlays/docs/*.md` inside patch content
26
26
  - Shipped examples: `~/.maestro/overlays/_shipped/` — read-only, do not edit
27
27
 
28
28
  **Management** — listing and removing overlays is handled by `maestro overlay list` (ink TUI with interactive delete). This skill focuses solely on creation.
@@ -111,7 +111,7 @@ Build a slug from the user's intent (kebab-case, lowercase). Write to `~/.maestr
111
111
  **Content guidelines**
112
112
  - Lead the injected block with a heading that includes `(overlay)` so readers see it's machine-injected
113
113
  - Keep content concise — overlays should add a step, not rewrite the command
114
- - `@~/.maestro/...` references are encouraged for pointing at docs
114
+ - `~/.maestro/...` references are encouraged for pointing at docs
115
115
  - Escape `\n` in JSON strings; use a HEREDOC via Bash if content is long
116
116
 
117
117
  **Skill chain content** — if a chain was configured in Step 2.5, append a Skill Handoff block at the end of the patch `content`. The handoff uses user prompt so the user controls whether to proceed:
@@ -9,13 +9,16 @@ Create, revise, or verify execution plans (5-stage pipeline).
9
9
  Produces plan.json + TASK files; registers PLN artifact in state.json.
10
10
  </purpose>
11
11
 
12
- > **Required**: Read `~/.pi/agent/packages/pi-maestro-flow/workflows/plan.md` before proceeding.
13
-
14
- > **Reference files** (read when needed):
15
- > - [plan.json](~/.pi/agent/packages/pi-maestro-flow/templates/plan.json) — read when generating plan output
16
- > - [task.json](~/.pi/agent/packages/pi-maestro-flow/templates/task.json) — read when generating task files
17
- > - [state.json](~/.pi/agent/packages/pi-maestro-flow/templates/state.json) — read when registering artifact
18
- > - [boundary-grill.md](~/.pi/agent/packages/pi-maestro-flow/workflows/boundary-grill.md) — read when boundary conflicts detected (in P4)
12
+ <required_reading>
13
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/plan.md
14
+ </required_reading>
15
+
16
+ <deferred_reading>
17
+ - [plan.json](~/.pi/agent/packages/pi-maestro-flow/templates/plan.json) — read when generating plan output
18
+ - [task.json](~/.pi/agent/packages/pi-maestro-flow/templates/task.json) — read when generating task files
19
+ - [state.json](~/.pi/agent/packages/pi-maestro-flow/templates/state.json) — read when registering artifact
20
+ - [boundary-grill.md](~/.pi/agent/packages/pi-maestro-flow/workflows/boundary-grill.md) — read when boundary conflicts detected (in P4)
21
+ </deferred_reading>
19
22
 
20
23
  <context>
21
24
  $ARGUMENTS — milestone number, or no args for current milestone, with optional flags.
@@ -10,7 +10,9 @@ Flags --discuss and --full enable additional pipeline stages.
10
10
  **Implicit write**: state.json scratch task entry is written automatically as part of workflow tracking (no confirmation gate).
11
11
  </purpose>
12
12
 
13
- > **Required**: Read `~/.pi/agent/packages/pi-maestro-flow/workflows/quick.md` before proceeding.
13
+ <required_reading>
14
+ ~/.pi/agent/packages/pi-maestro-flow/workflows/quick.md
15
+ </required_reading>
14
16
 
15
17
  <context>
16
18
  $ARGUMENTS
@@ -9,8 +9,9 @@ Closed-loop decision engine: read project state → infer position → build ada
9
9
  Ralph builds/evaluates; ralph-execute runs steps. Session: `.workflow/.maestro/ralph-{YYYYMMDD-HHmmss}/status.json`.
10
10
  </purpose>
11
11
 
12
- > **Reference files** (read when needed):
13
- > - [ralph-amend-goal.md](~/.pi/agent/packages/pi-maestro-flow/workflows/ralph-amend-goal.md) — read when `--amend` flag active for goal amendment flow
12
+ <deferred_reading>
13
+ - [ralph-amend-goal.md](~/.pi/agent/packages/pi-maestro-flow/workflows/ralph-amend-goal.md) — read when `--amend` flag active for goal amendment flow
14
+ </deferred_reading>
14
15
 
15
16
  <context>
16
17
  $ARGUMENTS — intent text, flags, or keywords.
@@ -10,8 +10,9 @@ Adaptive lifecycle orchestrator: locate step → resolve args → load context
10
10
  Session: `.workflow/.maestro/ralph-v2-{YYYYMMDD-HHmmss}/status.json`
11
11
  </purpose>
12
12
 
13
- > **Reference files** (read when needed):
14
- > - [ralph-amend-goal.md](~/.pi/agent/packages/pi-maestro-flow/workflows/ralph-amend-goal.md) — read when `--amend` flag active for goal amendment flow
13
+ <deferred_reading>
14
+ - [ralph-amend-goal.md](~/.pi/agent/packages/pi-maestro-flow/workflows/ralph-amend-goal.md) — read when `--amend` flag active for goal amendment flow
15
+ </deferred_reading>
15
16
 
16
17
  <context>
17
18
  $ARGUMENTS — intent text, flags, or keywords.