maestro-flow 0.5.46 → 0.5.48
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/.agents/agents/ralph-executor.md +14 -24
- package/.agents/skills/domain-add/SKILL.md +9 -0
- package/.agents/skills/learn-decompose/SKILL.md +12 -0
- package/.agents/skills/learn-follow/SKILL.md +41 -0
- package/.agents/skills/learn-investigate/SKILL.md +14 -0
- package/.agents/skills/learn-second-opinion/SKILL.md +14 -0
- package/.agents/skills/maestro-amend/SKILL.md +11 -0
- package/.agents/skills/maestro-analyze/SKILL.md +13 -13
- package/.agents/skills/maestro-companion/SKILL.md +11 -0
- package/.agents/skills/maestro-composer/SKILL.md +12 -1
- package/.agents/skills/maestro-guard/SKILL.md +25 -0
- package/.agents/skills/maestro-help/SKILL.md +2 -0
- package/.agents/skills/maestro-help/index/catalog.json +7 -7
- package/.agents/skills/maestro-init/SKILL.md +29 -1
- package/.agents/skills/maestro-milestone-audit/SKILL.md +2 -2
- package/.agents/skills/maestro-milestone-release/SKILL.md +1 -1
- package/.agents/skills/maestro-next/SKILL.md +2 -2
- package/.agents/skills/maestro-overlay/SKILL.md +11 -0
- package/.agents/skills/maestro-plan/SKILL.md +31 -9
- package/.agents/skills/maestro-player/SKILL.md +11 -0
- package/.agents/skills/maestro-quick/SKILL.md +29 -0
- package/.agents/skills/maestro-ralph-v2/SKILL.md +26 -50
- package/.agents/skills/maestro-roadmap/SKILL.md +2 -2
- package/.agents/skills/maestro-swarm-workflow/SKILL.md +25 -0
- package/.agents/skills/maestro-tools-execute/SKILL.md +29 -0
- package/.agents/skills/maestro-tools-register/SKILL.md +29 -0
- package/.agents/skills/maestro-ui-codify/SKILL.md +11 -0
- package/.agents/skills/maestro-universal-workflow/SKILL.md +59 -0
- package/.agents/skills/maestro-update/SKILL.md +38 -0
- package/.agents/skills/manage-codebase-rebuild/SKILL.md +29 -0
- package/.agents/skills/manage-drift-realign/SKILL.md +12 -0
- package/.agents/skills/manage-harvest/SKILL.md +30 -6
- package/.agents/skills/manage-issue/SKILL.md +23 -0
- package/.agents/skills/manage-issue-discover/SKILL.md +28 -0
- package/.agents/skills/manage-kg-extractors/SKILL.md +27 -1
- package/.agents/skills/manage-knowhow/SKILL.md +26 -0
- package/.agents/skills/manage-knowhow-capture/SKILL.md +24 -0
- package/.agents/skills/manage-knowledge-audit/SKILL.md +13 -0
- package/.agents/skills/manage-status/SKILL.md +22 -0
- package/.agents/skills/manage-wiki/SKILL.md +28 -0
- package/.agents/skills/odyssey-improve/SKILL.md +50 -0
- package/.agents/skills/odyssey-planex/SKILL.md +46 -0
- package/.agents/skills/odyssey-review-test-fix/SKILL.md +50 -0
- package/.agents/skills/odyssey-ui/SKILL.md +50 -0
- package/.agents/skills/quality-auto-test/SKILL.md +13 -1
- package/.agents/skills/quality-debug/SKILL.md +11 -0
- package/.agents/skills/quality-refactor/SKILL.md +11 -0
- package/.agents/skills/quality-retrospective/SKILL.md +11 -0
- package/.agents/skills/quality-review/SKILL.md +11 -0
- package/.agents/skills/quality-sync/SKILL.md +10 -0
- package/.agents/skills/quality-test/SKILL.md +12 -0
- package/.agents/skills/security-audit/SKILL.md +11 -0
- package/.agents/skills/spec-add/SKILL.md +27 -0
- package/.agents/skills/spec-load/SKILL.md +25 -0
- package/.agents/skills/spec-remove/SKILL.md +26 -0
- package/.agents/skills/spec-setup/SKILL.md +30 -0
- package/.agy/agents/ralph-executor.md +14 -23
- package/.agy/skills/domain-add/SKILL.md +9 -0
- package/.agy/skills/learn-decompose/SKILL.md +12 -0
- package/.agy/skills/learn-follow/SKILL.md +41 -0
- package/.agy/skills/learn-investigate/SKILL.md +14 -0
- package/.agy/skills/learn-second-opinion/SKILL.md +14 -0
- package/.agy/skills/maestro-amend/SKILL.md +11 -0
- package/.agy/skills/maestro-analyze/SKILL.md +13 -13
- package/.agy/skills/maestro-companion/SKILL.md +11 -0
- package/.agy/skills/maestro-composer/SKILL.md +12 -1
- package/.agy/skills/maestro-guard/SKILL.md +25 -0
- package/.agy/skills/maestro-help/SKILL.md +2 -0
- package/.agy/skills/maestro-help/index/catalog.json +7 -7
- package/.agy/skills/maestro-init/SKILL.md +29 -1
- package/.agy/skills/maestro-milestone-audit/SKILL.md +2 -2
- package/.agy/skills/maestro-milestone-release/SKILL.md +1 -1
- package/.agy/skills/maestro-next/SKILL.md +2 -2
- package/.agy/skills/maestro-overlay/SKILL.md +11 -0
- package/.agy/skills/maestro-plan/SKILL.md +31 -9
- package/.agy/skills/maestro-player/SKILL.md +11 -0
- package/.agy/skills/maestro-quick/SKILL.md +29 -0
- package/.agy/skills/maestro-ralph-v2/SKILL.md +26 -50
- package/.agy/skills/maestro-roadmap/SKILL.md +2 -2
- package/.agy/skills/maestro-swarm-workflow/SKILL.md +25 -0
- package/.agy/skills/maestro-tools-execute/SKILL.md +29 -0
- package/.agy/skills/maestro-tools-register/SKILL.md +29 -0
- package/.agy/skills/maestro-ui-codify/SKILL.md +11 -0
- package/.agy/skills/maestro-universal-workflow/SKILL.md +59 -0
- package/.agy/skills/maestro-update/SKILL.md +38 -0
- package/.agy/skills/manage-codebase-rebuild/SKILL.md +29 -0
- package/.agy/skills/manage-drift-realign/SKILL.md +12 -0
- package/.agy/skills/manage-harvest/SKILL.md +30 -6
- package/.agy/skills/manage-issue/SKILL.md +23 -0
- package/.agy/skills/manage-issue-discover/SKILL.md +28 -0
- package/.agy/skills/manage-kg-extractors/SKILL.md +27 -1
- package/.agy/skills/manage-knowhow/SKILL.md +26 -0
- package/.agy/skills/manage-knowhow-capture/SKILL.md +24 -0
- package/.agy/skills/manage-knowledge-audit/SKILL.md +13 -0
- package/.agy/skills/manage-status/SKILL.md +22 -0
- package/.agy/skills/manage-wiki/SKILL.md +28 -0
- package/.agy/skills/odyssey-improve/SKILL.md +50 -0
- package/.agy/skills/odyssey-planex/SKILL.md +46 -0
- package/.agy/skills/odyssey-review-test-fix/SKILL.md +50 -0
- package/.agy/skills/odyssey-ui/SKILL.md +50 -0
- package/.agy/skills/quality-auto-test/SKILL.md +13 -1
- package/.agy/skills/quality-debug/SKILL.md +11 -0
- package/.agy/skills/quality-refactor/SKILL.md +11 -0
- package/.agy/skills/quality-retrospective/SKILL.md +11 -0
- package/.agy/skills/quality-review/SKILL.md +11 -0
- package/.agy/skills/quality-sync/SKILL.md +10 -0
- package/.agy/skills/quality-test/SKILL.md +12 -0
- package/.agy/skills/security-audit/SKILL.md +11 -0
- package/.agy/skills/spec-add/SKILL.md +27 -0
- package/.agy/skills/spec-load/SKILL.md +25 -0
- package/.agy/skills/spec-remove/SKILL.md +26 -0
- package/.agy/skills/spec-setup/SKILL.md +30 -0
- package/.claude/agents/ralph-executor.md +14 -24
- package/.claude/commands/domain-add.md +9 -0
- package/.claude/commands/learn-decompose.md +12 -0
- package/.claude/commands/learn-follow.md +41 -0
- package/.claude/commands/learn-investigate.md +14 -0
- package/.claude/commands/learn-second-opinion.md +14 -0
- package/.claude/commands/maestro-amend.md +11 -0
- package/.claude/commands/maestro-analyze.md +13 -13
- package/.claude/commands/maestro-companion.md +11 -0
- package/.claude/commands/maestro-composer.md +12 -1
- package/.claude/commands/maestro-guard.md +25 -0
- package/.claude/commands/maestro-init.md +29 -1
- package/.claude/commands/maestro-milestone-audit.md +2 -2
- package/.claude/commands/maestro-milestone-release.md +1 -1
- package/.claude/commands/maestro-next.md +2 -2
- package/.claude/commands/maestro-overlay.md +11 -0
- package/.claude/commands/maestro-plan.md +31 -9
- package/.claude/commands/maestro-player.md +11 -0
- package/.claude/commands/maestro-quick.md +29 -0
- package/.claude/commands/maestro-ralph-v2.md +26 -50
- package/.claude/commands/maestro-roadmap.md +2 -2
- package/.claude/commands/maestro-swarm-workflow.md +25 -0
- package/.claude/commands/maestro-tools-execute.md +29 -0
- package/.claude/commands/maestro-tools-register.md +29 -0
- package/.claude/commands/maestro-ui-codify.md +11 -0
- package/.claude/commands/maestro-universal-workflow.md +59 -0
- package/.claude/commands/maestro-update.md +38 -0
- package/.claude/commands/manage-codebase-rebuild.md +29 -0
- package/.claude/commands/manage-drift-realign.md +12 -0
- package/.claude/commands/manage-harvest.md +30 -6
- package/.claude/commands/manage-issue-discover.md +28 -0
- package/.claude/commands/manage-issue.md +23 -0
- package/.claude/commands/manage-kg-extractors.md +27 -1
- package/.claude/commands/manage-knowhow-capture.md +24 -0
- package/.claude/commands/manage-knowhow.md +26 -0
- package/.claude/commands/manage-knowledge-audit.md +13 -0
- package/.claude/commands/manage-status.md +22 -0
- package/.claude/commands/manage-wiki.md +28 -0
- package/.claude/commands/odyssey-improve.md +50 -0
- package/.claude/commands/odyssey-planex.md +46 -0
- package/.claude/commands/odyssey-review-test-fix.md +50 -0
- package/.claude/commands/odyssey-ui.md +50 -0
- package/.claude/commands/quality-auto-test.md +13 -1
- package/.claude/commands/quality-debug.md +11 -0
- package/.claude/commands/quality-refactor.md +11 -0
- package/.claude/commands/quality-retrospective.md +11 -0
- package/.claude/commands/quality-review.md +11 -0
- package/.claude/commands/quality-sync.md +10 -0
- package/.claude/commands/quality-test.md +12 -0
- package/.claude/commands/security-audit.md +11 -0
- package/.claude/commands/spec-add.md +27 -0
- package/.claude/commands/spec-load.md +25 -0
- package/.claude/commands/spec-remove.md +26 -0
- package/.claude/commands/spec-setup.md +30 -0
- package/.claude/skills/maestro-help/SKILL.md +2 -0
- package/.claude/skills/maestro-help/index/catalog.json +7 -7
- package/.codex/skills/codify-to-knowhow/SKILL.md +2 -0
- package/.codex/skills/domain-add/SKILL.md +26 -0
- package/.codex/skills/domain-discover/SKILL.md +46 -0
- package/.codex/skills/domain-list/SKILL.md +29 -0
- package/.codex/skills/learn-decompose/SKILL.md +2 -0
- package/.codex/skills/learn-follow/SKILL.md +34 -0
- package/.codex/skills/learn-investigate/SKILL.md +33 -0
- package/.codex/skills/learn-retro/SKILL.md +33 -0
- package/.codex/skills/learn-second-opinion/SKILL.md +30 -0
- package/.codex/skills/maestro/SKILL.md +6 -5
- package/.codex/skills/maestro-amend/SKILL.md +11 -0
- package/.codex/skills/maestro-analyze/SKILL.md +13 -18
- package/.codex/skills/maestro-companion/SKILL.md +11 -0
- package/.codex/skills/maestro-composer/SKILL.md +11 -0
- package/.codex/skills/maestro-guard/SKILL.md +25 -0
- package/.codex/skills/maestro-help/SKILL.md +2 -0
- package/.codex/skills/maestro-help/catalog.json +7 -7
- package/.codex/skills/maestro-init/SKILL.md +16 -0
- package/.codex/skills/maestro-learn/SKILL.md +2 -0
- package/.codex/skills/maestro-next/SKILL.md +2 -2
- package/.codex/skills/maestro-overlay/SKILL.md +1 -0
- package/.codex/skills/maestro-plan/SKILL.md +13 -16
- package/.codex/skills/maestro-player/SKILL.md +2 -0
- package/.codex/skills/maestro-quick/SKILL.md +17 -0
- package/.codex/skills/maestro-ralph/SKILL.md +11 -11
- package/.codex/skills/maestro-ralph-execute/SKILL.md +8 -8
- package/.codex/skills/maestro-tools-execute/SKILL.md +31 -0
- package/.codex/skills/maestro-tools-register/SKILL.md +29 -0
- package/.codex/skills/maestro-ui-codify/SKILL.md +2 -0
- package/.codex/skills/maestro-update/SKILL.md +38 -0
- package/.codex/skills/manage-codebase-rebuild/SKILL.md +2 -0
- package/.codex/skills/manage-codebase-refresh/SKILL.md +11 -0
- package/.codex/skills/manage-drift-realign/SKILL.md +2 -0
- package/.codex/skills/manage-harvest/SKILL.md +30 -8
- package/.codex/skills/manage-issue/SKILL.md +24 -0
- package/.codex/skills/manage-issue-discover/SKILL.md +2 -0
- package/.codex/skills/manage-knowhow/SKILL.md +26 -0
- package/.codex/skills/manage-knowhow-capture/SKILL.md +23 -0
- package/.codex/skills/manage-learn/SKILL.md +2 -0
- package/.codex/skills/manage-status/SKILL.md +22 -0
- package/.codex/skills/manage-wiki/SKILL.md +28 -0
- package/.codex/skills/odyssey-debug/SKILL.md +44 -0
- package/.codex/skills/odyssey-improve/SKILL.md +49 -0
- package/.codex/skills/odyssey-planex/SKILL.md +44 -0
- package/.codex/skills/odyssey-review-test-fix/SKILL.md +48 -0
- package/.codex/skills/odyssey-ui/SKILL.md +49 -0
- package/.codex/skills/quality-auto-test/SKILL.md +2 -0
- package/.codex/skills/quality-debug/SKILL.md +2 -0
- package/.codex/skills/quality-refactor/SKILL.md +2 -0
- package/.codex/skills/quality-retrospective/SKILL.md +2 -0
- package/.codex/skills/quality-review/SKILL.md +2 -0
- package/.codex/skills/quality-sync/SKILL.md +24 -0
- package/.codex/skills/quality-test/SKILL.md +2 -0
- package/.codex/skills/security-audit/SKILL.md +30 -0
- package/.codex/skills/spec-add/SKILL.md +28 -0
- package/.codex/skills/spec-load/SKILL.md +26 -0
- package/.codex/skills/spec-map/SKILL.md +1 -0
- package/.codex/skills/spec-remove/SKILL.md +28 -0
- package/.codex/skills/spec-setup/SKILL.md +28 -0
- package/.codex/skills/wiki-connect/SKILL.md +11 -0
- package/.codex/skills/wiki-digest/SKILL.md +11 -0
- package/dashboard/dist-server/dashboard/src/server/agents/api-explore-adapter.js +3 -1
- package/dashboard/dist-server/dashboard/src/server/agents/api-explore-adapter.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/embedding.d.ts +5 -0
- package/dashboard/dist-server/dashboard/src/server/wiki/embedding.js +42 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/embedding.js.map +1 -1
- package/dashboard/dist-server/src/graph/kg/db/queries.d.ts +4 -0
- package/dashboard/dist-server/src/graph/kg/db/queries.js +35 -19
- package/dashboard/dist-server/src/graph/kg/db/queries.js.map +1 -1
- package/dashboard/dist-server/src/graph/kg/embedding/code-embedding.js +2 -0
- package/dashboard/dist-server/src/graph/kg/embedding/code-embedding.js.map +1 -1
- package/dashboard/dist-server/src/graph/kg/engine.js +5 -1
- package/dashboard/dist-server/src/graph/kg/engine.js.map +1 -1
- package/dashboard/dist-server/src/graph/kg/extraction/orchestrator.js +19 -11
- package/dashboard/dist-server/src/graph/kg/extraction/orchestrator.js.map +1 -1
- package/dashboard/dist-server/src/hooks/kg-sync-hook.js +5 -3
- package/dashboard/dist-server/src/hooks/kg-sync-hook.js.map +1 -1
- package/dashboard/dist-server/src/hooks/session-context.js +3 -1
- package/dashboard/dist-server/src/hooks/session-context.js.map +1 -1
- package/dist/src/agents/api-explore/circuit-breaker.d.ts +41 -0
- package/dist/src/agents/api-explore/circuit-breaker.d.ts.map +1 -0
- package/dist/src/agents/api-explore/circuit-breaker.js +82 -0
- package/dist/src/agents/api-explore/circuit-breaker.js.map +1 -0
- package/dist/src/agents/api-explore/config.d.ts +15 -34
- package/dist/src/agents/api-explore/config.d.ts.map +1 -1
- package/dist/src/agents/api-explore/config.js +17 -42
- package/dist/src/agents/api-explore/config.js.map +1 -1
- package/dist/src/agents/api-explore/index.js +6 -6
- package/dist/src/agents/api-explore/index.js.map +1 -1
- package/dist/src/agents/api-explore/llm.d.ts +2 -0
- package/dist/src/agents/api-explore/llm.d.ts.map +1 -1
- package/dist/src/agents/api-explore/llm.js +16 -4
- package/dist/src/agents/api-explore/llm.js.map +1 -1
- package/dist/src/agents/api-explore/runner.d.ts +5 -0
- package/dist/src/agents/api-explore/runner.d.ts.map +1 -1
- package/dist/src/agents/api-explore/runner.js +66 -15
- package/dist/src/agents/api-explore/runner.js.map +1 -1
- package/dist/src/commands/explore.d.ts.map +1 -1
- package/dist/src/commands/explore.js +23 -4
- package/dist/src/commands/explore.js.map +1 -1
- package/dist/src/commands/install.d.ts.map +1 -1
- package/dist/src/commands/install.js +62 -28
- package/dist/src/commands/install.js.map +1 -1
- package/dist/src/commands/moa.d.ts.map +1 -1
- package/dist/src/commands/moa.js +18 -3
- package/dist/src/commands/moa.js.map +1 -1
- package/dist/src/commands/search.d.ts.map +1 -1
- package/dist/src/commands/search.js +2 -0
- package/dist/src/commands/search.js.map +1 -1
- package/dist/src/config/api-config.d.ts +61 -0
- package/dist/src/config/api-config.d.ts.map +1 -0
- package/dist/src/config/api-config.js +59 -0
- package/dist/src/config/api-config.js.map +1 -0
- package/dist/src/config/cli-tools-config.d.ts +1 -0
- package/dist/src/config/cli-tools-config.d.ts.map +1 -1
- package/dist/src/config/cli-tools-config.js +22 -1
- package/dist/src/config/cli-tools-config.js.map +1 -1
- package/dist/src/graph/kg/db/queries.d.ts +4 -0
- package/dist/src/graph/kg/db/queries.d.ts.map +1 -1
- package/dist/src/graph/kg/db/queries.js +35 -19
- package/dist/src/graph/kg/db/queries.js.map +1 -1
- package/dist/src/graph/kg/embedding/code-embedding.d.ts.map +1 -1
- package/dist/src/graph/kg/embedding/code-embedding.js +2 -0
- package/dist/src/graph/kg/embedding/code-embedding.js.map +1 -1
- package/dist/src/graph/kg/engine.d.ts.map +1 -1
- package/dist/src/graph/kg/engine.js +5 -1
- package/dist/src/graph/kg/engine.js.map +1 -1
- package/dist/src/graph/kg/extraction/orchestrator.d.ts.map +1 -1
- package/dist/src/graph/kg/extraction/orchestrator.js +19 -11
- package/dist/src/graph/kg/extraction/orchestrator.js.map +1 -1
- package/dist/src/hooks/kg-sync-hook.d.ts.map +1 -1
- package/dist/src/hooks/kg-sync-hook.js +5 -3
- package/dist/src/hooks/kg-sync-hook.js.map +1 -1
- package/dist/src/hooks/plugins/explore-plugin.d.ts.map +1 -1
- package/dist/src/hooks/plugins/explore-plugin.js +3 -2
- package/dist/src/hooks/plugins/explore-plugin.js.map +1 -1
- package/dist/src/hooks/session-context.js +3 -1
- package/dist/src/hooks/session-context.js.map +1 -1
- package/dist/src/tui/install-ui/EmbeddingConfig.d.ts +25 -0
- package/dist/src/tui/install-ui/EmbeddingConfig.d.ts.map +1 -0
- package/dist/src/tui/install-ui/EmbeddingConfig.js +58 -0
- package/dist/src/tui/install-ui/EmbeddingConfig.js.map +1 -0
- package/dist/src/tui/install-ui/EmbeddingPanel.d.ts +6 -0
- package/dist/src/tui/install-ui/EmbeddingPanel.d.ts.map +1 -0
- package/dist/src/tui/install-ui/EmbeddingPanel.js +101 -0
- package/dist/src/tui/install-ui/EmbeddingPanel.js.map +1 -0
- package/dist/src/tui/install-ui/GroupedHub.d.ts +2 -0
- package/dist/src/tui/install-ui/GroupedHub.d.ts.map +1 -1
- package/dist/src/tui/install-ui/GroupedHub.js +8 -1
- package/dist/src/tui/install-ui/GroupedHub.js.map +1 -1
- package/dist/src/tui/install-ui/InstallFlow.d.ts.map +1 -1
- package/dist/src/tui/install-ui/InstallFlow.js +4 -2
- package/dist/src/tui/install-ui/InstallFlow.js.map +1 -1
- package/dist/src/tui/install-ui/embedding-status.d.ts +12 -0
- package/dist/src/tui/install-ui/embedding-status.d.ts.map +1 -0
- package/dist/src/tui/install-ui/embedding-status.js +82 -0
- package/dist/src/tui/install-ui/embedding-status.js.map +1 -0
- package/dist/src/tui/install-ui/useInstallFlowState.d.ts +1 -1
- package/dist/src/tui/install-ui/useInstallFlowState.d.ts.map +1 -1
- package/dist/src/tui/install-ui/useInstallFlowState.js +52 -2
- package/dist/src/tui/install-ui/useInstallFlowState.js.map +1 -1
- package/dist/src/tui/shared/tokens.d.ts +1 -1
- package/dist/src/tui/shared/tokens.js +1 -1
- package/dist/src/utils/update-notices.js +11 -0
- package/dist/src/utils/update-notices.js.map +1 -1
- package/package.json +1 -1
- package/workflows/analyze.md +13 -15
- package/workflows/plan.md +33 -21
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: maestro-analyze
|
|
3
3
|
description: Use when a topic needs structured multi-dimensional investigation before planning or decision-making
|
|
4
|
-
argument-hint: [
|
|
4
|
+
argument-hint: [milestone|topic] [-y] [-c] [-q] [--gaps [ISS-ID]]
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- ask_question
|
|
7
7
|
- define_subagent
|
|
@@ -29,17 +29,17 @@ Multi-dimensional analysis of a proposal, decision, or architecture choice via C
|
|
|
29
29
|
</deferred_reading>
|
|
30
30
|
|
|
31
31
|
<context>
|
|
32
|
-
$ARGUMENTS --
|
|
32
|
+
$ARGUMENTS -- milestone number for micro mode, topic text for macro/adhoc mode, no args for current milestone.
|
|
33
33
|
|
|
34
34
|
**Dual-layer mode:**
|
|
35
35
|
- **Macro mode** (text argument): Explore impact surface of a topic/requirement. Produces coarse-grained context with `scope_verdict` to route next step. Use before roadmap or for standalone analysis.
|
|
36
|
-
- **Micro mode** (numeric argument):
|
|
36
|
+
- **Micro mode** (numeric argument): Milestone-level deep analysis within an existing roadmap. Covers all phases under the milestone. Same analysis depth, broader scope. `analyze 1` = Milestone 1.
|
|
37
37
|
|
|
38
38
|
**Disambiguation rule (mode selection):**
|
|
39
|
-
- First positional arg matches `^\d+$` (pure digits, e.g. `1`, `42`) → **micro mode** (treat as
|
|
39
|
+
- First positional arg matches `^\d+$` (pure digits, e.g. `1`, `42`) → **micro mode** (treat as milestone number)
|
|
40
40
|
- First positional arg is non-numeric text (e.g. `auth-refactor`, `improve search`) → **macro mode** (treat as topic)
|
|
41
|
-
- No positional arg → milestone
|
|
42
|
-
- Mixed input like `"1
|
|
41
|
+
- No positional arg → current milestone micro mode (when roadmap present) else macro fallback
|
|
42
|
+
- Mixed input like `"1 milestone"` is treated as text → macro mode (only bare numerics trigger micro)
|
|
43
43
|
|
|
44
44
|
**Flags:**
|
|
45
45
|
|
|
@@ -54,9 +54,9 @@ $ARGUMENTS -- phase number for micro mode, topic text for macro/adhoc mode, no a
|
|
|
54
54
|
**Scope routing:**
|
|
55
55
|
| Input | Mode | Scope |
|
|
56
56
|
|-------|------|-------|
|
|
57
|
-
| Pure digits (e.g. `1`, `42`) | micro |
|
|
57
|
+
| Pure digits (e.g. `1`, `42`) | micro | Milestone-level deep analysis |
|
|
58
58
|
| Non-numeric text (e.g. `auth-refactor`) | macro | Topic impact surface |
|
|
59
|
-
| No positional arg + roadmap | micro |
|
|
59
|
+
| No positional arg + roadmap | micro | Current milestone |
|
|
60
60
|
| No positional arg + no roadmap | macro | Fallback |
|
|
61
61
|
| `--gaps [ISS-ID]` | gaps | Issue root cause analysis |
|
|
62
62
|
|
|
@@ -81,7 +81,7 @@ Follows @~/.maestro/workflows/interview-mechanics.md standard.
|
|
|
81
81
|
**Scope guard**: only analyze decisions; do not prejudge plan/execute concerns
|
|
82
82
|
**Writeback target**: discussion.md (top table) + context.md "Interview Decisions"
|
|
83
83
|
**Additional search sources**: issues.jsonl (--gaps mode), roadmap.md
|
|
84
|
-
**Additional skip conditions**: input is already specific (explicit
|
|
84
|
+
**Additional skip conditions**: input is already specific (explicit milestone number or unambiguous topic)
|
|
85
85
|
**Exit condition**: all decision points settled → finalize session metadata
|
|
86
86
|
</interview_protocol>
|
|
87
87
|
|
|
@@ -124,9 +124,9 @@ Status verdicts:
|
|
|
124
124
|
|
|
125
125
|
| Condition | Suggestion |
|
|
126
126
|
|-----------|-----------|
|
|
127
|
-
|
|
|
128
|
-
|
|
|
129
|
-
|
|
|
127
|
+
| Milestone scope, Go, UI work needed | `/maestro-impeccable build {target}` |
|
|
128
|
+
| Milestone scope, Go, ready to plan | `/maestro-plan` or `/maestro-plan {milestone}` |
|
|
129
|
+
| Milestone scope, No-Go | Revisit requirements or `/maestro-brainstorm {topic}` |
|
|
130
130
|
| Macro/Adhoc, scope_verdict = large | `/maestro-roadmap --from analyze:ANL-xxx` |
|
|
131
131
|
| Macro/Adhoc, scope_verdict = medium/small | `/maestro-plan --from analyze:ANL-xxx` |
|
|
132
132
|
| Need more exploration | `/maestro-analyze {topic} -c` |
|
|
@@ -177,7 +177,7 @@ Both modes (full + quick):
|
|
|
177
177
|
- [ ] Decision Recording Protocol applied to all decisions
|
|
178
178
|
- [ ] Scope creep redirected to Deferred section
|
|
179
179
|
- [ ] Deferred items auto-created as issues (if any)
|
|
180
|
-
- [ ] Artifact registered in state.json with correct scope/milestone
|
|
180
|
+
- [ ] Artifact registered in state.json with correct scope/milestone
|
|
181
181
|
- [ ] Next step routed (impeccable/plan for Go, brainstorm for No-Go)
|
|
182
182
|
- [ ] Session sealed via finish-work (archive.json written, optional spec/knowhow extraction)
|
|
183
183
|
</success_criteria>
|
|
@@ -46,12 +46,23 @@ $ARGUMENTS — mode + optional flags.
|
|
|
46
46
|
|
|
47
47
|
Auto-detection: if `--type` not provided, infer from `--task` description keywords.
|
|
48
48
|
|
|
49
|
+
**Output boundary**: ALL file writes MUST target `.workflow/.scratchpad/` (companion docs + `.companion-active` pointer) only. Promotion writes (spec/knowhow) are delegated to `spec-add` / `manage-knowhow-capture` skills. NEVER modify source code, `.workflow/state.json`, or files outside `.workflow/.scratchpad/`.
|
|
50
|
+
|
|
49
51
|
**Companion document:**
|
|
50
52
|
- Path: `.workflow/.scratchpad/companion-{YYYYMMDD-HHmmss}.md`
|
|
51
53
|
- Active doc tracking: `.workflow/.scratchpad/.companion-active` (stores path of current companion doc)
|
|
52
54
|
- Format: YAML frontmatter (rich metadata) + typed sections + timestamped entries
|
|
53
55
|
</context>
|
|
54
56
|
|
|
57
|
+
<invariants>
|
|
58
|
+
1. **No session creation** — companion NEVER creates workflow sessions, NEVER writes to state.json
|
|
59
|
+
2. **Side-car only** — companion MUST NOT modify source code or execute implementation tasks; it is strictly a knowledge loading + recording utility
|
|
60
|
+
3. **One active doc** — only one `.companion-active` pointer SHALL exist at a time; creating a new companion doc MUST clear any stale pointer
|
|
61
|
+
4. **Append-only entries** — note mode MUST append entries; NEVER overwrite or reorder existing entries
|
|
62
|
+
5. **Promotion via delegation** — spec/knowhow promotion MUST route through `spec-add` / `manage-knowhow-capture` skills; companion NEVER writes directly to `.workflow/specs/` or `.workflow/knowhow/`
|
|
63
|
+
6. **Type-template integrity** — context template sections MUST match the resolved `task_type`; NEVER mix templates from different types
|
|
64
|
+
</invariants>
|
|
65
|
+
|
|
55
66
|
<state_machine>
|
|
56
67
|
|
|
57
68
|
<states>
|
|
@@ -40,8 +40,19 @@ $ARGUMENTS — natural language description, or flags.
|
|
|
40
40
|
1. **Architecture specs**: Run `maestro load --type spec --category arch` to load architecture constraints. Use as context for node resolution — ensures workflow design respects documented patterns.
|
|
41
41
|
2. **Coding specs**: Run `maestro load --type spec --category coding` to load coding conventions. Informs executor argument defaults and context injection.
|
|
42
42
|
3. Optional — proceed without if unavailable.
|
|
43
|
+
|
|
44
|
+
**Output boundary**: ALL file writes MUST target `~/.maestro/templates/workflows/` (template JSON + index.json) and `.workflow/templates/design-drafts/` (intermediate drafts) only. NEVER modify source code or `.claude/commands/` files.
|
|
43
45
|
</context>
|
|
44
46
|
|
|
47
|
+
<invariants>
|
|
48
|
+
1. **Max 20 nodes** — workflow templates MUST NOT exceed 20 nodes; larger workflows MUST be split into sub-workflows
|
|
49
|
+
2. **Acyclic DAG** — generated template MUST be a directed acyclic graph; cycles MUST be detected and rejected before persistence
|
|
50
|
+
3. **No orphan nodes** — every node MUST be reachable from at least one edge; unreachable nodes MUST be flagged
|
|
51
|
+
4. **Confirmation before write** — template JSON MUST be shown to user via ask_question before writing to `~/.maestro/templates/workflows/`; cancellation saves draft only
|
|
52
|
+
5. **Draft preservation** — abandoning at any confirmation gate MUST save current progress to design-drafts directory; NEVER discard user's partial work
|
|
53
|
+
6. **Deferred reading only** — node-catalog and template-schema MUST be read at their designated phases (P2, P5), NEVER loaded eagerly at startup
|
|
54
|
+
</invariants>
|
|
55
|
+
|
|
45
56
|
<state_machine>
|
|
46
57
|
|
|
47
58
|
<states>
|
|
@@ -142,7 +153,7 @@ Write `nodes.json`. Display resolved node list.
|
|
|
142
153
|
|------|-----------|
|
|
143
154
|
| Artifact boundary | Source outputs plan/spec/analysis/review |
|
|
144
155
|
| Execution gate | Target contains `execute` |
|
|
145
|
-
| Long-running | Target is maestro-plan, maestro-
|
|
156
|
+
| Long-running | Target is maestro-plan, maestro-blueprint |
|
|
146
157
|
| Post-testing | Source contains `test` or `auto-test` |
|
|
147
158
|
| User-defined | type_hint == checkpoint |
|
|
148
159
|
|
|
@@ -30,10 +30,35 @@ $ARGUMENTS — Parse subcommand and optional path argument.
|
|
|
30
30
|
|
|
31
31
|
**Enforcement:** The `workflow-guard` hook (PreToolUse on Write/Edit) reads this config
|
|
32
32
|
and blocks operations targeting files outside boundaries. Requires hooks level >= `full`.
|
|
33
|
+
|
|
34
|
+
**Output boundary**: ALL file writes MUST target `.workflow/config.json` (guard section) only. NEVER modify hook files, `.claude/settings.json`, or source code.
|
|
33
35
|
</context>
|
|
34
36
|
|
|
37
|
+
<invariants>
|
|
38
|
+
1. **Config-only mutation** — guard MUST only modify the `guard` section of `.workflow/config.json`; NEVER touch other config sections or files
|
|
39
|
+
2. **Non-destructive** — `off` MUST preserve existing paths and mode; NEVER clear the path list when disabling
|
|
40
|
+
3. **Mode switch confirmation** — switching between allow/deny mode MUST require ask_question confirmation when existing paths will be cleared
|
|
41
|
+
4. **Hook dependency** — guard MUST warn when enabled but `workflow-guard` hook is not active (hooks level < full)
|
|
42
|
+
5. **Path normalization** — all paths MUST use forward slashes with trailing slash for directories; NEVER store raw backslash paths
|
|
43
|
+
</invariants>
|
|
44
|
+
|
|
35
45
|
<execution>
|
|
36
46
|
|
|
47
|
+
### Phase Gates (MANDATORY, BLOCKING)
|
|
48
|
+
|
|
49
|
+
**GATE 1: Parse → Config Read**
|
|
50
|
+
- REQUIRED: Subcommand parsed (on/off/status/allow/deny) or defaulted to `status`.
|
|
51
|
+
- BLOCKED if: invalid subcommand provided.
|
|
52
|
+
|
|
53
|
+
**GATE 2: Config Read → Execute**
|
|
54
|
+
- REQUIRED: `.workflow/config.json` read successfully or initialized with empty guard section.
|
|
55
|
+
- BLOCKED if: file unreadable and cannot be created (E001).
|
|
56
|
+
|
|
57
|
+
**GATE 3: Execute → Confirm**
|
|
58
|
+
- REQUIRED: Config mutation applied (for on/off/allow/deny) or status displayed (for status).
|
|
59
|
+
- REQUIRED: Mode-switch ask_question answered (for allow↔deny transitions with existing paths).
|
|
60
|
+
- BLOCKED if: user declines mode switch.
|
|
61
|
+
|
|
37
62
|
**Step 1: Parse subcommand**
|
|
38
63
|
|
|
39
64
|
Extract from $ARGUMENTS:
|
|
@@ -295,6 +295,8 @@ Odyssey 长周期循环(独立路径)
|
|
|
295
295
|
| 长周期改进 | Odyssey 深度循环 | `/odyssey-improve "改进目标"` |
|
|
296
296
|
| 需求迭代 | Odyssey 深度循环 | `/odyssey-planex "需求描述"` |
|
|
297
297
|
|
|
298
|
+
> 注:Path A/B 中 `analyze 1` / `plan 1` 的数字 `1` 指 **milestone 编号**(第 1 个里程碑),下游以 milestone 为入口。
|
|
299
|
+
|
|
298
300
|
## Core Rules
|
|
299
301
|
|
|
300
302
|
1. **Catalog First**: 先查 catalog.json,再按需读 source 文件
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
{"name": "maestro-init", "command": "/maestro-init", "category": "core", "description": "项目初始化 — 创建 .workflow/ 目录结构和状态文件", "source": "../../commands/maestro-init.md"},
|
|
10
10
|
{"name": "maestro-brainstorm", "command": "/maestro-brainstorm", "category": "core", "description": "头脑风暴 — 发散探索,多角色创意,上游起源命令", "source": "../../commands/maestro-brainstorm.md"},
|
|
11
11
|
{"name": "maestro-blueprint", "command": "/maestro-blueprint", "category": "core", "description": "正式规格文档化 — 7-phase 收敛规格链,上游起源命令,产出 .workflow/blueprint/", "source": "../../commands/maestro-blueprint.md"},
|
|
12
|
-
{"name": "maestro-roadmap", "command": "/maestro-roadmap", "category": "core", "description": "路线图编排 —
|
|
13
|
-
{"name": "maestro-quick", "command": "/maestro-quick", "category": "core", "description": "快速任务 —
|
|
12
|
+
{"name": "maestro-roadmap", "command": "/maestro-roadmap", "category": "core", "description": "路线图编排 — Milestone > Phase 分解,下游以 milestone 为入口", "source": "../../commands/maestro-roadmap.md"},
|
|
13
|
+
{"name": "maestro-quick", "command": "/maestro-quick", "category": "core", "description": "快速任务 — 跳过管线直接完成,支持 --full/--discuss 模式", "source": "../../commands/maestro-quick.md"},
|
|
14
14
|
{"name": "maestro-overlay", "command": "/maestro-overlay", "category": "core", "description": "Overlay 管理 — 创建、查看、删除命令补丁", "source": "../../commands/maestro-overlay.md"},
|
|
15
15
|
{"name": "maestro-amend", "command": "/maestro-amend", "category": "core", "description": "修正补丁 — 从工作流信号自动生成 overlay", "source": "../../commands/maestro-amend.md"},
|
|
16
16
|
{"name": "maestro-composer", "command": "/maestro-composer", "category": "core", "description": "编排器 — compose + play 工作流组合执行", "source": "../../commands/maestro-composer.md"},
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
{"name": "maestro-plan", "command": "/maestro-plan", "category": "pipeline", "description": "任务规划 — 支持 --from analyze:ANL-xxx 直达、碰撞检测、gap 修复计划", "source": "../../commands/maestro-plan.md"},
|
|
28
28
|
{"name": "maestro-execute", "command": "/maestro-execute", "category": "pipeline", "description": "任务执行 — wave 并行执行、delegate 编排、自动提交", "source": "../../commands/maestro-execute.md"},
|
|
29
29
|
|
|
30
|
-
{"name": "maestro-milestone-audit", "command": "/maestro-milestone-audit", "category": "milestone", "description": "里程碑审计 —
|
|
30
|
+
{"name": "maestro-milestone-audit", "command": "/maestro-milestone-audit", "category": "milestone", "description": "里程碑审计 — 检查里程碑完成度和质量", "source": "../../commands/maestro-milestone-audit.md"},
|
|
31
31
|
{"name": "maestro-milestone-complete", "command": "/maestro-milestone-complete", "category": "milestone", "description": "里程碑完成 — 归档里程碑并推进下一个", "source": "../../commands/maestro-milestone-complete.md"},
|
|
32
32
|
{"name": "maestro-milestone-release", "command": "/maestro-milestone-release", "category": "milestone", "description": "里程碑发布 — 生成发布说明和变更日志", "source": "../../commands/maestro-milestone-release.md"},
|
|
33
33
|
|
|
@@ -218,17 +218,17 @@
|
|
|
218
218
|
],
|
|
219
219
|
"workflows": {
|
|
220
220
|
"topology": {
|
|
221
|
-
"hierarchy": "Roadmap > Milestone > Phase > Task",
|
|
221
|
+
"hierarchy": "Roadmap > Milestone > Phase | Plan > Task > Wave",
|
|
222
222
|
"layers": {
|
|
223
223
|
"upstream_origin": ["brainstorm (发散/轻量)", "blueprint (收敛/重型)"],
|
|
224
|
-
"understanding": "analyze 双层: 宏观(文本参数) + 微观(数字参数)",
|
|
224
|
+
"understanding": "analyze 双层: 宏观(文本参数) + 微观(milestone 数字参数)",
|
|
225
225
|
"orchestration": "roadmap (可选,消费上游 context)",
|
|
226
226
|
"execution": ["plan", "execute"]
|
|
227
227
|
}
|
|
228
228
|
},
|
|
229
229
|
"paths": {
|
|
230
|
-
"A_full_project": "brainstorm → blueprint(可选) → analyze 宏观 → roadmap → analyze
|
|
231
|
-
"B_large_feature": "analyze 宏观 → roadmap → analyze
|
|
230
|
+
"A_full_project": "brainstorm → blueprint(可选) → analyze 宏观 → roadmap → analyze {milestone} → plan {milestone} → execute",
|
|
231
|
+
"B_large_feature": "analyze 宏观 → roadmap → analyze {milestone} → plan {milestone} → execute",
|
|
232
232
|
"C_medium_feature": "analyze 宏观 → plan --from analyze:ANL-xxx → execute",
|
|
233
233
|
"D_small_fix": "plan → execute",
|
|
234
234
|
"E_spec_only": "blueprint → (供人阅读)",
|
|
@@ -40,8 +40,18 @@ $ARGUMENTS — none for interactive mode, or `-y` with `@file` reference for aut
|
|
|
40
40
|
|
|
41
41
|
**Load project state if exists:**
|
|
42
42
|
Check for `.workflow/state.json` -- loads context if project already initialized.
|
|
43
|
+
|
|
44
|
+
**Output boundary**: ALL file writes MUST target `.workflow/` (project.md, state.json, config.json, specs/) only. NEVER modify source code or files outside `.workflow/`.
|
|
43
45
|
</context>
|
|
44
46
|
|
|
47
|
+
<invariants>
|
|
48
|
+
1. **Idempotent init** — re-running init on an already-initialized project MUST detect existing `.workflow/` and warn (E002); NEVER silently overwrite existing state
|
|
49
|
+
2. **Scope guard** — init MUST only make initialization decisions; NEVER prejudge roadmap structure, plan scope, or implementation details
|
|
50
|
+
3. **All artifacts required** — init MUST NOT report completion until project.md, state.json, and config.json all exist; missing artifacts MUST be created before exit
|
|
51
|
+
4. **Template-driven** — deferred templates (project.md, state.json, config.json) MUST be read from `~/.maestro/templates/` and customized; NEVER generate from scratch without template
|
|
52
|
+
5. **Interview writes back** — all interactive decisions MUST be written to project.md/config.json before proceeding to research or completion; NEVER leave decisions unrecorded
|
|
53
|
+
</invariants>
|
|
54
|
+
|
|
45
55
|
<interview_protocol>
|
|
46
56
|
Follows @~/.maestro/workflows/interview-mechanics.md standard.
|
|
47
57
|
|
|
@@ -54,6 +64,24 @@ Follows @~/.maestro/workflows/interview-mechanics.md standard.
|
|
|
54
64
|
</interview_protocol>
|
|
55
65
|
|
|
56
66
|
<execution>
|
|
67
|
+
|
|
68
|
+
### Phase Gates (MANDATORY, BLOCKING)
|
|
69
|
+
|
|
70
|
+
**GATE 1: Pre-flight → Interview**
|
|
71
|
+
- REQUIRED: `.workflow/` existence check completed.
|
|
72
|
+
- REQUIRED: `--from` source validated (if provided).
|
|
73
|
+
- BLOCKED if: E002 (greenfield conflict with existing `.workflow/`) unresolved.
|
|
74
|
+
|
|
75
|
+
**GATE 2: Interview → Research**
|
|
76
|
+
- REQUIRED: All interview decisions recorded in project.md and config.json.
|
|
77
|
+
- REQUIRED: `.workflow/` directory created with initial structure.
|
|
78
|
+
- BLOCKED if: interview decisions not yet written to files.
|
|
79
|
+
|
|
80
|
+
**GATE 3: Research → Completion**
|
|
81
|
+
- REQUIRED: All 3 required artifacts exist (project.md, state.json, config.json).
|
|
82
|
+
- REQUIRED: `.workflow/specs/` initialized.
|
|
83
|
+
- BLOCKED if: any artifact missing — write it before reporting completion.
|
|
84
|
+
|
|
57
85
|
### Pre-flight
|
|
58
86
|
|
|
59
87
|
1. Check if `.workflow/` already exists — if so, load state and warn (E002 for greenfield conflicts)
|
|
@@ -106,7 +134,7 @@ Status verdicts:
|
|
|
106
134
|
| Condition | Suggestion |
|
|
107
135
|
|-----------|-----------|
|
|
108
136
|
| Roadmap needed (default light) | `/maestro-roadmap <requirement>` |
|
|
109
|
-
| Full spec package
|
|
137
|
+
| Full spec package | `/maestro-blueprint <idea>` |
|
|
110
138
|
| Explore ideas first | `/maestro-brainstorm <topic>` |
|
|
111
139
|
| View project dashboard | `/manage-status` |
|
|
112
140
|
| Quick ad-hoc task | `/maestro-quick <task>` |
|
|
@@ -58,7 +58,7 @@ Audit checklist steps (phase coverage, ad-hoc completeness, execution completene
|
|
|
58
58
|
|
|
59
59
|
**GATE 1: Load → Phase Coverage Check**
|
|
60
60
|
- REQUIRED: state.json loaded with artifacts[] filtered by target milestone.
|
|
61
|
-
- REQUIRED: Milestone phases identified from
|
|
61
|
+
- REQUIRED: Milestone phases identified from the PLN artifact's plan.json (standard) or milestone_obj.phases (adhoc). Phase coverage is verified from the PLN artifact's plan.json, not from roadmap.
|
|
62
62
|
- BLOCKED if no execute artifacts found: error E003.
|
|
63
63
|
|
|
64
64
|
**GATE 2: Phase Coverage → Integration Check**
|
|
@@ -118,7 +118,7 @@ Status verdicts:
|
|
|
118
118
|
</error_codes>
|
|
119
119
|
|
|
120
120
|
<success_criteria>
|
|
121
|
-
- [ ] All phases in milestone identified from
|
|
121
|
+
- [ ] All phases in milestone identified from the PLN artifact's plan.json (standard) or milestone_obj.phases (adhoc)
|
|
122
122
|
- [ ] Artifact chains verified: ANL→PLN→EXC per phase (standard) or PLN→EXC exists (adhoc)
|
|
123
123
|
- [ ] Ad-hoc artifacts checked for completion
|
|
124
124
|
- [ ] Integration check completed (shared interfaces, data contracts)
|
|
@@ -113,7 +113,7 @@ Status verdicts:
|
|
|
113
113
|
|
|
114
114
|
| Condition | Suggestion |
|
|
115
115
|
|-----------|-----------|
|
|
116
|
-
| Release successful, starting next milestone | `/maestro-plan {
|
|
116
|
+
| Release successful, starting next milestone | `/maestro-plan {next_milestone}` |
|
|
117
117
|
| Want to view project dashboard | `/manage-status` |
|
|
118
118
|
</completion>
|
|
119
119
|
|
|
@@ -103,8 +103,8 @@ ls -la .workflow/.maestro/ 2>/dev/null | head -5 # 进行中的 session
|
|
|
103
103
|
| 无 `.workflow/` + 有源码 | init | `maestro-init` |
|
|
104
104
|
| 有 state.json,无 roadmap,无 milestones | analyze-macro | `maestro-analyze` (宏观调研) |
|
|
105
105
|
| 有 macro analyze artifact,无 roadmap | roadmap | `maestro-roadmap` |
|
|
106
|
-
| 有 roadmap,未启动 phase | analyze | `maestro-analyze {
|
|
107
|
-
| 最新 artifact = analyze | plan | `maestro-plan {
|
|
106
|
+
| 有 roadmap,未启动 phase | analyze | `maestro-analyze {milestone}` |
|
|
107
|
+
| 最新 artifact = analyze | plan | `maestro-plan {milestone}` |
|
|
108
108
|
| 最新 artifact = plan | execute | `maestro-execute {phase}` |
|
|
109
109
|
| 最新 artifact = execute | review | `quality-review {phase}` |
|
|
110
110
|
| review verdict=PASS | test-gen | `quality-auto-test {phase}` |
|
|
@@ -33,8 +33,19 @@ Turn natural-language instructions into command overlays — JSON patch files th
|
|
|
33
33
|
**Management** — listing and removing overlays is handled by `maestro overlay list` (ink TUI with interactive delete). This skill focuses solely on creation.
|
|
34
34
|
|
|
35
35
|
**Available sections** (for `section:` in patches): `purpose`, `required_reading`, `deferred_reading`, `context`, `execution`, `error_codes`, `success_criteria`.
|
|
36
|
+
|
|
37
|
+
**Output boundary**: ALL file writes MUST target `~/.maestro/overlays/` (overlay JSON + docs) only. Command file patching is handled by `maestro overlay add` — this skill NEVER modifies `.claude/commands/*.md` directly.
|
|
36
38
|
</context>
|
|
37
39
|
|
|
40
|
+
<invariants>
|
|
41
|
+
1. **Non-invasive** — overlays MUST use hashed HTML-comment markers for injection; NEVER edit command file content directly outside the overlay system
|
|
42
|
+
2. **Idempotent** — re-running `maestro overlay apply` with the same overlay JSON MUST produce no file changes
|
|
43
|
+
3. **Creation only** — this skill MUST only create overlays; listing and removal are handled by `maestro overlay list` (ink TUI)
|
|
44
|
+
4. **Pristine source preferred** — injection point analysis MUST read from `$PKG_ROOT/.claude/commands/` (untouched originals) first, fall back to `~/.claude/commands/` only if pristine unavailable
|
|
45
|
+
5. **User approval before write** — overlay JSON MUST be shown and approved via ask_question before writing to disk; NEVER auto-install without confirmation
|
|
46
|
+
6. **Chain skip option mandatory** — if a skill chain is configured, the injected content MUST include a "Skip" option in ask_question; NEVER force the user into a chain
|
|
47
|
+
</invariants>
|
|
48
|
+
|
|
38
49
|
<execution>
|
|
39
50
|
### 1. Parse user intent
|
|
40
51
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: maestro-plan
|
|
3
|
-
description: Use when creating, revising, or verifying an execution plan for a
|
|
4
|
-
argument-hint: [
|
|
3
|
+
description: Use when creating, revising, or verifying an execution plan for a milestone or task
|
|
4
|
+
argument-hint: [milestone] [--spec SPEC-xxx] [-y] [--gaps] [--tdd] [--dir <path>] [--from <source>] [--revise [instructions]] [--check <plan-dir>]
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- ask_question
|
|
7
7
|
- define_subagent
|
|
@@ -31,9 +31,9 @@ Produces plan.json + TASK files; registers PLN artifact in state.json.
|
|
|
31
31
|
</deferred_reading>
|
|
32
32
|
|
|
33
33
|
<context>
|
|
34
|
-
$ARGUMENTS —
|
|
34
|
+
$ARGUMENTS — milestone number, or no args for current milestone, with optional flags.
|
|
35
35
|
|
|
36
|
-
Scope routing, base flags (`--
|
|
36
|
+
Scope routing, base flags (`--spec`, `-y`, `--gaps`, `--dir`), output directory format, and artifact registration are defined in workflow plan.md.
|
|
37
37
|
|
|
38
38
|
**Command-level flags** (extensions beyond workflow base):
|
|
39
39
|
- `--from <source>`: Load upstream context directly (bypasses roadmap requirement):
|
|
@@ -48,8 +48,8 @@ Scope routing, base flags (`--collab`, `--spec`, `-y`, `--gaps`, `--dir`), outpu
|
|
|
48
48
|
1. `--from analyze:ANL-xxx` → uses analyze conclusions.implementation_scope directly
|
|
49
49
|
2. `--from blueprint:BLP-xxx` → uses blueprint requirements + architecture
|
|
50
50
|
3. `--dir <path>` → explicit context directory (unchanged)
|
|
51
|
-
4. Numeric arg → scope = "
|
|
52
|
-
5. No args + roadmap → scope = "
|
|
51
|
+
4. Numeric arg → scope = "milestone", resolve from roadmap
|
|
52
|
+
5. No args + roadmap → scope = "current_milestone"
|
|
53
53
|
6. No args + no roadmap → search state.json for latest analyze artifact, fallback standalone
|
|
54
54
|
|
|
55
55
|
**Ad-hoc milestone (D-008):** When scope resolves to "standalone" via the standard standalone resolution (no `--from` source), and `current_milestone == null`, plan auto-creates an adhoc milestone (`type: "adhoc"`) in state.json before proceeding. This ensures downstream milestone-audit/complete have a valid milestone context. See workflow plan.md § "Ad-hoc Milestone Auto-Creation".
|
|
@@ -71,6 +71,28 @@ If exit code is 1, present warnings and ask whether to proceed.
|
|
|
71
71
|
|
|
72
72
|
Follow '~/.maestro/workflows/plan.md' completely.
|
|
73
73
|
|
|
74
|
+
### Plan Agent Model
|
|
75
|
+
|
|
76
|
+
Plan automatically selects agent mode based on milestone scope:
|
|
77
|
+
|
|
78
|
+
**Single agent mode** (default):
|
|
79
|
+
- Milestone involves ≤3 modules
|
|
80
|
+
- 1 workflow-planner agent, max 8 TASK JSON output
|
|
81
|
+
- Directly produces plan.json
|
|
82
|
+
|
|
83
|
+
**2+1 agent mode** (auto-triggered):
|
|
84
|
+
- Milestone involves >3 modules
|
|
85
|
+
- 2 parallel workflow-planner agents, each scoped to 2-3 modules
|
|
86
|
+
- Each agent produces max 8 TASK JSON (total max 16)
|
|
87
|
+
- +1 synthesis agent:
|
|
88
|
+
- Merges TASK JSON from both agents
|
|
89
|
+
- DAG analysis: dependency correctness, cycle detection, cross-module conflicts
|
|
90
|
+
- Terminology consistency check
|
|
91
|
+
- Wave ordering optimization
|
|
92
|
+
- Produces unified plan.json
|
|
93
|
+
|
|
94
|
+
Module count is derived from milestone phase definitions and analyze upstream context.
|
|
95
|
+
|
|
74
96
|
### Phase Gates (MANDATORY, BLOCKING — Create mode only)
|
|
75
97
|
|
|
76
98
|
**GATE P1 → P2: Context Collection → Clarification**
|
|
@@ -115,7 +137,7 @@ Follow workflow plan.md § "Revise Mode" and § "Check Mode" respectively. These
|
|
|
115
137
|
|
|
116
138
|
```
|
|
117
139
|
=== PLAN READY ===
|
|
118
|
-
|
|
140
|
+
Milestone: {milestone_name}
|
|
119
141
|
Tasks: {task_count} tasks in {wave_count} waves
|
|
120
142
|
Check: {checker_status} (iteration {check_count}/{max_checks})
|
|
121
143
|
Collision: {collision_status}
|
|
@@ -145,13 +167,13 @@ Status verdicts:
|
|
|
145
167
|
|-----------|-----------|
|
|
146
168
|
| Plan confirmed for execution | `/maestro-execute` |
|
|
147
169
|
| Plan confirmed, specific directory | `/maestro-execute --dir {dir}` |
|
|
148
|
-
| Re-plan with modifications | `/maestro-plan {
|
|
170
|
+
| Re-plan with modifications | `/maestro-plan {milestone}` |
|
|
149
171
|
</completion>
|
|
150
172
|
|
|
151
173
|
<error_codes>
|
|
152
174
|
| Code | Severity | Condition | Recovery |
|
|
153
175
|
|------|----------|-----------|----------|
|
|
154
|
-
| E001 | error | No args and no roadmap (cannot determine scope) | Provide
|
|
176
|
+
| E001 | error | No args and no roadmap (cannot determine scope) | Provide milestone number or topic, or create roadmap |
|
|
155
177
|
| E003 | error | --gaps requires prior verification/issues to exist | Run maestro-execute first (verification is built-in) |
|
|
156
178
|
| E004 | error | No plan found to revise (--revise without target) | Use --dir to specify plan, or create plan first |
|
|
157
179
|
| E005 | error | Plan directory not found (--check) | Check path, use --dir |
|
|
@@ -68,8 +68,19 @@ $ARGUMENTS — template slug/path, or flags.
|
|
|
68
68
|
"last_checkpoint": null
|
|
69
69
|
}
|
|
70
70
|
```
|
|
71
|
+
|
|
72
|
+
**Output boundary**: ALL file writes MUST target `.workflow/.maestro/player-*/` (session status.json + step outputs) only. Template files (`~/.maestro/templates/workflows/`) are read-only. NEVER modify source code or `.claude/commands/` files.
|
|
71
73
|
</context>
|
|
72
74
|
|
|
75
|
+
<invariants>
|
|
76
|
+
1. **Resume-safe** — status.json MUST be updated after every step change; an interrupted session MUST be resumable from the last checkpoint via `-c`
|
|
77
|
+
2. **One step at a time** — execution loop MUST process steps sequentially in topological order; parallel steps share a batch index but NEVER run concurrently within the player
|
|
78
|
+
3. **CLI nodes async** — cli-type nodes MUST use `run_command(run_in_background: true)` + STOP pattern; NEVER block the main thread on delegate execution
|
|
79
|
+
4. **Templates read-only** — player MUST NOT modify template JSON files; runtime state belongs in status.json only
|
|
80
|
+
5. **Failure requires user decision** — on step failure without explicit `on_fail`, player MUST prompt via ask_question (Retry/Skip/Abort); NEVER silently skip or auto-abort
|
|
81
|
+
6. **Reference resolution at runtime** — `{N-xxx.field}` and `{prev_*}` references MUST be resolved at execution time from status.json step results, NEVER pre-resolved during init
|
|
82
|
+
</invariants>
|
|
83
|
+
|
|
73
84
|
<state_machine>
|
|
74
85
|
|
|
75
86
|
<states>
|
|
@@ -41,9 +41,38 @@ Parse for:
|
|
|
41
41
|
- Browse: `maestro search --category coding`
|
|
42
42
|
- Load task-relevant entries: `maestro load --type knowhow --id <id1> [id2...]`
|
|
43
43
|
3. All are optional — proceed without if unavailable.
|
|
44
|
+
|
|
45
|
+
**Output boundary**: ALL file writes MUST target `.workflow/scratch/` (task directory, plan.json, summaries) and modified source files as defined in plan.json tasks. State.json scratch entry is implicit workflow tracking.
|
|
44
46
|
</context>
|
|
45
47
|
|
|
48
|
+
<invariants>
|
|
49
|
+
1. **Atomic commits** — each task execution MUST produce a commit with only the files modified by that task; NEVER stage unrelated files
|
|
50
|
+
2. **Evidence-based summaries** — task summaries MUST include concrete evidence (files changed, tests run, commands executed); NEVER accept "task completed successfully" as a summary
|
|
51
|
+
3. **Plan before execute** — plan.json MUST be written before any task execution begins; NEVER skip planning even for single-task workflows
|
|
52
|
+
4. **Scratch isolation** — all workflow artifacts MUST live under `.workflow/scratch/{task-dir}/`; NEVER write workflow metadata outside this directory
|
|
53
|
+
5. **Commit confirmation** — staged files and commit message MUST be shown via ask_question before committing (unless `-y`); NEVER auto-commit without user awareness
|
|
54
|
+
</invariants>
|
|
55
|
+
|
|
46
56
|
<execution>
|
|
57
|
+
|
|
58
|
+
### Phase Gates (MANDATORY, BLOCKING)
|
|
59
|
+
|
|
60
|
+
**GATE 1: Setup → Planning**
|
|
61
|
+
- REQUIRED: Task description parsed and scratch directory created.
|
|
62
|
+
- REQUIRED: Coding specs loaded (optional but attempted).
|
|
63
|
+
- BLOCKED if: no task description (E001) or scratch directory creation failed (E002).
|
|
64
|
+
|
|
65
|
+
**GATE 2: Planning → Execution**
|
|
66
|
+
- REQUIRED: plan.json written with task definitions.
|
|
67
|
+
- REQUIRED: --discuss decisions extracted and recorded (if flag set).
|
|
68
|
+
- BLOCKED if: plan.json missing or empty.
|
|
69
|
+
|
|
70
|
+
**GATE 3: Execution → Completion**
|
|
71
|
+
- REQUIRED: All tasks executed with `.summaries/TASK-*-summary.md` written per task.
|
|
72
|
+
- REQUIRED: Each summary contains concrete evidence of completion.
|
|
73
|
+
- REQUIRED: --full verification passed (if flag set).
|
|
74
|
+
- BLOCKED if: any task summary missing or lacking evidence.
|
|
75
|
+
|
|
47
76
|
Follow '~/.maestro/workflows/quick.md' completely.
|
|
48
77
|
|
|
49
78
|
### Artifact Verification (before completion)
|