maestro-flow 0.4.10 → 0.4.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/agents/cli-explore-agent.md +187 -0
- package/.agents/agents/cross-role-reviewer.md +173 -0
- package/.agents/agents/impeccable-agent.md +101 -0
- package/.agents/agents/role-design-author.md +218 -0
- package/.agents/agents/team-supervisor.md +145 -0
- package/.agents/agents/team-worker.md +239 -0
- package/.agents/agents/ui-design-agent.md +272 -0
- package/.agents/agents/workflow-analyzer.md +117 -0
- package/.agents/agents/workflow-codebase-mapper.md +79 -0
- package/.agents/agents/workflow-collab-planner.md +145 -0
- package/.agents/agents/workflow-debugger.md +105 -0
- package/.agents/agents/workflow-executor.md +134 -0
- package/.agents/agents/workflow-external-researcher.md +88 -0
- package/.agents/agents/workflow-integration-checker.md +85 -0
- package/.agents/agents/workflow-nyquist-auditor.md +87 -0
- package/.agents/agents/workflow-phase-researcher.md +87 -0
- package/.agents/agents/workflow-plan-checker.md +92 -0
- package/.agents/agents/workflow-planner.md +197 -0
- package/.agents/agents/workflow-project-researcher.md +76 -0
- package/.agents/agents/workflow-research-synthesizer.md +72 -0
- package/.agents/agents/workflow-reviewer.md +84 -0
- package/.agents/agents/workflow-roadmapper.md +83 -0
- package/.agents/agents/workflow-verifier.md +122 -0
- package/.agents/skills/codify-to-knowhow/SKILL.md +169 -0
- package/.agents/skills/codify-to-knowhow/phases/01-load-manifest.md +101 -0
- package/.agents/skills/codify-to-knowhow/phases/02-generate-knowhow.md +97 -0
- package/.agents/skills/codify-to-knowhow/phases/03-generate-specs.md +92 -0
- package/.agents/skills/codify-to-knowhow/phases/04-index-verify.md +119 -0
- package/.agents/skills/learn-decompose/SKILL.md +118 -0
- package/.agents/skills/learn-follow/SKILL.md +129 -0
- package/.agents/skills/learn-investigate/SKILL.md +154 -0
- package/.agents/skills/learn-retro/SKILL.md +159 -0
- package/.agents/skills/learn-second-opinion/SKILL.md +124 -0
- package/.agents/skills/maestro/SKILL.md +258 -0
- package/.agents/skills/maestro-amend/SKILL.md +165 -0
- package/.agents/skills/maestro-analyze/SKILL.md +161 -0
- package/.agents/skills/maestro-blueprint/SKILL.md +132 -0
- package/.agents/skills/maestro-brainstorm/SKILL.md +134 -0
- package/.agents/skills/maestro-collab/SKILL.md +174 -0
- package/.agents/skills/maestro-composer/SKILL.md +181 -0
- package/.agents/skills/maestro-execute/SKILL.md +133 -0
- package/.agents/skills/maestro-fork/SKILL.md +88 -0
- package/.agents/skills/maestro-guard/SKILL.md +103 -0
- package/.agents/skills/maestro-help/SKILL.md +300 -0
- package/.agents/skills/maestro-help/index/catalog.json +202 -0
- package/.agents/skills/maestro-help/phases/01-parse-intent.md +122 -0
- package/.agents/skills/maestro-help/phases/02-search-present.md +183 -0
- package/.agents/skills/maestro-help/phases/03-workflow-guide.md +213 -0
- package/.agents/skills/maestro-impeccable/SKILL.md +251 -0
- package/.agents/skills/maestro-init/SKILL.md +80 -0
- package/.agents/skills/maestro-learn/SKILL.md +142 -0
- package/.agents/skills/maestro-merge/SKILL.md +66 -0
- package/.agents/skills/maestro-milestone-audit/SKILL.md +72 -0
- package/.agents/skills/maestro-milestone-complete/SKILL.md +79 -0
- package/.agents/skills/maestro-milestone-release/SKILL.md +98 -0
- package/.agents/skills/maestro-overlay/SKILL.md +180 -0
- package/.agents/skills/maestro-plan/SKILL.md +182 -0
- package/.agents/skills/maestro-player/SKILL.md +177 -0
- package/.agents/skills/maestro-quick/SKILL.md +67 -0
- package/.agents/skills/maestro-ralph/SKILL.md +756 -0
- package/.agents/skills/maestro-ralph-execute/SKILL.md +273 -0
- package/.agents/skills/maestro-roadmap/SKILL.md +131 -0
- package/.agents/skills/maestro-tools-execute/SKILL.md +119 -0
- package/.agents/skills/maestro-tools-register/SKILL.md +159 -0
- package/.agents/skills/maestro-ui-codify/SKILL.md +82 -0
- package/.agents/skills/maestro-update/SKILL.md +178 -0
- package/.agents/skills/maestro-verify/SKILL.md +111 -0
- package/.agents/skills/manage-codebase-rebuild/SKILL.md +77 -0
- package/.agents/skills/manage-codebase-refresh/SKILL.md +59 -0
- package/.agents/skills/manage-harvest/SKILL.md +96 -0
- package/.agents/skills/manage-issue/SKILL.md +75 -0
- package/.agents/skills/manage-issue-discover/SKILL.md +83 -0
- package/.agents/skills/manage-knowhow/SKILL.md +79 -0
- package/.agents/skills/manage-knowhow-capture/SKILL.md +81 -0
- package/.agents/skills/manage-learn/SKILL.md +67 -0
- package/.agents/skills/manage-status/SKILL.md +54 -0
- package/.agents/skills/manage-wiki/SKILL.md +64 -0
- package/.agents/skills/quality-auto-test/SKILL.md +138 -0
- package/.agents/skills/quality-debug/SKILL.md +122 -0
- package/.agents/skills/quality-refactor/SKILL.md +69 -0
- package/.agents/skills/quality-retrospective/SKILL.md +79 -0
- package/.agents/skills/quality-review/SKILL.md +130 -0
- package/.agents/skills/quality-sync/SKILL.md +53 -0
- package/.agents/skills/quality-test/SKILL.md +119 -0
- package/.agents/skills/security-audit/SKILL.md +157 -0
- package/.agents/skills/skill-iter-tune/SKILL.md +384 -0
- package/.agents/skills/skill-iter-tune/phases/01-setup.md +144 -0
- package/.agents/skills/skill-iter-tune/phases/02-execute.md +292 -0
- package/.agents/skills/skill-iter-tune/phases/03-evaluate.md +312 -0
- package/.agents/skills/skill-iter-tune/phases/04-improve.md +186 -0
- package/.agents/skills/skill-iter-tune/phases/05-report.md +166 -0
- package/.agents/skills/skill-iter-tune/specs/evaluation-criteria.md +63 -0
- package/.agents/skills/skill-iter-tune/templates/eval-prompt.md +134 -0
- package/.agents/skills/skill-iter-tune/templates/execute-prompt.md +97 -0
- package/.agents/skills/spec-add/SKILL.md +70 -0
- package/.agents/skills/spec-load/SKILL.md +73 -0
- package/.agents/skills/spec-remove/SKILL.md +53 -0
- package/.agents/skills/spec-setup/SKILL.md +50 -0
- package/.agents/skills/team-coordinate/SKILL.md +268 -0
- package/.agents/skills/team-coordinate/roles/coordinator/commands/analyze-task.md +247 -0
- package/.agents/skills/team-coordinate/roles/coordinator/commands/dispatch.md +131 -0
- package/.agents/skills/team-coordinate/roles/coordinator/commands/monitor.md +358 -0
- package/.agents/skills/team-coordinate/roles/coordinator/role.md +365 -0
- package/.agents/skills/team-coordinate/specs/knowledge-transfer.md +111 -0
- package/.agents/skills/team-coordinate/specs/pipelines.md +97 -0
- package/.agents/skills/team-coordinate/specs/quality-gates.md +112 -0
- package/.agents/skills/team-coordinate/specs/role-spec-template.md +198 -0
- package/.agents/skills/team-executor/SKILL.md +191 -0
- package/.agents/skills/team-executor/roles/executor/commands/monitor.md +239 -0
- package/.agents/skills/team-executor/roles/executor/role.md +171 -0
- package/.agents/skills/team-executor/specs/session-schema.md +264 -0
- package/.agents/skills/team-lifecycle-v4/SKILL.md +211 -0
- package/.agents/skills/team-lifecycle-v4/roles/analyst/role.md +96 -0
- package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/analyze.md +56 -0
- package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +56 -0
- package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +206 -0
- package/.agents/skills/team-lifecycle-v4/roles/coordinator/role.md +130 -0
- package/.agents/skills/team-lifecycle-v4/roles/executor/commands/fix.md +35 -0
- package/.agents/skills/team-lifecycle-v4/roles/executor/commands/implement.md +62 -0
- package/.agents/skills/team-lifecycle-v4/roles/executor/role.md +69 -0
- package/.agents/skills/team-lifecycle-v4/roles/planner/role.md +87 -0
- package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-code.md +34 -0
- package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +44 -0
- package/.agents/skills/team-lifecycle-v4/roles/reviewer/role.md +71 -0
- package/.agents/skills/team-lifecycle-v4/roles/supervisor/role.md +194 -0
- package/.agents/skills/team-lifecycle-v4/roles/tester/role.md +89 -0
- package/.agents/skills/team-lifecycle-v4/roles/writer/role.md +97 -0
- package/.agents/skills/team-lifecycle-v4/specs/knowledge-transfer.md +114 -0
- package/.agents/skills/team-lifecycle-v4/specs/pipelines.md +140 -0
- package/.agents/skills/team-lifecycle-v4/specs/quality-gates.md +130 -0
- package/.agents/skills/team-lifecycle-v4/templates/architecture.md +254 -0
- package/.agents/skills/team-lifecycle-v4/templates/epics.md +196 -0
- package/.agents/skills/team-lifecycle-v4/templates/product-brief.md +133 -0
- package/.agents/skills/team-lifecycle-v4/templates/requirements.md +224 -0
- package/.agents/skills/team-quality-assurance/SKILL.md +149 -0
- package/.agents/skills/team-quality-assurance/roles/analyst/role.md +90 -0
- package/.agents/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -0
- package/.agents/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +111 -0
- package/.agents/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +250 -0
- package/.agents/skills/team-quality-assurance/roles/coordinator/role.md +143 -0
- package/.agents/skills/team-quality-assurance/roles/executor/role.md +68 -0
- package/.agents/skills/team-quality-assurance/roles/generator/role.md +70 -0
- package/.agents/skills/team-quality-assurance/roles/scout/role.md +77 -0
- package/.agents/skills/team-quality-assurance/roles/strategist/role.md +73 -0
- package/.agents/skills/team-quality-assurance/specs/pipelines.md +115 -0
- package/.agents/skills/team-quality-assurance/specs/team-config.json +131 -0
- package/.agents/skills/team-review/SKILL.md +149 -0
- package/.agents/skills/team-review/roles/coordinator/commands/analyze.md +71 -0
- package/.agents/skills/team-review/roles/coordinator/commands/dispatch.md +91 -0
- package/.agents/skills/team-review/roles/coordinator/commands/monitor.md +224 -0
- package/.agents/skills/team-review/roles/coordinator/role.md +132 -0
- package/.agents/skills/team-review/roles/fixer/role.md +78 -0
- package/.agents/skills/team-review/roles/reviewer/role.md +70 -0
- package/.agents/skills/team-review/roles/scanner/role.md +81 -0
- package/.agents/skills/team-review/specs/dimensions.md +82 -0
- package/.agents/skills/team-review/specs/finding-schema.json +82 -0
- package/.agents/skills/team-review/specs/pipelines.md +102 -0
- package/.agents/skills/team-review/specs/team-config.json +27 -0
- package/.agents/skills/team-tech-debt/SKILL.md +130 -0
- package/.agents/skills/team-tech-debt/roles/assessor/role.md +79 -0
- package/.agents/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -0
- package/.agents/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +156 -0
- package/.agents/skills/team-tech-debt/roles/coordinator/commands/monitor.md +209 -0
- package/.agents/skills/team-tech-debt/roles/coordinator/role.md +123 -0
- package/.agents/skills/team-tech-debt/roles/executor/role.md +78 -0
- package/.agents/skills/team-tech-debt/roles/planner/role.md +71 -0
- package/.agents/skills/team-tech-debt/roles/scanner/role.md +92 -0
- package/.agents/skills/team-tech-debt/roles/validator/role.md +80 -0
- package/.agents/skills/team-tech-debt/specs/pipelines.md +47 -0
- package/.agents/skills/team-tech-debt/specs/team-config.json +129 -0
- package/.agents/skills/team-testing/SKILL.md +145 -0
- package/.agents/skills/team-testing/roles/analyst/role.md +105 -0
- package/.agents/skills/team-testing/roles/coordinator/commands/analyze.md +70 -0
- package/.agents/skills/team-testing/roles/coordinator/commands/dispatch.md +108 -0
- package/.agents/skills/team-testing/roles/coordinator/commands/monitor.md +257 -0
- package/.agents/skills/team-testing/roles/coordinator/role.md +134 -0
- package/.agents/skills/team-testing/roles/executor/role.md +101 -0
- package/.agents/skills/team-testing/roles/generator/role.md +100 -0
- package/.agents/skills/team-testing/roles/strategist/role.md +85 -0
- package/.agents/skills/team-testing/specs/pipelines.md +101 -0
- package/.agents/skills/team-testing/specs/team-config.json +93 -0
- package/.agents/skills/wiki-connect/SKILL.md +64 -0
- package/.agents/skills/wiki-digest/SKILL.md +70 -0
- package/.agents/skills/workflow-skill-designer/SKILL.md +498 -0
- package/.agents/skills/workflow-skill-designer/phases/01-requirements-analysis.md +356 -0
- package/.agents/skills/workflow-skill-designer/phases/02-orchestrator-design.md +444 -0
- package/.agents/skills/workflow-skill-designer/phases/03-phase-design.md +458 -0
- package/.agents/skills/workflow-skill-designer/phases/04-validation.md +471 -0
- package/.agy/agents/cli-explore-agent.md +1 -3
- package/.agy/agents/cross-role-reviewer.md +170 -0
- package/.agy/agents/role-design-author.md +215 -0
- package/.agy/agents/ui-design-agent.md +1 -18
- package/.agy/agents/workflow-analyzer.md +1 -1
- package/.agy/agents/workflow-external-researcher.md +1 -1
- package/.agy/skills/maestro/SKILL.md +63 -27
- package/.agy/skills/maestro-analyze/SKILL.md +30 -4
- package/.agy/skills/maestro-blueprint/SKILL.md +132 -0
- package/.agy/skills/maestro-brainstorm/SKILL.md +119 -103
- package/.agy/skills/maestro-help/SKILL.md +48 -14
- package/.agy/skills/maestro-help/index/catalog.json +29 -11
- package/.agy/skills/maestro-help/phases/01-parse-intent.md +1 -1
- package/.agy/skills/maestro-help/phases/02-search-present.md +6 -4
- package/.agy/skills/maestro-help/phases/03-workflow-guide.md +60 -33
- package/.agy/skills/maestro-init/SKILL.md +3 -3
- package/.agy/skills/maestro-milestone-audit/SKILL.md +5 -3
- package/.agy/skills/maestro-milestone-complete/SKILL.md +7 -5
- package/.agy/skills/maestro-plan/SKILL.md +14 -4
- package/.agy/skills/maestro-ralph/SKILL.md +368 -162
- package/.agy/skills/maestro-ralph-execute/SKILL.md +81 -67
- package/.agy/skills/maestro-roadmap/SKILL.md +42 -81
- package/.agy/skills/quality-auto-test/SKILL.md +1 -1
- package/.agy/skills/team-lifecycle-v4/roles/analyst/role.md +1 -1
- package/.agy/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
- package/.agy/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
- package/.agy/skills/team-lifecycle-v4/templates/architecture.md +3 -3
- package/.agy/skills/team-lifecycle-v4/templates/epics.md +2 -2
- package/.agy/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
- package/.agy/skills/team-lifecycle-v4/templates/requirements.md +2 -2
- package/.claude/agents/cli-explore-agent.md +1 -3
- package/.claude/agents/cross-role-reviewer.md +171 -0
- package/.claude/agents/role-design-author.md +216 -0
- package/.claude/agents/ui-design-agent.md +1 -18
- package/.claude/agents/workflow-analyzer.md +1 -1
- package/.claude/agents/workflow-external-researcher.md +1 -1
- package/.claude/commands/maestro-analyze.md +30 -4
- package/.claude/commands/maestro-blueprint.md +130 -0
- package/.claude/commands/maestro-brainstorm.md +132 -116
- package/.claude/commands/maestro-init.md +3 -3
- package/.claude/commands/maestro-milestone-audit.md +5 -3
- package/.claude/commands/maestro-milestone-complete.md +7 -5
- package/.claude/commands/maestro-plan.md +14 -4
- package/.claude/commands/maestro-ralph-execute.md +81 -67
- package/.claude/commands/maestro-ralph.md +368 -162
- package/.claude/commands/maestro-roadmap.md +42 -81
- package/.claude/commands/maestro.md +63 -27
- package/.claude/commands/quality-auto-test.md +1 -1
- package/.claude/skills/maestro-help/SKILL.md +48 -14
- package/.claude/skills/maestro-help/index/catalog.json +29 -11
- package/.claude/skills/maestro-help/phases/01-parse-intent.md +1 -1
- package/.claude/skills/maestro-help/phases/02-search-present.md +6 -4
- package/.claude/skills/maestro-help/phases/03-workflow-guide.md +60 -33
- package/.claude/skills/team-lifecycle-v4/roles/analyst/role.md +1 -1
- package/.claude/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
- package/.claude/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
- package/.claude/skills/team-lifecycle-v4/templates/architecture.md +3 -3
- package/.claude/skills/team-lifecycle-v4/templates/epics.md +2 -2
- package/.claude/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
- package/.claude/skills/team-lifecycle-v4/templates/requirements.md +2 -2
- package/.codex/skills/maestro/SKILL.md +84 -41
- package/.codex/skills/maestro-amend/SKILL.md +157 -0
- package/.codex/skills/maestro-analyze/SKILL.md +71 -23
- package/.codex/skills/maestro-blueprint/SKILL.md +122 -0
- package/.codex/skills/maestro-brainstorm/SKILL.md +135 -45
- package/.codex/skills/maestro-composer/SKILL.md +1 -1
- package/.codex/skills/maestro-execute/SKILL.md +13 -4
- package/.codex/skills/maestro-help/SKILL.md +28 -18
- package/.codex/skills/maestro-help/catalog.json +29 -11
- package/.codex/skills/maestro-init/SKILL.md +7 -7
- package/.codex/skills/maestro-plan/SKILL.md +27 -9
- package/.codex/skills/maestro-ralph/SKILL.md +740 -491
- package/.codex/skills/maestro-roadmap/SKILL.md +55 -72
- package/.codex/skills/maestro-update/SKILL.md +169 -0
- package/.codex/skills/maestro-verify/SKILL.md +11 -2
- package/.codex/skills/manage-codebase-rebuild/SKILL.md +2 -2
- package/.codex/skills/manage-harvest/SKILL.md +10 -2
- package/.codex/skills/quality-retrospective/SKILL.md +9 -2
- package/.codex/skills/team-lifecycle-v4/roles/analyst/role.md +2 -2
- package/.codex/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
- package/.codex/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
- package/.codex/skills/team-lifecycle-v4/templates/architecture.md +3 -3
- package/.codex/skills/team-lifecycle-v4/templates/epics.md +2 -2
- package/.codex/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
- package/.codex/skills/team-lifecycle-v4/templates/requirements.md +2 -2
- package/README.md +8 -8
- package/README.zh-CN.md +8 -8
- package/dashboard/dist-server/dashboard/src/server/routes/settings.js +3 -3
- package/dashboard/dist-server/dashboard/src/server/routes/settings.js.map +1 -1
- package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
- package/dist/src/agents/cli-agent-runner.js +13 -7
- package/dist/src/agents/cli-agent-runner.js.map +1 -1
- package/dist/src/commands/install-backend.d.ts +12 -0
- package/dist/src/commands/install-backend.d.ts.map +1 -1
- package/dist/src/commands/install-backend.js +144 -0
- package/dist/src/commands/install-backend.js.map +1 -1
- package/dist/src/commands/spec.d.ts.map +1 -1
- package/dist/src/commands/spec.js +8 -1
- package/dist/src/commands/spec.js.map +1 -1
- package/dist/src/core/component-defs.d.ts +6 -0
- package/dist/src/core/component-defs.d.ts.map +1 -1
- package/dist/src/core/component-defs.js +97 -0
- package/dist/src/core/component-defs.js.map +1 -1
- package/dist/src/tools/spec-init.d.ts +16 -2
- package/dist/src/tools/spec-init.d.ts.map +1 -1
- package/dist/src/tools/spec-init.js +58 -187
- package/dist/src/tools/spec-init.js.map +1 -1
- package/dist/src/tools/spec-loader.d.ts.map +1 -1
- package/dist/src/tools/spec-loader.js +16 -16
- package/dist/src/tools/spec-loader.js.map +1 -1
- package/dist/src/tools/spec-seeds.d.ts +33 -0
- package/dist/src/tools/spec-seeds.d.ts.map +1 -0
- package/dist/src/tools/spec-seeds.js +200 -0
- package/dist/src/tools/spec-seeds.js.map +1 -0
- package/dist/src/tools/spec-writer.d.ts.map +1 -1
- package/dist/src/tools/spec-writer.js +7 -9
- package/dist/src/tools/spec-writer.js.map +1 -1
- package/dist/src/tui/install-ui/ExtraMcpConfig.d.ts +11 -0
- package/dist/src/tui/install-ui/ExtraMcpConfig.d.ts.map +1 -0
- package/dist/src/tui/install-ui/ExtraMcpConfig.js +61 -0
- package/dist/src/tui/install-ui/ExtraMcpConfig.js.map +1 -0
- package/dist/src/tui/install-ui/InstallConfirm.d.ts +3 -0
- package/dist/src/tui/install-ui/InstallConfirm.d.ts.map +1 -1
- package/dist/src/tui/install-ui/InstallConfirm.js +1 -1
- package/dist/src/tui/install-ui/InstallConfirm.js.map +1 -1
- package/dist/src/tui/install-ui/InstallExecution.d.ts +2 -0
- package/dist/src/tui/install-ui/InstallExecution.d.ts.map +1 -1
- package/dist/src/tui/install-ui/InstallExecution.js +14 -2
- package/dist/src/tui/install-ui/InstallExecution.js.map +1 -1
- package/dist/src/tui/install-ui/InstallFlow.d.ts +1 -1
- package/dist/src/tui/install-ui/InstallFlow.d.ts.map +1 -1
- package/dist/src/tui/install-ui/InstallFlow.js +16 -3
- package/dist/src/tui/install-ui/InstallFlow.js.map +1 -1
- package/dist/src/tui/install-ui/InstallHub.d.ts +2 -0
- package/dist/src/tui/install-ui/InstallHub.d.ts.map +1 -1
- package/dist/src/tui/install-ui/InstallHub.js +8 -0
- package/dist/src/tui/install-ui/InstallHub.js.map +1 -1
- package/dist/src/tui/install-ui/InstallResult.d.ts.map +1 -1
- package/dist/src/tui/install-ui/InstallResult.js +3 -1
- package/dist/src/tui/install-ui/InstallResult.js.map +1 -1
- package/dist/src/utils/update-notices.js +31 -0
- package/dist/src/utils/update-notices.js.map +1 -1
- package/package.json +5 -2
- package/templates/business-test-report.json +1 -1
- package/templates/index.json +1 -1
- package/templates/roadmap.md +15 -9
- package/templates/state.json +18 -17
- package/workflows/analyze.md +79 -11
- package/workflows/auto-test.md +6 -6
- package/workflows/blueprint.md +431 -0
- package/workflows/brainstorm.md +603 -496
- package/workflows/business-test.md +7 -7
- package/workflows/codebase-rebuild.md +4 -4
- package/workflows/harvest.md +184 -10
- package/workflows/init.md +9 -8
- package/workflows/maestro.md +1 -1
- package/workflows/milestone-audit.md +12 -4
- package/workflows/milestone-complete.md +11 -6
- package/workflows/plan.md +88 -22
- package/workflows/roadmap-common.md +1 -1
- package/workflows/roadmap.md +13 -3
- package/workflows/spec-generate.md +24 -13
- package/workflows/ui-design.md +2 -2
- package/workflows/ui-style.md +1 -1
- package/.agy/agents/conceptual-planning-agent.md +0 -244
- package/.claude/agents/conceptual-planning-agent.md +0 -245
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: workflow-research-synthesizer
|
|
3
|
+
description: Merges multiple researcher outputs into a unified research summary
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- read_file
|
|
6
|
+
- write_file
|
|
7
|
+
---
|
|
8
|
+
<!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# Research Synthesizer
|
|
12
|
+
|
|
13
|
+
## Role
|
|
14
|
+
You merge the outputs of multiple parallel researchers into a single coherent summary. You resolve conflicts between findings, identify cross-cutting themes, and produce an actionable synthesis that downstream agents (roadmapper, planner) can consume directly.
|
|
15
|
+
|
|
16
|
+
## Schema Reference
|
|
17
|
+
N/A -- produces markdown synthesis, not task JSON artifacts.
|
|
18
|
+
|
|
19
|
+
## Process
|
|
20
|
+
|
|
21
|
+
1. **Read all research** -- Load every research document from `.workflow/research/` (STACK.md, ARCHITECTURE.md, FEATURES.md, PITFALLS.md)
|
|
22
|
+
2. **Identify themes** -- Extract recurring themes, agreements, and contradictions across documents
|
|
23
|
+
3. **Resolve conflicts** -- When researchers disagree, document both positions with evidence and state a recommended resolution
|
|
24
|
+
4. **Synthesize** -- Produce a unified summary that captures the essential decisions, constraints, and open questions
|
|
25
|
+
5. **Write output** -- Save the synthesis document
|
|
26
|
+
|
|
27
|
+
## Input
|
|
28
|
+
- Research documents in `.workflow/research/` (typically 4 files from parallel researchers)
|
|
29
|
+
- Project description for context
|
|
30
|
+
|
|
31
|
+
## Output Location
|
|
32
|
+
`.workflow/research/SUMMARY.md`
|
|
33
|
+
|
|
34
|
+
## Output
|
|
35
|
+
Synthesis document at the output location above:
|
|
36
|
+
```
|
|
37
|
+
# Research Summary
|
|
38
|
+
|
|
39
|
+
## Key Decisions
|
|
40
|
+
- <Decision 1>: <chosen direction> (rationale)
|
|
41
|
+
|
|
42
|
+
## Technology Stack
|
|
43
|
+
- <Component>: <choice> (from STACK.md)
|
|
44
|
+
|
|
45
|
+
## Architecture Direction
|
|
46
|
+
- <Pattern>: <rationale> (from ARCHITECTURE.md)
|
|
47
|
+
|
|
48
|
+
## Core Features (MVP)
|
|
49
|
+
- <Feature list> (from FEATURES.md)
|
|
50
|
+
|
|
51
|
+
## Risk Mitigation
|
|
52
|
+
- <Risk>: <mitigation> (from PITFALLS.md)
|
|
53
|
+
|
|
54
|
+
## Unresolved Questions
|
|
55
|
+
- <Items requiring user input>
|
|
56
|
+
|
|
57
|
+
## Conflicts & Trade-offs
|
|
58
|
+
- <Where researchers disagreed, both positions, recommendation>
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Error Behavior
|
|
62
|
+
- If a research document is missing (e.g., FEATURES.md not found): synthesize from available documents and note "Missing input: {filename} -- synthesis may be incomplete in this area" in the Summary
|
|
63
|
+
- If `.workflow/research/` directory is empty or missing: report failure -- cannot synthesize without source documents
|
|
64
|
+
- If all 4 documents are present but one is malformed or empty: skip the empty document, note it as missing, and proceed with the remaining documents
|
|
65
|
+
- If conflicting recommendations cannot be resolved with available evidence: list both options under "Unresolved Questions" with a request for user decision
|
|
66
|
+
|
|
67
|
+
## Constraints
|
|
68
|
+
- Read only; do not conduct new research
|
|
69
|
+
- Preserve dissenting opinions rather than silently choosing one side
|
|
70
|
+
- Flag items requiring user decision with clear options
|
|
71
|
+
- Keep the summary concise and actionable (under 200 lines)
|
|
72
|
+
- Do not introduce new information not present in source documents
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: workflow-reviewer
|
|
3
|
+
description: Multi-dimensional code review agent — analyzes changed files for a single review dimension
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- read_file
|
|
6
|
+
- find_files
|
|
7
|
+
- search
|
|
8
|
+
- shell
|
|
9
|
+
---
|
|
10
|
+
<!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# Workflow Reviewer
|
|
14
|
+
|
|
15
|
+
## Role
|
|
16
|
+
You perform focused code review for a single dimension (e.g., security, performance, architecture). You analyze changed files, identify issues with evidence, classify severity, and produce structured findings. You are read-only and never modify project files.
|
|
17
|
+
|
|
18
|
+
## Search Tools
|
|
19
|
+
@~/.maestro/templates/search-tools.md — Follow search tool priority and selection patterns.
|
|
20
|
+
|
|
21
|
+
## Process
|
|
22
|
+
|
|
23
|
+
1. **Load context** — Read the dimension assignment, file list, project specs, and tech stack
|
|
24
|
+
2. **Structural scan** — For each file, identify patterns relevant to the assigned dimension:
|
|
25
|
+
- Parse imports, exports, function signatures, class hierarchies
|
|
26
|
+
- Count lines of logic, cyclomatic complexity indicators
|
|
27
|
+
- Identify the file's role in the codebase (handler, model, utility, component, config)
|
|
28
|
+
3. **Dimension-specific analysis** — Apply dimension rules:
|
|
29
|
+
- **Correctness**: Logic errors, off-by-one, null handling, missing error propagation, type mismatches, unhandled edge cases
|
|
30
|
+
- **Security**: Injection vectors (SQL/command/XSS), auth bypass, hardcoded secrets, missing input validation, data exposure in logs/errors
|
|
31
|
+
- **Performance**: O(n^2+) algorithms, N+1 queries, missing pagination, resource leaks (unclosed handles/streams), synchronous blocking, missing caching
|
|
32
|
+
- **Architecture**: Layer violations (UI calling DB directly), circular dependencies, god classes/functions, inconsistent patterns, tight coupling
|
|
33
|
+
- **Maintainability**: Functions >50 lines, cyclomatic complexity >10, duplicated logic, unclear naming, dead code, missing error context
|
|
34
|
+
- **Best Practices**: Deprecated API usage, framework anti-patterns, inconsistent style with codebase, missing TypeScript strict checks, raw `any` types
|
|
35
|
+
4. **Cross-reference** — Check findings against project specs (`maestro spec load --category review`):
|
|
36
|
+
- Do findings violate documented review standards?
|
|
37
|
+
- Do findings contradict architecture constraints?
|
|
38
|
+
5. **Classify severity** — For each finding:
|
|
39
|
+
- **Critical**: Security vulnerability, data corruption risk, crash in production
|
|
40
|
+
- **High**: Logic bug likely to cause incorrect behavior, resource leak, architecture violation
|
|
41
|
+
- **Medium**: Code smell, maintainability concern, performance opportunity
|
|
42
|
+
- **Low**: Style issue, minor optimization, suggestion
|
|
43
|
+
6. **Produce findings** — Structured output with evidence
|
|
44
|
+
|
|
45
|
+
## Input
|
|
46
|
+
- `dimension`: One of correctness, security, performance, architecture, maintainability, best-practices
|
|
47
|
+
- `files[]`: Array of file paths to review (changed files in phase)
|
|
48
|
+
- `phase_context`: Phase goal, success criteria, task descriptions
|
|
49
|
+
- `specs_context`: Project coding conventions, architecture constraints, quality rules (optional)
|
|
50
|
+
- `tech_stack`: Language, framework, test framework (optional)
|
|
51
|
+
- `codebase_context` (optional): `.workflow/codebase/ARCHITECTURE.md` content — component boundaries, layer rules, dependency direction. Use for architecture dimension and cross-referencing layer violations.
|
|
52
|
+
- `wiki_context` (optional): Related wiki entries from `maestro wiki search` — architecture decisions and constraints to evaluate code against.
|
|
53
|
+
|
|
54
|
+
## Output
|
|
55
|
+
Return a JSON array of findings:
|
|
56
|
+
```json
|
|
57
|
+
[
|
|
58
|
+
{
|
|
59
|
+
"id": "{DIMENSION_PREFIX}-{NNN}",
|
|
60
|
+
"dimension": "security",
|
|
61
|
+
"severity": "critical",
|
|
62
|
+
"title": "SQL injection via unsanitized user input",
|
|
63
|
+
"file": "src/api/users.ts",
|
|
64
|
+
"line": 42,
|
|
65
|
+
"snippet": "db.query(`SELECT * FROM users WHERE id = ${req.params.id}`)",
|
|
66
|
+
"description": "User-supplied parameter interpolated directly into SQL query without parameterization",
|
|
67
|
+
"impact": "Attacker can extract or modify arbitrary database records",
|
|
68
|
+
"suggestion": "Use parameterized query: db.query('SELECT * FROM users WHERE id = $1', [req.params.id])",
|
|
69
|
+
"spec_violation": "coding-conventions.md: 'Always use parameterized queries'"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
**Dimension prefixes**: CORR (correctness), SEC (security), PERF (performance), ARCH (architecture), MAINT (maintainability), BP (best-practices)
|
|
75
|
+
|
|
76
|
+
## Constraints
|
|
77
|
+
- Read-only; never modify project files
|
|
78
|
+
- Every finding MUST have file:line evidence and a concrete code snippet
|
|
79
|
+
- Do not report style-only issues unless they harm readability significantly
|
|
80
|
+
- Do not report issues in generated files, lock files, or vendor directories
|
|
81
|
+
- Limit findings to top 20 per dimension (prioritize by severity)
|
|
82
|
+
- If specs are provided, cross-reference — note spec violations explicitly
|
|
83
|
+
- Focus on the assigned dimension only; do not stray into other dimensions
|
|
84
|
+
- Prefer actionable findings over vague observations
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: workflow-roadmapper
|
|
3
|
+
description: Creates project roadmap with phased milestones from research and requirements
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- read_file
|
|
6
|
+
- write_file
|
|
7
|
+
- shell
|
|
8
|
+
---
|
|
9
|
+
<!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
# Roadmapper
|
|
13
|
+
|
|
14
|
+
## Role
|
|
15
|
+
You create a phased project roadmap from research findings and requirements. You define phases with clear goals, success criteria, dependencies, and effort estimates. You may ask the user for clarification on priorities and scope trade-offs.
|
|
16
|
+
|
|
17
|
+
## Process
|
|
18
|
+
|
|
19
|
+
1. **Gather context** -- Read research summary, project description, and any existing requirements
|
|
20
|
+
2. **Define phases** -- Break the project into sequential phases, each with a clear milestone
|
|
21
|
+
3. **Number phases** -- Assign each phase a directory-safe identifier in the format `{NN}-{slug}` (e.g., `01-auth`, `02-api`, `03-ui-components`)
|
|
22
|
+
4. **Set success criteria** -- Define measurable done-when conditions for each phase
|
|
23
|
+
5. **Map dependencies** -- Identify cross-phase dependencies and prerequisites
|
|
24
|
+
6. **Estimate effort** -- Provide relative sizing (S/M/L/XL) for each phase
|
|
25
|
+
7. **Seek confirmation** -- Ask user to validate priorities and scope decisions
|
|
26
|
+
8. **Write roadmap** -- Produce the roadmap document
|
|
27
|
+
|
|
28
|
+
## Input
|
|
29
|
+
- `.workflow/research/SUMMARY.md` (synthesized research)
|
|
30
|
+
- `.workflow/codebase/` documents (if available)
|
|
31
|
+
- Project description and goals
|
|
32
|
+
- User priorities and constraints
|
|
33
|
+
|
|
34
|
+
## Output
|
|
35
|
+
`.workflow/roadmap.md` with the following structure:
|
|
36
|
+
```
|
|
37
|
+
# Roadmap
|
|
38
|
+
|
|
39
|
+
## Vision
|
|
40
|
+
<1-2 sentence project vision>
|
|
41
|
+
|
|
42
|
+
## Phases
|
|
43
|
+
|
|
44
|
+
### Phase 01-auth: Authentication (Size: M)
|
|
45
|
+
- **Goal**: <what this phase achieves>
|
|
46
|
+
- **Success Criteria**: <measurable conditions>
|
|
47
|
+
- **Key Deliverables**: <artifacts produced>
|
|
48
|
+
- **Dependencies**: <prerequisites>
|
|
49
|
+
- **Risks**: <phase-specific risks>
|
|
50
|
+
|
|
51
|
+
### Phase 02-api: API Layer (Size: L)
|
|
52
|
+
...
|
|
53
|
+
|
|
54
|
+
## Phase Dependencies
|
|
55
|
+
<Dependency graph or ordered list>
|
|
56
|
+
|
|
57
|
+
## Scope Decisions
|
|
58
|
+
- In scope: <included items>
|
|
59
|
+
- Deferred: <items for later phases>
|
|
60
|
+
- Out of scope: <excluded items>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Phase identifiers use lowercase kebab-case slug names (e.g., `auth`, `api-layer`, `ui-components`).
|
|
64
|
+
|
|
65
|
+
These identifiers become scratch directory names under `.workflow/scratch/{slug}/` (resolved via state.json artifact registry).
|
|
66
|
+
|
|
67
|
+
## Schema Reference
|
|
68
|
+
`@templates/roadmap.md` -- roadmap template
|
|
69
|
+
|
|
70
|
+
## Output Location
|
|
71
|
+
`.workflow/roadmap.md`
|
|
72
|
+
|
|
73
|
+
## Error Behavior
|
|
74
|
+
- If research summary (`.workflow/research/SUMMARY.md`) is not available, ask the user for priorities directly
|
|
75
|
+
- If codebase documents are unavailable, proceed with user-provided context only
|
|
76
|
+
- If user does not respond to confirmation prompt, document assumptions and proceed
|
|
77
|
+
|
|
78
|
+
## Constraints
|
|
79
|
+
- Each phase must be independently valuable (deliverable milestone)
|
|
80
|
+
- Success criteria must be specific and verifiable, not vague
|
|
81
|
+
- Phases should be ordered by dependency and risk (tackle high-risk early)
|
|
82
|
+
- **Minimum-phase principle**: Default 1 phase, max 2, exceptional 3 with justification. Phase = synchronization barrier (plan→execute→verify cycle). Wave DAG inside each phase handles task ordering. Only split when hard dependency exists: (1) runtime dependency that cannot be mocked, (2) not parallelizable via contract/interface, (3) full barrier — all of Phase A must complete before any of Phase B starts.
|
|
83
|
+
- Do not define implementation tasks; that is the planner's job
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: workflow-verifier
|
|
3
|
+
description: Goal-backward verification across three layers (existence, substance, connection)
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- read_file
|
|
6
|
+
- find_files
|
|
7
|
+
- search
|
|
8
|
+
- shell
|
|
9
|
+
---
|
|
10
|
+
<!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# Workflow Verifier
|
|
14
|
+
|
|
15
|
+
## Role
|
|
16
|
+
You perform goal-backward verification of completed work using a three-layer checking approach. You verify that artifacts exist, contain real substance, and are properly connected to the rest of the system. You also validate each task's convergence criteria individually. You are read-only and never modify project files.
|
|
17
|
+
|
|
18
|
+
## Search Tools
|
|
19
|
+
@~/.maestro/templates/search-tools.md — Follow search tool priority and selection patterns.
|
|
20
|
+
|
|
21
|
+
## Process
|
|
22
|
+
|
|
23
|
+
1. **Load goals** -- Read the phase/task goals, success criteria, must_haves, and `convergence.criteria` from each task JSON
|
|
24
|
+
2. **Layer 1 - Existence** -- Verify all expected artifacts exist:
|
|
25
|
+
- Files created as specified in task `files[].path` where `files[].action` is "create"
|
|
26
|
+
- Functions/classes/modules present at `files[].target`
|
|
27
|
+
- Configuration entries added
|
|
28
|
+
3. **Layer 2 - Substance** -- Verify artifacts are non-trivial:
|
|
29
|
+
- Files contain meaningful implementation (not stubs or TODOs)
|
|
30
|
+
- Functions have real logic (not empty bodies or pass-through)
|
|
31
|
+
- Tests actually test behavior (not empty test cases)
|
|
32
|
+
4. **Layer 3 - Connection** -- Verify artifacts are properly wired:
|
|
33
|
+
- Imports resolve correctly
|
|
34
|
+
- New modules are registered/exported
|
|
35
|
+
- Routes are mounted, handlers are connected
|
|
36
|
+
- Configuration is loaded and used
|
|
37
|
+
5. **Per-task convergence validation** -- For each completed task, verify every item in `convergence.criteria`:
|
|
38
|
+
- Run `convergence.verification` command if defined
|
|
39
|
+
- Check each criterion individually (pass/fail with evidence)
|
|
40
|
+
- Cross-reference with task summaries in `.summaries/`
|
|
41
|
+
6. **Check must_haves** -- Verify each must_have category:
|
|
42
|
+
- `truths`: Invariants that must hold
|
|
43
|
+
- `artifacts`: Files/outputs that must exist
|
|
44
|
+
- `key_links`: Connections that must be wired
|
|
45
|
+
7. **Write report** -- Output verification.json with results
|
|
46
|
+
|
|
47
|
+
## Input
|
|
48
|
+
- Phase or task goals with must_haves definition
|
|
49
|
+
- `.task/TASK-{NNN}.json` files with `convergence.criteria` to validate
|
|
50
|
+
- Completed code/artifacts to verify
|
|
51
|
+
- Task summaries from `.summaries/`
|
|
52
|
+
- **Project specs** — `maestro spec load --category quality`: verification criteria, acceptance standards. Must verify code complies with loaded constraints.
|
|
53
|
+
- **Codebase docs** (if `.workflow/codebase/` exists) — Read `ARCHITECTURE.md` for expected module wiring and `FEATURES.md` for component mapping; use in Layer 3 (Connection) checks
|
|
54
|
+
- **Wiki constraints** (if `maestro wiki` available) — `maestro wiki search "architecture constraint"` for documented invariants to include as additional truth checks
|
|
55
|
+
|
|
56
|
+
## Output
|
|
57
|
+
`verification.json`:
|
|
58
|
+
```json
|
|
59
|
+
{
|
|
60
|
+
"phase": "<phase-id>",
|
|
61
|
+
"status": "pass|fail",
|
|
62
|
+
"layers": {
|
|
63
|
+
"existence": {"pass": true, "checks": [...]},
|
|
64
|
+
"substance": {"pass": true, "checks": [...]},
|
|
65
|
+
"connection": {"pass": false, "checks": [...]}
|
|
66
|
+
},
|
|
67
|
+
"convergence_check": {
|
|
68
|
+
"TASK-001": {
|
|
69
|
+
"status": "pass",
|
|
70
|
+
"criteria": [
|
|
71
|
+
{"criterion": "File src/tools/new-tool.ts exports NewTool class", "pass": true, "evidence": "grep confirms export at line 15"},
|
|
72
|
+
{"criterion": "npm run build completes without errors", "pass": true, "evidence": "build exit code 0"}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"TASK-002": {
|
|
76
|
+
"status": "fail",
|
|
77
|
+
"criteria": [
|
|
78
|
+
{"criterion": "GET /api/health returns 200", "pass": true, "evidence": "curl test passed"},
|
|
79
|
+
{"criterion": "Response includes version field", "pass": false, "evidence": "Response body missing 'version' key"}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"must_haves": {
|
|
84
|
+
"truths": [{"claim": "...", "verified": true}],
|
|
85
|
+
"artifacts": [{"path": "...", "exists": true, "substantial": true}],
|
|
86
|
+
"key_links": [{"from": "...", "to": "...", "connected": false}]
|
|
87
|
+
},
|
|
88
|
+
"gaps": [
|
|
89
|
+
{"layer": "connection", "description": "Router not mounted in app.ts", "severity": "high", "task": "TASK-002"}
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Constraints
|
|
95
|
+
- Read-only; never modify project files
|
|
96
|
+
- Every check must have evidence (file:line reference or command output)
|
|
97
|
+
- Layer 2 checks must go beyond file existence (actually read content)
|
|
98
|
+
- Layer 3 checks must trace import/require chains
|
|
99
|
+
- Verify each `convergence.criteria` item from task JSON individually
|
|
100
|
+
- Report gaps with severity (high/medium/low), specific location, and originating task ID
|
|
101
|
+
- Do not suggest fixes; only identify gaps
|
|
102
|
+
|
|
103
|
+
## Schema Reference
|
|
104
|
+
- **Task schema**: `templates/task.json` -- Used to locate `convergence.criteria` and `files` for verification
|
|
105
|
+
- Key fields consumed during verification:
|
|
106
|
+
- `convergence.criteria` -- Array of testable conditions to check per task (replaces deprecated `done_when`)
|
|
107
|
+
- `convergence.verification` -- Command or steps to run for automated checking
|
|
108
|
+
- `files[].{path, action, target}` -- Expected file operations to verify
|
|
109
|
+
- `status` -- Top-level task status (only verify tasks with status "completed")
|
|
110
|
+
- **Verification template**: `templates/verification.json` -- Output format reference
|
|
111
|
+
|
|
112
|
+
## Output Location
|
|
113
|
+
- **Scratch verification**: `.workflow/scratch/{slug}/verification.json`
|
|
114
|
+
- **Per-task verification**: Embedded in the `convergence_check` block within verification.json (not separate files)
|
|
115
|
+
|
|
116
|
+
## Error Behavior
|
|
117
|
+
- **Task JSON missing or malformed**: Skip task, log as gap with severity "high" and description "Task definition missing or unreadable"
|
|
118
|
+
- **convergence.verification command fails**: Log command error output as evidence, mark criterion as "fail"
|
|
119
|
+
- **Cannot determine pass/fail for a criterion**: Mark as "inconclusive" with explanation; count as fail for overall status
|
|
120
|
+
- **Build/test environment unavailable**: Log as gap with severity "medium", skip automated checks, perform static checks only
|
|
121
|
+
- **All tasks pass all layers**: Set status to "pass" and report clean verification
|
|
122
|
+
- **Any gap found**: Set status to "fail" regardless of gap severity; list all gaps for resolution
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: codify-to-knowhow
|
|
3
|
+
description: Manifest-driven knowledge asset generator — converts any structured package into maestro knowhow + spec entries with ref linking. Triggers on "codify-to-knowhow", "style to knowhow", "知识固化".
|
|
4
|
+
allowed-tools: read_file, write_file, edit_file, shell, find_files, search, track_tasks
|
|
5
|
+
auto-continue: true
|
|
6
|
+
---
|
|
7
|
+
<!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# Codify to Knowhow
|
|
11
|
+
|
|
12
|
+
通用 manifest 驱动的知识资产生成器。读取 `knowhow-manifest.json`,按声明创建 knowhow 文件和 spec 条目,通过 ref 建立索引-详文桥梁。
|
|
13
|
+
|
|
14
|
+
**适用场景**: 任何工作流产出需要固化为知识资产时使用。上游 skill(如 `maestro-ui-codify`)负责生成 manifest,本 skill 负责执行知识写入。
|
|
15
|
+
|
|
16
|
+
## Architecture Overview
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
20
|
+
│ Codify to Knowhow (SKILL.md) — Manifest-Driven │
|
|
21
|
+
│ → Read manifest → Create knowhow → Create specs → Verify │
|
|
22
|
+
└──────────────────────────┬──────────────────────────────────┘
|
|
23
|
+
│
|
|
24
|
+
┌──────────┬───────────┼───────────┬──────────┐
|
|
25
|
+
↓ ↓ ↓ ↓ │
|
|
26
|
+
┌────────┐ ┌────────┐ ┌────────┐ ┌────────┐ │
|
|
27
|
+
│Phase 1 │ │Phase 2 │ │Phase 3 │ │Phase 4 │ │
|
|
28
|
+
│ Load │ │Generate│ │Generate│ │ Index │ │
|
|
29
|
+
│Manifest│ │Knowhow │ │ Specs │ │ Verify │ │
|
|
30
|
+
└───┬────┘ └───┬────┘ └───┬────┘ └───┬────┘ │
|
|
31
|
+
│ │ │ │ │
|
|
32
|
+
manifest AST-/DCS- spec-entry verified │
|
|
33
|
+
parsed files + ref assets │
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Key Design Principles
|
|
37
|
+
|
|
38
|
+
1. **Manifest 驱动**: 所有行为由 `knowhow-manifest.json` 声明,不含硬编码领域知识
|
|
39
|
+
2. **幂等执行**: 每个写入前按 slug 检查已存在资产,存在则跳过
|
|
40
|
+
3. **ref 桥梁**: spec-entry 通过 `ref` 引用 knowhow 详文
|
|
41
|
+
4. **闭合标签**: 所有条目使用 `<spec-entry>`/`<knowhow-entry>` 闭合标签
|
|
42
|
+
5. **上游生成 manifest**: 本 skill 不做知识提取,只做知识写入
|
|
43
|
+
|
|
44
|
+
## Manifest Format
|
|
45
|
+
|
|
46
|
+
`knowhow-manifest.json` 由上游 skill 生成,放在 package 目录中:
|
|
47
|
+
|
|
48
|
+
```json
|
|
49
|
+
{
|
|
50
|
+
"slug": "my-style-v1",
|
|
51
|
+
"domain": "ui-design",
|
|
52
|
+
"roles": ["implement", "review"],
|
|
53
|
+
"packagePath": ".workflow/reference_style/my-style-v1",
|
|
54
|
+
|
|
55
|
+
"knowhow": [
|
|
56
|
+
{
|
|
57
|
+
"prefix": "AST",
|
|
58
|
+
"fileSlug": "tokens",
|
|
59
|
+
"title": "Design Tokens",
|
|
60
|
+
"category": "asset",
|
|
61
|
+
"assetType": "design-tokens",
|
|
62
|
+
"codePaths": ["src/styles/"],
|
|
63
|
+
"tags": ["design-tokens", "colors"],
|
|
64
|
+
"entries": [
|
|
65
|
+
{
|
|
66
|
+
"category": "pattern",
|
|
67
|
+
"keywords": "colors,tokens",
|
|
68
|
+
"title": "Color System",
|
|
69
|
+
"body": "## Colors\n\n..."
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
|
|
75
|
+
"specs": [
|
|
76
|
+
{
|
|
77
|
+
"category": "coding",
|
|
78
|
+
"keywords": "colors,design-tokens",
|
|
79
|
+
"title": "颜色编码约定",
|
|
80
|
+
"ref": "knowhow/AST-my-style-v1-tokens.md",
|
|
81
|
+
"body": "主色使用 var(--color-primary)..."
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Execution Flow
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
Input: <package-path> (must contain knowhow-manifest.json)
|
|
91
|
+
|
|
92
|
+
Phase 1: Load and Validate Manifest
|
|
93
|
+
└─ Ref: phases/01-load-manifest.md
|
|
94
|
+
├─ Validate package path and manifest existence
|
|
95
|
+
├─ Parse knowhow-manifest.json
|
|
96
|
+
└─ Output: manifest object
|
|
97
|
+
|
|
98
|
+
Phase 2: Generate Knowhow Assets
|
|
99
|
+
└─ Ref: phases/02-generate-knowhow.md
|
|
100
|
+
├─ Idempotency check per file
|
|
101
|
+
├─ Write knowhow files per manifest.knowhow[]
|
|
102
|
+
└─ Output: knowhowPaths[]
|
|
103
|
+
|
|
104
|
+
Phase 3: Generate Spec Entries
|
|
105
|
+
└─ Ref: phases/03-generate-specs.md
|
|
106
|
+
├─ Idempotency check per entry
|
|
107
|
+
├─ Write spec entries per manifest.specs[]
|
|
108
|
+
└─ Output: specEntryCount
|
|
109
|
+
|
|
110
|
+
Phase 4: Index and Verify
|
|
111
|
+
└─ Ref: phases/04-index-verify.md
|
|
112
|
+
└─ Output: verification report
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
**Phase Reference Documents**:
|
|
116
|
+
|
|
117
|
+
| Phase | Document | Purpose |
|
|
118
|
+
|-------|----------|---------|
|
|
119
|
+
| 1 | [phases/01-load-manifest.md](phases/01-load-manifest.md) | Load and validate manifest |
|
|
120
|
+
| 2 | [phases/02-generate-knowhow.md](phases/02-generate-knowhow.md) | Create knowhow files |
|
|
121
|
+
| 3 | [phases/03-generate-specs.md](phases/03-generate-specs.md) | Create spec entries with ref |
|
|
122
|
+
| 4 | [phases/04-index-verify.md](phases/04-index-verify.md) | Verify assets and index |
|
|
123
|
+
|
|
124
|
+
## Core Rules
|
|
125
|
+
|
|
126
|
+
1. **Manifest 必需**: 无 manifest 则报错退出
|
|
127
|
+
2. **幂等写入**: 同 slug 文件存在则跳过
|
|
128
|
+
3. **闭合标签**: 所有 entry 使用闭合标签格式
|
|
129
|
+
4. **Auto-Continue**: Phase 完成后自动执行下一 Phase
|
|
130
|
+
5. **不提取知识**: 本 skill 只写入,知识提取由上游完成
|
|
131
|
+
|
|
132
|
+
## Data Flow
|
|
133
|
+
|
|
134
|
+
```
|
|
135
|
+
Input (packagePath)
|
|
136
|
+
↓
|
|
137
|
+
Phase 1 → manifest: { slug, knowhow[], specs[] }
|
|
138
|
+
↓
|
|
139
|
+
Phase 2 → knowhowPaths: string[], knowhowIds: string[]
|
|
140
|
+
↓
|
|
141
|
+
Phase 3 → specEntryCount: number
|
|
142
|
+
↓
|
|
143
|
+
Phase 4 → verificationResult
|
|
144
|
+
↓
|
|
145
|
+
Completion report
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
## track_tasks Pattern
|
|
149
|
+
|
|
150
|
+
```json
|
|
151
|
+
[
|
|
152
|
+
{"content": "Phase 1: 加载 Manifest", "status": "in_progress"},
|
|
153
|
+
{"content": "Phase 2: 生成 Knowhow 资产", "status": "pending"},
|
|
154
|
+
{"content": "Phase 3: 生成 Spec 条目", "status": "pending"},
|
|
155
|
+
{"content": "Phase 4: 索引验证", "status": "pending"}
|
|
156
|
+
]
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
## Error Handling
|
|
160
|
+
|
|
161
|
+
- **Manifest 不存在**: 报告错误,提示上游 skill 需先生成 manifest
|
|
162
|
+
- **Manifest 格式错误**: 报告缺失字段
|
|
163
|
+
- **幂等冲突**: 跳过已存在资产,报告跳过数量
|
|
164
|
+
- **CLI 失败**: 回退到 Write tool 直接写文件
|
|
165
|
+
|
|
166
|
+
## Related Commands
|
|
167
|
+
|
|
168
|
+
**上游**: `maestro-ui-codify`, `learn-decompose`, 或任何生成 manifest 的 skill
|
|
169
|
+
**后续**: `maestro wiki list --category coding`, `maestro spec load --keyword <slug>`
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# Phase 1: Load and Validate Manifest
|
|
2
|
+
|
|
3
|
+
读取和验证 `knowhow-manifest.json`。
|
|
4
|
+
|
|
5
|
+
## Objective
|
|
6
|
+
|
|
7
|
+
- 验证 package path 存在
|
|
8
|
+
- 验证 `knowhow-manifest.json` 存在并可解析
|
|
9
|
+
- 提取 manifest 结构供后续 phase 使用
|
|
10
|
+
|
|
11
|
+
## Execution
|
|
12
|
+
|
|
13
|
+
### Step 1.1: Validate Package Path
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
package_path="${PACKAGE_PATH}"
|
|
17
|
+
|
|
18
|
+
# 验证目录存在
|
|
19
|
+
test -d "$package_path" || { echo "ERROR: Package path not found: $package_path"; exit 1; }
|
|
20
|
+
|
|
21
|
+
# 验证 manifest 存在
|
|
22
|
+
manifest_file="${package_path}/knowhow-manifest.json"
|
|
23
|
+
test -f "$manifest_file" || { echo "ERROR: knowhow-manifest.json not found in $package_path"; exit 1; }
|
|
24
|
+
|
|
25
|
+
echo "Package: $package_path"
|
|
26
|
+
echo "Manifest: $manifest_file"
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Step 1.2: Read and Parse Manifest
|
|
30
|
+
|
|
31
|
+
```javascript
|
|
32
|
+
read_file("${package_path}/knowhow-manifest.json")
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
**必需字段验证**:
|
|
36
|
+
|
|
37
|
+
| 字段 | 必需 | 说明 |
|
|
38
|
+
|------|------|------|
|
|
39
|
+
| `slug` | 是 | 包名 slug,用于文件命名 |
|
|
40
|
+
| `roles` | 是 | 角色标注数组 |
|
|
41
|
+
| `knowhow` | 是 | knowhow 资产声明数组(可为空) |
|
|
42
|
+
| `specs` | 是 | spec 条目声明数组(可为空) |
|
|
43
|
+
| `domain` | 否 | 领域标识(如 ui-design, api, data) |
|
|
44
|
+
| `packagePath` | 否 | 原始包路径(元数据) |
|
|
45
|
+
|
|
46
|
+
**knowhow[] 每项必需字段**:
|
|
47
|
+
|
|
48
|
+
| 字段 | 说明 |
|
|
49
|
+
|------|------|
|
|
50
|
+
| `prefix` | 文件前缀: AST, DCS, BLP, TIP, RCP, REF 等 |
|
|
51
|
+
| `fileSlug` | 文件名后缀(如 "tokens" → AST-{slug}-tokens.md) |
|
|
52
|
+
| `title` | 文档标题 |
|
|
53
|
+
| `category` | knowhow 类别: asset, decision, blueprint, tip, recipe, reference |
|
|
54
|
+
| `tags` | 标签数组 |
|
|
55
|
+
| `body` | Markdown 正文内容 |
|
|
56
|
+
|
|
57
|
+
**可选字段**: `assetType`, `codePaths`, `entries[]`(`<knowhow-entry>` 子条目)
|
|
58
|
+
|
|
59
|
+
**specs[] 每项必需字段**:
|
|
60
|
+
|
|
61
|
+
| 字段 | 说明 |
|
|
62
|
+
|------|------|
|
|
63
|
+
| `category` | spec 类别: coding, arch, quality, debug, test, review, learning |
|
|
64
|
+
| `title` | 条目标题 |
|
|
65
|
+
| `keywords` | 关键词(逗号分隔字符串) |
|
|
66
|
+
| `body` | 条目正文 |
|
|
67
|
+
|
|
68
|
+
**可选字段**: `ref`(引用 knowhow 文件路径)
|
|
69
|
+
|
|
70
|
+
### Step 1.3: Validate and Summarize
|
|
71
|
+
|
|
72
|
+
```javascript
|
|
73
|
+
const manifest = JSON.parse(manifestContent);
|
|
74
|
+
|
|
75
|
+
// 必需字段检查
|
|
76
|
+
const required = ['slug', 'roles', 'knowhow', 'specs'];
|
|
77
|
+
const missing = required.filter(f => !manifest[f]);
|
|
78
|
+
if (missing.length > 0) {
|
|
79
|
+
REPORT("ERROR: Missing required fields: " + missing.join(', '));
|
|
80
|
+
EXIT(1);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// 摘要
|
|
84
|
+
REPORT(`Manifest loaded:
|
|
85
|
+
Slug: ${manifest.slug}
|
|
86
|
+
Domain: ${manifest.domain || 'generic'}
|
|
87
|
+
Roles: ${manifest.roles.join(', ')}
|
|
88
|
+
Knowhow assets: ${manifest.knowhow.length}
|
|
89
|
+
Spec entries: ${manifest.specs.length}
|
|
90
|
+
`);
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Output
|
|
94
|
+
|
|
95
|
+
- **Variable**: `manifest` — 解析后的 manifest 对象
|
|
96
|
+
- **Variable**: `slug` — `manifest.slug`
|
|
97
|
+
- **track_tasks**: Mark Phase 1 completed, Phase 2 in_progress
|
|
98
|
+
|
|
99
|
+
## Next Phase
|
|
100
|
+
|
|
101
|
+
Return to orchestrator, then auto-continue to [Phase 2: Generate Knowhow](02-generate-knowhow.md).
|