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,154 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: learn-investigate
|
|
3
|
+
description: Investigate questions with hypothesis testing and evidence logging
|
|
4
|
+
argument-hint: "<question> [--scope <path>] [--max-hypotheses 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
|
+
<purpose>
|
|
17
|
+
Systematic investigation for understanding questions (not bug-fixing). 4-phase scientific method with scope lock and 3-strike escalation. Produces evidence trails and understanding docs that persist to the learning system.
|
|
18
|
+
|
|
19
|
+
Unlike `quality-debug` (fix bugs during execution), this answers "how does X work?", "why does Y happen?", "what if Z?".
|
|
20
|
+
</purpose>
|
|
21
|
+
|
|
22
|
+
<context>
|
|
23
|
+
$ARGUMENTS — question text and optional flags.
|
|
24
|
+
|
|
25
|
+
**Flags**:
|
|
26
|
+
- `--scope <path>`: Restrict to files under this dir (default: entire project)
|
|
27
|
+
- `--max-hypotheses N`: Max hypotheses before escalation (default: 3)
|
|
28
|
+
|
|
29
|
+
**Storage write**:
|
|
30
|
+
- `.workflow/knowhow/KNW-investigate-{slug}/evidence.ndjson` — structured evidence (one JSON line per item)
|
|
31
|
+
- `.workflow/knowhow/KNW-investigate-{slug}/understanding.md` — evolving understanding
|
|
32
|
+
- `.workflow/knowhow/KNW-investigate-{slug}/report.md` — final report
|
|
33
|
+
- `specs/learnings.md` — appended `<spec-entry>` blocks
|
|
34
|
+
|
|
35
|
+
**Storage read**: source files in scope + `maestro wiki search` + `specs/learnings.md` + `debug-notes.md` + `codebase/architecture.md`
|
|
36
|
+
</context>
|
|
37
|
+
|
|
38
|
+
<state_machine>
|
|
39
|
+
|
|
40
|
+
<states>
|
|
41
|
+
S_FRAME — 解析问题、确定 scope、搜索先验知识 PERSIST: understanding.md (initial)
|
|
42
|
+
S_EVIDENCE — 系统收集证据 PERSIST: evidence.ndjson
|
|
43
|
+
S_PATTERN — 比对已知模式 PERSIST: understanding.md (patterns)
|
|
44
|
+
S_HYPOTHESIZE — 生成假设列表 PERSIST: understanding.md (hypotheses)
|
|
45
|
+
S_CLI_EXPLORE — CLI 辅助探索(可选) PERSIST: evidence.ndjson (append)
|
|
46
|
+
S_TEST — 逐假设测试 PERSIST: evidence.ndjson + understanding.md
|
|
47
|
+
S_ESCALATE — 3-strike 升级 PERSIST: —
|
|
48
|
+
S_REPORT — 综合报告 + persist PERSIST: report.md + specs/learnings.md
|
|
49
|
+
</states>
|
|
50
|
+
|
|
51
|
+
<transitions>
|
|
52
|
+
|
|
53
|
+
S_FRAME:
|
|
54
|
+
→ S_EVIDENCE DO: A_FRAME_QUESTION
|
|
55
|
+
|
|
56
|
+
S_EVIDENCE:
|
|
57
|
+
→ S_PATTERN DO: A_COLLECT_EVIDENCE
|
|
58
|
+
|
|
59
|
+
S_PATTERN:
|
|
60
|
+
→ S_HYPOTHESIZE DO: match evidence against debug-notes.md + specs/learnings.md patterns
|
|
61
|
+
|
|
62
|
+
S_HYPOTHESIZE:
|
|
63
|
+
→ S_CLI_EXPLORE WHEN: CLI tools enabled AND hypotheses non-trivial DO: A_FORM_HYPOTHESES
|
|
64
|
+
→ S_TEST WHEN: no CLI tools OR trivial hypotheses DO: A_FORM_HYPOTHESES
|
|
65
|
+
|
|
66
|
+
S_CLI_EXPLORE:
|
|
67
|
+
→ S_TEST DO: A_CLI_SUPPLEMENT (maestro delegate --role explore --mode analysis, run_in_background, STOP)
|
|
68
|
+
|
|
69
|
+
S_TEST:
|
|
70
|
+
→ S_REPORT WHEN: hypothesis confirmed DO: A_TEST_HYPOTHESIS
|
|
71
|
+
→ S_REPORT WHEN: all hypotheses tested (some confirmed) DO: A_TEST_HYPOTHESIS
|
|
72
|
+
→ S_ESCALATE WHEN: max_hypotheses all failed DO: A_TEST_HYPOTHESIS
|
|
73
|
+
|
|
74
|
+
S_ESCALATE:
|
|
75
|
+
→ S_HYPOTHESIZE WHEN: user broadens scope or provides new hypothesis DO: ask_user
|
|
76
|
+
→ S_REPORT WHEN: user selects "Escalate" or still stuck DO: mark INCONCLUSIVE
|
|
77
|
+
|
|
78
|
+
S_REPORT:
|
|
79
|
+
→ END DO: A_SYNTHESIZE_REPORT
|
|
80
|
+
|
|
81
|
+
</transitions>
|
|
82
|
+
|
|
83
|
+
<actions>
|
|
84
|
+
|
|
85
|
+
### A_FRAME_QUESTION
|
|
86
|
+
|
|
87
|
+
1. Parse question, generate slug, create KNW-investigate-{slug}/
|
|
88
|
+
2. Search prior knowledge: `maestro wiki search "<question>"` + search specs/learnings.md + read debug-notes.md
|
|
89
|
+
3. Write initial understanding.md (question, prior knowledge summary, scope, timestamp)
|
|
90
|
+
|
|
91
|
+
### A_COLLECT_EVIDENCE
|
|
92
|
+
|
|
93
|
+
Parallel evidence gathering:
|
|
94
|
+
1. Code search: Grep keywords from question
|
|
95
|
+
2. File inspection: Read most relevant files
|
|
96
|
+
3. Import tracing: follow dependency chain
|
|
97
|
+
4. Git history: `git log --oneline -10 -- <relevant-files>`
|
|
98
|
+
|
|
99
|
+
Each item → append evidence.ndjson: `{ts, type (code|git|search|doc), source (file:line), relevance (high|medium|low), content, note}`
|
|
100
|
+
|
|
101
|
+
### A_FORM_HYPOTHESES
|
|
102
|
+
|
|
103
|
+
Generate ranked hypotheses: each is specific, testable claim about "how/why".
|
|
104
|
+
Rank by plausibility (evidence strength). Write to understanding.md:
|
|
105
|
+
- `[HIGH]` hypothesis — Evidence: {refs}
|
|
106
|
+
- `[MEDIUM]` hypothesis — Evidence: {refs}
|
|
107
|
+
|
|
108
|
+
### A_CLI_SUPPLEMENT
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
maestro delegate "PURPOSE: Gather evidence for hypotheses
|
|
112
|
+
TASK: Trace call chains and data flows per hypothesis | Find corroborating/contradicting patterns
|
|
113
|
+
EXPECTED: JSON [{hypothesis_rank, evidence: [{file, line, supports: bool, explanation}]}]
|
|
114
|
+
" --role explore --mode analysis
|
|
115
|
+
```
|
|
116
|
+
Run_in_background, STOP, wait. On callback: append to evidence.ndjson.
|
|
117
|
+
|
|
118
|
+
### A_TEST_HYPOTHESIS
|
|
119
|
+
|
|
120
|
+
For each hypothesis (rank order):
|
|
121
|
+
1. Design test: what evidence would confirm/disprove?
|
|
122
|
+
2. Execute: code trace, targeted search, data inspection
|
|
123
|
+
3. Record: append evidence.ndjson with type: "test"
|
|
124
|
+
4. Update: mark hypothesis confirmed / disproved / inconclusive
|
|
125
|
+
|
|
126
|
+
### A_SYNTHESIZE_REPORT
|
|
127
|
+
|
|
128
|
+
Write report.md: Answer (or INCONCLUSIVE), Evidence Trail table, Hypotheses Tested table, Key Learnings, Open Questions.
|
|
129
|
+
Append to specs/learnings.md: confirmed → roles="implement", disproved → roles="analyze" (gotcha).
|
|
130
|
+
|
|
131
|
+
</actions>
|
|
132
|
+
|
|
133
|
+
</state_machine>
|
|
134
|
+
|
|
135
|
+
<error_codes>
|
|
136
|
+
| Code | Condition | Recovery |
|
|
137
|
+
|------|-----------|----------|
|
|
138
|
+
| E002 | --scope path not found | Check path |
|
|
139
|
+
| W002 | Very few evidence matches (<3) | Broaden search terms or expand scope |
|
|
140
|
+
| W003 | All hypotheses inconclusive | Investigation marked INCONCLUSIVE |
|
|
141
|
+
</error_codes>
|
|
142
|
+
|
|
143
|
+
<success_criteria>
|
|
144
|
+
- [ ] Evidence collected and logged to evidence.ndjson (structured NDJSON)
|
|
145
|
+
- [ ] At least 1 hypothesis formed and tested
|
|
146
|
+
- [ ] 3-strike escalation triggered if all fail
|
|
147
|
+
- [ ] Report + spec-entry blocks written
|
|
148
|
+
</success_criteria>
|
|
149
|
+
|
|
150
|
+
<next_step_routing>
|
|
151
|
+
- Save to specs → `/spec-add debug <finding>`
|
|
152
|
+
- Follow code → `/learn-follow <path>`
|
|
153
|
+
- Decompose patterns → `/learn-decompose <module>`
|
|
154
|
+
</next_step_routing>
|
|
@@ -0,0 +1,159 @@
|
|
|
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
|
+
- 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
|
+
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 `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
|
+
- `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`, `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: 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 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, 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
|
+
- [ ] 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>
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: learn-second-opinion
|
|
3
|
+
description: Get alternative perspectives — review, challenge, or consult
|
|
4
|
+
argument-hint: "<target> [--mode review|challenge|consult]"
|
|
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
|
+
Structured second-opinion on code, decisions, or plans. Three modes:
|
|
18
|
+
- **review** (default): 3 parallel agents (pragmatist, purist, strategist)
|
|
19
|
+
- **challenge**: single adversarial agent — break assumptions, propose alternatives
|
|
20
|
+
- **consult**: interactive Q&A — agent studies target, answers your questions
|
|
21
|
+
|
|
22
|
+
Findings persist to `specs/learnings.md` as `<spec-entry>` blocks.
|
|
23
|
+
</purpose>
|
|
24
|
+
|
|
25
|
+
<context>
|
|
26
|
+
$ARGUMENTS — target and optional mode flag.
|
|
27
|
+
|
|
28
|
+
**Target resolution** (auto-detected):
|
|
29
|
+
| Input | Resolution |
|
|
30
|
+
|-------|-----------|
|
|
31
|
+
| File path | Read file content |
|
|
32
|
+
| Wiki ID (`<type>-<slug>`) | `maestro wiki get <id>` |
|
|
33
|
+
| `HEAD` / `staged` | `git diff HEAD` / `git diff --staged` |
|
|
34
|
+
| Phase number | Resolve via state.json.artifacts[] → plan.json |
|
|
35
|
+
|
|
36
|
+
**Flags**: `--mode review|challenge|consult` (default: review)
|
|
37
|
+
|
|
38
|
+
**Pre-load** (optional): `invoke_skill("spec-load")` for conventions + `maestro wiki search "<target topic>"` for related entries.
|
|
39
|
+
|
|
40
|
+
**Output**: `.workflow/knowhow/KNW-opinion-{slug}-{YYYY-MM-DD}.md`
|
|
41
|
+
</context>
|
|
42
|
+
|
|
43
|
+
<state_machine>
|
|
44
|
+
|
|
45
|
+
<states>
|
|
46
|
+
S_RESOLVE — 解析 target PERSIST: —
|
|
47
|
+
S_CONTEXT — 加载 specs/wiki 上下文 PERSIST: —
|
|
48
|
+
S_EXECUTE — 按 mode 执行分析 PERSIST: —
|
|
49
|
+
S_SYNTHESIZE — 综合观点、生成报告 PERSIST: outputs
|
|
50
|
+
S_PERSIST — 写文件、append specs/learnings.md PERSIST: knowhow files
|
|
51
|
+
</states>
|
|
52
|
+
|
|
53
|
+
<transitions>
|
|
54
|
+
|
|
55
|
+
S_RESOLVE:
|
|
56
|
+
→ S_CONTEXT WHEN: target resolved DO: read target content
|
|
57
|
+
→ S_RESOLVE WHEN: unresolvable DO: ask_user for clarification
|
|
58
|
+
|
|
59
|
+
S_CONTEXT:
|
|
60
|
+
→ S_EXECUTE DO: load specs + wiki search (optional, proceed without)
|
|
61
|
+
|
|
62
|
+
S_EXECUTE:
|
|
63
|
+
→ S_SYNTHESIZE WHEN: mode == review DO: A_REVIEW
|
|
64
|
+
→ S_SYNTHESIZE WHEN: mode == challenge DO: A_CHALLENGE
|
|
65
|
+
→ S_SYNTHESIZE WHEN: mode == consult DO: A_CONSULT
|
|
66
|
+
|
|
67
|
+
S_SYNTHESIZE:
|
|
68
|
+
→ S_PERSIST DO: merge perspectives → agreements, disagreements, verdict, top 3 recommendations
|
|
69
|
+
|
|
70
|
+
S_PERSIST:
|
|
71
|
+
→ END DO: write KNW-opinion + append <spec-entry> blocks to specs/learnings.md
|
|
72
|
+
|
|
73
|
+
</transitions>
|
|
74
|
+
|
|
75
|
+
<actions>
|
|
76
|
+
|
|
77
|
+
### A_REVIEW
|
|
78
|
+
Spawn 3 Agents in single message:
|
|
79
|
+
|
|
80
|
+
| Agent | Focus | Question |
|
|
81
|
+
|-------|-------|----------|
|
|
82
|
+
| Pragmatist | simplicity, YAGNI, maintenance | "Simplest thing that works? Maintenance burden?" |
|
|
83
|
+
| Purist | correctness, edge cases, type safety | "What assumptions can be violated?" |
|
|
84
|
+
| Strategist | scalability, architecture alignment | "Supports future growth? Fits architecture?" |
|
|
85
|
+
|
|
86
|
+
Each returns: persona, verdict (approve/concern/reject), confidence, findings[{severity, description, location, suggestion}], summary.
|
|
87
|
+
|
|
88
|
+
### A_CHALLENGE
|
|
89
|
+
Spawn 1 adversarial Agent:
|
|
90
|
+
- Find weakest assumption
|
|
91
|
+
- Propose concrete breaking scenario
|
|
92
|
+
- Identify single biggest risk
|
|
93
|
+
- Suggest alternative approach
|
|
94
|
+
- Apply forcing questions: "What invalidates this?", "Simplest thing that breaks this?", "What would you regret in 6 months?", "What implicit contract isn't enforced?"
|
|
95
|
+
|
|
96
|
+
### A_CONSULT
|
|
97
|
+
Interactive loop:
|
|
98
|
+
1. Agent studies target
|
|
99
|
+
2. Display "Target loaded. What would you like to know?"
|
|
100
|
+
3. ask_user → Agent answers with code refs → repeat until "done"
|
|
101
|
+
4. Compile Q&A into report
|
|
102
|
+
|
|
103
|
+
</actions>
|
|
104
|
+
|
|
105
|
+
</state_machine>
|
|
106
|
+
|
|
107
|
+
<error_codes>
|
|
108
|
+
| Code | Condition | Recovery |
|
|
109
|
+
|------|-----------|----------|
|
|
110
|
+
| E002 | Unknown --mode value | Use: review, challenge, or consult |
|
|
111
|
+
| W001 | One review agent failed | Proceed with available perspectives |
|
|
112
|
+
</error_codes>
|
|
113
|
+
|
|
114
|
+
<success_criteria>
|
|
115
|
+
- [ ] Mode executed: review (3 parallel agents) / challenge (adversarial) / consult (interactive Q&A)
|
|
116
|
+
- [ ] Synthesis with agreements, disagreements, verdict
|
|
117
|
+
- [ ] Report written + findings appended to specs/learnings.md
|
|
118
|
+
</success_criteria>
|
|
119
|
+
|
|
120
|
+
<next_step_routing>
|
|
121
|
+
- Create issue → `/manage-issue create <description>`
|
|
122
|
+
- Decompose patterns → `/learn-decompose <path>`
|
|
123
|
+
- Follow code → `/learn-follow <path>`
|
|
124
|
+
</next_step_routing>
|