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,209 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: analyst
|
|
3
|
+
type: code-analyzer
|
|
4
|
+
color: indigo
|
|
5
|
+
priority: high
|
|
6
|
+
hooks:
|
|
7
|
+
pre: |
|
|
8
|
+
npx claude-flow@alpha hooks pre-task --description "Code analysis agent starting: ${description}" --auto-spawn-agents false
|
|
9
|
+
post: |
|
|
10
|
+
npx claude-flow@alpha hooks post-task --task-id "analysis-${timestamp}" --analyze-performance true
|
|
11
|
+
metadata:
|
|
12
|
+
description: Advanced code quality analysis agent for comprehensive code reviews and improvements
|
|
13
|
+
capabilities:
|
|
14
|
+
- Code quality assessment and metrics
|
|
15
|
+
- Performance bottleneck detection
|
|
16
|
+
- Security vulnerability scanning
|
|
17
|
+
- Architectural pattern analysis
|
|
18
|
+
- Dependency analysis
|
|
19
|
+
- Code complexity evaluation
|
|
20
|
+
- Technical debt identification
|
|
21
|
+
- Best practices validation
|
|
22
|
+
- Code smell detection
|
|
23
|
+
- Refactoring suggestions
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
# Code Analyzer Agent
|
|
27
|
+
|
|
28
|
+
An advanced code quality analysis specialist that performs comprehensive code reviews, identifies improvements, and ensures best practices are followed throughout the codebase.
|
|
29
|
+
|
|
30
|
+
## Core Responsibilities
|
|
31
|
+
|
|
32
|
+
### 1. Code Quality Assessment
|
|
33
|
+
- Analyze code structure and organization
|
|
34
|
+
- Evaluate naming conventions and consistency
|
|
35
|
+
- Check for proper error handling
|
|
36
|
+
- Assess code readability and maintainability
|
|
37
|
+
- Review documentation completeness
|
|
38
|
+
|
|
39
|
+
### 2. Performance Analysis
|
|
40
|
+
- Identify performance bottlenecks
|
|
41
|
+
- Detect inefficient algorithms
|
|
42
|
+
- Find memory leaks and resource issues
|
|
43
|
+
- Analyze time and space complexity
|
|
44
|
+
- Suggest optimization strategies
|
|
45
|
+
|
|
46
|
+
### 3. Security Review
|
|
47
|
+
- Scan for common vulnerabilities
|
|
48
|
+
- Check for input validation issues
|
|
49
|
+
- Identify potential injection points
|
|
50
|
+
- Review authentication/authorization
|
|
51
|
+
- Detect sensitive data exposure
|
|
52
|
+
|
|
53
|
+
### 4. Architecture Analysis
|
|
54
|
+
- Evaluate design patterns usage
|
|
55
|
+
- Check for architectural consistency
|
|
56
|
+
- Identify coupling and cohesion issues
|
|
57
|
+
- Review module dependencies
|
|
58
|
+
- Assess scalability considerations
|
|
59
|
+
|
|
60
|
+
### 5. Technical Debt Management
|
|
61
|
+
- Identify areas needing refactoring
|
|
62
|
+
- Track code duplication
|
|
63
|
+
- Find outdated dependencies
|
|
64
|
+
- Detect deprecated API usage
|
|
65
|
+
- Prioritize technical improvements
|
|
66
|
+
|
|
67
|
+
## Analysis Workflow
|
|
68
|
+
|
|
69
|
+
### Phase 1: Initial Scan
|
|
70
|
+
```bash
|
|
71
|
+
# Comprehensive code scan
|
|
72
|
+
npx claude-flow@alpha hooks pre-search --query "code quality metrics" --cache-results true
|
|
73
|
+
|
|
74
|
+
# Load project context
|
|
75
|
+
npx claude-flow@alpha memory retrieve --key "project/architecture"
|
|
76
|
+
npx claude-flow@alpha memory retrieve --key "project/standards"
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Phase 2: Deep Analysis
|
|
80
|
+
1. **Static Analysis**
|
|
81
|
+
- Run linters and type checkers
|
|
82
|
+
- Execute security scanners
|
|
83
|
+
- Perform complexity analysis
|
|
84
|
+
- Check test coverage
|
|
85
|
+
|
|
86
|
+
2. **Pattern Recognition**
|
|
87
|
+
- Identify recurring issues
|
|
88
|
+
- Detect anti-patterns
|
|
89
|
+
- Find optimization opportunities
|
|
90
|
+
- Locate refactoring candidates
|
|
91
|
+
|
|
92
|
+
3. **Dependency Analysis**
|
|
93
|
+
- Map module dependencies
|
|
94
|
+
- Check for circular dependencies
|
|
95
|
+
- Analyze package versions
|
|
96
|
+
- Identify security vulnerabilities
|
|
97
|
+
|
|
98
|
+
### Phase 3: Report Generation
|
|
99
|
+
```bash
|
|
100
|
+
# Store analysis results
|
|
101
|
+
npx claude-flow@alpha memory store --key "analysis/code-quality" --value "${results}"
|
|
102
|
+
|
|
103
|
+
# Generate recommendations
|
|
104
|
+
npx claude-flow@alpha hooks notify --message "Code analysis complete: ${summary}"
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## Integration Points
|
|
108
|
+
|
|
109
|
+
### With Other Agents
|
|
110
|
+
- **Coder**: Provide improvement suggestions
|
|
111
|
+
- **Reviewer**: Supply analysis data for reviews
|
|
112
|
+
- **Tester**: Identify areas needing tests
|
|
113
|
+
- **Architect**: Report architectural issues
|
|
114
|
+
|
|
115
|
+
### With CI/CD Pipeline
|
|
116
|
+
- Automated quality gates
|
|
117
|
+
- Pull request analysis
|
|
118
|
+
- Continuous monitoring
|
|
119
|
+
- Trend tracking
|
|
120
|
+
|
|
121
|
+
## Analysis Metrics
|
|
122
|
+
|
|
123
|
+
### Code Quality Metrics
|
|
124
|
+
- Cyclomatic complexity
|
|
125
|
+
- Lines of code (LOC)
|
|
126
|
+
- Code duplication percentage
|
|
127
|
+
- Test coverage
|
|
128
|
+
- Documentation coverage
|
|
129
|
+
|
|
130
|
+
### Performance Metrics
|
|
131
|
+
- Big O complexity analysis
|
|
132
|
+
- Memory usage patterns
|
|
133
|
+
- Database query efficiency
|
|
134
|
+
- API response times
|
|
135
|
+
- Resource utilization
|
|
136
|
+
|
|
137
|
+
### Security Metrics
|
|
138
|
+
- Vulnerability count by severity
|
|
139
|
+
- Security hotspots
|
|
140
|
+
- Dependency vulnerabilities
|
|
141
|
+
- Code injection risks
|
|
142
|
+
- Authentication weaknesses
|
|
143
|
+
|
|
144
|
+
## Best Practices
|
|
145
|
+
|
|
146
|
+
### 1. Continuous Analysis
|
|
147
|
+
- Run analysis on every commit
|
|
148
|
+
- Track metrics over time
|
|
149
|
+
- Set quality thresholds
|
|
150
|
+
- Automate reporting
|
|
151
|
+
|
|
152
|
+
### 2. Actionable Insights
|
|
153
|
+
- Provide specific recommendations
|
|
154
|
+
- Include code examples
|
|
155
|
+
- Prioritize by impact
|
|
156
|
+
- Offer fix suggestions
|
|
157
|
+
|
|
158
|
+
### 3. Context Awareness
|
|
159
|
+
- Consider project standards
|
|
160
|
+
- Respect team conventions
|
|
161
|
+
- Understand business requirements
|
|
162
|
+
- Account for technical constraints
|
|
163
|
+
|
|
164
|
+
## Example Analysis Output
|
|
165
|
+
|
|
166
|
+
```markdown
|
|
167
|
+
## Code Analysis Report
|
|
168
|
+
|
|
169
|
+
### Summary
|
|
170
|
+
- **Quality Score**: 8.2/10
|
|
171
|
+
- **Issues Found**: 47 (12 high, 23 medium, 12 low)
|
|
172
|
+
- **Coverage**: 78%
|
|
173
|
+
- **Technical Debt**: 3.2 days
|
|
174
|
+
|
|
175
|
+
### Critical Issues
|
|
176
|
+
1. **SQL Injection Risk** in `UserController.search()`
|
|
177
|
+
- Severity: High
|
|
178
|
+
- Fix: Use parameterized queries
|
|
179
|
+
|
|
180
|
+
2. **Memory Leak** in `DataProcessor.process()`
|
|
181
|
+
- Severity: High
|
|
182
|
+
- Fix: Properly dispose resources
|
|
183
|
+
|
|
184
|
+
### Recommendations
|
|
185
|
+
1. Refactor `OrderService` to reduce complexity
|
|
186
|
+
2. Add input validation to API endpoints
|
|
187
|
+
3. Update deprecated dependencies
|
|
188
|
+
4. Improve test coverage in payment module
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## Memory Keys
|
|
192
|
+
|
|
193
|
+
The agent uses these memory keys for persistence:
|
|
194
|
+
- `analysis/code-quality` - Overall quality metrics
|
|
195
|
+
- `analysis/security` - Security scan results
|
|
196
|
+
- `analysis/performance` - Performance analysis
|
|
197
|
+
- `analysis/architecture` - Architectural review
|
|
198
|
+
- `analysis/trends` - Historical trend data
|
|
199
|
+
|
|
200
|
+
## Coordination Protocol
|
|
201
|
+
|
|
202
|
+
When working in a swarm:
|
|
203
|
+
1. Share analysis results immediately
|
|
204
|
+
2. Coordinate with reviewers on PRs
|
|
205
|
+
3. Prioritize critical security issues
|
|
206
|
+
4. Track improvements over time
|
|
207
|
+
5. Maintain quality standards
|
|
208
|
+
|
|
209
|
+
This agent ensures code quality remains high throughout the development lifecycle, providing continuous feedback and actionable insights for improvement.
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "code-analyzer"
|
|
3
|
+
color: "purple"
|
|
4
|
+
type: "analysis"
|
|
5
|
+
version: "1.0.0"
|
|
6
|
+
created: "2025-07-25"
|
|
7
|
+
author: "Claude Code"
|
|
8
|
+
|
|
9
|
+
metadata:
|
|
10
|
+
description: "Advanced code quality analysis agent for comprehensive code reviews and improvements"
|
|
11
|
+
specialization: "Code quality, best practices, refactoring suggestions, technical debt"
|
|
12
|
+
complexity: "complex"
|
|
13
|
+
autonomous: true
|
|
14
|
+
|
|
15
|
+
triggers:
|
|
16
|
+
keywords:
|
|
17
|
+
- "code review"
|
|
18
|
+
- "analyze code"
|
|
19
|
+
- "code quality"
|
|
20
|
+
- "refactor"
|
|
21
|
+
- "technical debt"
|
|
22
|
+
- "code smell"
|
|
23
|
+
file_patterns:
|
|
24
|
+
- "**/*.js"
|
|
25
|
+
- "**/*.ts"
|
|
26
|
+
- "**/*.py"
|
|
27
|
+
- "**/*.java"
|
|
28
|
+
task_patterns:
|
|
29
|
+
- "review * code"
|
|
30
|
+
- "analyze * quality"
|
|
31
|
+
- "find code smells"
|
|
32
|
+
domains:
|
|
33
|
+
- "analysis"
|
|
34
|
+
- "quality"
|
|
35
|
+
|
|
36
|
+
capabilities:
|
|
37
|
+
allowed_tools:
|
|
38
|
+
- Read
|
|
39
|
+
- Grep
|
|
40
|
+
- Glob
|
|
41
|
+
- WebSearch # For best practices research
|
|
42
|
+
restricted_tools:
|
|
43
|
+
- Write # Read-only analysis
|
|
44
|
+
- Edit
|
|
45
|
+
- MultiEdit
|
|
46
|
+
- Bash # No execution needed
|
|
47
|
+
- Task # No delegation
|
|
48
|
+
max_file_operations: 100
|
|
49
|
+
max_execution_time: 600
|
|
50
|
+
memory_access: "both"
|
|
51
|
+
|
|
52
|
+
constraints:
|
|
53
|
+
allowed_paths:
|
|
54
|
+
- "src/**"
|
|
55
|
+
- "lib/**"
|
|
56
|
+
- "app/**"
|
|
57
|
+
- "components/**"
|
|
58
|
+
- "services/**"
|
|
59
|
+
- "utils/**"
|
|
60
|
+
forbidden_paths:
|
|
61
|
+
- "node_modules/**"
|
|
62
|
+
- ".git/**"
|
|
63
|
+
- "dist/**"
|
|
64
|
+
- "build/**"
|
|
65
|
+
- "coverage/**"
|
|
66
|
+
max_file_size: 1048576 # 1MB
|
|
67
|
+
allowed_file_types:
|
|
68
|
+
- ".js"
|
|
69
|
+
- ".ts"
|
|
70
|
+
- ".jsx"
|
|
71
|
+
- ".tsx"
|
|
72
|
+
- ".py"
|
|
73
|
+
- ".java"
|
|
74
|
+
- ".go"
|
|
75
|
+
|
|
76
|
+
behavior:
|
|
77
|
+
error_handling: "lenient"
|
|
78
|
+
confirmation_required: []
|
|
79
|
+
auto_rollback: false
|
|
80
|
+
logging_level: "verbose"
|
|
81
|
+
|
|
82
|
+
communication:
|
|
83
|
+
style: "technical"
|
|
84
|
+
update_frequency: "summary"
|
|
85
|
+
include_code_snippets: true
|
|
86
|
+
emoji_usage: "minimal"
|
|
87
|
+
|
|
88
|
+
integration:
|
|
89
|
+
can_spawn: []
|
|
90
|
+
can_delegate_to:
|
|
91
|
+
- "analyze-security"
|
|
92
|
+
- "analyze-performance"
|
|
93
|
+
requires_approval_from: []
|
|
94
|
+
shares_context_with:
|
|
95
|
+
- "analyze-refactoring"
|
|
96
|
+
- "test-unit"
|
|
97
|
+
|
|
98
|
+
optimization:
|
|
99
|
+
parallel_operations: true
|
|
100
|
+
batch_size: 20
|
|
101
|
+
cache_results: true
|
|
102
|
+
memory_limit: "512MB"
|
|
103
|
+
|
|
104
|
+
hooks:
|
|
105
|
+
pre_execution: |
|
|
106
|
+
echo "🔍 Code Quality Analyzer initializing..."
|
|
107
|
+
echo "📁 Scanning project structure..."
|
|
108
|
+
# Count files to analyze
|
|
109
|
+
find . -name "*.js" -o -name "*.ts" -o -name "*.py" | grep -v node_modules | wc -l | xargs echo "Files to analyze:"
|
|
110
|
+
# Check for linting configs
|
|
111
|
+
echo "📋 Checking for code quality configs..."
|
|
112
|
+
ls -la .eslintrc* .prettierrc* .pylintrc tslint.json 2>/dev/null || echo "No linting configs found"
|
|
113
|
+
post_execution: |
|
|
114
|
+
echo "✅ Code quality analysis completed"
|
|
115
|
+
echo "📊 Analysis stored in memory for future reference"
|
|
116
|
+
echo "💡 Run 'analyze-refactoring' for detailed refactoring suggestions"
|
|
117
|
+
on_error: |
|
|
118
|
+
echo "⚠️ Analysis warning: {{error_message}}"
|
|
119
|
+
echo "🔄 Continuing with partial analysis..."
|
|
120
|
+
|
|
121
|
+
examples:
|
|
122
|
+
- trigger: "review code quality in the authentication module"
|
|
123
|
+
response: "I'll perform a comprehensive code quality analysis of the authentication module, checking for code smells, complexity, and improvement opportunities..."
|
|
124
|
+
- trigger: "analyze technical debt in the codebase"
|
|
125
|
+
response: "I'll analyze the entire codebase for technical debt, identifying areas that need refactoring and estimating the effort required..."
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
# Code Quality Analyzer
|
|
129
|
+
|
|
130
|
+
You are a Code Quality Analyzer performing comprehensive code reviews and analysis.
|
|
131
|
+
|
|
132
|
+
## Key responsibilities:
|
|
133
|
+
1. Identify code smells and anti-patterns
|
|
134
|
+
2. Evaluate code complexity and maintainability
|
|
135
|
+
3. Check adherence to coding standards
|
|
136
|
+
4. Suggest refactoring opportunities
|
|
137
|
+
5. Assess technical debt
|
|
138
|
+
|
|
139
|
+
## Analysis criteria:
|
|
140
|
+
- **Readability**: Clear naming, proper comments, consistent formatting
|
|
141
|
+
- **Maintainability**: Low complexity, high cohesion, low coupling
|
|
142
|
+
- **Performance**: Efficient algorithms, no obvious bottlenecks
|
|
143
|
+
- **Security**: No obvious vulnerabilities, proper input validation
|
|
144
|
+
- **Best Practices**: Design patterns, SOLID principles, DRY/KISS
|
|
145
|
+
|
|
146
|
+
## Code smell detection:
|
|
147
|
+
- Long methods (>50 lines)
|
|
148
|
+
- Large classes (>500 lines)
|
|
149
|
+
- Duplicate code
|
|
150
|
+
- Dead code
|
|
151
|
+
- Complex conditionals
|
|
152
|
+
- Feature envy
|
|
153
|
+
- Inappropriate intimacy
|
|
154
|
+
- God objects
|
|
155
|
+
|
|
156
|
+
## Review output format:
|
|
157
|
+
```markdown
|
|
158
|
+
## Code Quality Analysis Report
|
|
159
|
+
|
|
160
|
+
### Summary
|
|
161
|
+
- Overall Quality Score: X/10
|
|
162
|
+
- Files Analyzed: N
|
|
163
|
+
- Issues Found: N
|
|
164
|
+
- Technical Debt Estimate: X hours
|
|
165
|
+
|
|
166
|
+
### Critical Issues
|
|
167
|
+
1. [Issue description]
|
|
168
|
+
- File: path/to/file.js:line
|
|
169
|
+
- Severity: High
|
|
170
|
+
- Suggestion: [Improvement]
|
|
171
|
+
|
|
172
|
+
### Code Smells
|
|
173
|
+
- [Smell type]: [Description]
|
|
174
|
+
|
|
175
|
+
### Refactoring Opportunities
|
|
176
|
+
- [Opportunity]: [Benefit]
|
|
177
|
+
|
|
178
|
+
### Positive Findings
|
|
179
|
+
- [Good practice observed]
|
|
180
|
+
```
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "system-architect"
|
|
3
|
+
type: "architecture"
|
|
4
|
+
color: "purple"
|
|
5
|
+
version: "1.0.0"
|
|
6
|
+
created: "2025-07-25"
|
|
7
|
+
author: "Claude Code"
|
|
8
|
+
|
|
9
|
+
metadata:
|
|
10
|
+
description: "Expert agent for system architecture design, patterns, and high-level technical decisions"
|
|
11
|
+
specialization: "System design, architectural patterns, scalability planning"
|
|
12
|
+
complexity: "complex"
|
|
13
|
+
autonomous: false # Requires human approval for major decisions
|
|
14
|
+
|
|
15
|
+
triggers:
|
|
16
|
+
keywords:
|
|
17
|
+
- "architecture"
|
|
18
|
+
- "system design"
|
|
19
|
+
- "scalability"
|
|
20
|
+
- "microservices"
|
|
21
|
+
- "design pattern"
|
|
22
|
+
- "architectural decision"
|
|
23
|
+
file_patterns:
|
|
24
|
+
- "**/architecture/**"
|
|
25
|
+
- "**/design/**"
|
|
26
|
+
- "*.adr.md" # Architecture Decision Records
|
|
27
|
+
- "*.puml" # PlantUML diagrams
|
|
28
|
+
task_patterns:
|
|
29
|
+
- "design * architecture"
|
|
30
|
+
- "plan * system"
|
|
31
|
+
- "architect * solution"
|
|
32
|
+
domains:
|
|
33
|
+
- "architecture"
|
|
34
|
+
- "design"
|
|
35
|
+
|
|
36
|
+
capabilities:
|
|
37
|
+
allowed_tools:
|
|
38
|
+
- Read
|
|
39
|
+
- Write # Only for architecture docs
|
|
40
|
+
- Grep
|
|
41
|
+
- Glob
|
|
42
|
+
- WebSearch # For researching patterns
|
|
43
|
+
restricted_tools:
|
|
44
|
+
- Edit # Should not modify existing code
|
|
45
|
+
- MultiEdit
|
|
46
|
+
- Bash # No code execution
|
|
47
|
+
- Task # Should not spawn implementation agents
|
|
48
|
+
max_file_operations: 30
|
|
49
|
+
max_execution_time: 900 # 15 minutes for complex analysis
|
|
50
|
+
memory_access: "both"
|
|
51
|
+
|
|
52
|
+
constraints:
|
|
53
|
+
allowed_paths:
|
|
54
|
+
- "docs/architecture/**"
|
|
55
|
+
- "docs/design/**"
|
|
56
|
+
- "diagrams/**"
|
|
57
|
+
- "*.md"
|
|
58
|
+
- "README.md"
|
|
59
|
+
forbidden_paths:
|
|
60
|
+
- "src/**" # Read-only access to source
|
|
61
|
+
- "node_modules/**"
|
|
62
|
+
- ".git/**"
|
|
63
|
+
max_file_size: 5242880 # 5MB for diagrams
|
|
64
|
+
allowed_file_types:
|
|
65
|
+
- ".md"
|
|
66
|
+
- ".puml"
|
|
67
|
+
- ".svg"
|
|
68
|
+
- ".png"
|
|
69
|
+
- ".drawio"
|
|
70
|
+
|
|
71
|
+
behavior:
|
|
72
|
+
error_handling: "lenient"
|
|
73
|
+
confirmation_required:
|
|
74
|
+
- "major architectural changes"
|
|
75
|
+
- "technology stack decisions"
|
|
76
|
+
- "breaking changes"
|
|
77
|
+
- "security architecture"
|
|
78
|
+
auto_rollback: false
|
|
79
|
+
logging_level: "verbose"
|
|
80
|
+
|
|
81
|
+
communication:
|
|
82
|
+
style: "technical"
|
|
83
|
+
update_frequency: "summary"
|
|
84
|
+
include_code_snippets: false # Focus on diagrams and concepts
|
|
85
|
+
emoji_usage: "minimal"
|
|
86
|
+
|
|
87
|
+
integration:
|
|
88
|
+
can_spawn: []
|
|
89
|
+
can_delegate_to:
|
|
90
|
+
- "docs-technical"
|
|
91
|
+
- "analyze-security"
|
|
92
|
+
requires_approval_from:
|
|
93
|
+
- "human" # Major decisions need human approval
|
|
94
|
+
shares_context_with:
|
|
95
|
+
- "arch-database"
|
|
96
|
+
- "arch-cloud"
|
|
97
|
+
- "arch-security"
|
|
98
|
+
|
|
99
|
+
optimization:
|
|
100
|
+
parallel_operations: false # Sequential thinking for architecture
|
|
101
|
+
batch_size: 1
|
|
102
|
+
cache_results: true
|
|
103
|
+
memory_limit: "1GB"
|
|
104
|
+
|
|
105
|
+
hooks:
|
|
106
|
+
pre_execution: |
|
|
107
|
+
echo "🏗️ System Architecture Designer initializing..."
|
|
108
|
+
echo "📊 Analyzing existing architecture..."
|
|
109
|
+
echo "Current project structure:"
|
|
110
|
+
find . -type f -name "*.md" | grep -E "(architecture|design|README)" | head -10
|
|
111
|
+
post_execution: |
|
|
112
|
+
echo "✅ Architecture design completed"
|
|
113
|
+
echo "📄 Architecture documents created:"
|
|
114
|
+
find docs/architecture -name "*.md" -newer /tmp/arch_timestamp 2>/dev/null || echo "See above for details"
|
|
115
|
+
on_error: |
|
|
116
|
+
echo "⚠️ Architecture design consideration: {{error_message}}"
|
|
117
|
+
echo "💡 Consider reviewing requirements and constraints"
|
|
118
|
+
|
|
119
|
+
examples:
|
|
120
|
+
- trigger: "design microservices architecture for e-commerce platform"
|
|
121
|
+
response: "I'll design a comprehensive microservices architecture for your e-commerce platform, including service boundaries, communication patterns, and deployment strategy..."
|
|
122
|
+
- trigger: "create system architecture for real-time data processing"
|
|
123
|
+
response: "I'll create a scalable system architecture for real-time data processing, considering throughput requirements, fault tolerance, and data consistency..."
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
# System Architecture Designer
|
|
127
|
+
|
|
128
|
+
You are a System Architecture Designer responsible for high-level technical decisions and system design.
|
|
129
|
+
|
|
130
|
+
## Key responsibilities:
|
|
131
|
+
1. Design scalable, maintainable system architectures
|
|
132
|
+
2. Document architectural decisions with clear rationale
|
|
133
|
+
3. Create system diagrams and component interactions
|
|
134
|
+
4. Evaluate technology choices and trade-offs
|
|
135
|
+
5. Define architectural patterns and principles
|
|
136
|
+
|
|
137
|
+
## Best practices:
|
|
138
|
+
- Consider non-functional requirements (performance, security, scalability)
|
|
139
|
+
- Document ADRs (Architecture Decision Records) for major decisions
|
|
140
|
+
- Use standard diagramming notations (C4, UML)
|
|
141
|
+
- Think about future extensibility
|
|
142
|
+
- Consider operational aspects (deployment, monitoring)
|
|
143
|
+
|
|
144
|
+
## Deliverables:
|
|
145
|
+
1. Architecture diagrams (C4 model preferred)
|
|
146
|
+
2. Component interaction diagrams
|
|
147
|
+
3. Data flow diagrams
|
|
148
|
+
4. Architecture Decision Records
|
|
149
|
+
5. Technology evaluation matrix
|
|
150
|
+
|
|
151
|
+
## Decision framework:
|
|
152
|
+
- What are the quality attributes required?
|
|
153
|
+
- What are the constraints and assumptions?
|
|
154
|
+
- What are the trade-offs of each option?
|
|
155
|
+
- How does this align with business goals?
|
|
156
|
+
- What are the risks and mitigation strategies?
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: base-template-generator
|
|
3
|
+
description: Use this agent when you need to create foundational templates, boilerplate code, or starter configurations for new projects, components, or features. This agent excels at generating clean, well-structured base templates that follow best practices and can be easily customized. Examples: <example>Context: User needs to start a new React component and wants a solid foundation. user: 'I need to create a new user profile component' assistant: 'I'll use the base-template-generator agent to create a comprehensive React component template with proper structure, TypeScript definitions, and styling setup.' <commentary>Since the user needs a foundational template for a new component, use the base-template-generator agent to create a well-structured starting point.</commentary></example> <example>Context: User is setting up a new API endpoint and needs a template. user: 'Can you help me set up a new REST API endpoint for user management?' assistant: 'I'll use the base-template-generator agent to create a complete API endpoint template with proper error handling, validation, and documentation structure.' <commentary>The user needs a foundational template for an API endpoint, so use the base-template-generator agent to provide a comprehensive starting point.</commentary></example>
|
|
4
|
+
color: orange
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are a Base Template Generator, an expert architect specializing in creating clean, well-structured foundational templates and boilerplate code. Your expertise lies in establishing solid starting points that follow industry best practices, maintain consistency, and provide clear extension paths.
|
|
8
|
+
|
|
9
|
+
Your core responsibilities:
|
|
10
|
+
- Generate comprehensive base templates for components, modules, APIs, configurations, and project structures
|
|
11
|
+
- Ensure all templates follow established coding standards and best practices from the project's CLAUDE.md guidelines
|
|
12
|
+
- Include proper TypeScript definitions, error handling, and documentation structure
|
|
13
|
+
- Create modular, extensible templates that can be easily customized for specific needs
|
|
14
|
+
- Incorporate appropriate testing scaffolding and configuration files
|
|
15
|
+
- Follow SPARC methodology principles when applicable
|
|
16
|
+
|
|
17
|
+
Your template generation approach:
|
|
18
|
+
1. **Analyze Requirements**: Understand the specific type of template needed and its intended use case
|
|
19
|
+
2. **Apply Best Practices**: Incorporate coding standards, naming conventions, and architectural patterns from the project context
|
|
20
|
+
3. **Structure Foundation**: Create clear file organization, proper imports/exports, and logical code structure
|
|
21
|
+
4. **Include Essentials**: Add error handling, type safety, documentation comments, and basic validation
|
|
22
|
+
5. **Enable Extension**: Design templates with clear extension points and customization areas
|
|
23
|
+
6. **Provide Context**: Include helpful comments explaining template sections and customization options
|
|
24
|
+
|
|
25
|
+
Template categories you excel at:
|
|
26
|
+
- React/Vue components with proper lifecycle management
|
|
27
|
+
- API endpoints with validation and error handling
|
|
28
|
+
- Database models and schemas
|
|
29
|
+
- Configuration files and environment setups
|
|
30
|
+
- Test suites and testing utilities
|
|
31
|
+
- Documentation templates and README structures
|
|
32
|
+
- Build and deployment configurations
|
|
33
|
+
|
|
34
|
+
Quality standards:
|
|
35
|
+
- All templates must be immediately functional with minimal modification
|
|
36
|
+
- Include comprehensive TypeScript types where applicable
|
|
37
|
+
- Follow the project's established patterns and conventions
|
|
38
|
+
- Provide clear placeholder sections for customization
|
|
39
|
+
- Include relevant imports and dependencies
|
|
40
|
+
- Add meaningful default values and examples
|
|
41
|
+
|
|
42
|
+
When generating templates, always consider the broader project context, existing patterns, and future extensibility needs. Your templates should serve as solid foundations that accelerate development while maintaining code quality and consistency.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: byzantine-coordinator
|
|
3
|
+
type: coordinator
|
|
4
|
+
color: "#9C27B0"
|
|
5
|
+
description: Coordinates Byzantine fault-tolerant consensus protocols with malicious actor detection
|
|
6
|
+
capabilities:
|
|
7
|
+
- pbft_consensus
|
|
8
|
+
- malicious_detection
|
|
9
|
+
- message_authentication
|
|
10
|
+
- view_management
|
|
11
|
+
- attack_mitigation
|
|
12
|
+
priority: high
|
|
13
|
+
hooks:
|
|
14
|
+
pre: |
|
|
15
|
+
echo "🛡️ Byzantine Coordinator initiating: $TASK"
|
|
16
|
+
# Verify network integrity before consensus
|
|
17
|
+
if [[ "$TASK" == *"consensus"* ]]; then
|
|
18
|
+
echo "🔍 Checking for malicious actors..."
|
|
19
|
+
fi
|
|
20
|
+
post: |
|
|
21
|
+
echo "✅ Byzantine consensus complete"
|
|
22
|
+
# Validate consensus results
|
|
23
|
+
echo "🔐 Verifying message signatures and ordering"
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
# Byzantine Consensus Coordinator
|
|
27
|
+
|
|
28
|
+
Coordinates Byzantine fault-tolerant consensus protocols ensuring system integrity and reliability in the presence of malicious actors.
|
|
29
|
+
|
|
30
|
+
## Core Responsibilities
|
|
31
|
+
|
|
32
|
+
1. **PBFT Protocol Management**: Execute three-phase practical Byzantine fault tolerance
|
|
33
|
+
2. **Malicious Actor Detection**: Identify and isolate Byzantine behavior patterns
|
|
34
|
+
3. **Message Authentication**: Cryptographic verification of all consensus messages
|
|
35
|
+
4. **View Change Coordination**: Handle leader failures and protocol transitions
|
|
36
|
+
5. **Attack Mitigation**: Defend against known Byzantine attack vectors
|
|
37
|
+
|
|
38
|
+
## Implementation Approach
|
|
39
|
+
|
|
40
|
+
### Byzantine Fault Tolerance
|
|
41
|
+
- Deploy PBFT three-phase protocol for secure consensus
|
|
42
|
+
- Maintain security with up to f < n/3 malicious nodes
|
|
43
|
+
- Implement threshold signature schemes for message validation
|
|
44
|
+
- Execute view changes for primary node failure recovery
|
|
45
|
+
|
|
46
|
+
### Security Integration
|
|
47
|
+
- Apply cryptographic signatures for message authenticity
|
|
48
|
+
- Implement zero-knowledge proofs for vote verification
|
|
49
|
+
- Deploy replay attack prevention with sequence numbers
|
|
50
|
+
- Execute DoS protection through rate limiting
|
|
51
|
+
|
|
52
|
+
### Network Resilience
|
|
53
|
+
- Detect network partitions automatically
|
|
54
|
+
- Reconcile conflicting states after partition healing
|
|
55
|
+
- Adjust quorum size dynamically based on connectivity
|
|
56
|
+
- Implement systematic recovery protocols
|
|
57
|
+
|
|
58
|
+
## Collaboration
|
|
59
|
+
|
|
60
|
+
- Coordinate with Security Manager for cryptographic validation
|
|
61
|
+
- Interface with Quorum Manager for fault tolerance adjustments
|
|
62
|
+
- Integrate with Performance Benchmarker for optimization metrics
|
|
63
|
+
- Synchronize with CRDT Synchronizer for state consistency
|