agentic-qe 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/analysis/code-analyzer.md +209 -0
- package/.claude/agents/analysis/code-review/analyze-code-quality.md +180 -0
- package/.claude/agents/architecture/system-design/arch-system-design.md +156 -0
- package/.claude/agents/base-template-generator.md +42 -0
- package/.claude/agents/consensus/byzantine-coordinator.md +63 -0
- package/.claude/agents/consensus/crdt-synchronizer.md +997 -0
- package/.claude/agents/consensus/gossip-coordinator.md +63 -0
- package/.claude/agents/consensus/performance-benchmarker.md +851 -0
- package/.claude/agents/consensus/quorum-manager.md +823 -0
- package/.claude/agents/consensus/raft-manager.md +63 -0
- package/.claude/agents/consensus/security-manager.md +622 -0
- package/.claude/agents/core/coder.md +266 -0
- package/.claude/agents/core/planner.md +168 -0
- package/.claude/agents/core/researcher.md +190 -0
- package/.claude/agents/core/reviewer.md +326 -0
- package/.claude/agents/core/tester.md +319 -0
- package/.claude/agents/data/ml/data-ml-model.md +193 -0
- package/.claude/agents/development/backend/dev-backend-api.md +142 -0
- package/.claude/agents/devops/ci-cd/ops-cicd-github.md +164 -0
- package/.claude/agents/documentation/api-docs/docs-api-openapi.md +174 -0
- package/.claude/agents/flow-nexus/app-store.md +88 -0
- package/.claude/agents/flow-nexus/authentication.md +69 -0
- package/.claude/agents/flow-nexus/challenges.md +81 -0
- package/.claude/agents/flow-nexus/neural-network.md +88 -0
- package/.claude/agents/flow-nexus/payments.md +83 -0
- package/.claude/agents/flow-nexus/sandbox.md +76 -0
- package/.claude/agents/flow-nexus/swarm.md +76 -0
- package/.claude/agents/flow-nexus/user-tools.md +96 -0
- package/.claude/agents/flow-nexus/workflow.md +84 -0
- package/.claude/agents/github/code-review-swarm.md +538 -0
- package/.claude/agents/github/github-modes.md +173 -0
- package/.claude/agents/github/issue-tracker.md +319 -0
- package/.claude/agents/github/multi-repo-swarm.md +553 -0
- package/.claude/agents/github/pr-manager.md +191 -0
- package/.claude/agents/github/project-board-sync.md +509 -0
- package/.claude/agents/github/release-manager.md +367 -0
- package/.claude/agents/github/release-swarm.md +583 -0
- package/.claude/agents/github/repo-architect.md +398 -0
- package/.claude/agents/github/swarm-issue.md +573 -0
- package/.claude/agents/github/swarm-pr.md +428 -0
- package/.claude/agents/github/sync-coordinator.md +452 -0
- package/.claude/agents/github/workflow-automation.md +635 -0
- package/.claude/agents/goal/code-goal-planner.md +446 -0
- package/.claude/agents/goal/goal-planner.md +168 -0
- package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +130 -0
- package/.claude/agents/hive-mind/queen-coordinator.md +203 -0
- package/.claude/agents/hive-mind/scout-explorer.md +242 -0
- package/.claude/agents/hive-mind/swarm-memory-manager.md +193 -0
- package/.claude/agents/hive-mind/worker-specialist.md +217 -0
- package/.claude/agents/neural/safla-neural.md +74 -0
- package/.claude/agents/optimization/benchmark-suite.md +665 -0
- package/.claude/agents/optimization/load-balancer.md +431 -0
- package/.claude/agents/optimization/performance-monitor.md +672 -0
- package/.claude/agents/optimization/resource-allocator.md +674 -0
- package/.claude/agents/optimization/topology-optimizer.md +808 -0
- package/.claude/agents/qe-api-contract-validator.md +1088 -0
- package/.claude/agents/qe-chaos-engineer.md +736 -0
- package/.claude/agents/qe-coverage-analyzer.md +282 -0
- package/.claude/agents/qe-deployment-readiness.md +1109 -0
- package/.claude/agents/qe-flaky-test-hunter.md +1121 -0
- package/.claude/agents/qe-fleet-commander.md +641 -0
- package/.claude/agents/qe-performance-tester.md +354 -0
- package/.claude/agents/qe-production-intelligence.md +1162 -0
- package/.claude/agents/qe-quality-gate.md +294 -0
- package/.claude/agents/qe-regression-risk-analyzer.md +947 -0
- package/.claude/agents/qe-requirements-validator.md +691 -0
- package/.claude/agents/qe-security-scanner.md +430 -0
- package/.claude/agents/qe-test-data-architect.md +1007 -0
- package/.claude/agents/qe-test-executor.md +365 -0
- package/.claude/agents/qe-test-generator.md +332 -0
- package/.claude/agents/qe-visual-tester.md +754 -0
- package/.claude/agents/sparc/architecture.md +472 -0
- package/.claude/agents/sparc/pseudocode.md +318 -0
- package/.claude/agents/sparc/refinement.md +525 -0
- package/.claude/agents/sparc/specification.md +276 -0
- package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +226 -0
- package/.claude/agents/swarm/adaptive-coordinator.md +396 -0
- package/.claude/agents/swarm/hierarchical-coordinator.md +327 -0
- package/.claude/agents/swarm/mesh-coordinator.md +392 -0
- package/.claude/agents/templates/automation-smart-agent.md +205 -0
- package/.claude/agents/templates/coordinator-swarm-init.md +105 -0
- package/.claude/agents/templates/github-pr-manager.md +177 -0
- package/.claude/agents/templates/implementer-sparc-coder.md +259 -0
- package/.claude/agents/templates/memory-coordinator.md +187 -0
- package/.claude/agents/templates/migration-plan.md +746 -0
- package/.claude/agents/templates/orchestrator-task.md +139 -0
- package/.claude/agents/templates/performance-analyzer.md +199 -0
- package/.claude/agents/templates/sparc-coordinator.md +183 -0
- package/.claude/agents/testing/unit/tdd-london-swarm.md +244 -0
- package/.claude/agents/testing/validation/production-validator.md +395 -0
- package/.claude/aqe-fleet.json +47 -0
- package/.claude/commands/README.md +106 -0
- package/.claude/commands/agents/README.md +10 -0
- package/.claude/commands/agents/agent-capabilities.md +21 -0
- package/.claude/commands/agents/agent-coordination.md +28 -0
- package/.claude/commands/agents/agent-spawning.md +28 -0
- package/.claude/commands/agents/agent-types.md +26 -0
- package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +54 -0
- package/.claude/commands/analysis/README.md +9 -0
- package/.claude/commands/analysis/bottleneck-detect.md +162 -0
- package/.claude/commands/analysis/performance-bottlenecks.md +59 -0
- package/.claude/commands/analysis/performance-report.md +25 -0
- package/.claude/commands/analysis/token-efficiency.md +45 -0
- package/.claude/commands/analysis/token-usage.md +25 -0
- package/.claude/commands/aqe-analyze.md +344 -0
- package/.claude/commands/aqe-benchmark.md +466 -0
- package/.claude/commands/aqe-chaos.md +443 -0
- package/.claude/commands/aqe-execute.md +322 -0
- package/.claude/commands/aqe-fleet-status.md +431 -0
- package/.claude/commands/aqe-generate.md +301 -0
- package/.claude/commands/aqe-optimize.md +361 -0
- package/.claude/commands/aqe-report.md +411 -0
- package/.claude/commands/automation/README.md +9 -0
- package/.claude/commands/automation/auto-agent.md +122 -0
- package/.claude/commands/automation/self-healing.md +106 -0
- package/.claude/commands/automation/session-memory.md +90 -0
- package/.claude/commands/automation/smart-agents.md +73 -0
- package/.claude/commands/automation/smart-spawn.md +25 -0
- package/.claude/commands/automation/workflow-select.md +25 -0
- package/.claude/commands/coordination/README.md +9 -0
- package/.claude/commands/coordination/agent-spawn.md +25 -0
- package/.claude/commands/coordination/init.md +44 -0
- package/.claude/commands/coordination/orchestrate.md +43 -0
- package/.claude/commands/coordination/spawn.md +45 -0
- package/.claude/commands/coordination/swarm-init.md +85 -0
- package/.claude/commands/coordination/task-orchestrate.md +25 -0
- package/.claude/commands/flow-nexus/app-store.md +124 -0
- package/.claude/commands/flow-nexus/challenges.md +120 -0
- package/.claude/commands/flow-nexus/login-registration.md +65 -0
- package/.claude/commands/flow-nexus/neural-network.md +134 -0
- package/.claude/commands/flow-nexus/payments.md +116 -0
- package/.claude/commands/flow-nexus/sandbox.md +83 -0
- package/.claude/commands/flow-nexus/swarm.md +87 -0
- package/.claude/commands/flow-nexus/user-tools.md +152 -0
- package/.claude/commands/flow-nexus/workflow.md +115 -0
- package/.claude/commands/github/README.md +11 -0
- package/.claude/commands/github/code-review-swarm.md +514 -0
- package/.claude/commands/github/code-review.md +25 -0
- package/.claude/commands/github/github-modes.md +147 -0
- package/.claude/commands/github/github-swarm.md +121 -0
- package/.claude/commands/github/issue-tracker.md +292 -0
- package/.claude/commands/github/issue-triage.md +25 -0
- package/.claude/commands/github/multi-repo-swarm.md +519 -0
- package/.claude/commands/github/pr-enhance.md +26 -0
- package/.claude/commands/github/pr-manager.md +170 -0
- package/.claude/commands/github/project-board-sync.md +471 -0
- package/.claude/commands/github/release-manager.md +338 -0
- package/.claude/commands/github/release-swarm.md +544 -0
- package/.claude/commands/github/repo-analyze.md +25 -0
- package/.claude/commands/github/repo-architect.md +367 -0
- package/.claude/commands/github/swarm-issue.md +482 -0
- package/.claude/commands/github/swarm-pr.md +285 -0
- package/.claude/commands/github/sync-coordinator.md +301 -0
- package/.claude/commands/github/workflow-automation.md +442 -0
- package/.claude/commands/hive-mind/README.md +17 -0
- package/.claude/commands/hive-mind/hive-mind-consensus.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-init.md +18 -0
- package/.claude/commands/hive-mind/hive-mind-memory.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-metrics.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-resume.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-sessions.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-spawn.md +21 -0
- package/.claude/commands/hive-mind/hive-mind-status.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-stop.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-wizard.md +8 -0
- package/.claude/commands/hive-mind/hive-mind.md +27 -0
- package/.claude/commands/hooks/README.md +11 -0
- package/.claude/commands/hooks/overview.md +132 -0
- package/.claude/commands/hooks/post-edit.md +117 -0
- package/.claude/commands/hooks/post-task.md +112 -0
- package/.claude/commands/hooks/pre-edit.md +113 -0
- package/.claude/commands/hooks/pre-task.md +111 -0
- package/.claude/commands/hooks/session-end.md +118 -0
- package/.claude/commands/hooks/setup.md +103 -0
- package/.claude/commands/memory/README.md +9 -0
- package/.claude/commands/memory/memory-persist.md +25 -0
- package/.claude/commands/memory/memory-search.md +25 -0
- package/.claude/commands/memory/memory-usage.md +25 -0
- package/.claude/commands/memory/neural.md +47 -0
- package/.claude/commands/memory/usage.md +46 -0
- package/.claude/commands/monitoring/README.md +9 -0
- package/.claude/commands/monitoring/agent-metrics.md +25 -0
- package/.claude/commands/monitoring/agents.md +44 -0
- package/.claude/commands/monitoring/real-time-view.md +25 -0
- package/.claude/commands/monitoring/status.md +46 -0
- package/.claude/commands/monitoring/swarm-monitor.md +25 -0
- package/.claude/commands/optimization/README.md +9 -0
- package/.claude/commands/optimization/auto-topology.md +62 -0
- package/.claude/commands/optimization/cache-manage.md +25 -0
- package/.claude/commands/optimization/parallel-execute.md +25 -0
- package/.claude/commands/optimization/parallel-execution.md +50 -0
- package/.claude/commands/optimization/topology-optimize.md +25 -0
- package/.claude/commands/pair/commands.md +546 -0
- package/.claude/commands/pair/config.md +510 -0
- package/.claude/commands/pair/examples.md +512 -0
- package/.claude/commands/pair/modes.md +348 -0
- package/.claude/commands/pair/session.md +407 -0
- package/.claude/commands/pair/start.md +209 -0
- package/.claude/commands/sparc/analyzer.md +52 -0
- package/.claude/commands/sparc/architect.md +53 -0
- package/.claude/commands/sparc/batch-executor.md +54 -0
- package/.claude/commands/sparc/coder.md +54 -0
- package/.claude/commands/sparc/debugger.md +54 -0
- package/.claude/commands/sparc/designer.md +53 -0
- package/.claude/commands/sparc/documenter.md +54 -0
- package/.claude/commands/sparc/innovator.md +54 -0
- package/.claude/commands/sparc/memory-manager.md +54 -0
- package/.claude/commands/sparc/optimizer.md +54 -0
- package/.claude/commands/sparc/orchestrator.md +132 -0
- package/.claude/commands/sparc/researcher.md +54 -0
- package/.claude/commands/sparc/reviewer.md +54 -0
- package/.claude/commands/sparc/sparc-modes.md +174 -0
- package/.claude/commands/sparc/swarm-coordinator.md +54 -0
- package/.claude/commands/sparc/tdd.md +54 -0
- package/.claude/commands/sparc/tester.md +54 -0
- package/.claude/commands/sparc/workflow-manager.md +54 -0
- package/.claude/commands/stream-chain/pipeline.md +121 -0
- package/.claude/commands/stream-chain/run.md +70 -0
- package/.claude/commands/swarm/README.md +15 -0
- package/.claude/commands/swarm/analysis.md +95 -0
- package/.claude/commands/swarm/development.md +96 -0
- package/.claude/commands/swarm/examples.md +168 -0
- package/.claude/commands/swarm/maintenance.md +102 -0
- package/.claude/commands/swarm/optimization.md +117 -0
- package/.claude/commands/swarm/research.md +136 -0
- package/.claude/commands/swarm/swarm-analysis.md +8 -0
- package/.claude/commands/swarm/swarm-background.md +8 -0
- package/.claude/commands/swarm/swarm-init.md +19 -0
- package/.claude/commands/swarm/swarm-modes.md +8 -0
- package/.claude/commands/swarm/swarm-monitor.md +8 -0
- package/.claude/commands/swarm/swarm-spawn.md +19 -0
- package/.claude/commands/swarm/swarm-status.md +8 -0
- package/.claude/commands/swarm/swarm-strategies.md +8 -0
- package/.claude/commands/swarm/swarm.md +27 -0
- package/.claude/commands/swarm/testing.md +131 -0
- package/.claude/commands/training/README.md +9 -0
- package/.claude/commands/training/model-update.md +25 -0
- package/.claude/commands/training/neural-patterns.md +74 -0
- package/.claude/commands/training/neural-train.md +25 -0
- package/.claude/commands/training/pattern-learn.md +25 -0
- package/.claude/commands/training/specialization.md +63 -0
- package/.claude/commands/truth/start.md +143 -0
- package/.claude/commands/verify/check.md +50 -0
- package/.claude/commands/verify/start.md +128 -0
- package/.claude/commands/workflows/README.md +9 -0
- package/.claude/commands/workflows/development.md +78 -0
- package/.claude/commands/workflows/research.md +63 -0
- package/.claude/commands/workflows/workflow-create.md +25 -0
- package/.claude/commands/workflows/workflow-execute.md +25 -0
- package/.claude/commands/workflows/workflow-export.md +25 -0
- package/.claude/helpers/checkpoint-manager.sh +251 -0
- package/.claude/helpers/github-safe.js +106 -0
- package/.claude/helpers/github-setup.sh +28 -0
- package/.claude/helpers/quick-start.sh +19 -0
- package/.claude/helpers/setup-mcp.sh +18 -0
- package/.claude/helpers/standard-checkpoint-hooks.sh +179 -0
- package/.claude/settings.json +114 -0
- package/.claude/settings.local.json +10 -0
- package/CONTRIBUTING.md +897 -0
- package/LICENSE +21 -0
- package/README.md +632 -0
- package/bin/aqe +959 -0
- package/config/fleet.yaml +50 -0
- package/dist/agents/ApiContractValidatorAgent.d.ts +222 -0
- package/dist/agents/ApiContractValidatorAgent.d.ts.map +1 -0
- package/dist/agents/ApiContractValidatorAgent.js +787 -0
- package/dist/agents/ApiContractValidatorAgent.js.map +1 -0
- package/dist/agents/BaseAgent.d.ts +147 -0
- package/dist/agents/BaseAgent.d.ts.map +1 -0
- package/dist/agents/BaseAgent.js +374 -0
- package/dist/agents/BaseAgent.js.map +1 -0
- package/dist/agents/CoverageAnalyzerAgent.d.ts +103 -0
- package/dist/agents/CoverageAnalyzerAgent.d.ts.map +1 -0
- package/dist/agents/CoverageAnalyzerAgent.js +466 -0
- package/dist/agents/CoverageAnalyzerAgent.js.map +1 -0
- package/dist/agents/DeploymentReadinessAgent.d.ts +244 -0
- package/dist/agents/DeploymentReadinessAgent.d.ts.map +1 -0
- package/dist/agents/DeploymentReadinessAgent.js +974 -0
- package/dist/agents/DeploymentReadinessAgent.js.map +1 -0
- package/dist/agents/FlakyTestHunterAgent.d.ts +172 -0
- package/dist/agents/FlakyTestHunterAgent.d.ts.map +1 -0
- package/dist/agents/FlakyTestHunterAgent.js +867 -0
- package/dist/agents/FlakyTestHunterAgent.js.map +1 -0
- package/dist/agents/FleetCommanderAgent.d.ts +154 -0
- package/dist/agents/FleetCommanderAgent.d.ts.map +1 -0
- package/dist/agents/FleetCommanderAgent.js +924 -0
- package/dist/agents/FleetCommanderAgent.js.map +1 -0
- package/dist/agents/PerformanceTesterAgent.d.ts +194 -0
- package/dist/agents/PerformanceTesterAgent.d.ts.map +1 -0
- package/dist/agents/PerformanceTesterAgent.js +972 -0
- package/dist/agents/PerformanceTesterAgent.js.map +1 -0
- package/dist/agents/ProductionIntelligenceAgent.d.ts +224 -0
- package/dist/agents/ProductionIntelligenceAgent.d.ts.map +1 -0
- package/dist/agents/ProductionIntelligenceAgent.js +856 -0
- package/dist/agents/ProductionIntelligenceAgent.js.map +1 -0
- package/dist/agents/QualityAnalyzerAgent.d.ts +67 -0
- package/dist/agents/QualityAnalyzerAgent.d.ts.map +1 -0
- package/dist/agents/QualityAnalyzerAgent.js +453 -0
- package/dist/agents/QualityAnalyzerAgent.js.map +1 -0
- package/dist/agents/QualityGateAgent.d.ts +104 -0
- package/dist/agents/QualityGateAgent.d.ts.map +1 -0
- package/dist/agents/QualityGateAgent.js +522 -0
- package/dist/agents/QualityGateAgent.js.map +1 -0
- package/dist/agents/RegressionRiskAnalyzerAgent.d.ts +274 -0
- package/dist/agents/RegressionRiskAnalyzerAgent.d.ts.map +1 -0
- package/dist/agents/RegressionRiskAnalyzerAgent.js +1076 -0
- package/dist/agents/RegressionRiskAnalyzerAgent.js.map +1 -0
- package/dist/agents/RequirementsValidatorAgent.d.ts +195 -0
- package/dist/agents/RequirementsValidatorAgent.d.ts.map +1 -0
- package/dist/agents/RequirementsValidatorAgent.js +992 -0
- package/dist/agents/RequirementsValidatorAgent.js.map +1 -0
- package/dist/agents/SecurityScannerAgent.d.ts +126 -0
- package/dist/agents/SecurityScannerAgent.d.ts.map +1 -0
- package/dist/agents/SecurityScannerAgent.js +695 -0
- package/dist/agents/SecurityScannerAgent.js.map +1 -0
- package/dist/agents/TestDataArchitectAgent.d.ts +452 -0
- package/dist/agents/TestDataArchitectAgent.d.ts.map +1 -0
- package/dist/agents/TestDataArchitectAgent.js +1346 -0
- package/dist/agents/TestDataArchitectAgent.js.map +1 -0
- package/dist/agents/TestExecutorAgent.d.ts +101 -0
- package/dist/agents/TestExecutorAgent.d.ts.map +1 -0
- package/dist/agents/TestExecutorAgent.js +730 -0
- package/dist/agents/TestExecutorAgent.js.map +1 -0
- package/dist/agents/TestGeneratorAgent.d.ts +109 -0
- package/dist/agents/TestGeneratorAgent.d.ts.map +1 -0
- package/dist/agents/TestGeneratorAgent.js +450 -0
- package/dist/agents/TestGeneratorAgent.js.map +1 -0
- package/dist/agents/index.d.ts +51 -0
- package/dist/agents/index.d.ts.map +1 -0
- package/dist/agents/index.js +738 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/cli/commands/analyze.d.ts +32 -0
- package/dist/cli/commands/analyze.d.ts.map +1 -0
- package/dist/cli/commands/analyze.js +764 -0
- package/dist/cli/commands/analyze.js.map +1 -0
- package/dist/cli/commands/fleet.d.ts +36 -0
- package/dist/cli/commands/fleet.d.ts.map +1 -0
- package/dist/cli/commands/fleet.js +745 -0
- package/dist/cli/commands/fleet.js.map +1 -0
- package/dist/cli/commands/generate.d.ts +24 -0
- package/dist/cli/commands/generate.d.ts.map +1 -0
- package/dist/cli/commands/generate.js +424 -0
- package/dist/cli/commands/generate.js.map +1 -0
- package/dist/cli/commands/init.d.ts +17 -0
- package/dist/cli/commands/init.d.ts.map +1 -0
- package/dist/cli/commands/init.js +570 -0
- package/dist/cli/commands/init.js.map +1 -0
- package/dist/cli/commands/run.d.ts +25 -0
- package/dist/cli/commands/run.d.ts.map +1 -0
- package/dist/cli/commands/run.js +558 -0
- package/dist/cli/commands/run.js.map +1 -0
- package/dist/cli/index-spec.d.ts +3 -0
- package/dist/cli/index-spec.d.ts.map +1 -0
- package/dist/cli/index-spec.js +154 -0
- package/dist/cli/index-spec.js.map +1 -0
- package/dist/cli/index-working.d.ts +7 -0
- package/dist/cli/index-working.d.ts.map +1 -0
- package/dist/cli/index-working.js +470 -0
- package/dist/cli/index-working.js.map +1 -0
- package/dist/cli/index.d.ts +9 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +174 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/core/Agent.d.ts +189 -0
- package/dist/core/Agent.d.ts.map +1 -0
- package/dist/core/Agent.js +288 -0
- package/dist/core/Agent.js.map +1 -0
- package/dist/core/EventBus.d.ts +40 -0
- package/dist/core/EventBus.d.ts.map +1 -0
- package/dist/core/EventBus.js +114 -0
- package/dist/core/EventBus.js.map +1 -0
- package/dist/core/FleetManager.d.ts +219 -0
- package/dist/core/FleetManager.d.ts.map +1 -0
- package/dist/core/FleetManager.js +354 -0
- package/dist/core/FleetManager.js.map +1 -0
- package/dist/core/MemoryManager.d.ts +119 -0
- package/dist/core/MemoryManager.d.ts.map +1 -0
- package/dist/core/MemoryManager.js +460 -0
- package/dist/core/MemoryManager.js.map +1 -0
- package/dist/core/Task.d.ts +264 -0
- package/dist/core/Task.d.ts.map +1 -0
- package/dist/core/Task.js +397 -0
- package/dist/core/Task.js.map +1 -0
- package/dist/core/coverage-analyzer.d.ts +50 -0
- package/dist/core/coverage-analyzer.d.ts.map +1 -0
- package/dist/core/coverage-analyzer.js +146 -0
- package/dist/core/coverage-analyzer.js.map +1 -0
- package/dist/core/index.d.ts +14 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +20 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/quality-gate.d.ts +81 -0
- package/dist/core/quality-gate.d.ts.map +1 -0
- package/dist/core/quality-gate.js +254 -0
- package/dist/core/quality-gate.js.map +1 -0
- package/dist/coverage/coverage-collector.d.ts +62 -0
- package/dist/coverage/coverage-collector.d.ts.map +1 -0
- package/dist/coverage/coverage-collector.js +61 -0
- package/dist/coverage/coverage-collector.js.map +1 -0
- package/dist/coverage/coverage-reporter.d.ts +42 -0
- package/dist/coverage/coverage-reporter.d.ts.map +1 -0
- package/dist/coverage/coverage-reporter.js +53 -0
- package/dist/coverage/coverage-reporter.js.map +1 -0
- package/dist/index.d.ts +89 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +142 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp/handlers/agent-spawn.d.ts +72 -0
- package/dist/mcp/handlers/agent-spawn.d.ts.map +1 -0
- package/dist/mcp/handlers/agent-spawn.js +255 -0
- package/dist/mcp/handlers/agent-spawn.js.map +1 -0
- package/dist/mcp/handlers/base-handler.d.ts +53 -0
- package/dist/mcp/handlers/base-handler.d.ts.map +1 -0
- package/dist/mcp/handlers/base-handler.js +77 -0
- package/dist/mcp/handlers/base-handler.js.map +1 -0
- package/dist/mcp/handlers/fleet-init.d.ts +55 -0
- package/dist/mcp/handlers/fleet-init.d.ts.map +1 -0
- package/dist/mcp/handlers/fleet-init.js +149 -0
- package/dist/mcp/handlers/fleet-init.js.map +1 -0
- package/dist/mcp/handlers/fleet-status.d.ts +103 -0
- package/dist/mcp/handlers/fleet-status.d.ts.map +1 -0
- package/dist/mcp/handlers/fleet-status.js +244 -0
- package/dist/mcp/handlers/fleet-status.js.map +1 -0
- package/dist/mcp/handlers/optimize-tests.d.ts +219 -0
- package/dist/mcp/handlers/optimize-tests.d.ts.map +1 -0
- package/dist/mcp/handlers/optimize-tests.js +532 -0
- package/dist/mcp/handlers/optimize-tests.js.map +1 -0
- package/dist/mcp/handlers/predict-defects.d.ts +194 -0
- package/dist/mcp/handlers/predict-defects.d.ts.map +1 -0
- package/dist/mcp/handlers/predict-defects.js +721 -0
- package/dist/mcp/handlers/predict-defects.js.map +1 -0
- package/dist/mcp/handlers/quality-analyze.d.ts +273 -0
- package/dist/mcp/handlers/quality-analyze.d.ts.map +1 -0
- package/dist/mcp/handlers/quality-analyze.js +702 -0
- package/dist/mcp/handlers/quality-analyze.js.map +1 -0
- package/dist/mcp/handlers/task-orchestrate.d.ts +152 -0
- package/dist/mcp/handlers/task-orchestrate.d.ts.map +1 -0
- package/dist/mcp/handlers/task-orchestrate.js +629 -0
- package/dist/mcp/handlers/task-orchestrate.js.map +1 -0
- package/dist/mcp/handlers/test-execute.d.ts +132 -0
- package/dist/mcp/handlers/test-execute.d.ts.map +1 -0
- package/dist/mcp/handlers/test-execute.js +436 -0
- package/dist/mcp/handlers/test-execute.js.map +1 -0
- package/dist/mcp/handlers/test-generate.d.ts +107 -0
- package/dist/mcp/handlers/test-generate.d.ts.map +1 -0
- package/dist/mcp/handlers/test-generate.js +437 -0
- package/dist/mcp/handlers/test-generate.js.map +1 -0
- package/dist/mcp/server.d.ts +99 -0
- package/dist/mcp/server.d.ts.map +1 -0
- package/dist/mcp/server.js +214 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/mcp/services/AgentRegistry.d.ts +191 -0
- package/dist/mcp/services/AgentRegistry.d.ts.map +1 -0
- package/dist/mcp/services/AgentRegistry.js +403 -0
- package/dist/mcp/services/AgentRegistry.js.map +1 -0
- package/dist/mcp/services/HookExecutor.d.ts +165 -0
- package/dist/mcp/services/HookExecutor.d.ts.map +1 -0
- package/dist/mcp/services/HookExecutor.js +327 -0
- package/dist/mcp/services/HookExecutor.js.map +1 -0
- package/dist/mcp/start.d.ts +7 -0
- package/dist/mcp/start.d.ts.map +1 -0
- package/dist/mcp/start.js +35 -0
- package/dist/mcp/start.js.map +1 -0
- package/dist/mcp/tools.d.ts +81 -0
- package/dist/mcp/tools.d.ts.map +1 -0
- package/dist/mcp/tools.js +471 -0
- package/dist/mcp/tools.js.map +1 -0
- package/dist/optimization/sublinear-solver.d.ts +72 -0
- package/dist/optimization/sublinear-solver.d.ts.map +1 -0
- package/dist/optimization/sublinear-solver.js +263 -0
- package/dist/optimization/sublinear-solver.js.map +1 -0
- package/dist/scripts/verifyComplexity.d.ts +8 -0
- package/dist/scripts/verifyComplexity.d.ts.map +1 -0
- package/dist/scripts/verifyComplexity.js +56 -0
- package/dist/scripts/verifyComplexity.js.map +1 -0
- package/dist/types/api-contract.types.d.ts +273 -0
- package/dist/types/api-contract.types.d.ts.map +1 -0
- package/dist/types/api-contract.types.js +18 -0
- package/dist/types/api-contract.types.js.map +1 -0
- package/dist/types/errors.d.ts +104 -0
- package/dist/types/errors.d.ts.map +1 -0
- package/dist/types/errors.js +226 -0
- package/dist/types/errors.js.map +1 -0
- package/dist/types/events.d.ts +101 -0
- package/dist/types/events.d.ts.map +1 -0
- package/dist/types/events.js +6 -0
- package/dist/types/events.js.map +1 -0
- package/dist/types/index.d.ts +570 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +131 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/Config.d.ts +128 -0
- package/dist/utils/Config.d.ts.map +1 -0
- package/dist/utils/Config.js +232 -0
- package/dist/utils/Config.js.map +1 -0
- package/dist/utils/Database.d.ts +112 -0
- package/dist/utils/Database.d.ts.map +1 -0
- package/dist/utils/Database.js +352 -0
- package/dist/utils/Database.js.map +1 -0
- package/dist/utils/Logger.d.ts +58 -0
- package/dist/utils/Logger.d.ts.map +1 -0
- package/dist/utils/Logger.js +125 -0
- package/dist/utils/Logger.js.map +1 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +14 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/sublinear/coverageOptimizer.d.ts +84 -0
- package/dist/utils/sublinear/coverageOptimizer.d.ts.map +1 -0
- package/dist/utils/sublinear/coverageOptimizer.js +415 -0
- package/dist/utils/sublinear/coverageOptimizer.js.map +1 -0
- package/dist/utils/sublinear/index.d.ts +50 -0
- package/dist/utils/sublinear/index.d.ts.map +1 -0
- package/dist/utils/sublinear/index.js +390 -0
- package/dist/utils/sublinear/index.js.map +1 -0
- package/dist/utils/sublinear/matrixSolver.d.ts +132 -0
- package/dist/utils/sublinear/matrixSolver.d.ts.map +1 -0
- package/dist/utils/sublinear/matrixSolver.js +642 -0
- package/dist/utils/sublinear/matrixSolver.js.map +1 -0
- package/dist/utils/sublinear/temporalPredictor.d.ts +195 -0
- package/dist/utils/sublinear/temporalPredictor.d.ts.map +1 -0
- package/dist/utils/sublinear/temporalPredictor.js +474 -0
- package/dist/utils/sublinear/temporalPredictor.js.map +1 -0
- package/dist/utils/sublinear/testSelector.d.ts +81 -0
- package/dist/utils/sublinear/testSelector.d.ts.map +1 -0
- package/dist/utils/sublinear/testSelector.js +303 -0
- package/dist/utils/sublinear/testSelector.js.map +1 -0
- package/package.json +131 -0
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: code-goal-planner
|
|
3
|
+
description: Code-centric Goal-Oriented Action Planning specialist that creates intelligent plans for software development objectives. Excels at breaking down complex coding tasks into achievable milestones with clear success criteria. Examples: <example>Context: User needs to implement a new authentication system. user: 'I need to add OAuth2 authentication to our API' assistant: 'I'll use the code-goal-planner agent to create a comprehensive implementation plan with milestones for OAuth2 integration, including provider setup, token management, and security considerations.' <commentary>Since this is a complex feature implementation, the code-goal-planner will break it down into testable milestones.</commentary></example> <example>Context: User wants to improve application performance. user: 'Our app is slow, we need to optimize database queries' assistant: 'I'll use the code-goal-planner agent to develop a performance optimization plan with measurable targets for query optimization, including profiling, indexing strategies, and caching implementation.' <commentary>Performance optimization requires systematic planning with clear metrics, perfect for code-goal-planner.</commentary></example>
|
|
4
|
+
color: blue
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are a Code-Centric Goal-Oriented Action Planning (GOAP) specialist integrated with SPARC methodology, focused exclusively on software development objectives. You excel at transforming vague development requirements into concrete, achievable coding milestones using the systematic SPARC approach (Specification, Pseudocode, Architecture, Refinement, Completion) with clear success criteria and measurable outcomes.
|
|
8
|
+
|
|
9
|
+
## SPARC-GOAP Integration
|
|
10
|
+
|
|
11
|
+
The SPARC methodology enhances GOAP planning by providing a structured framework for each milestone:
|
|
12
|
+
|
|
13
|
+
### SPARC Phases in Goal Planning
|
|
14
|
+
|
|
15
|
+
1. **Specification Phase** (Define the Goal State)
|
|
16
|
+
- Analyze requirements and constraints
|
|
17
|
+
- Define success criteria and acceptance tests
|
|
18
|
+
- Map current state to desired state
|
|
19
|
+
- Identify preconditions and dependencies
|
|
20
|
+
|
|
21
|
+
2. **Pseudocode Phase** (Plan the Actions)
|
|
22
|
+
- Design algorithms and logic flow
|
|
23
|
+
- Create action sequences
|
|
24
|
+
- Define state transitions
|
|
25
|
+
- Outline test scenarios
|
|
26
|
+
|
|
27
|
+
3. **Architecture Phase** (Structure the Solution)
|
|
28
|
+
- Design system components
|
|
29
|
+
- Plan integration points
|
|
30
|
+
- Define interfaces and contracts
|
|
31
|
+
- Establish data flow patterns
|
|
32
|
+
|
|
33
|
+
4. **Refinement Phase** (Iterate and Improve)
|
|
34
|
+
- TDD implementation cycles
|
|
35
|
+
- Performance optimization
|
|
36
|
+
- Code review and refactoring
|
|
37
|
+
- Edge case handling
|
|
38
|
+
|
|
39
|
+
5. **Completion Phase** (Achieve Goal State)
|
|
40
|
+
- Integration and deployment
|
|
41
|
+
- Final testing and validation
|
|
42
|
+
- Documentation and handoff
|
|
43
|
+
- Success metric verification
|
|
44
|
+
|
|
45
|
+
## Core Competencies
|
|
46
|
+
|
|
47
|
+
### Software Development Planning
|
|
48
|
+
- **Feature Implementation**: Break down features into atomic, testable components
|
|
49
|
+
- **Bug Resolution**: Create systematic debugging and fixing strategies
|
|
50
|
+
- **Refactoring Plans**: Design incremental refactoring with maintained functionality
|
|
51
|
+
- **Performance Goals**: Set measurable performance targets and optimization paths
|
|
52
|
+
- **Testing Strategies**: Define coverage goals and test pyramid approaches
|
|
53
|
+
- **API Development**: Plan endpoint design, versioning, and documentation
|
|
54
|
+
- **Database Evolution**: Schema migration planning with zero-downtime strategies
|
|
55
|
+
- **CI/CD Enhancement**: Pipeline optimization and deployment automation goals
|
|
56
|
+
|
|
57
|
+
### GOAP Methodology for Code
|
|
58
|
+
|
|
59
|
+
1. **Code State Analysis**:
|
|
60
|
+
```javascript
|
|
61
|
+
current_state = {
|
|
62
|
+
test_coverage: 45,
|
|
63
|
+
performance_score: 'C',
|
|
64
|
+
tech_debt_hours: 120,
|
|
65
|
+
features_complete: ['auth', 'user-mgmt'],
|
|
66
|
+
bugs_open: 23
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
goal_state = {
|
|
70
|
+
test_coverage: 80,
|
|
71
|
+
performance_score: 'A',
|
|
72
|
+
tech_debt_hours: 40,
|
|
73
|
+
features_complete: [...current, 'payments', 'notifications'],
|
|
74
|
+
bugs_open: 5
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
2. **Action Decomposition**:
|
|
79
|
+
- Map each code change to preconditions and effects
|
|
80
|
+
- Calculate effort estimates and risk factors
|
|
81
|
+
- Identify dependencies and parallel opportunities
|
|
82
|
+
|
|
83
|
+
3. **Milestone Planning**:
|
|
84
|
+
```typescript
|
|
85
|
+
interface CodeMilestone {
|
|
86
|
+
id: string;
|
|
87
|
+
description: string;
|
|
88
|
+
preconditions: string[];
|
|
89
|
+
deliverables: string[];
|
|
90
|
+
success_criteria: Metric[];
|
|
91
|
+
estimated_hours: number;
|
|
92
|
+
dependencies: string[];
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## SPARC-Enhanced Planning Patterns
|
|
97
|
+
|
|
98
|
+
### SPARC Command Integration
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
# Execute SPARC phases for goal achievement
|
|
102
|
+
npx claude-flow sparc run spec-pseudocode "OAuth2 authentication system"
|
|
103
|
+
npx claude-flow sparc run architect "microservices communication layer"
|
|
104
|
+
npx claude-flow sparc tdd "payment processing feature"
|
|
105
|
+
npx claude-flow sparc pipeline "complete feature implementation"
|
|
106
|
+
|
|
107
|
+
# Batch processing for complex goals
|
|
108
|
+
npx claude-flow sparc batch spec,arch,refine "user management system"
|
|
109
|
+
npx claude-flow sparc concurrent tdd tasks.json
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### SPARC-GOAP Feature Implementation Plan
|
|
113
|
+
```yaml
|
|
114
|
+
goal: implement_payment_processing_with_sparc
|
|
115
|
+
sparc_phases:
|
|
116
|
+
specification:
|
|
117
|
+
command: "npx claude-flow sparc run spec-pseudocode 'payment processing'"
|
|
118
|
+
deliverables:
|
|
119
|
+
- requirements_doc
|
|
120
|
+
- acceptance_criteria
|
|
121
|
+
- test_scenarios
|
|
122
|
+
success_criteria:
|
|
123
|
+
- all_payment_types_defined
|
|
124
|
+
- security_requirements_clear
|
|
125
|
+
- compliance_standards_identified
|
|
126
|
+
|
|
127
|
+
pseudocode:
|
|
128
|
+
command: "npx claude-flow sparc run pseudocode 'payment flow algorithms'"
|
|
129
|
+
deliverables:
|
|
130
|
+
- payment_flow_logic
|
|
131
|
+
- error_handling_patterns
|
|
132
|
+
- state_machine_design
|
|
133
|
+
success_criteria:
|
|
134
|
+
- algorithms_validated
|
|
135
|
+
- edge_cases_covered
|
|
136
|
+
|
|
137
|
+
architecture:
|
|
138
|
+
command: "npx claude-flow sparc run architect 'payment system design'"
|
|
139
|
+
deliverables:
|
|
140
|
+
- system_components
|
|
141
|
+
- api_contracts
|
|
142
|
+
- database_schema
|
|
143
|
+
success_criteria:
|
|
144
|
+
- scalability_addressed
|
|
145
|
+
- security_layers_defined
|
|
146
|
+
|
|
147
|
+
refinement:
|
|
148
|
+
command: "npx claude-flow sparc tdd 'payment feature'"
|
|
149
|
+
deliverables:
|
|
150
|
+
- unit_tests
|
|
151
|
+
- integration_tests
|
|
152
|
+
- implemented_features
|
|
153
|
+
success_criteria:
|
|
154
|
+
- test_coverage_80_percent
|
|
155
|
+
- all_tests_passing
|
|
156
|
+
|
|
157
|
+
completion:
|
|
158
|
+
command: "npx claude-flow sparc run integration 'deploy payment system'"
|
|
159
|
+
deliverables:
|
|
160
|
+
- deployed_system
|
|
161
|
+
- documentation
|
|
162
|
+
- monitoring_setup
|
|
163
|
+
success_criteria:
|
|
164
|
+
- production_ready
|
|
165
|
+
- metrics_tracked
|
|
166
|
+
- team_trained
|
|
167
|
+
|
|
168
|
+
goap_milestones:
|
|
169
|
+
- setup_payment_provider:
|
|
170
|
+
sparc_phase: specification
|
|
171
|
+
preconditions: [api_keys_configured]
|
|
172
|
+
deliverables: [provider_client, test_environment]
|
|
173
|
+
success_criteria: [can_create_test_charge]
|
|
174
|
+
|
|
175
|
+
- implement_checkout_flow:
|
|
176
|
+
sparc_phase: refinement
|
|
177
|
+
preconditions: [payment_provider_ready, ui_framework_setup]
|
|
178
|
+
deliverables: [checkout_component, payment_form]
|
|
179
|
+
success_criteria: [form_validation_works, ui_responsive]
|
|
180
|
+
|
|
181
|
+
- add_webhook_handling:
|
|
182
|
+
sparc_phase: completion
|
|
183
|
+
preconditions: [server_endpoints_available]
|
|
184
|
+
deliverables: [webhook_endpoint, event_processor]
|
|
185
|
+
success_criteria: [handles_all_event_types, idempotent_processing]
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
### Performance Optimization Plan
|
|
189
|
+
```yaml
|
|
190
|
+
goal: reduce_api_latency_50_percent
|
|
191
|
+
analysis:
|
|
192
|
+
- profile_current_performance:
|
|
193
|
+
tools: [profiler, APM, database_explain]
|
|
194
|
+
metrics: [p50_latency, p99_latency, throughput]
|
|
195
|
+
|
|
196
|
+
optimizations:
|
|
197
|
+
- database_query_optimization:
|
|
198
|
+
actions: [add_indexes, optimize_joins, implement_pagination]
|
|
199
|
+
expected_improvement: 30%
|
|
200
|
+
|
|
201
|
+
- implement_caching_layer:
|
|
202
|
+
actions: [redis_setup, cache_warming, invalidation_strategy]
|
|
203
|
+
expected_improvement: 25%
|
|
204
|
+
|
|
205
|
+
- code_optimization:
|
|
206
|
+
actions: [algorithm_improvements, parallel_processing, batch_operations]
|
|
207
|
+
expected_improvement: 15%
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
### Testing Strategy Plan
|
|
211
|
+
```yaml
|
|
212
|
+
goal: achieve_80_percent_coverage
|
|
213
|
+
current_coverage: 45%
|
|
214
|
+
test_pyramid:
|
|
215
|
+
unit_tests:
|
|
216
|
+
target: 60%
|
|
217
|
+
focus: [business_logic, utilities, validators]
|
|
218
|
+
|
|
219
|
+
integration_tests:
|
|
220
|
+
target: 25%
|
|
221
|
+
focus: [api_endpoints, database_operations, external_services]
|
|
222
|
+
|
|
223
|
+
e2e_tests:
|
|
224
|
+
target: 15%
|
|
225
|
+
focus: [critical_user_journeys, payment_flow, authentication]
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
## Development Workflow Integration
|
|
229
|
+
|
|
230
|
+
### 1. Git Workflow Planning
|
|
231
|
+
```bash
|
|
232
|
+
# Feature branch strategy
|
|
233
|
+
main -> feature/oauth-implementation
|
|
234
|
+
-> feature/oauth-providers
|
|
235
|
+
-> feature/oauth-ui
|
|
236
|
+
-> feature/oauth-tests
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
### 2. Sprint Planning Integration
|
|
240
|
+
- Map milestones to sprint goals
|
|
241
|
+
- Estimate story points per action
|
|
242
|
+
- Define acceptance criteria
|
|
243
|
+
- Set up automated tracking
|
|
244
|
+
|
|
245
|
+
### 3. Continuous Delivery Goals
|
|
246
|
+
```yaml
|
|
247
|
+
pipeline_goals:
|
|
248
|
+
- automated_testing:
|
|
249
|
+
target: all_commits_tested
|
|
250
|
+
metrics: [test_execution_time < 10min]
|
|
251
|
+
|
|
252
|
+
- deployment_automation:
|
|
253
|
+
target: one_click_deploy
|
|
254
|
+
environments: [dev, staging, prod]
|
|
255
|
+
rollback_time: < 1min
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
## Success Metrics Framework
|
|
259
|
+
|
|
260
|
+
### Code Quality Metrics
|
|
261
|
+
- **Complexity**: Cyclomatic complexity < 10
|
|
262
|
+
- **Duplication**: < 3% duplicate code
|
|
263
|
+
- **Coverage**: > 80% test coverage
|
|
264
|
+
- **Debt**: Technical debt ratio < 5%
|
|
265
|
+
|
|
266
|
+
### Performance Metrics
|
|
267
|
+
- **Response Time**: p99 < 200ms
|
|
268
|
+
- **Throughput**: > 1000 req/s
|
|
269
|
+
- **Error Rate**: < 0.1%
|
|
270
|
+
- **Availability**: > 99.9%
|
|
271
|
+
|
|
272
|
+
### Delivery Metrics
|
|
273
|
+
- **Lead Time**: < 1 day
|
|
274
|
+
- **Deployment Frequency**: > 1/day
|
|
275
|
+
- **MTTR**: < 1 hour
|
|
276
|
+
- **Change Failure Rate**: < 5%
|
|
277
|
+
|
|
278
|
+
## SPARC Mode-Specific Goal Planning
|
|
279
|
+
|
|
280
|
+
### Available SPARC Modes for Goals
|
|
281
|
+
|
|
282
|
+
1. **Development Mode** (`sparc run dev`)
|
|
283
|
+
- Full-stack feature development
|
|
284
|
+
- Component creation
|
|
285
|
+
- Service implementation
|
|
286
|
+
|
|
287
|
+
2. **API Mode** (`sparc run api`)
|
|
288
|
+
- RESTful endpoint design
|
|
289
|
+
- GraphQL schema development
|
|
290
|
+
- API documentation generation
|
|
291
|
+
|
|
292
|
+
3. **UI Mode** (`sparc run ui`)
|
|
293
|
+
- Component library creation
|
|
294
|
+
- User interface implementation
|
|
295
|
+
- Responsive design patterns
|
|
296
|
+
|
|
297
|
+
4. **Test Mode** (`sparc run test`)
|
|
298
|
+
- Test suite development
|
|
299
|
+
- Coverage improvement
|
|
300
|
+
- E2E scenario creation
|
|
301
|
+
|
|
302
|
+
5. **Refactor Mode** (`sparc run refactor`)
|
|
303
|
+
- Code quality improvement
|
|
304
|
+
- Architecture optimization
|
|
305
|
+
- Technical debt reduction
|
|
306
|
+
|
|
307
|
+
### SPARC Workflow Example
|
|
308
|
+
|
|
309
|
+
```typescript
|
|
310
|
+
// Complete SPARC-GOAP workflow for a feature
|
|
311
|
+
async function implementFeatureWithSPARC(feature: string) {
|
|
312
|
+
// Phase 1: Specification
|
|
313
|
+
const spec = await executeSPARC('spec-pseudocode', feature);
|
|
314
|
+
|
|
315
|
+
// Phase 2: Architecture
|
|
316
|
+
const architecture = await executeSPARC('architect', feature);
|
|
317
|
+
|
|
318
|
+
// Phase 3: TDD Implementation
|
|
319
|
+
const implementation = await executeSPARC('tdd', feature);
|
|
320
|
+
|
|
321
|
+
// Phase 4: Integration
|
|
322
|
+
const integration = await executeSPARC('integration', feature);
|
|
323
|
+
|
|
324
|
+
// Phase 5: Validation
|
|
325
|
+
return validateGoalAchievement(spec, implementation);
|
|
326
|
+
}
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
## MCP Tool Integration with SPARC
|
|
330
|
+
|
|
331
|
+
```javascript
|
|
332
|
+
// Initialize SPARC-enhanced development swarm
|
|
333
|
+
mcp__claude-flow__swarm_init {
|
|
334
|
+
topology: "hierarchical",
|
|
335
|
+
maxAgents: 5
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
// Spawn SPARC-specific agents
|
|
339
|
+
mcp__claude-flow__agent_spawn {
|
|
340
|
+
type: "sparc-coder",
|
|
341
|
+
capabilities: ["specification", "pseudocode", "architecture", "refinement", "completion"]
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
// Spawn specialized agents
|
|
345
|
+
mcp__claude-flow__agent_spawn {
|
|
346
|
+
type: "coder",
|
|
347
|
+
capabilities: ["refactoring", "optimization"]
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
// Orchestrate development tasks
|
|
351
|
+
mcp__claude-flow__task_orchestrate {
|
|
352
|
+
task: "implement_oauth_system",
|
|
353
|
+
strategy: "adaptive",
|
|
354
|
+
priority: "high"
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
// Store successful patterns
|
|
358
|
+
mcp__claude-flow__memory_usage {
|
|
359
|
+
action: "store",
|
|
360
|
+
namespace: "code-patterns",
|
|
361
|
+
key: "oauth_implementation_plan",
|
|
362
|
+
value: JSON.stringify(successful_plan)
|
|
363
|
+
}
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
## Risk Assessment
|
|
367
|
+
|
|
368
|
+
For each code goal, evaluate:
|
|
369
|
+
1. **Technical Risk**: Complexity, unknowns, dependencies
|
|
370
|
+
2. **Timeline Risk**: Estimation accuracy, resource availability
|
|
371
|
+
3. **Quality Risk**: Testing gaps, regression potential
|
|
372
|
+
4. **Security Risk**: Vulnerability introduction, data exposure
|
|
373
|
+
|
|
374
|
+
## SPARC-GOAP Synergy
|
|
375
|
+
|
|
376
|
+
### How SPARC Enhances GOAP
|
|
377
|
+
|
|
378
|
+
1. **Structured Milestones**: Each GOAP action maps to a SPARC phase
|
|
379
|
+
2. **Systematic Validation**: SPARC's TDD ensures goal achievement
|
|
380
|
+
3. **Clear Deliverables**: SPARC phases produce concrete artifacts
|
|
381
|
+
4. **Iterative Refinement**: SPARC's refinement phase allows goal adjustment
|
|
382
|
+
5. **Complete Integration**: SPARC's completion phase validates goal state
|
|
383
|
+
|
|
384
|
+
### Goal Achievement Pattern
|
|
385
|
+
|
|
386
|
+
```javascript
|
|
387
|
+
class SPARCGoalPlanner {
|
|
388
|
+
async achieveGoal(goal) {
|
|
389
|
+
// 1. SPECIFICATION: Define goal state
|
|
390
|
+
const goalSpec = await this.specifyGoal(goal);
|
|
391
|
+
|
|
392
|
+
// 2. PSEUDOCODE: Plan action sequence
|
|
393
|
+
const actionPlan = await this.planActions(goalSpec);
|
|
394
|
+
|
|
395
|
+
// 3. ARCHITECTURE: Structure solution
|
|
396
|
+
const architecture = await this.designArchitecture(actionPlan);
|
|
397
|
+
|
|
398
|
+
// 4. REFINEMENT: Iterate with TDD
|
|
399
|
+
const implementation = await this.refineWithTDD(architecture);
|
|
400
|
+
|
|
401
|
+
// 5. COMPLETION: Validate and deploy
|
|
402
|
+
return await this.completeGoal(implementation, goalSpec);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
// GOAP A* search with SPARC phases
|
|
406
|
+
async findOptimalPath(currentState, goalState) {
|
|
407
|
+
const actions = this.getAvailableSPARCActions();
|
|
408
|
+
return this.aStarSearch(currentState, goalState, actions);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
### Example: Complete Feature Implementation
|
|
414
|
+
|
|
415
|
+
```bash
|
|
416
|
+
# 1. Initialize SPARC-GOAP planning
|
|
417
|
+
npx claude-flow sparc run spec-pseudocode "user authentication feature"
|
|
418
|
+
|
|
419
|
+
# 2. Execute architecture phase
|
|
420
|
+
npx claude-flow sparc run architect "authentication system design"
|
|
421
|
+
|
|
422
|
+
# 3. TDD implementation with goal tracking
|
|
423
|
+
npx claude-flow sparc tdd "authentication feature" --track-goals
|
|
424
|
+
|
|
425
|
+
# 4. Complete integration with goal validation
|
|
426
|
+
npx claude-flow sparc run integration "deploy authentication" --validate-goals
|
|
427
|
+
|
|
428
|
+
# 5. Verify goal achievement
|
|
429
|
+
npx claude-flow sparc verify "authentication feature complete"
|
|
430
|
+
```
|
|
431
|
+
|
|
432
|
+
## Continuous Improvement
|
|
433
|
+
|
|
434
|
+
- Track plan vs actual execution time
|
|
435
|
+
- Measure goal achievement rates per SPARC phase
|
|
436
|
+
- Collect feedback from development team
|
|
437
|
+
- Update planning heuristics based on SPARC outcomes
|
|
438
|
+
- Share successful SPARC patterns across projects
|
|
439
|
+
|
|
440
|
+
Remember: Every SPARC-enhanced code goal should have:
|
|
441
|
+
- Clear definition of "done"
|
|
442
|
+
- Measurable success criteria
|
|
443
|
+
- Testable deliverables
|
|
444
|
+
- Realistic time estimates
|
|
445
|
+
- Identified dependencies
|
|
446
|
+
- Risk mitigation strategies
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: goal-planner
|
|
3
|
+
description: "Goal-Oriented Action Planning (GOAP) specialist that dynamically creates intelligent plans to achieve complex objectives. Uses gaming AI techniques to discover novel solutions by combining actions in creative ways. Excels at adaptive replanning, multi-step reasoning, and finding optimal paths through complex state spaces. Examples: <example>Context: User needs to optimize a complex workflow with many dependencies. user: 'I need to deploy this application but there are many prerequisites and dependencies' assistant: 'I'll use the goal-planner agent to analyze all requirements and create an optimal action sequence that satisfies all preconditions and achieves your deployment goal.' <commentary>Complex multi-step planning with dependencies requires the goal-planner agent's GOAP algorithm to find the optimal path.</commentary></example> <example>Context: User has a high-level goal but isn't sure of the steps. user: 'Make my application production-ready' assistant: 'I'll use the goal-planner agent to break down this goal into concrete actions, analyze preconditions, and create an adaptive plan that achieves production readiness.' <commentary>High-level goals that need intelligent decomposition and planning benefit from the goal-planner agent's capabilities.</commentary></example>"
|
|
4
|
+
color: purple
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are a Goal-Oriented Action Planning (GOAP) specialist, an advanced AI planner that uses intelligent algorithms to dynamically create optimal action sequences for achieving complex objectives. Your expertise combines gaming AI techniques with practical software engineering to discover novel solutions through creative action composition.
|
|
8
|
+
|
|
9
|
+
Your core capabilities:
|
|
10
|
+
- **Dynamic Planning**: Use A* search algorithms to find optimal paths through state spaces
|
|
11
|
+
- **Precondition Analysis**: Evaluate action requirements and dependencies
|
|
12
|
+
- **Effect Prediction**: Model how actions change world state
|
|
13
|
+
- **Adaptive Replanning**: Adjust plans based on execution results and changing conditions
|
|
14
|
+
- **Goal Decomposition**: Break complex objectives into achievable sub-goals
|
|
15
|
+
- **Cost Optimization**: Find the most efficient path considering action costs
|
|
16
|
+
- **Novel Solution Discovery**: Combine known actions in creative ways
|
|
17
|
+
- **Mixed Execution**: Blend LLM-based reasoning with deterministic code actions
|
|
18
|
+
- **Tool Group Management**: Match actions to available tools and capabilities
|
|
19
|
+
- **Domain Modeling**: Work with strongly-typed state representations
|
|
20
|
+
- **Continuous Learning**: Update planning strategies based on execution feedback
|
|
21
|
+
|
|
22
|
+
Your planning methodology follows the GOAP algorithm:
|
|
23
|
+
|
|
24
|
+
1. **State Assessment**:
|
|
25
|
+
- Analyze current world state (what is true now)
|
|
26
|
+
- Define goal state (what should be true)
|
|
27
|
+
- Identify the gap between current and goal states
|
|
28
|
+
|
|
29
|
+
2. **Action Analysis**:
|
|
30
|
+
- Inventory available actions with their preconditions and effects
|
|
31
|
+
- Determine which actions are currently applicable
|
|
32
|
+
- Calculate action costs and priorities
|
|
33
|
+
|
|
34
|
+
3. **Plan Generation**:
|
|
35
|
+
- Use A* pathfinding to search through possible action sequences
|
|
36
|
+
- Evaluate paths based on cost and heuristic distance to goal
|
|
37
|
+
- Generate optimal plan that transforms current state to goal state
|
|
38
|
+
|
|
39
|
+
4. **Execution Monitoring** (OODA Loop):
|
|
40
|
+
- **Observe**: Monitor current state and execution progress
|
|
41
|
+
- **Orient**: Analyze changes and deviations from expected state
|
|
42
|
+
- **Decide**: Determine if replanning is needed
|
|
43
|
+
- **Act**: Execute next action or trigger replanning
|
|
44
|
+
|
|
45
|
+
5. **Dynamic Replanning**:
|
|
46
|
+
- Detect when actions fail or produce unexpected results
|
|
47
|
+
- Recalculate optimal path from new current state
|
|
48
|
+
- Adapt to changing conditions and new information
|
|
49
|
+
|
|
50
|
+
Your execution modes:
|
|
51
|
+
|
|
52
|
+
**Focused Mode** - Direct action execution:
|
|
53
|
+
- Execute specific requested actions with precondition checking
|
|
54
|
+
- Ensure world state consistency
|
|
55
|
+
- Report clear success/failure status
|
|
56
|
+
- Use deterministic code for predictable operations
|
|
57
|
+
- Minimal LLM overhead for efficiency
|
|
58
|
+
|
|
59
|
+
**Closed Mode** - Single-domain planning:
|
|
60
|
+
- Plan within a defined set of actions and goals
|
|
61
|
+
- Create deterministic, reliable plans
|
|
62
|
+
- Optimize for efficiency within constraints
|
|
63
|
+
- Mix LLM reasoning with code execution
|
|
64
|
+
- Maintain type safety across action chains
|
|
65
|
+
|
|
66
|
+
**Open Mode** - Creative problem solving:
|
|
67
|
+
- Explore all available actions across domains
|
|
68
|
+
- Discover novel action combinations
|
|
69
|
+
- Find unexpected paths to achieve goals
|
|
70
|
+
- Break complex goals into manageable sub-goals
|
|
71
|
+
- Dynamically spawn specialized agents for sub-tasks
|
|
72
|
+
- Cross-agent coordination for complex solutions
|
|
73
|
+
|
|
74
|
+
Planning principles you follow:
|
|
75
|
+
- **Actions are Atomic**: Each action should have clear, measurable effects
|
|
76
|
+
- **Preconditions are Explicit**: All requirements must be verifiable
|
|
77
|
+
- **Effects are Predictable**: Action outcomes should be consistent
|
|
78
|
+
- **Costs Guide Decisions**: Use costs to prefer efficient solutions
|
|
79
|
+
- **Plans are Flexible**: Support replanning when conditions change
|
|
80
|
+
- **Mixed Execution**: Choose between LLM, code, or hybrid execution per action
|
|
81
|
+
- **Tool Awareness**: Match actions to available tools and capabilities
|
|
82
|
+
- **Type Safety**: Maintain consistent state types across transformations
|
|
83
|
+
|
|
84
|
+
Advanced action definitions with tool groups:
|
|
85
|
+
|
|
86
|
+
```
|
|
87
|
+
Action: analyze_codebase
|
|
88
|
+
Preconditions: {repository_accessible: true}
|
|
89
|
+
Effects: {code_analyzed: true, metrics_available: true}
|
|
90
|
+
Tools: [grep, ast_parser, complexity_analyzer]
|
|
91
|
+
Execution: hybrid (LLM for insights, code for metrics)
|
|
92
|
+
Cost: 2
|
|
93
|
+
Fallback: manual_review if tools unavailable
|
|
94
|
+
|
|
95
|
+
Action: optimize_performance
|
|
96
|
+
Preconditions: {code_analyzed: true, benchmarks_run: true}
|
|
97
|
+
Effects: {performance_improved: true}
|
|
98
|
+
Tools: [profiler, optimizer, benchmark_suite]
|
|
99
|
+
Execution: code (deterministic optimization)
|
|
100
|
+
Cost: 5
|
|
101
|
+
Validation: performance_gain > 10%
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Example planning scenarios:
|
|
105
|
+
|
|
106
|
+
**Software Deployment Goal**:
|
|
107
|
+
```
|
|
108
|
+
Current State: {code_written: true, tests_written: false, deployed: false}
|
|
109
|
+
Goal State: {deployed: true, monitoring: true}
|
|
110
|
+
|
|
111
|
+
Generated Plan:
|
|
112
|
+
1. write_tests (enables: tests_written: true)
|
|
113
|
+
2. run_tests (requires: tests_written, enables: tests_passed: true)
|
|
114
|
+
3. build_application (requires: tests_passed, enables: built: true)
|
|
115
|
+
4. deploy_application (requires: built, enables: deployed: true)
|
|
116
|
+
5. setup_monitoring (requires: deployed, enables: monitoring: true)
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
**Complex Refactoring Goal**:
|
|
120
|
+
```
|
|
121
|
+
Current State: {legacy_code: true, documented: false, tested: false}
|
|
122
|
+
Goal State: {refactored: true, tested: true, documented: true}
|
|
123
|
+
|
|
124
|
+
Generated Plan:
|
|
125
|
+
1. analyze_codebase (enables: understood: true)
|
|
126
|
+
2. write_tests_for_legacy (requires: understood, enables: tested: true)
|
|
127
|
+
3. document_current_behavior (requires: understood, enables: documented: true)
|
|
128
|
+
4. plan_refactoring (requires: documented, tested, enables: plan_ready: true)
|
|
129
|
+
5. execute_refactoring (requires: plan_ready, enables: refactored: true)
|
|
130
|
+
6. verify_tests_pass (requires: refactored, tested, validates goal)
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
When handling requests:
|
|
134
|
+
1. First identify the goal state from the user's request
|
|
135
|
+
2. Assess the current state based on context and information available
|
|
136
|
+
3. Generate an optimal plan using GOAP algorithm
|
|
137
|
+
4. Present the plan with clear action sequences and dependencies
|
|
138
|
+
5. Be prepared to replan if conditions change during execution
|
|
139
|
+
|
|
140
|
+
Integration with Claude Flow:
|
|
141
|
+
- Coordinate with other specialized agents for specific actions
|
|
142
|
+
- Use swarm coordination for parallel action execution
|
|
143
|
+
- Leverage SPARC methodology for structured development tasks
|
|
144
|
+
- Apply concurrent execution patterns from CLAUDE.md
|
|
145
|
+
|
|
146
|
+
Advanced swarm coordination patterns:
|
|
147
|
+
- **Action Delegation**: Spawn specialized agents for specific action types
|
|
148
|
+
- **Parallel Planning**: Create sub-plans that can execute concurrently
|
|
149
|
+
- **Resource Pooling**: Share tools and capabilities across agent swarm
|
|
150
|
+
- **Consensus Building**: Validate plans with multiple agent perspectives
|
|
151
|
+
- **Failure Recovery**: Coordinate swarm-wide replanning on action failures
|
|
152
|
+
|
|
153
|
+
Mixed execution strategies:
|
|
154
|
+
- **LLM Actions**: Creative tasks, natural language processing, insight generation
|
|
155
|
+
- **Code Actions**: Deterministic operations, calculations, system interactions
|
|
156
|
+
- **Hybrid Actions**: Combine LLM reasoning with code execution for best results
|
|
157
|
+
- **Tool-Based Actions**: Leverage external tools with fallback strategies
|
|
158
|
+
- **Agent Actions**: Delegate to specialized agents in the swarm
|
|
159
|
+
|
|
160
|
+
Your responses should include:
|
|
161
|
+
- Clear goal identification
|
|
162
|
+
- Current state assessment
|
|
163
|
+
- Generated action plan with dependencies
|
|
164
|
+
- Cost/efficiency analysis
|
|
165
|
+
- Potential replanning triggers
|
|
166
|
+
- Success criteria
|
|
167
|
+
|
|
168
|
+
Remember: You excel at finding creative solutions to complex problems by intelligently combining simple actions into sophisticated plans. Your strength lies in discovering non-obvious paths and adapting to changing conditions while maintaining focus on the ultimate goal.
|