maestro-flow 0.4.26 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/learn-follow/SKILL.md +1 -1
- package/.agents/skills/learn-investigate/SKILL.md +2 -2
- package/.agents/skills/learn-second-opinion/SKILL.md +1 -1
- package/.agents/skills/maestro/SKILL.md +6 -3
- package/.agents/skills/maestro-analyze/SKILL.md +53 -2
- package/.agents/skills/maestro-blueprint/SKILL.md +36 -1
- package/.agents/skills/maestro-brainstorm/SKILL.md +40 -1
- package/.agents/skills/maestro-collab/SKILL.md +1 -1
- package/.agents/skills/maestro-companion/SKILL.md +4 -4
- package/.agents/skills/maestro-composer/SKILL.md +1 -1
- package/.agents/skills/maestro-execute/SKILL.md +29 -6
- package/.agents/skills/maestro-fork/SKILL.md +24 -0
- package/.agents/skills/maestro-grill/SKILL.md +38 -1
- package/.agents/skills/maestro-help/SKILL.md +5 -6
- package/.agents/skills/maestro-help/index/catalog.json +7 -9
- package/.agents/skills/maestro-help/phases/02-search-present.md +2 -4
- package/.agents/skills/maestro-help/phases/03-workflow-guide.md +7 -8
- package/.agents/skills/maestro-impeccable/SKILL.md +13 -0
- package/.agents/skills/maestro-init/SKILL.md +11 -0
- package/.agents/skills/maestro-merge/SKILL.md +17 -1
- package/.agents/skills/maestro-milestone-audit/SKILL.md +34 -2
- package/.agents/skills/maestro-milestone-complete/SKILL.md +19 -1
- package/.agents/skills/maestro-milestone-release/SKILL.md +18 -0
- package/.agents/skills/maestro-next/SKILL.md +8 -9
- package/.agents/skills/maestro-overlay/SKILL.md +3 -3
- package/.agents/skills/maestro-plan/SKILL.md +21 -3
- package/.agents/skills/maestro-quick/SKILL.md +13 -1
- package/.agents/skills/maestro-ralph/SKILL.md +18 -20
- package/.agents/skills/maestro-ralph-beta/SKILL.md +10 -16
- package/.agents/skills/maestro-ralph-execute/SKILL.md +1 -2
- package/.agents/skills/maestro-roadmap/SKILL.md +28 -2
- package/.agents/skills/maestro-swarm-workflow/SKILL.md +2 -2
- package/.agents/skills/maestro-tools-register/SKILL.md +2 -2
- package/.agents/skills/maestro-ui-codify/SKILL.md +20 -0
- package/.agents/skills/maestro-update/SKILL.md +59 -116
- package/.agents/skills/manage-codebase-rebuild/SKILL.md +3 -3
- package/.agents/skills/manage-harvest/SKILL.md +1 -1
- package/.agents/skills/manage-knowhow/SKILL.md +3 -1
- package/.agents/skills/manage-knowhow-capture/SKILL.md +3 -2
- package/.agents/skills/manage-wiki/SKILL.md +17 -8
- package/.agents/skills/quality-auto-test/SKILL.md +3 -3
- package/.agents/skills/quality-debug/SKILL.md +4 -4
- package/.agents/skills/quality-refactor/SKILL.md +2 -2
- package/.agents/skills/quality-retrospective/SKILL.md +5 -5
- package/.agents/skills/quality-review/SKILL.md +4 -4
- package/.agents/skills/quality-sync/SKILL.md +1 -0
- package/.agents/skills/quality-test/SKILL.md +4 -4
- package/.agents/skills/spec-add/SKILL.md +6 -4
- package/.agents/skills/spec-setup/SKILL.md +1 -1
- package/.agy/skills/learn-follow/SKILL.md +1 -1
- package/.agy/skills/learn-investigate/SKILL.md +2 -2
- package/.agy/skills/learn-second-opinion/SKILL.md +1 -1
- package/.agy/skills/maestro/SKILL.md +6 -3
- package/.agy/skills/maestro-analyze/SKILL.md +53 -2
- package/.agy/skills/maestro-blueprint/SKILL.md +36 -1
- package/.agy/skills/maestro-brainstorm/SKILL.md +40 -1
- package/.agy/skills/maestro-collab/SKILL.md +1 -1
- package/.agy/skills/maestro-companion/SKILL.md +4 -4
- package/.agy/skills/maestro-composer/SKILL.md +1 -1
- package/.agy/skills/maestro-execute/SKILL.md +29 -6
- package/.agy/skills/maestro-fork/SKILL.md +24 -0
- package/.agy/skills/maestro-grill/SKILL.md +38 -1
- package/.agy/skills/maestro-help/SKILL.md +5 -6
- package/.agy/skills/maestro-help/index/catalog.json +7 -9
- package/.agy/skills/maestro-help/phases/02-search-present.md +2 -4
- package/.agy/skills/maestro-help/phases/03-workflow-guide.md +7 -8
- package/.agy/skills/maestro-impeccable/SKILL.md +13 -0
- package/.agy/skills/maestro-init/SKILL.md +11 -0
- package/.agy/skills/maestro-merge/SKILL.md +17 -1
- package/.agy/skills/maestro-milestone-audit/SKILL.md +34 -2
- package/.agy/skills/maestro-milestone-complete/SKILL.md +19 -1
- package/.agy/skills/maestro-milestone-release/SKILL.md +18 -0
- package/.agy/skills/maestro-next/SKILL.md +8 -9
- package/.agy/skills/maestro-overlay/SKILL.md +3 -3
- package/.agy/skills/maestro-plan/SKILL.md +21 -3
- package/.agy/skills/maestro-quick/SKILL.md +13 -1
- package/.agy/skills/maestro-ralph/SKILL.md +18 -20
- package/.agy/skills/maestro-ralph-beta/SKILL.md +10 -16
- package/.agy/skills/maestro-ralph-execute/SKILL.md +1 -2
- package/.agy/skills/maestro-roadmap/SKILL.md +28 -2
- package/.agy/skills/maestro-swarm-workflow/SKILL.md +2 -2
- package/.agy/skills/maestro-tools-register/SKILL.md +2 -2
- package/.agy/skills/maestro-ui-codify/SKILL.md +20 -0
- package/.agy/skills/maestro-update/SKILL.md +59 -116
- package/.agy/skills/manage-codebase-rebuild/SKILL.md +3 -3
- package/.agy/skills/manage-harvest/SKILL.md +1 -1
- package/.agy/skills/manage-knowhow/SKILL.md +3 -1
- package/.agy/skills/manage-knowhow-capture/SKILL.md +3 -2
- package/.agy/skills/manage-wiki/SKILL.md +17 -8
- package/.agy/skills/quality-auto-test/SKILL.md +3 -3
- package/.agy/skills/quality-debug/SKILL.md +4 -4
- package/.agy/skills/quality-refactor/SKILL.md +2 -2
- package/.agy/skills/quality-retrospective/SKILL.md +5 -5
- package/.agy/skills/quality-review/SKILL.md +4 -4
- package/.agy/skills/quality-sync/SKILL.md +1 -0
- package/.agy/skills/quality-test/SKILL.md +4 -4
- package/.agy/skills/spec-add/SKILL.md +6 -4
- package/.agy/skills/spec-setup/SKILL.md +1 -1
- package/.claude/commands/learn-follow.md +1 -1
- package/.claude/commands/learn-investigate.md +2 -2
- package/.claude/commands/learn-second-opinion.md +1 -1
- package/.claude/commands/maestro-analyze.md +53 -2
- package/.claude/commands/maestro-blueprint.md +36 -1
- package/.claude/commands/maestro-brainstorm.md +40 -1
- package/.claude/commands/maestro-collab.md +1 -1
- package/.claude/commands/maestro-companion.md +4 -4
- package/.claude/commands/maestro-composer.md +1 -1
- package/.claude/commands/maestro-execute.md +29 -6
- package/.claude/commands/maestro-fork.md +24 -0
- package/.claude/commands/maestro-grill.md +38 -1
- package/.claude/commands/maestro-impeccable.md +13 -0
- package/.claude/commands/maestro-init.md +11 -0
- package/.claude/commands/maestro-merge.md +17 -1
- package/.claude/commands/maestro-milestone-audit.md +34 -2
- package/.claude/commands/maestro-milestone-complete.md +19 -1
- package/.claude/commands/maestro-milestone-release.md +18 -0
- package/.claude/commands/maestro-next.md +8 -9
- package/.claude/commands/maestro-overlay.md +3 -3
- package/.claude/commands/maestro-plan.md +21 -3
- package/.claude/commands/maestro-quick.md +13 -1
- package/.claude/commands/maestro-ralph-beta.md +8 -14
- package/.claude/commands/maestro-ralph-execute.md +1 -2
- package/.claude/commands/maestro-ralph.md +18 -20
- package/.claude/commands/maestro-roadmap.md +28 -2
- package/.claude/commands/maestro-swarm-workflow.md +2 -2
- package/.claude/commands/maestro-tools-register.md +2 -2
- package/.claude/commands/maestro-ui-codify.md +20 -0
- package/.claude/commands/maestro-update.md +59 -116
- package/.claude/commands/maestro.md +6 -3
- package/.claude/commands/manage-codebase-rebuild.md +3 -3
- package/.claude/commands/manage-harvest.md +1 -1
- package/.claude/commands/manage-knowhow-capture.md +3 -2
- package/.claude/commands/manage-knowhow.md +3 -1
- package/.claude/commands/manage-wiki.md +17 -8
- package/.claude/commands/quality-auto-test.md +3 -3
- package/.claude/commands/quality-debug.md +4 -4
- package/.claude/commands/quality-refactor.md +2 -2
- package/.claude/commands/quality-retrospective.md +5 -5
- package/.claude/commands/quality-review.md +4 -4
- package/.claude/commands/quality-sync.md +1 -0
- package/.claude/commands/quality-test.md +4 -4
- package/.claude/commands/spec-add.md +6 -4
- package/.claude/commands/spec-setup.md +1 -1
- package/.claude/skills/maestro-help/SKILL.md +5 -6
- package/.claude/skills/maestro-help/index/catalog.json +7 -9
- package/.claude/skills/maestro-help/phases/02-search-present.md +2 -4
- package/.claude/skills/maestro-help/phases/03-workflow-guide.md +7 -8
- package/.codex/skills/codify-to-knowhow/SKILL.md +5 -4
- package/.codex/skills/learn-decompose/SKILL.md +1 -1
- package/.codex/skills/learn-follow/SKILL.md +1 -1
- package/.codex/skills/learn-investigate/SKILL.md +1 -1
- package/.codex/skills/learn-second-opinion/SKILL.md +1 -1
- package/.codex/skills/maestro/SKILL.md +29 -31
- package/.codex/skills/maestro-analyze/SKILL.md +16 -3
- package/.codex/skills/maestro-blueprint/SKILL.md +8 -1
- package/.codex/skills/maestro-brainstorm/SKILL.md +8 -5
- package/.codex/skills/maestro-companion/SKILL.md +2 -2
- package/.codex/skills/maestro-composer/SKILL.md +0 -1
- package/.codex/skills/maestro-execute/SKILL.md +11 -8
- package/.codex/skills/maestro-fork/SKILL.md +4 -0
- package/.codex/skills/maestro-grill/SKILL.md +8 -2
- package/.codex/skills/maestro-help/SKILL.md +6 -9
- package/.codex/skills/maestro-help/catalog.json +6 -8
- package/.codex/skills/maestro-impeccable/SKILL.md +2 -0
- package/.codex/skills/maestro-init/SKILL.md +3 -0
- package/.codex/skills/maestro-merge/SKILL.md +5 -1
- package/.codex/skills/maestro-milestone-audit/SKILL.md +3 -0
- package/.codex/skills/maestro-milestone-complete/SKILL.md +6 -1
- package/.codex/skills/maestro-milestone-release/SKILL.md +4 -0
- package/.codex/skills/maestro-next/SKILL.md +3 -4
- package/.codex/skills/maestro-plan/SKILL.md +5 -2
- package/.codex/skills/maestro-quick/SKILL.md +4 -1
- package/.codex/skills/maestro-ralph/SKILL.md +14 -20
- package/.codex/skills/maestro-ralph-beta/SKILL.md +13 -21
- package/.codex/skills/maestro-ralph-execute/SKILL.md +2 -2
- package/.codex/skills/maestro-roadmap/SKILL.md +5 -2
- package/.codex/skills/maestro-tools-register/SKILL.md +1 -1
- package/.codex/skills/maestro-ui-codify/SKILL.md +4 -1
- package/.codex/skills/maestro-update/SKILL.md +35 -130
- package/.codex/skills/manage-codebase-rebuild/SKILL.md +2 -2
- package/.codex/skills/manage-harvest/SKILL.md +2 -2
- package/.codex/skills/manage-knowhow/SKILL.md +1 -1
- package/.codex/skills/manage-status/SKILL.md +1 -2
- package/.codex/skills/quality-auto-test/SKILL.md +2 -2
- package/.codex/skills/quality-debug/SKILL.md +2 -2
- package/.codex/skills/quality-refactor/SKILL.md +1 -1
- package/.codex/skills/quality-retrospective/SKILL.md +1 -1
- package/.codex/skills/quality-test/SKILL.md +3 -4
- package/.codex/skills/spec-add/SKILL.md +5 -3
- package/.codex/skills/spec-remove/SKILL.md +2 -2
- package/.codex/skills/team-coordinate/SKILL.md +1 -1
- package/.codex/skills/wiki-digest/SKILL.md +2 -2
- package/chains/brainstorm-driven.json +2 -34
- package/chains/full-lifecycle.json +2 -34
- package/chains/next-milestone.json +0 -7
- package/chains/quality-loop.json +3 -19
- package/chains/roadmap-driven.json +2 -34
- package/chains/spec-driven.json +2 -34
- package/chains/ui-craft-build.json +2 -23
- package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js +8 -11
- package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.d.ts +1 -0
- package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.js +3 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/stress.test.js +1 -0
- package/dashboard/dist-server/dashboard/src/server/wiki/stress.test.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/virtual-wiki-adapters.js +9 -0
- package/dashboard/dist-server/dashboard/src/server/wiki/virtual-wiki-adapters.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js +9 -4
- package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/wiki-types.d.ts +3 -0
- package/dashboard/dist-server/dashboard/src/server/wiki/writer.d.ts +4 -0
- package/dashboard/dist-server/dashboard/src/server/wiki/writer.js +5 -3
- package/dashboard/dist-server/dashboard/src/server/wiki/writer.js.map +1 -1
- package/dashboard/dist-server/src/types/index.d.ts +2 -0
- package/dist/src/cli.js +1 -0
- package/dist/src/cli.js.map +1 -1
- package/dist/src/commands/hooks.d.ts.map +1 -1
- package/dist/src/commands/hooks.js +55 -5
- package/dist/src/commands/hooks.js.map +1 -1
- package/dist/src/commands/install-backend.d.ts.map +1 -1
- package/dist/src/commands/install-backend.js +2 -1
- package/dist/src/commands/install-backend.js.map +1 -1
- package/dist/src/commands/install.d.ts.map +1 -1
- package/dist/src/commands/install.js +16 -1
- package/dist/src/commands/install.js.map +1 -1
- package/dist/src/commands/kg.d.ts +1 -1
- package/dist/src/commands/kg.d.ts.map +1 -1
- package/dist/src/commands/kg.js +285 -112
- package/dist/src/commands/kg.js.map +1 -1
- package/dist/src/commands/knowhow.d.ts.map +1 -1
- package/dist/src/commands/knowhow.js +28 -37
- package/dist/src/commands/knowhow.js.map +1 -1
- package/dist/src/commands/ralph.js +1 -1
- package/dist/src/commands/ralph.js.map +1 -1
- package/dist/src/commands/search.d.ts +36 -0
- package/dist/src/commands/search.d.ts.map +1 -0
- package/dist/src/commands/search.js +120 -0
- package/dist/src/commands/search.js.map +1 -0
- package/dist/src/commands/spec.d.ts.map +1 -1
- package/dist/src/commands/spec.js +15 -59
- package/dist/src/commands/spec.js.map +1 -1
- package/dist/src/commands/update.d.ts.map +1 -1
- package/dist/src/commands/update.js +7 -0
- package/dist/src/commands/update.js.map +1 -1
- package/dist/src/commands/wiki.d.ts.map +1 -1
- package/dist/src/commands/wiki.js +6 -21
- package/dist/src/commands/wiki.js.map +1 -1
- package/dist/src/core/component-defs.d.ts +13 -0
- package/dist/src/core/component-defs.d.ts.map +1 -1
- package/dist/src/core/component-defs.js +37 -85
- package/dist/src/core/component-defs.js.map +1 -1
- package/dist/src/core/skill-converter.d.ts +25 -0
- package/dist/src/core/skill-converter.d.ts.map +1 -0
- package/dist/src/core/skill-converter.js +605 -0
- package/dist/src/core/skill-converter.js.map +1 -0
- package/dist/src/graph/codegraph-adapter.d.ts +147 -0
- package/dist/src/graph/codegraph-adapter.d.ts.map +1 -0
- package/dist/src/graph/codegraph-adapter.js +266 -0
- package/dist/src/graph/codegraph-adapter.js.map +1 -0
- package/dist/src/hooks/constants.d.ts +4 -0
- package/dist/src/hooks/constants.d.ts.map +1 -1
- package/dist/src/hooks/constants.js +14 -1
- package/dist/src/hooks/constants.js.map +1 -1
- package/dist/src/hooks/context-format.d.ts +46 -0
- package/dist/src/hooks/context-format.d.ts.map +1 -0
- package/dist/src/hooks/context-format.js +58 -0
- package/dist/src/hooks/context-format.js.map +1 -0
- package/dist/src/hooks/index.d.ts +2 -0
- package/dist/src/hooks/index.d.ts.map +1 -1
- package/dist/src/hooks/index.js +2 -0
- package/dist/src/hooks/index.js.map +1 -1
- package/dist/src/hooks/keyword-spec-injector.d.ts +1 -1
- package/dist/src/hooks/keyword-spec-injector.d.ts.map +1 -1
- package/dist/src/hooks/keyword-spec-injector.js +92 -7
- package/dist/src/hooks/keyword-spec-injector.js.map +1 -1
- package/dist/src/hooks/kg-context-injector.d.ts +19 -0
- package/dist/src/hooks/kg-context-injector.d.ts.map +1 -0
- package/dist/src/hooks/kg-context-injector.js +139 -0
- package/dist/src/hooks/kg-context-injector.js.map +1 -0
- package/dist/src/hooks/kg-sync-hook.d.ts +22 -0
- package/dist/src/hooks/kg-sync-hook.d.ts.map +1 -0
- package/dist/src/hooks/kg-sync-hook.js +139 -0
- package/dist/src/hooks/kg-sync-hook.js.map +1 -0
- package/dist/src/hooks/plugins/spec-injection-plugin.js +2 -2
- package/dist/src/hooks/plugins/spec-injection-plugin.js.map +1 -1
- package/dist/src/hooks/skill-context.d.ts.map +1 -1
- package/dist/src/hooks/skill-context.js +0 -1
- package/dist/src/hooks/skill-context.js.map +1 -1
- package/dist/src/hooks/spec-injector.d.ts.map +1 -1
- package/dist/src/hooks/spec-injector.js +66 -13
- package/dist/src/hooks/spec-injector.js.map +1 -1
- package/dist/src/hooks/statusline.d.ts +8 -1
- package/dist/src/hooks/statusline.d.ts.map +1 -1
- package/dist/src/hooks/statusline.js +45 -29
- package/dist/src/hooks/statusline.js.map +1 -1
- package/dist/src/hooks/wiki-role-loader.js +1 -1
- package/dist/src/hooks/wiki-role-loader.js.map +1 -1
- package/dist/src/ralph/cmd-skills.d.ts.map +1 -1
- package/dist/src/ralph/cmd-skills.js +9 -2
- package/dist/src/ralph/cmd-skills.js.map +1 -1
- package/dist/src/ralph/skill-scanner.d.ts +1 -1
- package/dist/src/ralph/skill-scanner.d.ts.map +1 -1
- package/dist/src/ralph/skill-scanner.js +14 -0
- package/dist/src/ralph/skill-scanner.js.map +1 -1
- package/dist/src/ralph/status-schema.d.ts +1 -1
- package/dist/src/ralph/status-schema.d.ts.map +1 -1
- package/dist/src/tools/spec-entry-parser.d.ts +2 -1
- package/dist/src/tools/spec-entry-parser.d.ts.map +1 -1
- package/dist/src/tools/spec-entry-parser.js +7 -4
- package/dist/src/tools/spec-entry-parser.js.map +1 -1
- package/dist/src/tools/spec-loader.d.ts.map +1 -1
- package/dist/src/tools/spec-loader.js +27 -3
- package/dist/src/tools/spec-loader.js.map +1 -1
- package/dist/src/tools/spec-writer.d.ts +10 -1
- package/dist/src/tools/spec-writer.d.ts.map +1 -1
- package/dist/src/tools/spec-writer.js +86 -7
- package/dist/src/tools/spec-writer.js.map +1 -1
- package/dist/src/tools/store-knowhow.d.ts.map +1 -1
- package/dist/src/tools/store-knowhow.js +27 -7
- package/dist/src/tools/store-knowhow.js.map +1 -1
- package/dist/src/tui/install-ui/ExecutionView.d.ts.map +1 -1
- package/dist/src/tui/install-ui/ExecutionView.js +7 -1
- package/dist/src/tui/install-ui/ExecutionView.js.map +1 -1
- package/dist/src/tui/install-ui/InstallExecution.d.ts.map +1 -1
- package/dist/src/tui/install-ui/InstallExecution.js +5 -1
- package/dist/src/tui/install-ui/InstallExecution.js.map +1 -1
- package/dist/src/types/index.d.ts +2 -0
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/src/utils/cli-format.d.ts +6 -0
- package/dist/src/utils/cli-format.d.ts.map +1 -1
- package/dist/src/utils/cli-format.js +25 -0
- package/dist/src/utils/cli-format.js.map +1 -1
- package/dist/src/utils/update-notices.js +19 -0
- package/dist/src/utils/update-notices.js.map +1 -1
- package/package.json +5 -2
- package/templates/workflows/specs/node-catalog.md +0 -2
- package/workflows/analyze.md +9 -4
- package/workflows/auto-test.md +2 -2
- package/workflows/business-test.md +1 -1
- package/workflows/claude-instructions.md +23 -11
- package/workflows/codex-instructions.md +2 -3
- package/workflows/execute.md +153 -7
- package/workflows/fork.md +1 -1
- package/workflows/integration-test.md +1 -1
- package/workflows/maestro-super.md +1 -1
- package/workflows/maestro.codex.md +18 -34
- package/workflows/maestro.md +34 -42
- package/workflows/review.md +1 -1
- package/workflows/status.md +2 -2
- package/workflows/swarm/wf-verify.js +1 -1
- package/workflows/test-gen.md +2 -2
- package/workflows/test.md +1 -1
- package/workflows/updates/README.md +41 -0
- package/workflows/updates/update-v3-setup.md +79 -0
- package/workflows/verify.md +7 -1
- package/.agents/skills/learn-retro/SKILL.md +0 -159
- package/.agents/skills/maestro-learn/SKILL.md +0 -142
- package/.agents/skills/maestro-verify/SKILL.md +0 -146
- package/.agents/skills/manage-codebase-refresh/SKILL.md +0 -62
- package/.agents/skills/manage-learn/SKILL.md +0 -67
- package/.agents/skills/wiki-connect/SKILL.md +0 -64
- package/.agents/skills/wiki-digest/SKILL.md +0 -70
- package/.agy/skills/learn-retro/SKILL.md +0 -159
- package/.agy/skills/maestro-learn/SKILL.md +0 -142
- package/.agy/skills/maestro-verify/SKILL.md +0 -146
- package/.agy/skills/manage-codebase-refresh/SKILL.md +0 -62
- package/.agy/skills/manage-learn/SKILL.md +0 -64
- package/.agy/skills/wiki-connect/SKILL.md +0 -64
- package/.agy/skills/wiki-digest/SKILL.md +0 -70
- package/.claude/commands/learn-retro.md +0 -157
- package/.claude/commands/maestro-learn.md +0 -140
- package/.claude/commands/maestro-verify.md +0 -144
- package/.claude/commands/manage-codebase-refresh.md +0 -60
- package/.claude/commands/manage-learn.md +0 -65
- package/.claude/commands/wiki-connect.md +0 -62
- package/.claude/commands/wiki-digest.md +0 -68
- package/.codex/skills/maestro-verify/SKILL.md +0 -254
- package/chains/execute-verify.json +0 -59
- package/chains/singles/verify.json +0 -26
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: manage-codebase-refresh
|
|
3
|
-
description: Refresh codebase docs from recent changes
|
|
4
|
-
argument-hint: "[--since <date>] [--deep]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- read_file
|
|
7
|
-
- write_file
|
|
8
|
-
- edit_file
|
|
9
|
-
- shell
|
|
10
|
-
- find_files
|
|
11
|
-
- search
|
|
12
|
-
- delegate_subagent
|
|
13
|
-
- ask_user
|
|
14
|
-
---
|
|
15
|
-
<!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<purpose>
|
|
19
|
-
Incrementally refresh .workflow/codebase/ documentation based on changes since the last rebuild or refresh. Detects which files have changed (via git diff), identifies which codebase docs are affected, selectively re-runs mapper agents on those areas only, and updates timestamps. Much faster than a full rebuild for ongoing maintenance.
|
|
20
|
-
</purpose>
|
|
21
|
-
|
|
22
|
-
<required_reading>
|
|
23
|
-
@~/.maestro/workflows/codebase-refresh.md
|
|
24
|
-
</required_reading>
|
|
25
|
-
|
|
26
|
-
<context>
|
|
27
|
-
$ARGUMENTS -- optional flags.
|
|
28
|
-
|
|
29
|
-
**Flags:**
|
|
30
|
-
- `--since <date>` -- Override change detection window (ISO date or relative like "3d")
|
|
31
|
-
- `--deep` -- Force deeper re-scan even for files with minor changes
|
|
32
|
-
|
|
33
|
-
**State files:**
|
|
34
|
-
- `.workflow/` -- must be initialized
|
|
35
|
-
- `.workflow/codebase/` -- must contain existing docs (from prior rebuild)
|
|
36
|
-
- `.workflow/codebase/doc-index.json` -- documentation index with timestamps
|
|
37
|
-
- `.workflow/codebase/knowledge-graph.json` -- Knowledge Graph (optional, for KG impact analysis)
|
|
38
|
-
- `.workflow/state.json` -- contains `codebase_last_rebuilt` timestamp
|
|
39
|
-
</context>
|
|
40
|
-
|
|
41
|
-
<execution>
|
|
42
|
-
Follow '~/.maestro/workflows/codebase-refresh.md' completely.
|
|
43
|
-
</execution>
|
|
44
|
-
|
|
45
|
-
<error_codes>
|
|
46
|
-
| Code | Meaning |
|
|
47
|
-
|------|----------------------------------------------------------|
|
|
48
|
-
| E001 | .workflow/ not initialized |
|
|
49
|
-
| E002 | No codebase/ docs exist, use codebase-rebuild instead |
|
|
50
|
-
| W001 | No changes detected since last refresh |
|
|
51
|
-
</error_codes>
|
|
52
|
-
|
|
53
|
-
<success_criteria>
|
|
54
|
-
- [ ] Changed files detected via git diff since last refresh
|
|
55
|
-
- [ ] Affected documentation entries identified from doc-index.json
|
|
56
|
-
- [ ] KG impact analysis run (if knowledge-graph.json exists): `maestro kg diff-wiki --json`
|
|
57
|
-
- [ ] Affected wiki entries flagged with warnings (if any)
|
|
58
|
-
- [ ] Only affected docs refreshed (selective mapper re-run)
|
|
59
|
-
- [ ] doc-index.json timestamps updated per affected entry
|
|
60
|
-
- [ ] state.json updated with codebase_last_refreshed timestamp
|
|
61
|
-
- [ ] Next step routing: `/manage-status` or `/spec-load` to use updated docs
|
|
62
|
-
</success_criteria>
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: manage-learn
|
|
3
|
-
description: Capture and search learning insights and tips
|
|
4
|
-
argument-hint: "[<text> | tip <text> | list | search | show <id>] [--category <cat>] [--tag t1,t2] [--phase N]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- read_file
|
|
7
|
-
- write_file
|
|
8
|
-
- edit_file
|
|
9
|
-
- shell
|
|
10
|
-
- find_files
|
|
11
|
-
- search
|
|
12
|
-
- ask_user
|
|
13
|
-
---
|
|
14
|
-
<!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
|
|
15
|
-
|
|
16
|
-
<purpose>
|
|
17
|
-
Unified atomic knowledge capture for the workflow learning library. Captures two types of knowledge:
|
|
18
|
-
- **Insights**: Timeless "eureka moment" entries (patterns, gotchas, techniques) — the default mode
|
|
19
|
-
- **Tips**: Quick contextual notes for cross-session recovery (formerly in `manage-knowhow-capture tip`)
|
|
20
|
-
|
|
21
|
-
Both types are stored in `.workflow/specs/learnings.md` as `<spec-entry>` blocks with auto-detected phase linkage and keyword-based category inference. Tips are distinguished by `source: "tip"` and implicitly tagged `tip`. Same store as retrospective output, so search and list see the entire knowledge corpus.
|
|
22
|
-
</purpose>
|
|
23
|
-
|
|
24
|
-
<required_reading>
|
|
25
|
-
@~/.maestro/workflows/learn.md
|
|
26
|
-
</required_reading>
|
|
27
|
-
|
|
28
|
-
<context>
|
|
29
|
-
Arguments: $ARGUMENTS
|
|
30
|
-
|
|
31
|
-
**Modes (auto-detected from first token):**
|
|
32
|
-
- `"<insight text>"` (or any non-keyword text) → insight capture mode
|
|
33
|
-
- `tip <text>` → tip capture mode (quick contextual note, auto-tagged `tip`)
|
|
34
|
-
- `list` → list recent entries (default 20)
|
|
35
|
-
- `search <query>` → `maestro spec load --category learning` or text search across `.workflow/specs/learnings.md`
|
|
36
|
-
- `show <INS-id>` → full detail with phase context
|
|
37
|
-
- empty → ask_user to prompt for text
|
|
38
|
-
|
|
39
|
-
Flags, storage paths, and shared store rationale defined in workflow learn.md.
|
|
40
|
-
</context>
|
|
41
|
-
|
|
42
|
-
<execution>
|
|
43
|
-
Follow `~/.maestro/workflows/learn.md` Stages 1–5 in order.
|
|
44
|
-
</execution>
|
|
45
|
-
|
|
46
|
-
<error_codes>
|
|
47
|
-
| Code | Severity | Description | Stage |
|
|
48
|
-
|------|----------|-------------|-------|
|
|
49
|
-
| E001 | error | `.workflow/` not initialized — run `/maestro-init` first | parse_input |
|
|
50
|
-
| E002 | error | Unknown `--category` value (allowed: pattern, antipattern, decision, tool, gotcha, technique, tip) | parse_input |
|
|
51
|
-
| E003 | error | `show` mode requires an INS-id argument | show |
|
|
52
|
-
| E004 | error | Insight id not found in `.workflow/specs/learnings.md` | show |
|
|
53
|
-
| W001 | warning | Auto-phase detection found a current_phase but no matching artifact in registry; phase set to null | capture |
|
|
54
|
-
</error_codes>
|
|
55
|
-
|
|
56
|
-
<success_criteria>
|
|
57
|
-
- [ ] Mode correctly routed (capture / list / search / show)
|
|
58
|
-
- [ ] Capture: `<spec-entry>` block appended to `.workflow/specs/learnings.md` with all required fields
|
|
59
|
-
- [ ] Capture: phase auto-link resolves correctly via artifact registry when `state.json` has `current_phase`
|
|
60
|
-
- [ ] Capture: category inference produces a sensible default when `--category` absent
|
|
61
|
-
- [ ] List: filters apply, output sorted newest-first, default limit 20
|
|
62
|
-
- [ ] Search: results ranked by title (3) > tags (2) > summary (1) match
|
|
63
|
-
- [ ] Show: full insight displayed with phase context and routed-artifact link if any
|
|
64
|
-
- [ ] No file modifications outside `.workflow/specs/learnings.md` and `.workflow/knowhow/`
|
|
65
|
-
- [ ] Confirmation banner displayed with INS-id and next-step hints
|
|
66
|
-
- [ ] Next step: `/manage-learn list` to browse, or `/manage-learn search <query>` to find related insights
|
|
67
|
-
</success_criteria>
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: wiki-connect
|
|
3
|
-
description: Find and link hidden connections in wiki graph
|
|
4
|
-
argument-hint: "[--scope <type>] [--min-similarity N] [--fix] [--max N]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- read_file
|
|
7
|
-
- write_file
|
|
8
|
-
- shell
|
|
9
|
-
- find_files
|
|
10
|
-
- search
|
|
11
|
-
- delegate_subagent
|
|
12
|
-
- ask_user
|
|
13
|
-
---
|
|
14
|
-
<!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
|
|
15
|
-
|
|
16
|
-
<required_reading>
|
|
17
|
-
@~/.maestro/workflows/wiki-connect.md
|
|
18
|
-
</required_reading>
|
|
19
|
-
|
|
20
|
-
<purpose>
|
|
21
|
-
Knowledge graph link discovery and health improvement. Analyzes the wiki index to find orphaned entries, missing connections, and transitive link gaps, then suggests or auto-applies new `related` links to improve graph connectivity.
|
|
22
|
-
|
|
23
|
-
Leverages maestro's unique wiki graph infrastructure (BM25 search, backlinks, health scoring) — no equivalent in gstack. Directly improves the quality of all downstream wiki consumers (search, digest, follow-along).
|
|
24
|
-
</purpose>
|
|
25
|
-
|
|
26
|
-
<context>
|
|
27
|
-
Arguments: $ARGUMENTS
|
|
28
|
-
|
|
29
|
-
Flags, storage paths, and CLI commands defined in workflow wiki-connect.md.
|
|
30
|
-
</context>
|
|
31
|
-
|
|
32
|
-
<execution>
|
|
33
|
-
Follow '~/.maestro/workflows/wiki-connect.md' completely (Stages 1-6).
|
|
34
|
-
|
|
35
|
-
**Next-step routing:**
|
|
36
|
-
- Generate knowledge digest → `/wiki-digest <topic>`
|
|
37
|
-
- Follow-along on orphan → `/learn-follow <wiki-id>`
|
|
38
|
-
- View full graph → `maestro wiki graph`
|
|
39
|
-
</execution>
|
|
40
|
-
|
|
41
|
-
<error_codes>
|
|
42
|
-
| Code | Severity | Condition | Recovery |
|
|
43
|
-
|------|----------|-----------|----------|
|
|
44
|
-
| E001 | error | No wiki entries found (empty index) | Initialize wiki content first, or run `/maestro-init` |
|
|
45
|
-
| E002 | error | `maestro wiki` CLI not available | Check maestro installation |
|
|
46
|
-
| W001 | warning | No connection candidates found above threshold | Lower --min-similarity or check if graph is already well-connected |
|
|
47
|
-
| W002 | warning | Some wiki update calls failed during --fix | Partial application; retry failed entries manually |
|
|
48
|
-
| W003 | warning | Health score unchanged after fix | Connections may not have improved the specific health metrics |
|
|
49
|
-
</error_codes>
|
|
50
|
-
|
|
51
|
-
<success_criteria>
|
|
52
|
-
- [ ] Wiki index loaded with entry count and type distribution
|
|
53
|
-
- [ ] Baseline health score recorded
|
|
54
|
-
- [ ] Orphans identified and rescue candidates generated
|
|
55
|
-
- [ ] Connection candidates scored and ranked
|
|
56
|
-
- [ ] Results filtered by --min-similarity and limited by --max
|
|
57
|
-
- [ ] Suggestions displayed with scores and reasons
|
|
58
|
-
- [ ] If --fix: entries updated with new `related` links
|
|
59
|
-
- [ ] If --fix: new health score computed and delta reported
|
|
60
|
-
- [ ] Report written to `wiki-connections-{date}.md`
|
|
61
|
-
- [ ] Graph insights appended to `specs/learnings.md` as `<spec-entry>` blocks
|
|
62
|
-
- [ ] No unintended entry modifications (only `related` field changed)
|
|
63
|
-
- [ ] Summary displayed with next-step routing
|
|
64
|
-
</success_criteria>
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: wiki-digest
|
|
3
|
-
description: Generate wiki digest with theme clustering and gap analysis
|
|
4
|
-
argument-hint: "[<topic>|--recent N] [--type <type>] [--format brief|full]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- read_file
|
|
7
|
-
- write_file
|
|
8
|
-
- shell
|
|
9
|
-
- find_files
|
|
10
|
-
- search
|
|
11
|
-
- delegate_subagent
|
|
12
|
-
- ask_user
|
|
13
|
-
---
|
|
14
|
-
<!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
|
|
15
|
-
|
|
16
|
-
<purpose>
|
|
17
|
-
Knowledge synthesis command that generates actionable digests from the wiki knowledge graph. Clusters entries by semantic theme, identifies knowledge gaps, and produces a coverage heatmap. Unique to maestro — leverages the wiki graph (BM25 search, backlinks, health) to surface trends and missing knowledge.
|
|
18
|
-
|
|
19
|
-
Unlike `maestro wiki list` which shows raw entries, this command synthesizes and interprets the knowledge base, producing a curated summary with gap analysis and recommended next actions.
|
|
20
|
-
</purpose>
|
|
21
|
-
|
|
22
|
-
<required_reading>
|
|
23
|
-
@~/.maestro/workflows/wiki-digest.md
|
|
24
|
-
</required_reading>
|
|
25
|
-
|
|
26
|
-
<deferred_reading>
|
|
27
|
-
- @~/.maestro/workflows/issue.md (issues.jsonl canonical schema for `--create-issues` routing)
|
|
28
|
-
</deferred_reading>
|
|
29
|
-
|
|
30
|
-
<context>
|
|
31
|
-
Arguments: $ARGUMENTS
|
|
32
|
-
|
|
33
|
-
Flags, scope resolution, storage paths, and CLI commands defined in workflow wiki-digest.md.
|
|
34
|
-
</context>
|
|
35
|
-
|
|
36
|
-
<execution>
|
|
37
|
-
Follow '~/.maestro/workflows/wiki-digest.md' completely (Stages 1-8).
|
|
38
|
-
|
|
39
|
-
**Next-step routing:**
|
|
40
|
-
- Deep dive on a theme → `/learn-follow <wiki-id>`
|
|
41
|
-
- Fix graph gaps → `/wiki-connect --fix`
|
|
42
|
-
- Decompose code for missing patterns → `/learn-decompose <path>`
|
|
43
|
-
- Create missing entries → `maestro wiki create --type <type> --slug <slug>`
|
|
44
|
-
- Triage gap issues → `/manage-issue list --source wiki-digest`
|
|
45
|
-
</execution>
|
|
46
|
-
|
|
47
|
-
<error_codes>
|
|
48
|
-
| Code | Severity | Condition | Recovery |
|
|
49
|
-
|------|----------|-----------|----------|
|
|
50
|
-
| E001 | error | No wiki entries found (empty index) | Initialize wiki content first |
|
|
51
|
-
| E002 | error | Topic search returned 0 results | Broaden topic or check wiki content |
|
|
52
|
-
| W001 | warning | Too few entries (<5) for meaningful theme clustering | Digest produced but themes may be trivial |
|
|
53
|
-
| W002 | warning | specs/learnings.md not found — skipping cross-reference | Proceed without knowhow context |
|
|
54
|
-
| W003 | warning | Some entry bodies failed to load — partial summaries | Note incomplete entries in digest |
|
|
55
|
-
</error_codes>
|
|
56
|
-
|
|
57
|
-
<success_criteria>
|
|
58
|
-
- [ ] Scope parsed and entries loaded
|
|
59
|
-
- [ ] Baseline health score recorded
|
|
60
|
-
- [ ] Entries clustered into 3-5 semantic themes
|
|
61
|
-
- [ ] Per-theme analysis: summary, key entries, gaps, health
|
|
62
|
-
- [ ] Cross-reference with specs/learnings.md completed
|
|
63
|
-
- [ ] Coverage heatmap generated (type × theme matrix)
|
|
64
|
-
- [ ] Knowledge gaps identified with suggested actions
|
|
65
|
-
- [ ] If `--create-issues`: gap issues created in `issues.jsonl` (deduped)
|
|
66
|
-
- [ ] Digest written to `KNW-digest-{slug}-{date}.md`
|
|
67
|
-
- [ ] Meta-insights appended to `specs/learnings.md` as `<spec-entry>` blocks
|
|
68
|
-
- [ ] No files modified outside `.workflow/knowhow/` and `.workflow/issues/` (issues only when `--create-issues`)
|
|
69
|
-
- [ ] Summary displayed with key findings and next-step routing
|
|
70
|
-
</success_criteria>
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: learn-retro
|
|
3
|
-
description: Retrospective of git activity and decision quality
|
|
4
|
-
argument-hint: [--lens git|decision|all] [--days N] [--author <name>] [--area <path>] [--phase N] [--tag <tag>] [--id <id>] [--compare]
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- ask_question
|
|
7
|
-
- define_subagent
|
|
8
|
-
- grep_search
|
|
9
|
-
- invoke_subagent
|
|
10
|
-
- manage_subagents
|
|
11
|
-
- run_command
|
|
12
|
-
- send_message
|
|
13
|
-
- view_file
|
|
14
|
-
- write_to_file
|
|
15
|
-
---
|
|
16
|
-
<purpose>
|
|
17
|
-
Unified retrospective combining git activity analysis and decision quality evaluation. Works on raw git history and wiki/spec data. Two lenses (git, decision), usable independently or together.
|
|
18
|
-
|
|
19
|
-
All insights persist to `.workflow/specs/learnings.md` as `<spec-entry>` blocks.
|
|
20
|
-
</purpose>
|
|
21
|
-
|
|
22
|
-
<context>
|
|
23
|
-
$ARGUMENTS — lens selection and scope flags.
|
|
24
|
-
|
|
25
|
-
**Lens**: `--lens git` | `--lens decision` | `--lens all` (default: all)
|
|
26
|
-
|
|
27
|
-
**Git lens flags**: `--days N` (default: 7), `--author <name>`, `--area <path>`, `--compare` (vs prior retro)
|
|
28
|
-
**Decision lens flags**: `--phase N`, `--tag <tag>`, `--id <id>` (single decision by wiki/INS id)
|
|
29
|
-
|
|
30
|
-
**Storage write**:
|
|
31
|
-
- `.workflow/knowhow/KNW-retro-{date}.md` — unified report
|
|
32
|
-
- `.workflow/knowhow/KNW-retro-{date}.json` — structured metrics
|
|
33
|
-
- `.workflow/specs/learnings.md` — appended `<spec-entry>` blocks (source: retro-git / retro-decision)
|
|
34
|
-
|
|
35
|
-
**Storage read**: git history, `.workflow/state.json`, prior `KNW-retro-*.json`, `.workflow/specs/learnings.md`, wiki specs, `architecture-constraints.md`, phase context files
|
|
36
|
-
</context>
|
|
37
|
-
|
|
38
|
-
<state_machine>
|
|
39
|
-
|
|
40
|
-
<states>
|
|
41
|
-
S_PARSE — 解析 lens + flags PERSIST: —
|
|
42
|
-
S_GIT — git 活动分析(lens=git/all 时) PERSIST: metrics
|
|
43
|
-
S_DECISION — 决策质量评估(lens=decision/all 时) PERSIST: evaluations
|
|
44
|
-
S_REPORT — 生成统一报告 PERSIST: .md + .json
|
|
45
|
-
S_PERSIST — 写 spec-entry 块 PERSIST: .workflow/specs/learnings.md
|
|
46
|
-
</states>
|
|
47
|
-
|
|
48
|
-
<transitions>
|
|
49
|
-
|
|
50
|
-
S_PARSE:
|
|
51
|
-
→ S_GIT WHEN: lens == git OR all DO: ensure .workflow/knowhow/ exists (mkdir -p)
|
|
52
|
-
→ S_DECISION WHEN: lens == decision DO: ensure .workflow/knowhow/ exists (mkdir -p)
|
|
53
|
-
|
|
54
|
-
S_GIT:
|
|
55
|
-
→ S_DECISION WHEN: lens == all DO: A_GIT_ANALYSIS
|
|
56
|
-
→ S_REPORT WHEN: lens == git DO: A_GIT_ANALYSIS
|
|
57
|
-
|
|
58
|
-
S_DECISION:
|
|
59
|
-
→ S_REPORT DO: A_DECISION_ANALYSIS
|
|
60
|
-
|
|
61
|
-
S_REPORT:
|
|
62
|
-
→ S_PERSIST DO: write KNW-retro-{date}.md + .json
|
|
63
|
-
|
|
64
|
-
S_PERSIST:
|
|
65
|
-
→ END DO: append insights to .workflow/specs/learnings.md via `maestro spec add learning`
|
|
66
|
-
RULE: INS-id = hash(lens + metric_or_decision_id + date) for cross-session stability
|
|
67
|
-
|
|
68
|
-
</transitions>
|
|
69
|
-
|
|
70
|
-
<actions>
|
|
71
|
-
|
|
72
|
-
### A_GIT_ANALYSIS
|
|
73
|
-
|
|
74
|
-
**Parallel git commands**:
|
|
75
|
-
```bash
|
|
76
|
-
git log --since="{start}" --format="%H|%aN|%ae|%ai|%s" --shortstat
|
|
77
|
-
git log --since="{start}" --format="COMMIT:%H|%aN" --numstat
|
|
78
|
-
git log --since="{start}" --format="%at|%aN|%ai|%s" | sort -n
|
|
79
|
-
git log --since="{start}" --format="" --name-only | grep -v '^$' | sort | uniq -c | sort -rn | head -20
|
|
80
|
-
git shortlog --since="{start}" -sn --no-merges
|
|
81
|
-
```
|
|
82
|
-
Apply --author and --area filters.
|
|
83
|
-
|
|
84
|
-
**Compute metrics**:
|
|
85
|
-
|
|
86
|
-
| Metric | Formula |
|
|
87
|
-
|--------|---------|
|
|
88
|
-
| Test ratio | test_insertions / total_insertions * 100% |
|
|
89
|
-
| Churn rate | files changed >2x / total unique files |
|
|
90
|
-
| Sessions | Cluster commits by >2hr gaps in timestamps |
|
|
91
|
-
| LOC/session-hour | net_loc / total_session_hours |
|
|
92
|
-
|
|
93
|
-
**Per-author breakdown**: commits, LOC, top 3 areas, test ratio, session count.
|
|
94
|
-
|
|
95
|
-
**Trend** (if --compare or prior KNW-retro-*.json exists): compute deltas, flag >20% changes.
|
|
96
|
-
|
|
97
|
-
**Distill insights**: high churn files (instability), low test ratio areas (<20%), session patterns, area drift vs roadmap.
|
|
98
|
-
|
|
99
|
-
### A_DECISION_ANALYSIS
|
|
100
|
-
|
|
101
|
-
**Collect** (parallel):
|
|
102
|
-
```bash
|
|
103
|
-
maestro wiki search "decision" --json
|
|
104
|
-
maestro wiki list --type spec --json
|
|
105
|
-
git log --oneline --all --grep="decision\|chose\|decided" -20
|
|
106
|
-
```
|
|
107
|
-
Plus: architecture-constraints.md, phase context Locked/Deferred sections, .workflow/specs/learnings.md.
|
|
108
|
-
Apply --phase/--tag/--id filters.
|
|
109
|
-
|
|
110
|
-
**Build registry** per decision: id, title, source, date, rationale, alternatives, phase, implementation_evidence [file paths].
|
|
111
|
-
|
|
112
|
-
**Evaluate** — spawn 3 Agents in single message:
|
|
113
|
-
|
|
114
|
-
| Agent | Dimension | Grades |
|
|
115
|
-
|-------|-----------|--------|
|
|
116
|
-
| Technical Soundness | Implementation matches intent? Context changed? | sound / degraded / violated |
|
|
117
|
-
| Cost Assessment | Complexity added? Coupling/debt? | low-cost / acceptable / expensive / debt-creating |
|
|
118
|
-
| Alternative Hindsight | Right call with current knowledge? Reversible? | confirmed / questionable / should-revisit |
|
|
119
|
-
|
|
120
|
-
**Classify lifecycle**:
|
|
121
|
-
|
|
122
|
-
| Status | Criteria |
|
|
123
|
-
|--------|---------|
|
|
124
|
-
| Validated | sound + low/acceptable + confirmed |
|
|
125
|
-
| Aging | sound + expensive + confirmed |
|
|
126
|
-
| Questionable | degraded/violated + questionable |
|
|
127
|
-
| Stale | any + should-revisit |
|
|
128
|
-
| Reversed | code contradicts decision |
|
|
129
|
-
|
|
130
|
-
**Recommend**: Aging → tech debt review, Questionable → create issue, Stale → refresh, Reversed → document reversal.
|
|
131
|
-
|
|
132
|
-
</actions>
|
|
133
|
-
|
|
134
|
-
</state_machine>
|
|
135
|
-
|
|
136
|
-
<error_codes>
|
|
137
|
-
| Code | Condition | Recovery |
|
|
138
|
-
|------|-----------|----------|
|
|
139
|
-
| E001 | Not in git repo (git lens) | Navigate to git repo |
|
|
140
|
-
| E002 | No commits in window (git lens) | Increase --days |
|
|
141
|
-
| E003 | No decisions found (decision lens) | Check wiki/specs or provide --id |
|
|
142
|
-
| E004 | --id not found in wiki or knowhow | Verify the decision ID exists |
|
|
143
|
-
| W002 | No prior retro for comparison | Skip trend; first retro = baseline |
|
|
144
|
-
| W003 | One perspective agent failed | Proceed with available perspectives |
|
|
145
|
-
</error_codes>
|
|
146
|
-
|
|
147
|
-
<success_criteria>
|
|
148
|
-
- [ ] Git lens: metrics computed (commits, LOC, test ratio, churn, sessions), insights distilled
|
|
149
|
-
- [ ] Decision lens: decisions collected, 3 agents evaluated in parallel, lifecycle classified
|
|
150
|
-
- [ ] Unified report + structured JSON written
|
|
151
|
-
- [ ] .workflow/specs/learnings.md appended with stable INS-ids
|
|
152
|
-
</success_criteria>
|
|
153
|
-
|
|
154
|
-
<next_step_routing>
|
|
155
|
-
- Browse insights → `/manage-learn list --tag retro`
|
|
156
|
-
- Deep dive churn → `/learn-follow <path>`
|
|
157
|
-
- Fix test gaps → `/quality-auto-test <area>`
|
|
158
|
-
- Investigate stale decision → `/learn-investigate <question>`
|
|
159
|
-
</next_step_routing>
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: maestro-learn
|
|
3
|
-
description: Route learning intent to learn-* commands
|
|
4
|
-
argument-hint: <intent> [-y] [--dry-run] [--chain <name>]
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- ask_question
|
|
7
|
-
- define_subagent
|
|
8
|
-
- grep_search
|
|
9
|
-
- invoke_subagent
|
|
10
|
-
- manage_subagents
|
|
11
|
-
- run_command
|
|
12
|
-
- send_message
|
|
13
|
-
- view_file
|
|
14
|
-
- write_to_file
|
|
15
|
-
---
|
|
16
|
-
<purpose>
|
|
17
|
-
Route learning requests to the optimal learn command or multi-step chain. Supports direct chain selection via `--chain` or intent-based routing via keyword matching.
|
|
18
|
-
|
|
19
|
-
Executes commands sequentially via Skill() with session tracking.
|
|
20
|
-
</purpose>
|
|
21
|
-
|
|
22
|
-
<context>
|
|
23
|
-
$ARGUMENTS — user learning intent text, or flags.
|
|
24
|
-
|
|
25
|
-
**Flags:**
|
|
26
|
-
- `-y` / `--yes` — Auto mode: skip confirmation
|
|
27
|
-
- `--dry-run` — Show planned chain without executing
|
|
28
|
-
- `--chain <name>` — Force a specific chain (bypass intent detection)
|
|
29
|
-
|
|
30
|
-
**Available learn commands:**
|
|
31
|
-
| Command | Purpose |
|
|
32
|
-
|---------|---------|
|
|
33
|
-
| `learn-follow` | Guided reading with forcing questions, pattern extraction |
|
|
34
|
-
| `learn-investigate` | Hypothesis-driven question investigation |
|
|
35
|
-
| `learn-decompose` | 4-dimension parallel pattern extraction |
|
|
36
|
-
| `learn-second-opinion` | Multi-perspective review/challenge/consult |
|
|
37
|
-
| `learn-retro` | Unified retrospective (git metrics + decision evaluation) |
|
|
38
|
-
|
|
39
|
-
**Available chains:**
|
|
40
|
-
| Chain | Steps | Use when |
|
|
41
|
-
|-------|-------|----------|
|
|
42
|
-
| `follow` | learn-follow | Read/understand code or docs |
|
|
43
|
-
| `investigate` | learn-investigate | Answer a "how/why" question |
|
|
44
|
-
| `decompose` | learn-decompose | Catalog patterns in a module |
|
|
45
|
-
| `second-opinion` | learn-second-opinion | Get review/challenge on code |
|
|
46
|
-
| `retro` | learn-retro --lens all | Full retrospective (git + decisions) |
|
|
47
|
-
| `deep-understand` | follow → decompose → second-opinion | Thorough module analysis |
|
|
48
|
-
| `pattern-catalog` | decompose --save-spec --save-wiki → second-opinion --mode review | Full pattern extraction + review |
|
|
49
|
-
|
|
50
|
-
**Storage:**
|
|
51
|
-
- `.workflow/knowhow/.maestro-learn/{session_id}/status.json` — Session tracking
|
|
52
|
-
- All learn command outputs go to `.workflow/knowhow/`
|
|
53
|
-
</context>
|
|
54
|
-
|
|
55
|
-
<execution>
|
|
56
|
-
|
|
57
|
-
### Step 1: Parse & Route
|
|
58
|
-
|
|
59
|
-
Parse flags (`-y`, `--dry-run`, `--chain`). Extract intent text.
|
|
60
|
-
|
|
61
|
-
**If `--chain` specified:** validate against known chains, jump to Step 2.
|
|
62
|
-
|
|
63
|
-
**Intent routing table** (match first token or keywords):
|
|
64
|
-
|
|
65
|
-
| Keywords | Route |
|
|
66
|
-
|----------|-------|
|
|
67
|
-
| File path (contains `/` or `\`) | `follow` |
|
|
68
|
-
| Wiki ID (`type-slug` pattern) | `follow` |
|
|
69
|
-
| read, follow, walk through, understand, 阅读, 跟读 | `follow` |
|
|
70
|
-
| why, how, what if, investigate, 为什么, 怎么 | `investigate` |
|
|
71
|
-
| pattern, decompose, catalog, 分解, 模式 | `decompose` |
|
|
72
|
-
| opinion, review, challenge, consult, 评审, 挑战 | `second-opinion` |
|
|
73
|
-
| retro, git, commit, decision, 回顾 | `retro` |
|
|
74
|
-
| thorough, deep, 全面, 深入 | `deep-understand` |
|
|
75
|
-
|
|
76
|
-
**If no match:** present menu via ask_question:
|
|
77
|
-
```
|
|
78
|
-
What would you like to do?
|
|
79
|
-
1. Read through code/docs → follow
|
|
80
|
-
2. Investigate a question → investigate
|
|
81
|
-
3. Find patterns in code → decompose
|
|
82
|
-
4. Get a second opinion → second-opinion
|
|
83
|
-
5. Retrospective → retro
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
Max 1 clarification round. If still unclear: error.
|
|
87
|
-
|
|
88
|
-
### Step 2: Resolve Target & Build Args
|
|
89
|
-
|
|
90
|
-
- File path → pass directly
|
|
91
|
-
- Wiki ID → pass directly
|
|
92
|
-
- Topic string → pass as quoted argument
|
|
93
|
-
- Extract any flags (--depth, --days, --lens, --mode, --scope, etc.)
|
|
94
|
-
|
|
95
|
-
**Chain → command mapping:**
|
|
96
|
-
```
|
|
97
|
-
follow → Skill("learn-follow", "{target} {flags}")
|
|
98
|
-
investigate → Skill("learn-investigate", "\"{target}\" {flags}")
|
|
99
|
-
decompose → Skill("learn-decompose", "{target} {flags}")
|
|
100
|
-
second-opinion → Skill("learn-second-opinion", "{target} {flags}")
|
|
101
|
-
retro → Skill("learn-retro", "{flags}")
|
|
102
|
-
deep-understand → [learn-follow --depth deep, learn-decompose --save-spec, learn-second-opinion --mode challenge]
|
|
103
|
-
pattern-catalog → [learn-decompose --save-spec --save-wiki, learn-second-opinion --mode review]
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
### Step 3: Confirm & Execute
|
|
107
|
-
|
|
108
|
-
**If `--dry-run`:** display chain plan and exit.
|
|
109
|
-
|
|
110
|
-
**If not `-y`:** show plan, ask for confirmation.
|
|
111
|
-
|
|
112
|
-
**Execute:**
|
|
113
|
-
1. Create session dir: `.workflow/knowhow/.maestro-learn/learn-{timestamp}/`
|
|
114
|
-
2. Write `status.json` with chain steps
|
|
115
|
-
3. Execute each step via `Skill()`:
|
|
116
|
-
- On success: mark completed, continue
|
|
117
|
-
- On failure (interactive): ask retry/skip/abort
|
|
118
|
-
- On failure (auto): skip and continue
|
|
119
|
-
4. Display session summary with artifact list and next-step suggestion
|
|
120
|
-
|
|
121
|
-
</execution>
|
|
122
|
-
|
|
123
|
-
<error_codes>
|
|
124
|
-
| Code | Severity | Description | Recovery |
|
|
125
|
-
|------|----------|-------------|----------|
|
|
126
|
-
| E001 | error | No intent provided | Provide a learning goal or use --chain |
|
|
127
|
-
| E002 | error | Cannot determine intent after clarification | Rephrase or use --chain directly |
|
|
128
|
-
| E003 | error | Chain step failed + user chose abort | Partial progress saved in status.json |
|
|
129
|
-
| E005 | error | Invalid --chain name | Show valid chains |
|
|
130
|
-
| W001 | warning | Intent ambiguous between commands | Present options |
|
|
131
|
-
| W002 | warning | Chain step completed with warnings | Log and continue |
|
|
132
|
-
</error_codes>
|
|
133
|
-
|
|
134
|
-
<success_criteria>
|
|
135
|
-
- [ ] Intent routed to correct chain (or --chain validated)
|
|
136
|
-
- [ ] Target resolved and arguments assembled
|
|
137
|
-
- [ ] Session directory created with status.json
|
|
138
|
-
- [ ] All chain steps executed via Skill()
|
|
139
|
-
- [ ] Error handling: retry/skip/abort per step
|
|
140
|
-
- [ ] Session summary displayed with next-step routing
|
|
141
|
-
- [ ] No files modified outside `.workflow/knowhow/`
|
|
142
|
-
</success_criteria>
|