maestro-flow 0.3.15 → 0.3.17
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/.claude/agents/workflow-planner.md +24 -8
- package/.claude/commands/maestro-amend.md +300 -0
- package/.claude/commands/maestro-analyze.md +1 -49
- package/.claude/commands/maestro-execute.md +2 -56
- package/.claude/commands/maestro-fork.md +3 -50
- package/.claude/commands/maestro-merge.md +2 -26
- package/.claude/commands/maestro-milestone-audit.md +1 -5
- package/.claude/commands/maestro-milestone-complete.md +1 -7
- package/.claude/commands/maestro-plan.md +6 -127
- package/.claude/commands/maestro-roadmap.md +3 -101
- package/.claude/commands/maestro-spec-generate.md +1 -25
- package/.claude/commands/maestro-ui-design.md +14 -73
- package/.claude/commands/maestro-verify.md +1 -32
- package/.claude/commands/maestro.md +13 -30
- package/.claude/commands/manage-harvest.md +7 -44
- package/.claude/commands/manage-knowhow-capture.md +193 -0
- package/.claude/commands/{manage-memory.md → manage-knowhow.md} +77 -88
- package/.claude/commands/manage-learn.md +3 -28
- package/.claude/commands/manage-status.md +1 -20
- package/.claude/commands/manage-wiki.md +1 -1
- package/.claude/commands/quality-business-test.md +1 -1
- package/.claude/commands/quality-debug.md +3 -18
- package/.claude/commands/quality-integration-test.md +3 -23
- package/.claude/commands/quality-retrospective.md +1 -28
- package/.claude/commands/quality-review.md +3 -52
- package/.claude/commands/quality-test-gen.md +1 -10
- package/.claude/commands/quality-test.md +3 -25
- package/.claude/commands/spec-add.md +1 -21
- package/.claude/commands/spec-load.md +1 -16
- package/.claude/commands/wiki-connect.md +2 -112
- package/.claude/commands/wiki-digest.md +2 -141
- package/.codex/skills/learn-decompose/SKILL.md +2 -8
- package/.codex/skills/maestro/SKILL.md +60 -146
- package/.codex/skills/maestro-analyze/SKILL.md +52 -150
- package/.codex/skills/maestro-brainstorm/SKILL.md +36 -91
- package/.codex/skills/maestro-composer/SKILL.md +4 -76
- package/.codex/skills/maestro-execute/SKILL.md +46 -177
- package/.codex/skills/maestro-init/SKILL.md +7 -51
- package/.codex/skills/maestro-link-coordinate/SKILL.md +56 -229
- package/.codex/skills/maestro-milestone-audit/SKILL.md +7 -36
- package/.codex/skills/maestro-milestone-complete/SKILL.md +11 -93
- package/.codex/skills/maestro-overlay/SKILL.md +23 -92
- package/.codex/skills/maestro-plan/SKILL.md +70 -166
- package/.codex/skills/maestro-player/SKILL.md +24 -149
- package/.codex/skills/maestro-quick/SKILL.md +5 -48
- package/.codex/skills/maestro-roadmap/SKILL.md +21 -66
- package/.codex/skills/maestro-spec-generate/SKILL.md +20 -56
- package/.codex/skills/maestro-ui-design/SKILL.md +6 -53
- package/.codex/skills/maestro-verify/SKILL.md +39 -136
- package/.codex/skills/manage-codebase-rebuild/SKILL.md +25 -75
- package/.codex/skills/manage-codebase-refresh/SKILL.md +5 -32
- package/.codex/skills/manage-issue/SKILL.md +1 -6
- package/.codex/skills/manage-issue-discover/SKILL.md +33 -93
- package/.codex/skills/{manage-memory → manage-knowhow}/SKILL.md +95 -95
- package/.codex/skills/manage-knowhow-capture/SKILL.md +110 -0
- package/.codex/skills/manage-learn/SKILL.md +17 -71
- package/.codex/skills/manage-status/SKILL.md +4 -35
- package/.codex/skills/manage-wiki/SKILL.md +1 -1
- package/.codex/skills/quality-business-test/SKILL.md +2 -14
- package/.codex/skills/quality-debug/SKILL.md +41 -133
- package/.codex/skills/quality-integration-test/SKILL.md +36 -145
- package/.codex/skills/quality-refactor/SKILL.md +6 -59
- package/.codex/skills/quality-retrospective/SKILL.md +292 -531
- package/.codex/skills/quality-review/SKILL.md +30 -65
- package/.codex/skills/quality-sync/SKILL.md +2 -11
- package/.codex/skills/quality-test/SKILL.md +4 -45
- package/.codex/skills/quality-test-gen/SKILL.md +33 -121
- package/.codex/skills/spec-add/SKILL.md +2 -9
- package/.codex/skills/spec-load/SKILL.md +4 -14
- package/.codex/skills/spec-map/SKILL.md +4 -37
- package/.codex/skills/spec-remove/SKILL.md +3 -35
- package/.codex/skills/spec-setup/SKILL.md +2 -19
- package/.codex/skills/team-coordinate/SKILL.md +20 -132
- package/.codex/skills/team-coordinate/roles/coordinator/commands/monitor.md +61 -215
- package/.codex/skills/team-executor/SKILL.md +7 -66
- package/.codex/skills/team-executor/roles/executor/commands/monitor.md +60 -182
- package/.codex/skills/team-executor/specs/session-schema.md +22 -56
- package/.codex/skills/team-lifecycle-v4/SKILL.md +22 -143
- package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +31 -223
- package/.codex/skills/team-quality-assurance/SKILL.md +14 -88
- package/.codex/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +46 -186
- package/.codex/skills/team-review/SKILL.md +12 -86
- package/.codex/skills/team-review/roles/coordinator/commands/monitor.md +49 -187
- package/.codex/skills/team-tech-debt/SKILL.md +11 -50
- package/.codex/skills/team-tech-debt/roles/coordinator/commands/monitor.md +50 -239
- package/.codex/skills/team-testing/SKILL.md +14 -99
- package/.codex/skills/team-testing/roles/coordinator/commands/monitor.md +52 -228
- package/.codex/skills/wiki-connect/SKILL.md +2 -5
- package/README.md +6 -0
- package/README.zh-CN.md +6 -0
- package/chains/_intent-map.json +7 -7
- package/chains/singles/{memory-capture.json → knowhow-capture.json} +5 -5
- package/chains/singles/{memory.json → knowhow.json} +6 -6
- package/dashboard/dist/assets/{ArtifactsPage-CUrrDGgN.js → ArtifactsPage-iJZtYsmR.js} +6 -6
- package/dashboard/dist/assets/ChatInput-DNnDLdQF.js +6 -0
- package/dashboard/dist/assets/ChatPage-BjBibfE4.js +22 -0
- package/dashboard/dist/assets/{CollabPage-DIUXeazv.js → CollabPage-8lUMUol_.js} +1 -1
- package/dashboard/dist/assets/{ExecutionPanel-VmYeADFj.js → ExecutionPanel-BKV3GZ7Q.js} +1 -1
- package/dashboard/dist/assets/{KanbanPage-DLq8v7hg.js → KanbanPage-diY3QmGd.js} +2 -2
- package/dashboard/dist/assets/{MarkdownRenderer-D7AehrnR.js → MarkdownRenderer-cYFfe1uX.js} +1 -1
- package/dashboard/dist/assets/McpPage-COjuIf7U.js +21 -0
- package/dashboard/dist/assets/MeetingRoomPage-wnvT7wlB.js +85 -0
- package/dashboard/dist/assets/{OutputPanel-B-Rjwgmv.js → OutputPanel-DDL90Idy.js} +1 -1
- package/dashboard/dist/assets/{ProblemsPanel-GEpF-oi4.js → ProblemsPanel-zFN9IIs0.js} +1 -1
- package/dashboard/dist/assets/{RequirementBoardPage-xs8uDM7I.js → RequirementBoardPage-DOPJoT0I.js} +2 -2
- package/dashboard/dist/assets/{RequirementPage-BKDSFwjA.js → RequirementPage-CEVquRgM.js} +1 -1
- package/dashboard/dist/assets/RoomsPage-D5USEWDh.js +1 -0
- package/dashboard/dist/assets/{SpecsPage-DLFb9ZH0.js → SpecsPage-BOwBin_o.js} +1 -1
- package/dashboard/dist/assets/{SupervisorPage-SOki_kgz.js → SupervisorPage-5iRyMU5T.js} +1 -1
- package/dashboard/dist/assets/TeamsPage-DlcEmr_Q.js +1 -0
- package/dashboard/dist/assets/{TreeBrowser-B9DHdULE.js → TreeBrowser-Y48Wz-QY.js} +1 -1
- package/dashboard/dist/assets/WorkflowPage-CmQaRVgL.js +6 -0
- package/dashboard/dist/assets/arrow-left-NCUOENvg.js +6 -0
- package/dashboard/dist/assets/{check-DJDk3A2a.js → check-o7nfGNHf.js} +1 -1
- package/dashboard/dist/assets/{chevron-right-C7bVDreZ.js → chevron-right-BXySK2fn.js} +1 -1
- package/dashboard/dist/assets/{circle-alert-Na1vf6qQ.js → circle-alert-DcSBokh4.js} +1 -1
- package/dashboard/dist/assets/{circle-check-CEGgy3NV.js → circle-check-Cd-jce4j.js} +1 -1
- package/dashboard/dist/assets/{circle-check-big-3JB8zRYj.js → circle-check-big-BN7Mdp4i.js} +1 -1
- package/dashboard/dist/assets/{circle-Qfgy4LB_.js → circle-cooAwnAR.js} +1 -1
- package/dashboard/dist/assets/{code-Ble63Idz.js → code-BQa9oL1n.js} +1 -1
- package/dashboard/dist/assets/{columns-3-BUcKlxve.js → columns-3-BzgxelGx.js} +1 -1
- package/dashboard/dist/assets/{download-CMqkfn8x.js → download-swRJnate.js} +1 -1
- package/dashboard/dist/assets/en-C_BD3UCD.js +1 -0
- package/dashboard/dist/assets/{folder-B9ewx9LL.js → folder-DbGbLNFN.js} +1 -1
- package/dashboard/dist/assets/index-BEUaOz_b.css +1 -0
- package/dashboard/dist/assets/{index-JTmGteaT.js → index-DIoMBMbv.js} +1 -1
- package/dashboard/dist/assets/index-DLBN_7fb.js +44 -0
- package/dashboard/dist/assets/index-uIqUCT8y.js +236 -0
- package/dashboard/dist/assets/{list-DI8Wn2aT.js → list-BTRAIvDq.js} +1 -1
- package/dashboard/dist/assets/loader-NHtB6Mdn.js +6 -0
- package/dashboard/dist/assets/{minus-Lp_BfctG.js → minus-BjMxRTET.js} +1 -1
- package/dashboard/dist/assets/{pen-line-Ch7sphzZ.js → pen-line-C4_O16H0.js} +1 -1
- package/dashboard/dist/assets/{pencil-_yRMHmGT.js → pencil-DTmKhyDY.js} +1 -1
- package/dashboard/dist/assets/{proxy-D72Y8a4Y.js → proxy-Dtx5p6IO.js} +1 -1
- package/dashboard/dist/assets/rows-2-GR1dZtRu.js +6 -0
- package/dashboard/dist/assets/{search-BS6fI6Bg.js → search-DVtgy2W7.js} +1 -1
- package/dashboard/dist/assets/{shallow-BXasQBvr.js → shallow-BOmvDNsv.js} +1 -1
- package/dashboard/dist/assets/{table-CeGlFjlP.js → table-DCzuJAFh.js} +1 -1
- package/dashboard/dist/assets/team-types-BPeOvVdA.js +6 -0
- package/dashboard/dist/assets/{terminal-BJic2yW-.js → terminal-CzogW4cl.js} +1 -1
- package/dashboard/dist/assets/{trash-2-Czz4X8Fb.js → trash-2-52LATVfW.js} +1 -1
- package/dashboard/dist/assets/users-DLFE2voE.js +6 -0
- package/dashboard/dist/assets/{zap-C3H0jVFA.js → zap-DhiYlgyZ.js} +1 -1
- package/dashboard/dist/assets/zh-CN-DvQKfow3.js +1 -0
- package/dashboard/dist/index.html +2 -2
- package/dashboard/dist-server/dashboard/src/server/agents/agent-manager.d.ts +2 -0
- package/dashboard/dist-server/dashboard/src/server/agents/agent-manager.js +19 -11
- package/dashboard/dist-server/dashboard/src/server/agents/agent-manager.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/agents/agent-sdk-adapter.js +5 -0
- package/dashboard/dist-server/dashboard/src/server/agents/agent-sdk-adapter.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.d.ts +1 -0
- package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js +21 -4
- package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/agents/env-cleanup.js +8 -0
- package/dashboard/dist-server/dashboard/src/server/agents/env-cleanup.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js +6 -6
- package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.test.js +2 -2
- package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.test.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/index.js +14 -3
- package/dashboard/dist-server/dashboard/src/server/index.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/rooms/mcp-server/mcp-config-builder.d.ts +24 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/mcp-server/mcp-config-builder.js +220 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/mcp-server/mcp-config-builder.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/mcp-server/mcp-config-builder.test.d.ts +1 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/mcp-server/mcp-config-builder.test.js +115 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/mcp-server/mcp-config-builder.test.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/mcp-server/meeting-room-mcp-server.d.ts +44 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/mcp-server/meeting-room-mcp-server.js +260 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/mcp-server/meeting-room-mcp-server.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/mcp-server/meeting-room-mcp-server.test.d.ts +1 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/mcp-server/meeting-room-mcp-server.test.js +194 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/mcp-server/meeting-room-mcp-server.test.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/mcp-server/stdio-bridge.d.ts +2 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/mcp-server/stdio-bridge.js +279 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/mcp-server/stdio-bridge.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/mcp-server/tcp-helpers.d.ts +14 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/mcp-server/tcp-helpers.js +131 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/mcp-server/tcp-helpers.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/mcp-server/tcp-helpers.test.d.ts +1 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/mcp-server/tcp-helpers.test.js +134 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/mcp-server/tcp-helpers.test.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/meeting-room-session.d.ts +51 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/meeting-room-session.js +185 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/meeting-room-session.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/room-agent-registry.d.ts +29 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/room-agent-registry.js +125 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/room-agent-registry.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/room-mailbox.d.ts +18 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/room-mailbox.js +63 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/room-mailbox.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/room-session-manager.d.ts +19 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/room-session-manager.js +45 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/room-session-manager.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/room-task-board.d.ts +25 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/room-task-board.js +115 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/room-task-board.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/room-types.d.ts +53 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/room-types.js +5 -0
- package/dashboard/dist-server/dashboard/src/server/rooms/room-types.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/server/routes/agents.js +6 -0
- package/dashboard/dist-server/dashboard/src/server/routes/agents.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/routes/cli-history.js +20 -1
- package/dashboard/dist-server/dashboard/src/server/routes/cli-history.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/routes/index.d.ts +2 -1
- package/dashboard/dist-server/dashboard/src/server/routes/index.js +8 -1
- package/dashboard/dist-server/dashboard/src/server/routes/index.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/routes/install.js +1 -1
- package/dashboard/dist-server/dashboard/src/server/routes/install.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/routes/mcp.js +2 -2
- package/dashboard/dist-server/dashboard/src/server/routes/mcp.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/routes/room-mcp.d.ts +3 -0
- package/dashboard/dist-server/dashboard/src/server/routes/room-mcp.js +246 -0
- package/dashboard/dist-server/dashboard/src/server/routes/room-mcp.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/server/routes/rooms.d.ts +3 -0
- package/dashboard/dist-server/dashboard/src/server/routes/rooms.js +38 -0
- package/dashboard/dist-server/dashboard/src/server/routes/rooms.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/server/routes/wiki.integration.test.js +7 -7
- package/dashboard/dist-server/dashboard/src/server/routes/wiki.integration.test.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/routes/wiki.js +1 -1
- package/dashboard/dist-server/dashboard/src/server/routes/wiki.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/state/event-bus.d.ts +39 -1
- package/dashboard/dist-server/dashboard/src/server/state/event-bus.js +12 -0
- package/dashboard/dist-server/dashboard/src/server/state/event-bus.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/stress.test.js +1 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/stress.test.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js +25 -14
- package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.test.js +6 -6
- package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.test.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/wiki-types.d.ts +1 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/writer-stress.test.js +17 -16
- package/dashboard/dist-server/dashboard/src/server/wiki/writer-stress.test.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/writer.d.ts +1 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/writer.js +18 -7
- package/dashboard/dist-server/dashboard/src/server/wiki/writer.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/ws/handlers/agent-handler.d.ts +3 -1
- package/dashboard/dist-server/dashboard/src/server/ws/handlers/agent-handler.js +75 -1
- package/dashboard/dist-server/dashboard/src/server/ws/handlers/agent-handler.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/ws/handlers/room-handler.d.ts +17 -0
- package/dashboard/dist-server/dashboard/src/server/ws/handlers/room-handler.js +192 -0
- package/dashboard/dist-server/dashboard/src/server/ws/handlers/room-handler.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/server/ws/session-scoped-event-filter.d.ts +13 -0
- package/dashboard/dist-server/dashboard/src/server/ws/session-scoped-event-filter.js +37 -0
- package/dashboard/dist-server/dashboard/src/server/ws/session-scoped-event-filter.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/server/ws/ws-manager.d.ts +7 -1
- package/dashboard/dist-server/dashboard/src/server/ws/ws-manager.js +39 -2
- package/dashboard/dist-server/dashboard/src/server/ws/ws-manager.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/shared/constants.js +12 -0
- package/dashboard/dist-server/dashboard/src/shared/constants.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/shared/room-leader-prompt.d.ts +1 -0
- package/dashboard/dist-server/dashboard/src/shared/room-leader-prompt.js +38 -0
- package/dashboard/dist-server/dashboard/src/shared/room-leader-prompt.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/shared/team-types.d.ts +66 -0
- package/dashboard/dist-server/dashboard/src/shared/team-types.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/shared/types.d.ts +24 -3
- package/dashboard/dist-server/dashboard/src/shared/ws-protocol.d.ts +76 -2
- package/dashboard/dist-server/dashboard/src/shared/ws-protocol.js.map +1 -1
- package/dashboard/dist-server/shared/agent-types.d.ts +2 -0
- package/dashboard/dist-server/src/commands/delegate.js +11 -8
- package/dashboard/dist-server/src/commands/delegate.js.map +1 -1
- package/dist/shared/agent-types.d.ts +2 -0
- package/dist/shared/agent-types.d.ts.map +1 -1
- package/dist/src/cli.js +2 -2
- package/dist/src/cli.js.map +1 -1
- package/dist/src/commands/delegate.d.ts.map +1 -1
- package/dist/src/commands/delegate.js +11 -8
- package/dist/src/commands/delegate.js.map +1 -1
- package/dist/src/commands/install-backend.d.ts +1 -1
- package/dist/src/commands/install-backend.d.ts.map +1 -1
- package/dist/src/commands/install-backend.js +1 -1
- package/dist/src/commands/install-backend.js.map +1 -1
- package/dist/src/commands/install-ui/ExecutionView.d.ts.map +1 -1
- package/dist/src/commands/install-ui/ExecutionView.js +4 -1
- package/dist/src/commands/install-ui/ExecutionView.js.map +1 -1
- package/dist/src/commands/install-ui/InstallExecution.d.ts.map +1 -1
- package/dist/src/commands/install-ui/InstallExecution.js +4 -1
- package/dist/src/commands/install-ui/InstallExecution.js.map +1 -1
- package/dist/src/commands/install.js +5 -5
- package/dist/src/commands/install.js.map +1 -1
- package/dist/src/commands/knowhow.d.ts +10 -0
- package/dist/src/commands/knowhow.d.ts.map +1 -0
- package/dist/src/commands/knowhow.js +217 -0
- package/dist/src/commands/knowhow.js.map +1 -0
- package/dist/src/commands/overlay-ui/OverlayList.d.ts +2 -0
- package/dist/src/commands/overlay-ui/OverlayList.d.ts.map +1 -1
- package/dist/src/commands/overlay-ui/OverlayList.js +6 -3
- package/dist/src/commands/overlay-ui/OverlayList.js.map +1 -1
- package/dist/src/commands/overlay-ui/index.d.ts.map +1 -1
- package/dist/src/commands/overlay-ui/index.js +70 -44
- package/dist/src/commands/overlay-ui/index.js.map +1 -1
- package/dist/src/commands/overlay.d.ts.map +1 -1
- package/dist/src/commands/overlay.js +4 -3
- package/dist/src/commands/overlay.js.map +1 -1
- package/dist/src/commands/update.d.ts.map +1 -1
- package/dist/src/commands/update.js +31 -21
- package/dist/src/commands/update.js.map +1 -1
- package/dist/src/core/manifest.d.ts +8 -1
- package/dist/src/core/manifest.d.ts.map +1 -1
- package/dist/src/core/manifest.js +3 -1
- package/dist/src/core/manifest.js.map +1 -1
- package/dist/src/core/overlay/applier.d.ts +1 -1
- package/dist/src/core/overlay/applier.d.ts.map +1 -1
- package/dist/src/core/overlay/applier.js +40 -13
- package/dist/src/core/overlay/applier.js.map +1 -1
- package/dist/src/core/overlay/loader.d.ts.map +1 -1
- package/dist/src/core/overlay/loader.js +6 -0
- package/dist/src/core/overlay/loader.js.map +1 -1
- package/dist/src/core/overlay/types.d.ts +5 -1
- package/dist/src/core/overlay/types.d.ts.map +1 -1
- package/dist/src/core/overlay/types.js +1 -1
- package/dist/src/core/overlay/types.js.map +1 -1
- package/dist/src/hooks/context-monitor.js +1 -1
- package/dist/src/hooks/context-monitor.js.map +1 -1
- package/dist/src/hooks/skill-context.js +1 -1
- package/dist/src/hooks/skill-context.js.map +1 -1
- package/dist/src/mcp/delegate-channel-relay.d.ts +4 -0
- package/dist/src/mcp/delegate-channel-relay.d.ts.map +1 -1
- package/dist/src/mcp/delegate-channel-relay.js +73 -4
- package/dist/src/mcp/delegate-channel-relay.js.map +1 -1
- package/dist/src/tools/index.js +2 -2
- package/dist/src/tools/index.js.map +1 -1
- package/dist/src/tools/store-knowhow.d.ts +21 -0
- package/dist/src/tools/store-knowhow.d.ts.map +1 -0
- package/dist/src/tools/store-knowhow.js +295 -0
- package/dist/src/tools/store-knowhow.js.map +1 -0
- package/package.json +1 -1
- package/shared/agent-types.ts +2 -0
- package/workflows/analyze.md +61 -185
- package/workflows/brainstorm.md +3 -23
- package/workflows/codebase-rebuild.md +79 -191
- package/workflows/codebase-refresh.md +26 -124
- package/workflows/debug.md +21 -141
- package/workflows/execute.md +183 -350
- package/workflows/fork.md +72 -230
- package/workflows/harvest.md +12 -79
- package/workflows/init.md +3 -17
- package/workflows/integration-test.md +21 -190
- package/workflows/issue-analyze.md +35 -153
- package/workflows/issue-discover.md +88 -263
- package/workflows/issue-execute.md +29 -208
- package/workflows/issue-plan.md +33 -154
- package/workflows/issue.md +44 -202
- package/workflows/knowhow.md +374 -0
- package/workflows/learn.md +30 -177
- package/workflows/maestro-coordinate.codex.md +77 -362
- package/workflows/maestro-link-coordinate.md +12 -61
- package/workflows/maestro.codex.md +124 -457
- package/workflows/maestro.md +562 -976
- package/workflows/map.md +16 -53
- package/workflows/merge.md +42 -197
- package/workflows/milestone-audit.md +5 -43
- package/workflows/milestone-complete.md +11 -60
- package/workflows/plan.md +188 -387
- package/workflows/quick.md +25 -174
- package/workflows/refactor.md +28 -221
- package/workflows/retrospective.md +104 -443
- package/workflows/review.md +87 -299
- package/workflows/roadmap.md +117 -97
- package/workflows/spec-generate.md +22 -118
- package/workflows/specs-add.md +5 -25
- package/workflows/specs-load.md +1 -5
- package/workflows/specs-remove.md +0 -11
- package/workflows/specs-setup.md +11 -47
- package/workflows/status.md +58 -200
- package/workflows/sync.md +28 -141
- package/workflows/test-gen.md +23 -100
- package/workflows/test.md +15 -125
- package/workflows/ui-design.md +139 -465
- package/workflows/ui-style.md +36 -228
- package/workflows/verify.md +52 -273
- package/workflows/wiki-connect.md +9 -46
- package/workflows/wiki-digest.md +7 -50
- package/workflows/wiki-manage.md +11 -108
- package/.claude/commands/maestro-coordinate.md +0 -63
- package/.claude/commands/manage-memory-capture.md +0 -59
- package/.codex/skills/maestro-coordinate/SKILL.md +0 -213
- package/.codex/skills/manage-memory-capture/SKILL.md +0 -93
- package/dashboard/dist/assets/ChatInput-pUOLJIKE.js +0 -49
- package/dashboard/dist/assets/ChatPage-B8Xqkt0v.js +0 -27
- package/dashboard/dist/assets/McpPage-BY0SjTgw.js +0 -21
- package/dashboard/dist/assets/TeamsPage-BO2kP70F.js +0 -11
- package/dashboard/dist/assets/WorkflowPage-C8hWbYim.js +0 -6
- package/dashboard/dist/assets/en-ZbRpfzuP.js +0 -1
- package/dashboard/dist/assets/index-C2Mcb4TJ.js +0 -231
- package/dashboard/dist/assets/index-DyBbPc18.css +0 -1
- package/dashboard/dist/assets/loader-B5F6PzFT.js +0 -11
- package/dashboard/dist/assets/zh-CN-CoXBFuny.js +0 -1
- package/workflows/maestro-coordinate.md +0 -582
- package/workflows/memory.md +0 -451
|
@@ -12,7 +12,7 @@ allowed-tools:
|
|
|
12
12
|
# Workflow Planner
|
|
13
13
|
|
|
14
14
|
## Role
|
|
15
|
-
You create structured execution plans from context, research, and specifications. You
|
|
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
18
|
@~/.maestro/templates/search-tools.md — Follow search tool priority and selection patterns.
|
|
@@ -21,7 +21,7 @@ You create structured execution plans from context, research, and specifications
|
|
|
21
21
|
|
|
22
22
|
1. **Load context** -- Read context.md decisions, spec references, doc-index, and phase research
|
|
23
23
|
2. **Identify scope** -- Determine what needs to be built, modified, or configured
|
|
24
|
-
3. **Decompose** --
|
|
24
|
+
3. **Decompose** -- Group work into feature-level tasks. One feature = one task (even if it touches 3-5 files). Do NOT split a single feature into multiple file-level tasks. Follow Task Grouping Rules below.
|
|
25
25
|
4. **Assign waves** -- Group independent tasks into parallel waves; dependent tasks in later waves
|
|
26
26
|
5. **Set dependencies** -- Define explicit task-to-task dependencies
|
|
27
27
|
6. **Define convergence criteria** -- Write specific, testable success criteria for each task (min 2 per task)
|
|
@@ -29,10 +29,11 @@ You create structured execution plans from context, research, and specifications
|
|
|
29
29
|
|
|
30
30
|
### Quick Mode
|
|
31
31
|
When invoked with `quick` flag:
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
- Skip detailed dependency mapping
|
|
35
|
-
-
|
|
32
|
+
- **One task per feature** — never split a single feature into multiple tasks
|
|
33
|
+
- Single wave unless a genuine dependency chain exists
|
|
34
|
+
- Skip detailed dependency mapping; most tasks are independent
|
|
35
|
+
- Group unrelated simple changes into one "batch" task to minimize agent spawns
|
|
36
|
+
- Focus on getting to execution fast with minimal token overhead
|
|
36
37
|
|
|
37
38
|
## Input
|
|
38
39
|
- `.workflow/scratch/{slug}/context.md` -- Context and decisions (resolved via state.json artifact registry)
|
|
@@ -142,14 +143,29 @@ When invoked with `quick` flag:
|
|
|
142
143
|
}
|
|
143
144
|
```
|
|
144
145
|
|
|
146
|
+
## Task Grouping Rules (MANDATORY)
|
|
147
|
+
|
|
148
|
+
These rules prevent over-splitting that wastes tokens on unnecessary agent spawns:
|
|
149
|
+
|
|
150
|
+
1. **Group by feature** — All changes for one feature = one task (even if 3-5 files). Never create separate tasks per file.
|
|
151
|
+
2. **Group by context** — Related functional changes belong together. Don't split just because changes touch different files.
|
|
152
|
+
3. **Minimize agent count** — Group simple unrelated changes into a single "batch" task to reduce overhead. Each agent spawn costs significant tokens.
|
|
153
|
+
4. **Substantial tasks only** — Each task should represent 15-60 minutes of real work. If a task takes <5 minutes, merge it into another.
|
|
154
|
+
5. **True dependencies only** — `depends_on` only when Task B genuinely needs Task A's output (e.g., "Task A defines the interface that Task B implements"). Sequential execution wastes time.
|
|
155
|
+
6. **Prefer parallel** — Most tasks should be independent (no depends_on). Default to parallel waves.
|
|
156
|
+
7. **Complexity-based sizing**:
|
|
157
|
+
- **Low** (single file, single concern, zero cross-module): **1 task**
|
|
158
|
+
- **Medium** (multiple files OR integration point): **1-4 tasks**
|
|
159
|
+
- **High** (cross-module, architectural, new subsystem): **4-10 tasks**
|
|
160
|
+
|
|
145
161
|
## Constraints
|
|
146
|
-
- Each task must be
|
|
162
|
+
- Each task must be substantial (15-60 min of work); group related changes, avoid file-per-task
|
|
147
163
|
- Each task must have convergence.criteria (min 2 testable conditions)
|
|
148
164
|
- convergence.criteria must be specific and testable (not "works correctly")
|
|
149
165
|
- files must use array format `[{path, action, target, change}]`
|
|
150
166
|
- Wave ordering must respect dependencies (no task before its dependency)
|
|
151
167
|
- Task descriptions must be clear enough for the executor to implement without ambiguity
|
|
152
|
-
- Keep task count
|
|
168
|
+
- Keep task count minimal: 1-3 for simple changes, 3-8 for medium, 8-15 for large features. Default to fewer.
|
|
153
169
|
- Never include implementation details in plan; focus on what, not how
|
|
154
170
|
- Reference: @templates/task.json for task field names
|
|
155
171
|
- Reference: @templates/plan.json for plan field names
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: maestro-amend
|
|
3
|
+
description: Collect deficiency signals from workflow artifacts, sessions, and user reports, then generate overlays to amend workflow commands
|
|
4
|
+
argument-hint: "[description] [--from-verify <dir>] [--from-review <dir>] [--from-session <id>] [--from-issues ISS-xxx,...] [--scan] [--dry-run]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
- AskUserQuestion
|
|
12
|
+
---
|
|
13
|
+
<purpose>
|
|
14
|
+
Signal-driven overlay generator — collects workflow deficiency signals from heterogeneous sources (verification gaps, review findings, debug sessions, open issues, user feedback), diagnoses which commands need amendment, and batch-generates targeted overlays to fix them.
|
|
15
|
+
|
|
16
|
+
Differs from `/maestro-overlay` which takes a single explicit intent. This command **discovers** what needs amending by analyzing workflow artifacts, then proposes and applies overlay fixes automatically.
|
|
17
|
+
|
|
18
|
+
**Mechanism**: All amendments use the overlay system (`~/.maestro/overlays/*.json`) — non-invasive, idempotent, survives reinstall.
|
|
19
|
+
</purpose>
|
|
20
|
+
|
|
21
|
+
<required_reading>
|
|
22
|
+
@~/.maestro/workflows/overlays.md
|
|
23
|
+
@~/.maestro/cli-tools.json
|
|
24
|
+
</required_reading>
|
|
25
|
+
|
|
26
|
+
<context>
|
|
27
|
+
$ARGUMENTS — optional description and/or source flags.
|
|
28
|
+
|
|
29
|
+
### Signal Sources
|
|
30
|
+
|
|
31
|
+
| Flag | Source | What it collects |
|
|
32
|
+
|------|--------|------------------|
|
|
33
|
+
| `--from-verify <dir>` | `verification.json` | Workflow gaps exposed by verify failures |
|
|
34
|
+
| `--from-review <dir>` | `review.json` | Process deficiencies from code review |
|
|
35
|
+
| `--from-session <id>` | Session artifacts | Problems encountered during workflow execution |
|
|
36
|
+
| `--from-issues ISS-xxx,...` | `issues.jsonl` | Issues that trace to command deficiency |
|
|
37
|
+
| `--scan` | Auto-scan `.workflow/` | Discover all workflow-related signals |
|
|
38
|
+
| _(positional text)_ | User description | Direct observation of command deficiency |
|
|
39
|
+
|
|
40
|
+
Multiple sources combinable. No flags and no description → interactive mode.
|
|
41
|
+
|
|
42
|
+
### Control Flags
|
|
43
|
+
|
|
44
|
+
| Flag | Description |
|
|
45
|
+
|------|-------------|
|
|
46
|
+
| `--dry-run` | Generate overlay JSON, show preview, don't install |
|
|
47
|
+
| `-y` | Skip confirmations |
|
|
48
|
+
|
|
49
|
+
### Signal-to-Overlay Classification
|
|
50
|
+
|
|
51
|
+
A signal becomes an overlay candidate when it identifies a **workflow command deficiency** — a missing step, missing precondition, absent reading, or gap in success criteria. Signals about code bugs (not command gaps) are out of scope; suggest `/maestro-quick` or `/maestro-plan --gaps` for those.
|
|
52
|
+
|
|
53
|
+
### CLI Targeting
|
|
54
|
+
|
|
55
|
+
Overlays support the `cli` field to target different workflow systems:
|
|
56
|
+
- `"cli": "claude"` (default) → patches `.claude/commands/{name}.md`
|
|
57
|
+
- `"cli": "codex"` → patches `.codex/skills/{name}/SKILL.md`
|
|
58
|
+
- `"cli": "both"` → patches both paths
|
|
59
|
+
|
|
60
|
+
When diagnosing signals, determine which CLI's workflow is affected and set the `cli` field accordingly.
|
|
61
|
+
|
|
62
|
+
### Output
|
|
63
|
+
- Overlay files: `~/.maestro/overlays/amend-{slug}.json`
|
|
64
|
+
- Optional docs: `~/.maestro/overlays/docs/amend-{slug}.md`
|
|
65
|
+
</context>
|
|
66
|
+
|
|
67
|
+
<execution>
|
|
68
|
+
### 1. Collect signals
|
|
69
|
+
|
|
70
|
+
Parse $ARGUMENTS for source flags and description text.
|
|
71
|
+
|
|
72
|
+
**If no sources and no description** → interactive mode:
|
|
73
|
+
Scan `.workflow/` for recent artifacts containing workflow-level signals:
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
candidates = []
|
|
77
|
+
|
|
78
|
+
# Verification: workflow gaps (not code bugs)
|
|
79
|
+
for each verification.json in .workflow/scratch/*-verify-*/
|
|
80
|
+
extract must_have_failures, anti_pattern items
|
|
81
|
+
filter for items whose fix_direction points at a command gap
|
|
82
|
+
(e.g., "missing pre-check step", "no reading for X", "success criteria incomplete")
|
|
83
|
+
|
|
84
|
+
# Review: process findings
|
|
85
|
+
for each review.json in .workflow/scratch/*-review-*/
|
|
86
|
+
extract findings tagged as "process" or "workflow"
|
|
87
|
+
|
|
88
|
+
# Debug sessions: root causes tracing to command omission
|
|
89
|
+
for each understanding.md in .workflow/scratch/*-debug-*/
|
|
90
|
+
extract root causes where cause_type mentions workflow/command
|
|
91
|
+
|
|
92
|
+
# Open issues: workflow-tagged
|
|
93
|
+
issues = read .workflow/issues/issues.jsonl
|
|
94
|
+
| filter status == "open" AND tags include "workflow" or "command"
|
|
95
|
+
|
|
96
|
+
# Execution summaries: deviations
|
|
97
|
+
for each summary in .workflow/scratch/*-plan-*/.summaries/
|
|
98
|
+
extract plan deviations that suggest a missing command step
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Display scan results and use AskUserQuestion (multiSelect) to let user pick sources. Also allow user to add a freeform description.
|
|
102
|
+
|
|
103
|
+
**If source flags** → extract signals from each specified source.
|
|
104
|
+
|
|
105
|
+
**If only description** → user's text is the sole signal. Parse for:
|
|
106
|
+
- Which command(s) are affected
|
|
107
|
+
- What's missing or broken in the command flow
|
|
108
|
+
- What the expected behavior should be
|
|
109
|
+
|
|
110
|
+
### 2. Diagnose: map signals to command patches
|
|
111
|
+
|
|
112
|
+
For each signal, determine:
|
|
113
|
+
|
|
114
|
+
```
|
|
115
|
+
{
|
|
116
|
+
signal_id: "SIG-001",
|
|
117
|
+
source: "verify:scratch/20260426-verify-M1/",
|
|
118
|
+
description: "maestro-execute skipped pre-flight when no test suite exists",
|
|
119
|
+
target_command: "maestro-execute",
|
|
120
|
+
target_section: "execution",
|
|
121
|
+
patch_mode: "append",
|
|
122
|
+
fix_direction: "Add fallback verification when no test suite detected",
|
|
123
|
+
severity: "medium"
|
|
124
|
+
}
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
**Diagnosis heuristics:**
|
|
128
|
+
|
|
129
|
+
| Signal pattern | Target section | Mode |
|
|
130
|
+
|---------------|----------------|------|
|
|
131
|
+
| Missing pre-check / gate | `execution` | `prepend` |
|
|
132
|
+
| Missing post-step / verification | `execution` | `append` |
|
|
133
|
+
| Missing reading / context | `required_reading` or `deferred_reading` | `append` |
|
|
134
|
+
| Incomplete success criteria | `success_criteria` | `append` |
|
|
135
|
+
| Missing error handling | `error_codes` | `append` |
|
|
136
|
+
| Scope/context gap | `context` | `append` |
|
|
137
|
+
| Entirely new concern | _(new section)_ | `new-section` |
|
|
138
|
+
|
|
139
|
+
If target command is ambiguous, read the pristine source from `$PKG_ROOT/.claude/commands/<name>.md` (preferred) or `~/.claude/commands/<name>.md` to confirm the right section.
|
|
140
|
+
|
|
141
|
+
### 3. Group and plan overlays
|
|
142
|
+
|
|
143
|
+
Group signals by target command. Signals hitting the same command **and** same section merge into one patch. Different sections on the same command stay as separate patches in one overlay.
|
|
144
|
+
|
|
145
|
+
Decide overlay granularity:
|
|
146
|
+
- **Single-concern** (1–2 signals on same command) → one overlay per command: `patch-{command}-{slug}.json`
|
|
147
|
+
- **Multi-concern** (3+ signals across commands) → one umbrella overlay: `amend-{slug}.json`
|
|
148
|
+
|
|
149
|
+
For each planned overlay, read the target command's pristine source to:
|
|
150
|
+
- Verify the section exists
|
|
151
|
+
- Check for existing overlays (via `<!-- maestro-overlay:` markers)
|
|
152
|
+
- Confirm the injection point makes sense
|
|
153
|
+
|
|
154
|
+
### 4. Preview injection points
|
|
155
|
+
|
|
156
|
+
For each target command, render a section map with injection points (same format as `/maestro-overlay`):
|
|
157
|
+
|
|
158
|
+
```
|
|
159
|
+
=== maestro-execute.md (1 existing overlay) ===
|
|
160
|
+
|
|
161
|
+
<purpose>
|
|
162
|
+
<required_reading>
|
|
163
|
+
├─ [existing] require-spec-before-plan #0
|
|
164
|
+
<context>
|
|
165
|
+
<execution>
|
|
166
|
+
├─ [existing] require-spec-before-plan #1 "Pre-check: Load Spec"
|
|
167
|
+
├─ [existing] cli-verify-after-execute #0 "CLI Verification"
|
|
168
|
+
>>> NEW: prepend — SIG-001 "Fallback verify when no tests"
|
|
169
|
+
>>> NEW: append — SIG-003 "Issue sync retry on failure"
|
|
170
|
+
<error_codes>
|
|
171
|
+
<success_criteria>
|
|
172
|
+
>>> NEW: append — SIG-002 "Verify issue status updated"
|
|
173
|
+
|
|
174
|
+
=== maestro-plan.md (0 existing overlays) ===
|
|
175
|
+
|
|
176
|
+
<purpose>
|
|
177
|
+
<required_reading>
|
|
178
|
+
<context>
|
|
179
|
+
>>> NEW: append — SIG-004 "Load prior patch history"
|
|
180
|
+
<execution>
|
|
181
|
+
<success_criteria>
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
Use AskUserQuestion to confirm:
|
|
185
|
+
- **"Apply all"** — proceed with all patches
|
|
186
|
+
- **"Select patches"** — per-signal confirmation
|
|
187
|
+
- **"Edit"** — modify a specific signal's target/section before proceeding
|
|
188
|
+
- **"Cancel"** — abort
|
|
189
|
+
|
|
190
|
+
### 5. Draft overlay JSON
|
|
191
|
+
|
|
192
|
+
For each overlay, build the JSON following the overlay schema:
|
|
193
|
+
|
|
194
|
+
```json
|
|
195
|
+
{
|
|
196
|
+
"name": "amend-execute-verify-fallback",
|
|
197
|
+
"description": "Add fallback verification and issue sync retry to maestro-execute [from: AMEND-20260426]",
|
|
198
|
+
"targets": ["maestro-execute"],
|
|
199
|
+
"cli": "claude",
|
|
200
|
+
"priority": 60,
|
|
201
|
+
"enabled": true,
|
|
202
|
+
"patches": [
|
|
203
|
+
{
|
|
204
|
+
"section": "execution",
|
|
205
|
+
"mode": "prepend",
|
|
206
|
+
"content": "## Fallback Verification (patch: SIG-001)\n\nIf no test suite exists for the affected module, run a structural verification instead:\n..."
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"section": "execution",
|
|
210
|
+
"mode": "append",
|
|
211
|
+
"content": "## Issue Sync Retry (patch: SIG-003)\n\nIf issue status sync fails, retry once before logging as warning:\n..."
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"section": "success_criteria",
|
|
215
|
+
"mode": "append",
|
|
216
|
+
"content": "- [ ] Issue statuses confirmed synced after execution (patch: SIG-002)"
|
|
217
|
+
}
|
|
218
|
+
]
|
|
219
|
+
}
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
**Content rules:**
|
|
223
|
+
- Heading includes `(patch: SIG-NNN)` for traceability
|
|
224
|
+
- Content is concise — fix the gap, nothing more
|
|
225
|
+
- `@~/.maestro/overlays/docs/` references for anything longer than 10 lines
|
|
226
|
+
- If supplementary doc needed, write it to `~/.maestro/overlays/docs/amend-{slug}.md` first
|
|
227
|
+
|
|
228
|
+
Write overlay JSON to `~/.maestro/overlays/amend-{slug}.json`.
|
|
229
|
+
|
|
230
|
+
If `--dry-run`, show the JSON and section map preview, then stop.
|
|
231
|
+
|
|
232
|
+
### 6. Install overlays
|
|
233
|
+
|
|
234
|
+
For each generated overlay:
|
|
235
|
+
|
|
236
|
+
```bash
|
|
237
|
+
maestro overlay add ~/.maestro/overlays/amend-{slug}.json
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
On validation failure, fix the JSON and retry (max 2 attempts).
|
|
241
|
+
|
|
242
|
+
### 7. Report
|
|
243
|
+
|
|
244
|
+
```
|
|
245
|
+
=== AMEND OVERLAYS INSTALLED ===
|
|
246
|
+
Session: AMEND-20260426
|
|
247
|
+
Signals: 5 collected, 4 applied, 1 skipped (code bug, not command gap)
|
|
248
|
+
Overlays: 2 created
|
|
249
|
+
|
|
250
|
+
amend-execute-verify-fallback
|
|
251
|
+
Targets: maestro-execute (3 patches: exec prepend, exec append, criteria append)
|
|
252
|
+
Path: ~/.maestro/overlays/amend-execute-verify-fallback.json
|
|
253
|
+
Source: SIG-001, SIG-002, SIG-003
|
|
254
|
+
|
|
255
|
+
amend-plan-context-history
|
|
256
|
+
Targets: maestro-plan (1 patch: context append)
|
|
257
|
+
Path: ~/.maestro/overlays/amend-plan-context-history.json
|
|
258
|
+
Source: SIG-004
|
|
259
|
+
|
|
260
|
+
Skipped:
|
|
261
|
+
SIG-005 "Missing null check in auth.ts" → code bug, use /maestro-quick
|
|
262
|
+
|
|
263
|
+
Re-apply: maestro overlay apply
|
|
264
|
+
Remove: maestro overlay remove amend-execute-verify-fallback
|
|
265
|
+
Inspect: maestro overlay list
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
### Post-patch routing
|
|
269
|
+
|
|
270
|
+
Use AskUserQuestion:
|
|
271
|
+
- **"Test commands"** — run affected commands to verify patches work
|
|
272
|
+
- **"View overlays"** — `maestro overlay list`
|
|
273
|
+
- **"Continue"** — done
|
|
274
|
+
</execution>
|
|
275
|
+
|
|
276
|
+
<error_codes>
|
|
277
|
+
| Code | Severity | Condition | Recovery |
|
|
278
|
+
|------|----------|-----------|----------|
|
|
279
|
+
| E001 | error | No signals found from any source | Verify artifact paths, or provide description |
|
|
280
|
+
| E002 | error | Source artifact not found | Check path exists |
|
|
281
|
+
| E003 | error | No signals map to command deficiencies (all are code bugs) | Use `/maestro-quick` or `/maestro-plan --gaps` instead |
|
|
282
|
+
| E004 | error | Overlay validation failed after 2 retries | Review generated JSON manually |
|
|
283
|
+
| W001 | warning | Some signals skipped (code bugs, not command gaps) | Route to appropriate fix command |
|
|
284
|
+
| W002 | warning | Target command has many existing overlays (≥3) | Consider consolidating overlays |
|
|
285
|
+
| W003 | warning | Scan found no recent workflow artifacts | Check `.workflow/` or provide explicit source |
|
|
286
|
+
</error_codes>
|
|
287
|
+
|
|
288
|
+
<success_criteria>
|
|
289
|
+
- [ ] Signal sources resolved and signals collected
|
|
290
|
+
- [ ] Each signal classified: command deficiency vs. code bug (only command deficiencies proceed)
|
|
291
|
+
- [ ] Signals mapped to target command + section + mode
|
|
292
|
+
- [ ] Pristine command sources read to verify sections and check existing overlays
|
|
293
|
+
- [ ] Section map with injection points shown and confirmed by user
|
|
294
|
+
- [ ] Overlay JSON written to `~/.maestro/overlays/amend-{slug}.json`
|
|
295
|
+
- [ ] Supplementary docs written to `~/.maestro/overlays/docs/` if needed
|
|
296
|
+
- [ ] `maestro overlay add` exited successfully for each overlay
|
|
297
|
+
- [ ] Target command files contain `<!-- maestro-overlay:amend-{slug}#N hash=... -->` markers
|
|
298
|
+
- [ ] Report shown with overlay details, source traceability, and skipped signals
|
|
299
|
+
- [ ] Skipped code-bug signals routed to appropriate alternative command
|
|
300
|
+
</success_criteria>
|
|
@@ -40,55 +40,7 @@ $ARGUMENTS -- phase number for milestone-scoped, topic text for adhoc/standalone
|
|
|
40
40
|
- `-q` / `--quick`: Quick mode — skip exploration + scoring, go straight to decision extraction (context.md only)
|
|
41
41
|
- `--gaps [ISS-ID]`: Issue root cause analysis mode. If ISS-ID provided, analyze single issue. If omitted, analyze all open/registered issues from issues.jsonl.
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
| Invocation | Precondition | Scope | Behavior |
|
|
46
|
-
|-----------|-------------|-------|----------|
|
|
47
|
-
| `analyze` (no args) | init + roadmap | milestone | Analyze current milestone's all phases |
|
|
48
|
-
| `analyze 1` | init + roadmap | phase | Analyze phase 1 only |
|
|
49
|
-
| `analyze "topic"` (has milestone) | none | adhoc | Analyze topic, affiliated with current milestone |
|
|
50
|
-
| `analyze "topic"` (no milestone) | none | standalone | Analyze topic, no milestone affiliation |
|
|
51
|
-
| `analyze --gaps` | issues.jsonl exists | gaps | Load open issues, explore root causes, write analysis records |
|
|
52
|
-
| `analyze --gaps ISS-xxx` | issue exists | gaps | Analyze single issue root cause |
|
|
53
|
-
|
|
54
|
-
**Scope detection rule**: Text argument + `state.json.current_milestone` non-null → adhoc. Text argument + no milestone → standalone. No args + no roadmap → error (need topic or roadmap). `--gaps` → gaps scope (bypasses standard scope routing).
|
|
55
|
-
|
|
56
|
-
**Output directory** (relative to `.workflow/`):
|
|
57
|
-
|
|
58
|
-
| Scope | Directory format | Example |
|
|
59
|
-
|-------|-----------------|---------|
|
|
60
|
-
| Phase | `scratch/{YYYYMMDD}-analyze-P{N}-{slug}/` | `20260420-analyze-P1-auth` |
|
|
61
|
-
| Milestone | `scratch/{YYYYMMDD}-analyze-M{N}-{slug}/` | `20260420-analyze-M1-mvp` |
|
|
62
|
-
| Adhoc/Standalone | `scratch/{YYYYMMDD}-analyze-{slug}/` | `20260420-analyze-caching` |
|
|
63
|
-
|
|
64
|
-
Scope prefix (`P{N}` / `M{N}`) enables directory-level identification as fallback when state.json is unavailable.
|
|
65
|
-
|
|
66
|
-
**Artifact registration**: On completion, register artifact in `state.json.artifacts[]`:
|
|
67
|
-
```jsonc
|
|
68
|
-
{
|
|
69
|
-
"id": "ANL-{NNN}",
|
|
70
|
-
"type": "analyze",
|
|
71
|
-
"milestone": "{current_milestone or null}",
|
|
72
|
-
"phase": "{phase_number or null}",
|
|
73
|
-
"scope": "{milestone|phase|adhoc|standalone}",
|
|
74
|
-
"path": "scratch/{YYYYMMDD}-analyze-P{N}-{slug}", // P{N} for phase, M{N} for milestone, omit for adhoc/standalone
|
|
75
|
-
"status": "completed",
|
|
76
|
-
"depends_on": null,
|
|
77
|
-
"harvested": false,
|
|
78
|
-
"created_at": "...",
|
|
79
|
-
"completed_at": "..."
|
|
80
|
-
}
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
**Output artifacts:**
|
|
84
|
-
| Artifact | Mode | Description |
|
|
85
|
-
|----------|------|-------------|
|
|
86
|
-
| `context.md` | both | Locked/Free/Deferred decisions for downstream plan |
|
|
87
|
-
| `discussion.md` | full | Full discussion timeline with TOC, Current Understanding, rounds, decisions, intent coverage |
|
|
88
|
-
| `analysis.md` | full | Executive summary with 6-dimension scores and risk matrix |
|
|
89
|
-
| `conclusions.json` | full | Final synthesis with recommendations, decision trail, intent coverage |
|
|
90
|
-
| `explorations.json` | full | Codebase exploration findings (single perspective) |
|
|
91
|
-
| `perspectives.json` | full | Multi-perspective findings with synthesis (if multi-perspective) |
|
|
43
|
+
Scope routing, output directory format, artifact registration schema, and output artifact listing are defined in workflow analyze.md (Scope Routing and Output Structure sections).
|
|
92
44
|
</context>
|
|
93
45
|
|
|
94
46
|
<execution>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: maestro-execute
|
|
3
3
|
description: Execute plan with wave-based parallel execution and atomic commits
|
|
4
|
-
argument-hint: "[phase] [--auto-commit] [--method agent|cli|auto] [--executor <tool>] [--dir <path>]"
|
|
4
|
+
argument-hint: "[phase] [--auto-commit] [--method agent|codex|gemini|cli|auto] [--executor <tool>] [--dir <path>] [-y]"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
|
7
7
|
- Write
|
|
@@ -30,61 +30,7 @@ Invoked after /maestro-plan produces a confirmed plan. When called without args
|
|
|
30
30
|
<context>
|
|
31
31
|
$ARGUMENTS — phase number, or no args for milestone-wide execution, with optional flags.
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
- `--auto-commit` -- Automatically commit after each task completion
|
|
35
|
-
- `--method agent|cli|auto` -- Override execution method (default: from config.json)
|
|
36
|
-
- `--executor <tool>` -- Default CLI tool: gemini|codex|qwen|opencode|claude
|
|
37
|
-
- `--dir <path>` -- Execute specific plan directory (e.g., `scratch/20260420-plan-auth`)
|
|
38
|
-
|
|
39
|
-
**Scope routing:**
|
|
40
|
-
|
|
41
|
-
| Invocation | Behavior |
|
|
42
|
-
|-----------|----------|
|
|
43
|
-
| `execute` (no args) | Find all pending plans for current milestone, execute sequentially |
|
|
44
|
-
| `execute 1` | Find pending plans for phase 1, execute sequentially |
|
|
45
|
-
| `execute --dir scratch/plan-xxx` | Execute the specific plan |
|
|
46
|
-
|
|
47
|
-
**Resolution logic (no-args / phase):**
|
|
48
|
-
```
|
|
49
|
-
1. Read state.json.artifacts
|
|
50
|
-
2. Filter: milestone=target, type=plan, status=completed, AND no corresponding EXC artifact
|
|
51
|
-
3. If phase specified: further filter by phase=target
|
|
52
|
-
4. Sort by phase dependency order (roadmap phase order), adhoc last
|
|
53
|
-
5. Execute each plan sequentially
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
**Output**: Task summaries written to plan's scratch dir:
|
|
57
|
-
```
|
|
58
|
-
{YYYYMMDD}-plan-P{N}-{slug}/ # phase-scoped
|
|
59
|
-
{YYYYMMDD}-plan-M{N}-{slug}/ # milestone-wide
|
|
60
|
-
{YYYYMMDD}-plan-{slug}/ # adhoc/standalone
|
|
61
|
-
├── plan.json
|
|
62
|
-
├── .task/
|
|
63
|
-
│ ├── TASK-001.json # status updated to completed|blocked
|
|
64
|
-
│ └── TASK-002.json
|
|
65
|
-
└── .summaries/ ← execute writes here
|
|
66
|
-
├── TASK-001-summary.md
|
|
67
|
-
└── TASK-002-summary.md
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
**Incremental learning extraction**: After each plan completes, extract strategy adjustments / patterns / pitfalls from `.summaries/` and append to `specs/learnings.md` using `<spec-entry>` closed-tag format (category=`learning`, auto-extract keywords, date=today, source=`execute`). Mark artifact `harvested: true`.
|
|
71
|
-
|
|
72
|
-
**Artifact registration**: For each plan executed, register in `state.json.artifacts[]`:
|
|
73
|
-
```jsonc
|
|
74
|
-
{
|
|
75
|
-
"id": "EXC-{NNN}",
|
|
76
|
-
"type": "execute",
|
|
77
|
-
"milestone": "{current_milestone or null}",
|
|
78
|
-
"phase": "{phase or null}",
|
|
79
|
-
"scope": "{inherited from plan}",
|
|
80
|
-
"path": "{same as plan path}", // inherits plan directory name with scope prefix
|
|
81
|
-
"status": "completed",
|
|
82
|
-
"depends_on": "PLN-{NNN}",
|
|
83
|
-
"harvested": false,
|
|
84
|
-
"created_at": "...",
|
|
85
|
-
"completed_at": "..."
|
|
86
|
-
}
|
|
87
|
-
```
|
|
33
|
+
Scope routing, flags, resolution logic, output directory format, artifact registration schema, and incremental learning extraction are defined in workflow `execute.md`.
|
|
88
34
|
</context>
|
|
89
35
|
|
|
90
36
|
<execution>
|
|
@@ -32,62 +32,15 @@ Produces `.workflow/worktrees.json` registry in the main worktree and `.workflow
|
|
|
32
32
|
</deferred_reading>
|
|
33
33
|
|
|
34
34
|
<context>
|
|
35
|
-
$ARGUMENTS -- milestone
|
|
35
|
+
$ARGUMENTS -- milestone number and optional flags.
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
| Mode | Trigger | Behavior |
|
|
40
|
-
|------|---------|----------|
|
|
41
|
-
| Fork | `-m 2` or `2` | Create worktree for milestone 2 |
|
|
42
|
-
| Sync | `-m 2 --sync` | Sync existing milestone 2 worktree with main branch |
|
|
43
|
-
|
|
44
|
-
**Flags:**
|
|
45
|
-
- `-m <N>` or bare `<N>`: Milestone number (1-based, maps to `state.json.milestones[]`)
|
|
46
|
-
- `--base <branch>`: Override base branch for worktree creation (default: HEAD)
|
|
47
|
-
- `--sync`: Sync mode — pull main into existing worktree, re-copy shared artifacts
|
|
48
|
-
|
|
49
|
-
**Milestone resolution:** `state.json.milestones[N-1]` → `{id, name, status}`
|
|
50
|
-
|
|
51
|
-
**Worktree layout:**
|
|
52
|
-
```
|
|
53
|
-
.worktrees/m{N}-{slug}/
|
|
54
|
-
├── .workflow/
|
|
55
|
-
│ ├── worktree-scope.json (milestone scope marker)
|
|
56
|
-
│ ├── state.json (scoped — only this milestone's artifacts)
|
|
57
|
-
│ ├── project.md (read-only copy)
|
|
58
|
-
│ ├── roadmap.md (read-only copy)
|
|
59
|
-
│ ├── config.json (read-only copy)
|
|
60
|
-
│ ├── specs/ (read-only copy)
|
|
61
|
-
│ └── scratch/ (milestone's existing + new artifacts)
|
|
62
|
-
│ ├── analyze-auth-2026-04-20/
|
|
63
|
-
│ ├── plan-auth-2026-04-20/
|
|
64
|
-
│ └── ...
|
|
65
|
-
└── <source code> (git worktree checkout)
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
**Artifact scoping:**
|
|
69
|
-
Fork copies scratch artifacts that belong to the target milestone (filtered from `state.json.artifacts[]` where `milestone == target`). New work in the worktree creates scratch artifacts normally; they are registered in the worktree's local `state.json`.
|
|
37
|
+
Modes (`Fork` / `Sync`), flags (`-m`, `--base`, `--sync`), milestone resolution, worktree layout, and artifact scoping are defined in workflow `fork.md`.
|
|
70
38
|
</context>
|
|
71
39
|
|
|
72
40
|
<execution>
|
|
73
41
|
Follow '~/.maestro/workflows/fork.md' completely.
|
|
74
42
|
|
|
75
|
-
|
|
76
|
-
1. Validate: project initialized, roadmap exists, not inside worktree, milestone not already forked
|
|
77
|
-
2. Resolve milestone: `state.json.milestones[N-1]`
|
|
78
|
-
3. Create git worktree: `git worktree add -b milestone/{slug} .worktrees/m{N}-{slug} HEAD`
|
|
79
|
-
4. Copy `.workflow/` into worktree:
|
|
80
|
-
- Shared files (read-only): `project.md`, `roadmap.md`, `config.json`, `specs/`
|
|
81
|
-
- Milestone scratch artifacts: filter `state.json.artifacts[]` by `milestone == target`, copy each `scratch/{path}`
|
|
82
|
-
5. Write scope marker: `worktree-scope.json` with milestone number and main path
|
|
83
|
-
6. Write scoped `state.json`: only this milestone's artifacts, `current_milestone` set
|
|
84
|
-
7. Update main: `worktrees.json` registry, mark milestone as `"forked"` in `state.json.milestones[]`
|
|
85
|
-
|
|
86
|
-
**Sync flow:**
|
|
87
|
-
1. Find worktree from `worktrees.json`
|
|
88
|
-
2. `cd worktree && git merge main`
|
|
89
|
-
3. Re-copy shared files: `project.md`, `roadmap.md`, `config.json`, `specs/`
|
|
90
|
-
4. Report conflicts if any
|
|
43
|
+
Fork and sync algorithm steps are defined in workflow `fork.md`.
|
|
91
44
|
|
|
92
45
|
**Next-step routing on completion:**
|
|
93
46
|
|
|
@@ -23,33 +23,9 @@ Includes registry health check, pre-merge rebase (pull main into worktree to min
|
|
|
23
23
|
</required_reading>
|
|
24
24
|
|
|
25
25
|
<context>
|
|
26
|
-
$ARGUMENTS -- milestone
|
|
26
|
+
$ARGUMENTS -- milestone number and optional flags.
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
- `-m <N>` or bare `<N>`: Milestone number (1-based, maps to registry)
|
|
30
|
-
- `--force`: Merge even if milestone has incomplete artifacts
|
|
31
|
-
- `--dry-run`: Show what would be merged without executing
|
|
32
|
-
- `--no-cleanup`: Keep worktree and branch after merge (for inspection)
|
|
33
|
-
- `--continue`: Resume a merge that was paused due to git conflict
|
|
34
|
-
|
|
35
|
-
**Merge sequence:**
|
|
36
|
-
1. Registry health check (remove stale worktree entries)
|
|
37
|
-
2. Validate milestone artifact completeness (all EXC artifacts completed)
|
|
38
|
-
3. Pre-merge rebase (`git merge main` in worktree)
|
|
39
|
-
4. Phase 1: Git merge (source code only)
|
|
40
|
-
5. Phase 2: Scratch artifact sync (only after git merge succeeds)
|
|
41
|
-
6. Atomic artifact registry reconciliation
|
|
42
|
-
7. Cleanup (worktree remove + branch delete)
|
|
43
|
-
|
|
44
|
-
**Phase 2 — Artifact sync detail:**
|
|
45
|
-
- Copy worktree `scratch/*` dirs back to main `.workflow/scratch/`
|
|
46
|
-
- Merge worktree `state.json.artifacts[]` entries into main `state.json.artifacts[]`
|
|
47
|
-
- Dedup by artifact id; worktree version wins for same id
|
|
48
|
-
- Update milestone status in main `state.json.milestones[]` (remove "forked" flag)
|
|
49
|
-
- Mark `harvested` status from worktree artifacts
|
|
50
|
-
|
|
51
|
-
**Conflict handling:**
|
|
52
|
-
If git merge fails, the command saves state to `.workflow/.merge-state.json` and exits. User resolves conflicts, then runs `maestro-merge --continue` to resume artifact sync.
|
|
28
|
+
Flags (`-m`, `--force`, `--dry-run`, `--no-cleanup`, `--continue`), merge sequence, artifact sync detail, and conflict handling are defined in workflow `merge.md`.
|
|
53
29
|
</context>
|
|
54
30
|
|
|
55
31
|
<execution>
|
|
@@ -41,11 +41,7 @@ Milestone: $ARGUMENTS (optional -- defaults to current_milestone from state.json
|
|
|
41
41
|
<execution>
|
|
42
42
|
Follow '~/.maestro/workflows/milestone-audit.md' completely.
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
1. Phase coverage: each phase in roadmap has analyze → plan → execute chain
|
|
46
|
-
2. Ad-hoc completeness: all adhoc artifacts completed or skipped
|
|
47
|
-
3. Execution completeness: all tasks in executed plans completed
|
|
48
|
-
4. Cross-artifact integration: interface compatibility, data contracts, config consistency
|
|
44
|
+
Audit checklist steps (phase coverage, ad-hoc completeness, execution completeness, cross-artifact integration) are defined in workflow `milestone-audit.md`.
|
|
49
45
|
|
|
50
46
|
**Next-step routing on completion:**
|
|
51
47
|
- Verdict PASS → `/maestro-milestone-complete {milestone}`
|
|
@@ -34,13 +34,7 @@ Milestone: $ARGUMENTS (optional -- defaults to current_milestone from state.json
|
|
|
34
34
|
<execution>
|
|
35
35
|
Follow '~/.maestro/workflows/milestone-complete.md' completely.
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
1. Validate audit passed + all artifacts completed
|
|
39
|
-
2. Move scratch dirs to `milestones/{M}/artifacts/`
|
|
40
|
-
3. Move artifact entries to `milestone_history[M].archived_artifacts`
|
|
41
|
-
4. Extract learnings from summaries → `specs/learnings.md`
|
|
42
|
-
5. Update state.json: advance to next milestone, clear artifacts[]
|
|
43
|
-
6. Clean scratch dirs
|
|
37
|
+
Archive flow steps (validation, directory archival, artifact history, learning extraction, state advancement, cleanup) are defined in workflow `milestone-complete.md`.
|
|
44
38
|
|
|
45
39
|
### Knowledge Promotion Inquiry
|
|
46
40
|
|