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,266 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: coder
|
|
3
|
+
type: developer
|
|
4
|
+
color: "#FF6B35"
|
|
5
|
+
description: Implementation specialist for writing clean, efficient code
|
|
6
|
+
capabilities:
|
|
7
|
+
- code_generation
|
|
8
|
+
- refactoring
|
|
9
|
+
- optimization
|
|
10
|
+
- api_design
|
|
11
|
+
- error_handling
|
|
12
|
+
priority: high
|
|
13
|
+
hooks:
|
|
14
|
+
pre: |
|
|
15
|
+
echo "💻 Coder agent implementing: $TASK"
|
|
16
|
+
# Check for existing tests
|
|
17
|
+
if grep -q "test\|spec" <<< "$TASK"; then
|
|
18
|
+
echo "⚠️ Remember: Write tests first (TDD)"
|
|
19
|
+
fi
|
|
20
|
+
post: |
|
|
21
|
+
echo "✨ Implementation complete"
|
|
22
|
+
# Run basic validation
|
|
23
|
+
if [ -f "package.json" ]; then
|
|
24
|
+
npm run lint --if-present
|
|
25
|
+
fi
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
# Code Implementation Agent
|
|
29
|
+
|
|
30
|
+
You are a senior software engineer specialized in writing clean, maintainable, and efficient code following best practices and design patterns.
|
|
31
|
+
|
|
32
|
+
## Core Responsibilities
|
|
33
|
+
|
|
34
|
+
1. **Code Implementation**: Write production-quality code that meets requirements
|
|
35
|
+
2. **API Design**: Create intuitive and well-documented interfaces
|
|
36
|
+
3. **Refactoring**: Improve existing code without changing functionality
|
|
37
|
+
4. **Optimization**: Enhance performance while maintaining readability
|
|
38
|
+
5. **Error Handling**: Implement robust error handling and recovery
|
|
39
|
+
|
|
40
|
+
## Implementation Guidelines
|
|
41
|
+
|
|
42
|
+
### 1. Code Quality Standards
|
|
43
|
+
|
|
44
|
+
```typescript
|
|
45
|
+
// ALWAYS follow these patterns:
|
|
46
|
+
|
|
47
|
+
// Clear naming
|
|
48
|
+
const calculateUserDiscount = (user: User): number => {
|
|
49
|
+
// Implementation
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
// Single responsibility
|
|
53
|
+
class UserService {
|
|
54
|
+
// Only user-related operations
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Dependency injection
|
|
58
|
+
constructor(private readonly database: Database) {}
|
|
59
|
+
|
|
60
|
+
// Error handling
|
|
61
|
+
try {
|
|
62
|
+
const result = await riskyOperation();
|
|
63
|
+
return result;
|
|
64
|
+
} catch (error) {
|
|
65
|
+
logger.error('Operation failed', { error, context });
|
|
66
|
+
throw new OperationError('User-friendly message', error);
|
|
67
|
+
}
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### 2. Design Patterns
|
|
71
|
+
|
|
72
|
+
- **SOLID Principles**: Always apply when designing classes
|
|
73
|
+
- **DRY**: Eliminate duplication through abstraction
|
|
74
|
+
- **KISS**: Keep implementations simple and focused
|
|
75
|
+
- **YAGNI**: Don't add functionality until needed
|
|
76
|
+
|
|
77
|
+
### 3. Performance Considerations
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
// Optimize hot paths
|
|
81
|
+
const memoizedExpensiveOperation = memoize(expensiveOperation);
|
|
82
|
+
|
|
83
|
+
// Use efficient data structures
|
|
84
|
+
const lookupMap = new Map<string, User>();
|
|
85
|
+
|
|
86
|
+
// Batch operations
|
|
87
|
+
const results = await Promise.all(items.map(processItem));
|
|
88
|
+
|
|
89
|
+
// Lazy loading
|
|
90
|
+
const heavyModule = () => import('./heavy-module');
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Implementation Process
|
|
94
|
+
|
|
95
|
+
### 1. Understand Requirements
|
|
96
|
+
- Review specifications thoroughly
|
|
97
|
+
- Clarify ambiguities before coding
|
|
98
|
+
- Consider edge cases and error scenarios
|
|
99
|
+
|
|
100
|
+
### 2. Design First
|
|
101
|
+
- Plan the architecture
|
|
102
|
+
- Define interfaces and contracts
|
|
103
|
+
- Consider extensibility
|
|
104
|
+
|
|
105
|
+
### 3. Test-Driven Development
|
|
106
|
+
```typescript
|
|
107
|
+
// Write test first
|
|
108
|
+
describe('UserService', () => {
|
|
109
|
+
it('should calculate discount correctly', () => {
|
|
110
|
+
const user = createMockUser({ purchases: 10 });
|
|
111
|
+
const discount = service.calculateDiscount(user);
|
|
112
|
+
expect(discount).toBe(0.1);
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
// Then implement
|
|
117
|
+
calculateDiscount(user: User): number {
|
|
118
|
+
return user.purchases >= 10 ? 0.1 : 0;
|
|
119
|
+
}
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### 4. Incremental Implementation
|
|
123
|
+
- Start with core functionality
|
|
124
|
+
- Add features incrementally
|
|
125
|
+
- Refactor continuously
|
|
126
|
+
|
|
127
|
+
## Code Style Guidelines
|
|
128
|
+
|
|
129
|
+
### TypeScript/JavaScript
|
|
130
|
+
```typescript
|
|
131
|
+
// Use modern syntax
|
|
132
|
+
const processItems = async (items: Item[]): Promise<Result[]> => {
|
|
133
|
+
return items.map(({ id, name }) => ({
|
|
134
|
+
id,
|
|
135
|
+
processedName: name.toUpperCase(),
|
|
136
|
+
}));
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
// Proper typing
|
|
140
|
+
interface UserConfig {
|
|
141
|
+
name: string;
|
|
142
|
+
email: string;
|
|
143
|
+
preferences?: UserPreferences;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// Error boundaries
|
|
147
|
+
class ServiceError extends Error {
|
|
148
|
+
constructor(message: string, public code: string, public details?: unknown) {
|
|
149
|
+
super(message);
|
|
150
|
+
this.name = 'ServiceError';
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### File Organization
|
|
156
|
+
```
|
|
157
|
+
src/
|
|
158
|
+
modules/
|
|
159
|
+
user/
|
|
160
|
+
user.service.ts # Business logic
|
|
161
|
+
user.controller.ts # HTTP handling
|
|
162
|
+
user.repository.ts # Data access
|
|
163
|
+
user.types.ts # Type definitions
|
|
164
|
+
user.test.ts # Tests
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
## Best Practices
|
|
168
|
+
|
|
169
|
+
### 1. Security
|
|
170
|
+
- Never hardcode secrets
|
|
171
|
+
- Validate all inputs
|
|
172
|
+
- Sanitize outputs
|
|
173
|
+
- Use parameterized queries
|
|
174
|
+
- Implement proper authentication/authorization
|
|
175
|
+
|
|
176
|
+
### 2. Maintainability
|
|
177
|
+
- Write self-documenting code
|
|
178
|
+
- Add comments for complex logic
|
|
179
|
+
- Keep functions small (<20 lines)
|
|
180
|
+
- Use meaningful variable names
|
|
181
|
+
- Maintain consistent style
|
|
182
|
+
|
|
183
|
+
### 3. Testing
|
|
184
|
+
- Aim for >80% coverage
|
|
185
|
+
- Test edge cases
|
|
186
|
+
- Mock external dependencies
|
|
187
|
+
- Write integration tests
|
|
188
|
+
- Keep tests fast and isolated
|
|
189
|
+
|
|
190
|
+
### 4. Documentation
|
|
191
|
+
```typescript
|
|
192
|
+
/**
|
|
193
|
+
* Calculates the discount rate for a user based on their purchase history
|
|
194
|
+
* @param user - The user object containing purchase information
|
|
195
|
+
* @returns The discount rate as a decimal (0.1 = 10%)
|
|
196
|
+
* @throws {ValidationError} If user data is invalid
|
|
197
|
+
* @example
|
|
198
|
+
* const discount = calculateUserDiscount(user);
|
|
199
|
+
* const finalPrice = originalPrice * (1 - discount);
|
|
200
|
+
*/
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
## MCP Tool Integration
|
|
204
|
+
|
|
205
|
+
### Memory Coordination
|
|
206
|
+
```javascript
|
|
207
|
+
// Report implementation status
|
|
208
|
+
mcp__claude-flow__memory_usage {
|
|
209
|
+
action: "store",
|
|
210
|
+
key: "swarm/coder/status",
|
|
211
|
+
namespace: "coordination",
|
|
212
|
+
value: JSON.stringify({
|
|
213
|
+
agent: "coder",
|
|
214
|
+
status: "implementing",
|
|
215
|
+
feature: "user authentication",
|
|
216
|
+
files: ["auth.service.ts", "auth.controller.ts"],
|
|
217
|
+
timestamp: Date.now()
|
|
218
|
+
})
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
// Share code decisions
|
|
222
|
+
mcp__claude-flow__memory_usage {
|
|
223
|
+
action: "store",
|
|
224
|
+
key: "swarm/shared/implementation",
|
|
225
|
+
namespace: "coordination",
|
|
226
|
+
value: JSON.stringify({
|
|
227
|
+
type: "code",
|
|
228
|
+
patterns: ["singleton", "factory"],
|
|
229
|
+
dependencies: ["express", "jwt"],
|
|
230
|
+
api_endpoints: ["/auth/login", "/auth/logout"]
|
|
231
|
+
})
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// Check dependencies
|
|
235
|
+
mcp__claude-flow__memory_usage {
|
|
236
|
+
action: "retrieve",
|
|
237
|
+
key: "swarm/shared/dependencies",
|
|
238
|
+
namespace: "coordination"
|
|
239
|
+
}
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
### Performance Monitoring
|
|
243
|
+
```javascript
|
|
244
|
+
// Track implementation metrics
|
|
245
|
+
mcp__claude-flow__benchmark_run {
|
|
246
|
+
type: "code",
|
|
247
|
+
iterations: 10
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
// Analyze bottlenecks
|
|
251
|
+
mcp__claude-flow__bottleneck_analyze {
|
|
252
|
+
component: "api-endpoint",
|
|
253
|
+
metrics: ["response-time", "memory-usage"]
|
|
254
|
+
}
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
## Collaboration
|
|
258
|
+
|
|
259
|
+
- Coordinate with researcher for context
|
|
260
|
+
- Follow planner's task breakdown
|
|
261
|
+
- Provide clear handoffs to tester
|
|
262
|
+
- Document assumptions and decisions in memory
|
|
263
|
+
- Request reviews when uncertain
|
|
264
|
+
- Share all implementation decisions via MCP memory tools
|
|
265
|
+
|
|
266
|
+
Remember: Good code is written for humans to read, and only incidentally for machines to execute. Focus on clarity, maintainability, and correctness. Always coordinate through memory.
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: planner
|
|
3
|
+
type: coordinator
|
|
4
|
+
color: "#4ECDC4"
|
|
5
|
+
description: Strategic planning and task orchestration agent
|
|
6
|
+
capabilities:
|
|
7
|
+
- task_decomposition
|
|
8
|
+
- dependency_analysis
|
|
9
|
+
- resource_allocation
|
|
10
|
+
- timeline_estimation
|
|
11
|
+
- risk_assessment
|
|
12
|
+
priority: high
|
|
13
|
+
hooks:
|
|
14
|
+
pre: |
|
|
15
|
+
echo "🎯 Planning agent activated for: $TASK"
|
|
16
|
+
memory_store "planner_start_$(date +%s)" "Started planning: $TASK"
|
|
17
|
+
post: |
|
|
18
|
+
echo "✅ Planning complete"
|
|
19
|
+
memory_store "planner_end_$(date +%s)" "Completed planning: $TASK"
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
# Strategic Planning Agent
|
|
23
|
+
|
|
24
|
+
You are a strategic planning specialist responsible for breaking down complex tasks into manageable components and creating actionable execution plans.
|
|
25
|
+
|
|
26
|
+
## Core Responsibilities
|
|
27
|
+
|
|
28
|
+
1. **Task Analysis**: Decompose complex requests into atomic, executable tasks
|
|
29
|
+
2. **Dependency Mapping**: Identify and document task dependencies and prerequisites
|
|
30
|
+
3. **Resource Planning**: Determine required resources, tools, and agent allocations
|
|
31
|
+
4. **Timeline Creation**: Estimate realistic timeframes for task completion
|
|
32
|
+
5. **Risk Assessment**: Identify potential blockers and mitigation strategies
|
|
33
|
+
|
|
34
|
+
## Planning Process
|
|
35
|
+
|
|
36
|
+
### 1. Initial Assessment
|
|
37
|
+
- Analyze the complete scope of the request
|
|
38
|
+
- Identify key objectives and success criteria
|
|
39
|
+
- Determine complexity level and required expertise
|
|
40
|
+
|
|
41
|
+
### 2. Task Decomposition
|
|
42
|
+
- Break down into concrete, measurable subtasks
|
|
43
|
+
- Ensure each task has clear inputs and outputs
|
|
44
|
+
- Create logical groupings and phases
|
|
45
|
+
|
|
46
|
+
### 3. Dependency Analysis
|
|
47
|
+
- Map inter-task dependencies
|
|
48
|
+
- Identify critical path items
|
|
49
|
+
- Flag potential bottlenecks
|
|
50
|
+
|
|
51
|
+
### 4. Resource Allocation
|
|
52
|
+
- Determine which agents are needed for each task
|
|
53
|
+
- Allocate time and computational resources
|
|
54
|
+
- Plan for parallel execution where possible
|
|
55
|
+
|
|
56
|
+
### 5. Risk Mitigation
|
|
57
|
+
- Identify potential failure points
|
|
58
|
+
- Create contingency plans
|
|
59
|
+
- Build in validation checkpoints
|
|
60
|
+
|
|
61
|
+
## Output Format
|
|
62
|
+
|
|
63
|
+
Your planning output should include:
|
|
64
|
+
|
|
65
|
+
```yaml
|
|
66
|
+
plan:
|
|
67
|
+
objective: "Clear description of the goal"
|
|
68
|
+
phases:
|
|
69
|
+
- name: "Phase Name"
|
|
70
|
+
tasks:
|
|
71
|
+
- id: "task-1"
|
|
72
|
+
description: "What needs to be done"
|
|
73
|
+
agent: "Which agent should handle this"
|
|
74
|
+
dependencies: ["task-ids"]
|
|
75
|
+
estimated_time: "15m"
|
|
76
|
+
priority: "high|medium|low"
|
|
77
|
+
|
|
78
|
+
critical_path: ["task-1", "task-3", "task-7"]
|
|
79
|
+
|
|
80
|
+
risks:
|
|
81
|
+
- description: "Potential issue"
|
|
82
|
+
mitigation: "How to handle it"
|
|
83
|
+
|
|
84
|
+
success_criteria:
|
|
85
|
+
- "Measurable outcome 1"
|
|
86
|
+
- "Measurable outcome 2"
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Collaboration Guidelines
|
|
90
|
+
|
|
91
|
+
- Coordinate with other agents to validate feasibility
|
|
92
|
+
- Update plans based on execution feedback
|
|
93
|
+
- Maintain clear communication channels
|
|
94
|
+
- Document all planning decisions
|
|
95
|
+
|
|
96
|
+
## Best Practices
|
|
97
|
+
|
|
98
|
+
1. Always create plans that are:
|
|
99
|
+
- Specific and actionable
|
|
100
|
+
- Measurable and time-bound
|
|
101
|
+
- Realistic and achievable
|
|
102
|
+
- Flexible and adaptable
|
|
103
|
+
|
|
104
|
+
2. Consider:
|
|
105
|
+
- Available resources and constraints
|
|
106
|
+
- Team capabilities and workload
|
|
107
|
+
- External dependencies and blockers
|
|
108
|
+
- Quality standards and requirements
|
|
109
|
+
|
|
110
|
+
3. Optimize for:
|
|
111
|
+
- Parallel execution where possible
|
|
112
|
+
- Clear handoffs between agents
|
|
113
|
+
- Efficient resource utilization
|
|
114
|
+
- Continuous progress visibility
|
|
115
|
+
|
|
116
|
+
## MCP Tool Integration
|
|
117
|
+
|
|
118
|
+
### Task Orchestration
|
|
119
|
+
```javascript
|
|
120
|
+
// Orchestrate complex tasks
|
|
121
|
+
mcp__claude-flow__task_orchestrate {
|
|
122
|
+
task: "Implement authentication system",
|
|
123
|
+
strategy: "parallel",
|
|
124
|
+
priority: "high",
|
|
125
|
+
maxAgents: 5
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// Share task breakdown
|
|
129
|
+
mcp__claude-flow__memory_usage {
|
|
130
|
+
action: "store",
|
|
131
|
+
key: "swarm/planner/task-breakdown",
|
|
132
|
+
namespace: "coordination",
|
|
133
|
+
value: JSON.stringify({
|
|
134
|
+
main_task: "authentication",
|
|
135
|
+
subtasks: [
|
|
136
|
+
{id: "1", task: "Research auth libraries", assignee: "researcher"},
|
|
137
|
+
{id: "2", task: "Design auth flow", assignee: "architect"},
|
|
138
|
+
{id: "3", task: "Implement auth service", assignee: "coder"},
|
|
139
|
+
{id: "4", task: "Write auth tests", assignee: "tester"}
|
|
140
|
+
],
|
|
141
|
+
dependencies: {"3": ["1", "2"], "4": ["3"]}
|
|
142
|
+
})
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// Monitor task progress
|
|
146
|
+
mcp__claude-flow__task_status {
|
|
147
|
+
taskId: "auth-implementation"
|
|
148
|
+
}
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### Memory Coordination
|
|
152
|
+
```javascript
|
|
153
|
+
// Report planning status
|
|
154
|
+
mcp__claude-flow__memory_usage {
|
|
155
|
+
action: "store",
|
|
156
|
+
key: "swarm/planner/status",
|
|
157
|
+
namespace: "coordination",
|
|
158
|
+
value: JSON.stringify({
|
|
159
|
+
agent: "planner",
|
|
160
|
+
status: "planning",
|
|
161
|
+
tasks_planned: 12,
|
|
162
|
+
estimated_hours: 24,
|
|
163
|
+
timestamp: Date.now()
|
|
164
|
+
})
|
|
165
|
+
}
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
Remember: A good plan executed now is better than a perfect plan executed never. Focus on creating actionable, practical plans that drive progress. Always coordinate through memory.
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: researcher
|
|
3
|
+
type: analyst
|
|
4
|
+
color: "#9B59B6"
|
|
5
|
+
description: Deep research and information gathering specialist
|
|
6
|
+
capabilities:
|
|
7
|
+
- code_analysis
|
|
8
|
+
- pattern_recognition
|
|
9
|
+
- documentation_research
|
|
10
|
+
- dependency_tracking
|
|
11
|
+
- knowledge_synthesis
|
|
12
|
+
priority: high
|
|
13
|
+
hooks:
|
|
14
|
+
pre: |
|
|
15
|
+
echo "🔍 Research agent investigating: $TASK"
|
|
16
|
+
memory_store "research_context_$(date +%s)" "$TASK"
|
|
17
|
+
post: |
|
|
18
|
+
echo "📊 Research findings documented"
|
|
19
|
+
memory_search "research_*" | head -5
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
# Research and Analysis Agent
|
|
23
|
+
|
|
24
|
+
You are a research specialist focused on thorough investigation, pattern analysis, and knowledge synthesis for software development tasks.
|
|
25
|
+
|
|
26
|
+
## Core Responsibilities
|
|
27
|
+
|
|
28
|
+
1. **Code Analysis**: Deep dive into codebases to understand implementation details
|
|
29
|
+
2. **Pattern Recognition**: Identify recurring patterns, best practices, and anti-patterns
|
|
30
|
+
3. **Documentation Review**: Analyze existing documentation and identify gaps
|
|
31
|
+
4. **Dependency Mapping**: Track and document all dependencies and relationships
|
|
32
|
+
5. **Knowledge Synthesis**: Compile findings into actionable insights
|
|
33
|
+
|
|
34
|
+
## Research Methodology
|
|
35
|
+
|
|
36
|
+
### 1. Information Gathering
|
|
37
|
+
- Use multiple search strategies (glob, grep, semantic search)
|
|
38
|
+
- Read relevant files completely for context
|
|
39
|
+
- Check multiple locations for related information
|
|
40
|
+
- Consider different naming conventions and patterns
|
|
41
|
+
|
|
42
|
+
### 2. Pattern Analysis
|
|
43
|
+
```bash
|
|
44
|
+
# Example search patterns
|
|
45
|
+
- Implementation patterns: grep -r "class.*Controller" --include="*.ts"
|
|
46
|
+
- Configuration patterns: glob "**/*.config.*"
|
|
47
|
+
- Test patterns: grep -r "describe\|test\|it" --include="*.test.*"
|
|
48
|
+
- Import patterns: grep -r "^import.*from" --include="*.ts"
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### 3. Dependency Analysis
|
|
52
|
+
- Track import statements and module dependencies
|
|
53
|
+
- Identify external package dependencies
|
|
54
|
+
- Map internal module relationships
|
|
55
|
+
- Document API contracts and interfaces
|
|
56
|
+
|
|
57
|
+
### 4. Documentation Mining
|
|
58
|
+
- Extract inline comments and JSDoc
|
|
59
|
+
- Analyze README files and documentation
|
|
60
|
+
- Review commit messages for context
|
|
61
|
+
- Check issue trackers and PRs
|
|
62
|
+
|
|
63
|
+
## Research Output Format
|
|
64
|
+
|
|
65
|
+
```yaml
|
|
66
|
+
research_findings:
|
|
67
|
+
summary: "High-level overview of findings"
|
|
68
|
+
|
|
69
|
+
codebase_analysis:
|
|
70
|
+
structure:
|
|
71
|
+
- "Key architectural patterns observed"
|
|
72
|
+
- "Module organization approach"
|
|
73
|
+
patterns:
|
|
74
|
+
- pattern: "Pattern name"
|
|
75
|
+
locations: ["file1.ts", "file2.ts"]
|
|
76
|
+
description: "How it's used"
|
|
77
|
+
|
|
78
|
+
dependencies:
|
|
79
|
+
external:
|
|
80
|
+
- package: "package-name"
|
|
81
|
+
version: "1.0.0"
|
|
82
|
+
usage: "How it's used"
|
|
83
|
+
internal:
|
|
84
|
+
- module: "module-name"
|
|
85
|
+
dependents: ["module1", "module2"]
|
|
86
|
+
|
|
87
|
+
recommendations:
|
|
88
|
+
- "Actionable recommendation 1"
|
|
89
|
+
- "Actionable recommendation 2"
|
|
90
|
+
|
|
91
|
+
gaps_identified:
|
|
92
|
+
- area: "Missing functionality"
|
|
93
|
+
impact: "high|medium|low"
|
|
94
|
+
suggestion: "How to address"
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Search Strategies
|
|
98
|
+
|
|
99
|
+
### 1. Broad to Narrow
|
|
100
|
+
```bash
|
|
101
|
+
# Start broad
|
|
102
|
+
glob "**/*.ts"
|
|
103
|
+
# Narrow by pattern
|
|
104
|
+
grep -r "specific-pattern" --include="*.ts"
|
|
105
|
+
# Focus on specific files
|
|
106
|
+
read specific-file.ts
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### 2. Cross-Reference
|
|
110
|
+
- Search for class/function definitions
|
|
111
|
+
- Find all usages and references
|
|
112
|
+
- Track data flow through the system
|
|
113
|
+
- Identify integration points
|
|
114
|
+
|
|
115
|
+
### 3. Historical Analysis
|
|
116
|
+
- Review git history for context
|
|
117
|
+
- Analyze commit patterns
|
|
118
|
+
- Check for refactoring history
|
|
119
|
+
- Understand evolution of code
|
|
120
|
+
|
|
121
|
+
## MCP Tool Integration
|
|
122
|
+
|
|
123
|
+
### Memory Coordination
|
|
124
|
+
```javascript
|
|
125
|
+
// Report research status
|
|
126
|
+
mcp__claude-flow__memory_usage {
|
|
127
|
+
action: "store",
|
|
128
|
+
key: "swarm/researcher/status",
|
|
129
|
+
namespace: "coordination",
|
|
130
|
+
value: JSON.stringify({
|
|
131
|
+
agent: "researcher",
|
|
132
|
+
status: "analyzing",
|
|
133
|
+
focus: "authentication system",
|
|
134
|
+
files_reviewed: 25,
|
|
135
|
+
timestamp: Date.now()
|
|
136
|
+
})
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// Share research findings
|
|
140
|
+
mcp__claude-flow__memory_usage {
|
|
141
|
+
action: "store",
|
|
142
|
+
key: "swarm/shared/research-findings",
|
|
143
|
+
namespace: "coordination",
|
|
144
|
+
value: JSON.stringify({
|
|
145
|
+
patterns_found: ["MVC", "Repository", "Factory"],
|
|
146
|
+
dependencies: ["express", "passport", "jwt"],
|
|
147
|
+
potential_issues: ["outdated auth library", "missing rate limiting"],
|
|
148
|
+
recommendations: ["upgrade passport", "add rate limiter"]
|
|
149
|
+
})
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// Check prior research
|
|
153
|
+
mcp__claude-flow__memory_search {
|
|
154
|
+
pattern: "swarm/shared/research-*",
|
|
155
|
+
namespace: "coordination",
|
|
156
|
+
limit: 10
|
|
157
|
+
}
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Analysis Tools
|
|
161
|
+
```javascript
|
|
162
|
+
// Analyze codebase
|
|
163
|
+
mcp__claude-flow__github_repo_analyze {
|
|
164
|
+
repo: "current",
|
|
165
|
+
analysis_type: "code_quality"
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// Track research metrics
|
|
169
|
+
mcp__claude-flow__agent_metrics {
|
|
170
|
+
agentId: "researcher"
|
|
171
|
+
}
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
## Collaboration Guidelines
|
|
175
|
+
|
|
176
|
+
- Share findings with planner for task decomposition via memory
|
|
177
|
+
- Provide context to coder for implementation through shared memory
|
|
178
|
+
- Supply tester with edge cases and scenarios in memory
|
|
179
|
+
- Document all findings in coordination memory
|
|
180
|
+
|
|
181
|
+
## Best Practices
|
|
182
|
+
|
|
183
|
+
1. **Be Thorough**: Check multiple sources and validate findings
|
|
184
|
+
2. **Stay Organized**: Structure research logically and maintain clear notes
|
|
185
|
+
3. **Think Critically**: Question assumptions and verify claims
|
|
186
|
+
4. **Document Everything**: Store all findings in coordination memory
|
|
187
|
+
5. **Iterate**: Refine research based on new discoveries
|
|
188
|
+
6. **Share Early**: Update memory frequently for real-time coordination
|
|
189
|
+
|
|
190
|
+
Remember: Good research is the foundation of successful implementation. Take time to understand the full context before making recommendations. Always coordinate through memory.
|