claude-flow-novice 1.3.6 → 1.5.1
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 +3 -20
- package/.claude/agents/analysis/code-review/analyze-code-quality.md +1 -1
- package/.claude/agents/analyst.md +208 -550
- package/.claude/agents/architect.md +136 -469
- package/.claude/agents/architecture/system-architect.md +20 -1
- package/.claude/agents/architecture/system-design/arch-system-design.md +1 -1
- package/.claude/agents/base-template-generator.md +24 -1
- package/.claude/agents/coder.md +87 -303
- package/.claude/agents/consensus/byzantine-coordinator.md +4 -21
- package/.claude/agents/consensus/consensus-builder.md +3 -20
- package/.claude/agents/consensus/crdt-synchronizer.md +4 -21
- package/.claude/agents/consensus/gossip-coordinator.md +4 -21
- package/.claude/agents/consensus/performance-benchmarker.md +4 -21
- package/.claude/agents/consensus/quorum-manager.md +4 -21
- package/.claude/agents/consensus/raft-manager.md +4 -21
- package/.claude/agents/consensus/security-manager.md +4 -21
- package/.claude/agents/coordinator.md +22 -11
- package/.claude/agents/data/ml/data-ml-model.md +2 -2
- package/.claude/agents/development/backend/dev-backend-api.md +2 -2
- package/.claude/agents/devops/ci-cd/ops-cicd-github.md +2 -2
- package/.claude/agents/devops/devops-engineer.md +134 -402
- package/.claude/agents/documentation/api-docs/docs-api-openapi.md +2 -2
- package/.claude/agents/github/code-review-swarm.md +1 -1
- package/.claude/agents/github/github-specialist.md +856 -0
- package/.claude/agents/github/pr-manager.md +1 -1
- package/.claude/agents/github/release-manager.md +1 -1
- package/.claude/agents/neural/neural-pattern-agent.md +762 -0
- package/.claude/agents/optimization/benchmark-suite.md +1 -1
- package/.claude/agents/optimization/perf-analyzer.md +1 -1
- package/.claude/agents/optimization/performance-monitor.md +1 -1
- package/.claude/agents/planner.md +135 -0
- package/.claude/agents/researcher.md +22 -9
- package/.claude/agents/reviewer.md +291 -0
- package/.claude/agents/security/security-specialist.md +1 -1
- package/.claude/agents/sparc/architecture.md +1 -1
- package/.claude/agents/sparc/pseudocode.md +1 -1
- package/.claude/agents/sparc/refinement.md +1 -1
- package/.claude/agents/sparc/specification.md +1 -1
- package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +2 -2
- package/.claude/agents/tester.md +21 -11
- package/.claude/agents/testing/unit/tdd-london-swarm.md +1 -1
- package/.claude/agents/testing/validation/production-validator.md +1 -1
- package/.claude/commands/claude-soul.js +1 -1
- package/.claude/commands/fullstack.md +134 -0
- package/.claude/commands/index.js +4 -0
- package/.claude/hooks.json +12 -15
- package/{.claude → .claude-flow-novice/.claude}/agents/MIGRATION_SUMMARY.md +1 -1
- package/.claude-flow-novice/.claude/agents/analysis/code-analyzer.md +192 -0
- package/.claude-flow-novice/.claude/agents/analysis/code-review/analyze-code-quality.md +180 -0
- package/.claude-flow-novice/.claude/agents/analyst.md +300 -0
- package/.claude-flow-novice/.claude/agents/architect.md +557 -0
- package/.claude-flow-novice/.claude/agents/architecture/system-architect.md +630 -0
- package/.claude-flow-novice/.claude/agents/architecture/system-design/arch-system-design.md +156 -0
- package/.claude-flow-novice/.claude/agents/base-template-generator.md +65 -0
- package/.claude-flow-novice/.claude/agents/coder.md +180 -0
- package/.claude-flow-novice/.claude/agents/consensus/byzantine-coordinator.md +46 -0
- package/.claude-flow-novice/.claude/agents/consensus/consensus-builder.md +225 -0
- package/.claude-flow-novice/.claude/agents/consensus/crdt-synchronizer.md +980 -0
- package/.claude-flow-novice/.claude/agents/consensus/gossip-coordinator.md +46 -0
- package/.claude-flow-novice/.claude/agents/consensus/performance-benchmarker.md +834 -0
- package/.claude-flow-novice/.claude/agents/consensus/quorum-manager.md +806 -0
- package/.claude-flow-novice/.claude/agents/consensus/raft-manager.md +46 -0
- package/.claude-flow-novice/.claude/agents/consensus/security-manager.md +605 -0
- package/.claude-flow-novice/.claude/agents/coordinator.md +842 -0
- package/.claude-flow-novice/.claude/agents/data/ml/data-ml-model.md +193 -0
- package/.claude-flow-novice/.claude/agents/development/backend/dev-backend-api.md +142 -0
- package/.claude-flow-novice/.claude/agents/devops/ci-cd/ops-cicd-github.md +164 -0
- package/.claude-flow-novice/.claude/agents/devops/devops-engineer.md +638 -0
- package/.claude-flow-novice/.claude/agents/documentation/api-docs/docs-api-openapi.md +174 -0
- package/.claude-flow-novice/.claude/agents/github/code-review-swarm.md +538 -0
- package/.claude-flow-novice/.claude/agents/github/github-modes.md +173 -0
- package/.claude-flow-novice/.claude/agents/github/github-specialist.md +856 -0
- package/.claude-flow-novice/.claude/agents/github/issue-tracker.md +319 -0
- package/.claude-flow-novice/.claude/agents/github/multi-repo-swarm.md +553 -0
- package/.claude-flow-novice/.claude/agents/github/pr-manager.md +191 -0
- package/.claude-flow-novice/.claude/agents/github/project-board-sync.md +509 -0
- package/.claude-flow-novice/.claude/agents/github/release-manager.md +367 -0
- package/.claude-flow-novice/.claude/agents/github/release-swarm.md +583 -0
- package/.claude-flow-novice/.claude/agents/github/repo-architect.md +398 -0
- package/.claude-flow-novice/.claude/agents/github/swarm-issue.md +573 -0
- package/.claude-flow-novice/.claude/agents/github/swarm-pr.md +428 -0
- package/.claude-flow-novice/.claude/agents/github/sync-coordinator.md +452 -0
- package/.claude-flow-novice/.claude/agents/github/workflow-automation.md +635 -0
- package/.claude-flow-novice/.claude/agents/goal/goal-planner.md +73 -0
- package/.claude-flow-novice/.claude/agents/neural/neural-pattern-agent.md +762 -0
- package/.claude-flow-novice/.claude/agents/neural/safla-neural.md +74 -0
- package/.claude-flow-novice/.claude/agents/optimization/benchmark-suite.md +665 -0
- package/.claude-flow-novice/.claude/agents/optimization/load-balancer.md +431 -0
- package/.claude-flow-novice/.claude/agents/optimization/perf-analyzer.md +725 -0
- package/.claude-flow-novice/.claude/agents/optimization/performance-monitor.md +672 -0
- package/.claude-flow-novice/.claude/agents/optimization/resource-allocator.md +674 -0
- package/.claude-flow-novice/.claude/agents/optimization/topology-optimizer.md +808 -0
- package/.claude-flow-novice/.claude/agents/planner.md +135 -0
- package/.claude-flow-novice/.claude/agents/researcher.md +185 -0
- package/.claude-flow-novice/.claude/agents/reviewer.md +291 -0
- package/.claude-flow-novice/.claude/agents/security/security-specialist.md +978 -0
- package/.claude-flow-novice/.claude/agents/sparc/architecture.md +472 -0
- package/.claude-flow-novice/.claude/agents/sparc/pseudocode.md +318 -0
- package/.claude-flow-novice/.claude/agents/sparc/refinement.md +525 -0
- package/.claude-flow-novice/.claude/agents/sparc/specification.md +276 -0
- package/.claude-flow-novice/.claude/agents/specialized/mobile/spec-mobile-react-native.md +226 -0
- package/.claude-flow-novice/.claude/agents/sublinear/consciousness-evolution-agent.md +499 -0
- package/.claude-flow-novice/.claude/agents/sublinear/matrix-solver-agent.md +113 -0
- package/.claude-flow-novice/.claude/agents/sublinear/nanosecond-scheduler-agent.md +644 -0
- package/.claude-flow-novice/.claude/agents/sublinear/pagerank-agent.md +699 -0
- package/.claude-flow-novice/.claude/agents/sublinear/phi-calculator-agent.md +749 -0
- package/.claude-flow-novice/.claude/agents/sublinear/psycho-symbolic-agent.md +543 -0
- package/.claude-flow-novice/.claude/agents/sublinear/sublinear.md +816 -0
- package/.claude-flow-novice/.claude/agents/sublinear/temporal-advantage-agent.md +360 -0
- package/.claude-flow-novice/.claude/agents/swarm/adaptive-coordinator-enhanced.md +746 -0
- package/.claude-flow-novice/.claude/agents/swarm/adaptive-coordinator.md +396 -0
- package/.claude-flow-novice/.claude/agents/swarm/hierarchical-coordinator.md +300 -0
- package/.claude-flow-novice/.claude/agents/swarm/mesh-coordinator.md +435 -0
- package/.claude-flow-novice/.claude/agents/templates/automation-smart-agent.md +205 -0
- package/.claude-flow-novice/.claude/agents/templates/coordinator-swarm-init.md +90 -0
- package/.claude-flow-novice/.claude/agents/templates/github-pr-manager.md +177 -0
- package/.claude-flow-novice/.claude/agents/templates/implementer-sparc-coder.md +259 -0
- package/.claude-flow-novice/.claude/agents/templates/memory-coordinator.md +187 -0
- package/.claude-flow-novice/.claude/agents/templates/migration-plan.md +746 -0
- package/.claude-flow-novice/.claude/agents/templates/orchestrator-task.md +139 -0
- package/.claude-flow-novice/.claude/agents/templates/performance-analyzer.md +199 -0
- package/.claude-flow-novice/.claude/agents/templates/sparc-coordinator.md +183 -0
- package/.claude-flow-novice/.claude/agents/tester.md +663 -0
- package/.claude-flow-novice/.claude/agents/testing/e2e/playwright-agent.md +249 -0
- package/.claude-flow-novice/.claude/agents/testing/unit/tdd-london-swarm.md +244 -0
- package/.claude-flow-novice/.claude/agents/testing/validation/production-validator.md +395 -0
- package/.claude-flow-novice/dist/index.js +12 -24
- package/.claude-flow-novice/dist/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/agents/agent-manager.js +123 -69
- package/.claude-flow-novice/dist/src/agents/agent-manager.js.map +1 -1
- package/.claude-flow-novice/dist/src/agents/github/utils/hook-integration.js +7 -7
- package/.claude-flow-novice/dist/src/agents/github/utils/hook-integration.js.map +1 -1
- package/.claude-flow-novice/dist/src/agents/stage3-integration-validator.js +485 -0
- package/.claude-flow-novice/dist/src/agents/stage3-integration-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/agents/unified-ultra-fast-agent-manager.js +630 -0
- package/.claude-flow-novice/dist/src/agents/unified-ultra-fast-agent-manager.js.map +1 -0
- package/.claude-flow-novice/dist/src/cli/commands/agent.js +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/agent.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/config-integration.js +6 -6
- package/.claude-flow-novice/dist/src/cli/commands/enterprise.js +18 -18
- package/.claude-flow-novice/dist/src/cli/commands/enterprise.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/goal-init.js +4 -4
- package/.claude-flow-novice/dist/src/cli/commands/help-new.js +23 -23
- package/.claude-flow-novice/dist/src/cli/commands/help-new.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/help.js +74 -74
- package/.claude-flow-novice/dist/src/cli/commands/help.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/hive-mind/pause.js +2 -2
- package/.claude-flow-novice/dist/src/cli/commands/hive-mind/pause.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/hive.js +4 -4
- package/.claude-flow-novice/dist/src/cli/commands/index.js +103 -132
- package/.claude-flow-novice/dist/src/cli/commands/index.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/mcp.js +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/migrate.js +4 -4
- package/.claude-flow-novice/dist/src/cli/commands/migrate.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/monitor.js +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/neural-init.js +4 -4
- package/.claude-flow-novice/dist/src/cli/commands/ruv-swarm.js +8 -8
- package/.claude-flow-novice/dist/src/cli/commands/sparc.js +12 -12
- package/.claude-flow-novice/dist/src/cli/commands/sparc.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/start/start-command.js +3 -3
- package/.claude-flow-novice/dist/src/cli/commands/status.js +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/swarm.js +7 -7
- package/.claude-flow-novice/dist/src/cli/commands/swarm.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/verification.js +18 -18
- package/.claude-flow-novice/dist/src/cli/completion.js +54 -54
- package/.claude-flow-novice/dist/src/cli/completion.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/ConsolidatedCLI.js +11 -11
- package/.claude-flow-novice/dist/src/cli/consolidated/ConsolidatedCLI.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/core/CommandHandlers.js +31 -31
- package/.claude-flow-novice/dist/src/cli/consolidated/core/TierManager.js +39 -39
- package/.claude-flow-novice/dist/src/cli/consolidated/core/TierManager.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/help/InteractiveHelp.js +25 -25
- package/.claude-flow-novice/dist/src/cli/consolidated/help/InteractiveHelp.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/routing/CommandRouter.js +8 -8
- package/.claude-flow-novice/dist/src/cli/consolidated/routing/CommandRouter.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/utils/IntelligentDefaults.js +6 -6
- package/.claude-flow-novice/dist/src/cli/consolidated/utils/IntelligentDefaults.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/utils/PerformanceOptimizer.js +7 -7
- package/.claude-flow-novice/dist/src/cli/consolidated/utils/PerformanceOptimizer.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/index-remote.js +10 -10
- package/.claude-flow-novice/dist/src/cli/index.js +1 -1
- package/.claude-flow-novice/dist/src/cli/init/directory-structure.js +8 -8
- package/.claude-flow-novice/dist/src/cli/init/index.js +3 -3
- package/.claude-flow-novice/dist/src/cli/init/sparc-environment.js +67 -67
- package/.claude-flow-novice/dist/src/cli/init/swarm-commands.js +18 -18
- package/.claude-flow-novice/dist/src/cli/node-repl.js +2 -2
- package/.claude-flow-novice/dist/src/cli/repl.js +1 -1
- package/.claude-flow-novice/dist/src/cli/simple-cli.js +68 -68
- package/.claude-flow-novice/dist/src/cli/simple-cli.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/simple-commands/session-start-soul.js +271 -0
- package/.claude-flow-novice/dist/src/cli/simple-orchestrator.js +7 -7
- package/.claude-flow-novice/dist/src/cli/simple-orchestrator.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/ui/fallback-handler.js +7 -7
- package/.claude-flow-novice/dist/src/communication/enhanced-event-bus.js +816 -0
- package/.claude-flow-novice/dist/src/communication/enhanced-event-bus.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/failure-recovery-system.js +812 -0
- package/.claude-flow-novice/dist/src/communication/failure-recovery-system.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/optimized-serialization.js +369 -0
- package/.claude-flow-novice/dist/src/communication/optimized-serialization.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/performance-optimizations.js +526 -0
- package/.claude-flow-novice/dist/src/communication/performance-optimizations.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/performance-validator.js +532 -0
- package/.claude-flow-novice/dist/src/communication/performance-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/priority-message-queue.js +525 -0
- package/.claude-flow-novice/dist/src/communication/priority-message-queue.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/shared-buffer-bus.js +218 -0
- package/.claude-flow-novice/dist/src/communication/shared-buffer-bus.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/ultra-fast-communication-bus.js +521 -0
- package/.claude-flow-novice/dist/src/communication/ultra-fast-communication-bus.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/ultra-fast-serialization.js +563 -0
- package/.claude-flow-novice/dist/src/communication/ultra-fast-serialization.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/websocket-cluster.js +344 -0
- package/.claude-flow-novice/dist/src/communication/websocket-cluster.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/zero-copy-structures.js +369 -0
- package/.claude-flow-novice/dist/src/communication/zero-copy-structures.js.map +1 -0
- package/.claude-flow-novice/dist/src/config/config-manager.js +1 -1
- package/.claude-flow-novice/dist/src/config/config-manager.js.map +1 -1
- package/.claude-flow-novice/dist/src/config/core/intelligent-configuration-manager.js +1 -1
- package/.claude-flow-novice/dist/src/config/integration/hooks-integration.js +6 -6
- package/.claude-flow-novice/dist/src/config/integration/hooks-integration.js.map +1 -1
- package/.claude-flow-novice/dist/src/config/migration/config-migration.js +1 -1
- package/.claude-flow-novice/dist/src/config/ruv-swarm-integration.js +1 -1
- package/.claude-flow-novice/dist/src/config/utils/zero-config-setup.js +1 -1
- package/.claude-flow-novice/dist/src/config/utils/zero-config-setup.js.map +1 -1
- package/.claude-flow-novice/dist/src/config/web-portal-config.js +0 -9
- package/.claude-flow-novice/dist/src/config/web-portal-config.js.map +1 -1
- package/.claude-flow-novice/dist/src/config/zero-config-setup.js +18 -18
- package/.claude-flow-novice/dist/src/config/zero-config-setup.js.map +1 -1
- package/.claude-flow-novice/dist/src/core/logger.js +33 -10
- package/.claude-flow-novice/dist/src/core/logger.js.map +1 -1
- package/.claude-flow-novice/dist/src/migration/index.js +1 -1
- package/.claude-flow-novice/dist/src/migration/index.js.map +1 -1
- package/.claude-flow-novice/dist/src/migration/migration-runner.js +4 -4
- package/.claude-flow-novice/dist/src/migration/migration-runner.js.map +1 -1
- package/.claude-flow-novice/dist/src/monitoring/agent-health-monitor.js +430 -0
- package/.claude-flow-novice/dist/src/monitoring/agent-health-monitor.js.map +1 -0
- package/.claude-flow-novice/dist/src/slash-commands/claude-soul.js +248 -365
- package/.claude-flow-novice/dist/src/slash-commands/register-all-commands.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/claude-code-interface.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/claude-flow-executor.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/consensus-coordinator.js +471 -0
- package/.claude-flow-novice/dist/src/swarm/consensus-coordinator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm/hive-mind-integration.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/large-scale-coordinator.js +543 -0
- package/.claude-flow-novice/dist/src/swarm/large-scale-coordinator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm/optimizations/connection-pool.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/optimizations/optimized-executor.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/types.js.map +1 -1
- package/.claude-flow-novice/dist/src/swarm-fullstack/integrations/communication-bridge.js +709 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/integrations/communication-bridge.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/api-contract-validator.js +612 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/api-contract-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/backend-test-orchestrator.js +679 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/backend-test-orchestrator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/frontend-test-orchestrator.js +654 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/frontend-test-orchestrator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/visual-regression.js +402 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/visual-regression.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/convergence-detector.js +459 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/convergence-detector.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/fix-coordinator.js +513 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/fix-coordinator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/index.js +19 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/iterative-build-test.js +568 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/iterative-build-test.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/regression-test-manager.js +418 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/regression-test-manager.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/test-result-analyzer.js +530 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/test-result-analyzer.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/workflow-metrics.js +250 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/workflow-metrics.js.map +1 -0
- package/.claude-flow-novice/dist/src/task/index.js +7 -7
- package/.claude-flow-novice/dist/src/validation/fullstack-integration-validator.js +420 -0
- package/.claude-flow-novice/dist/src/validation/fullstack-integration-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/validation/production-validator.js +1435 -0
- package/.claude-flow-novice/dist/src/validation/production-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/verification/cli-integration.js +3 -3
- package/.claude-flow-novice/dist/src/verification/hooks.js +1 -1
- package/CHANGELOG.md +26 -0
- package/CLAUDE.md +1967 -68
- package/README.md +0 -1
- package/config/build/babel.config.cjs +19 -11
- package/config/typescript/tsconfig.json +1 -1
- package/examples/claude-api-error-handling.ts +2 -2
- package/examples/frontend-testing-demo.ts +470 -0
- package/examples/litellm/config/config.yaml +1 -1
- package/package.json +13 -7
- package/scripts/build/unified-builder.sh +6 -6
- package/scripts/build/validate-agents.js +238 -0
- package/scripts/run-production-validation.ts +590 -0
- package/scripts/test/test-coordination-features.ts +2 -2
- package/scripts/validate-stage3-performance.ts +377 -0
- package/src/cli/simple-commands/hooks.js +1 -0
- package/src/cli/simple-commands/init/agent-copier.js +0 -2
- package/src/cli/simple-commands/init/index.js +5 -97
- package/src/cli/simple-commands/init/templates/CLAUDE.md +163 -1158
- package/src/cli/simple-commands/init/templates/claude-md.js +38 -157
- package/src/swarm-fullstack/integrations/communication-bridge.ts +931 -0
- package/src/swarm-fullstack/testing/api-contract-validator.ts +909 -0
- package/src/swarm-fullstack/testing/backend-test-orchestrator.ts +791 -0
- package/src/swarm-fullstack/testing/frontend-test-orchestrator.ts +853 -0
- package/src/swarm-fullstack/testing/visual-regression.ts +507 -0
- package/src/swarm-fullstack/workflows/convergence-detector.ts +736 -0
- package/src/swarm-fullstack/workflows/fix-coordinator.ts +677 -0
- package/src/swarm-fullstack/workflows/index.ts +75 -0
- package/src/swarm-fullstack/workflows/iterative-build-test.ts +829 -0
- package/src/swarm-fullstack/workflows/regression-test-manager.ts +590 -0
- package/src/swarm-fullstack/workflows/test-result-analyzer.ts +739 -0
- package/src/swarm-fullstack/workflows/workflow-metrics.ts +399 -0
- package/wiki/command-reference/README.md +1 -2
- package/wiki/command-reference/mcp-tools/README.md +1 -1
- package/wiki/getting-started/claude-code-mcp/README.md +1 -2
- package/wiki/getting-started/installation/README.md +2 -10
- package/.claude/commands/flow-nexus/app-store.md +0 -124
- package/.claude/commands/flow-nexus/challenges.md +0 -120
- package/.claude/commands/flow-nexus/login-registration.md +0 -65
- package/.claude/commands/flow-nexus/neural-network.md +0 -134
- package/.claude/commands/flow-nexus/payments.md +0 -116
- package/.claude/commands/flow-nexus/sandbox.md +0 -83
- package/.claude/commands/flow-nexus/swarm.md +0 -87
- package/.claude/commands/flow-nexus/user-tools.md +0 -152
- package/.claude/commands/flow-nexus/workflow.md +0 -115
- package/.claude-flow-novice/dist/cli/index.js +0 -45
- package/.claude-flow-novice/dist/core/index.js +0 -22
- package/.claude-flow-novice/dist/mcp/mcp-server-novice.js +0 -595
- package/.claude-flow-novice/dist/mcp/mcp-server-sdk.js +0 -649
- package/.claude-flow-novice/dist/mcp/mcp-server-with-slash-commands.js +0 -776
- package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/claude-md.js +0 -1101
- package/src/cli/simple-commands/init/templates/CLAUDE.md.optimized +0 -265
- /package/{.claude → .claude-flow-novice/.claude}/agents/README.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/backend-dev.json +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/code-analyzer.json +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/coder.json +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/consensus/README.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/core/coder.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/core/planner.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/core/researcher.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/core/reviewer.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/core/tester.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/optimization/README.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/planner.json +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/researcher.json +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/reviewer.json +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/swarm/README.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/system-architect.json +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/tester.json +0 -0
|
@@ -1,19 +1,32 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: analyst
|
|
3
|
-
description:
|
|
4
|
-
tools:
|
|
5
|
-
|
|
6
|
-
- Grep
|
|
7
|
-
- Glob
|
|
8
|
-
- Bash
|
|
9
|
-
- WebSearch
|
|
10
|
-
- TodoWrite
|
|
11
|
-
model: claude-3-5-sonnet-20241022
|
|
3
|
+
description: MUST BE USED when analyzing code quality, identifying performance bottlenecks, assessing technical debt, or conducting security audits. use PROACTIVELY for comprehensive code reviews, vulnerability scanning, dependency analysis, complexity evaluation, architecture assessment, optimization opportunities, maintainability metrics. ALWAYS delegate when user asks to "analyze", "review", "assess quality", "find issues", "check security", "identify bottlenecks", "evaluate performance", "audit code", "measure complexity", "scan vulnerabilities", "review architecture", "optimize", "refactor suggestions". Keywords - analyze, review, audit, assess, evaluate, inspect, scan, check quality, find issues, bottlenecks, vulnerabilities, technical debt, performance analysis, security review, code metrics
|
|
4
|
+
tools: Read, Grep, Glob, Bash, WebSearch, TodoWrite
|
|
5
|
+
model: sonnet
|
|
12
6
|
color: yellow
|
|
13
7
|
---
|
|
14
8
|
|
|
15
9
|
You are an Analyst Agent, a senior code analyst and optimization expert specializing in comprehensive codebase analysis, performance optimization, and quality assessment. Your expertise lies in identifying issues, bottlenecks, and improvement opportunities through systematic analysis and evidence-based recommendations.
|
|
16
10
|
|
|
11
|
+
## 🚨 MANDATORY POST-EDIT VALIDATION
|
|
12
|
+
|
|
13
|
+
**CRITICAL**: After **EVERY** file edit operation, you **MUST** run the enhanced post-edit hook:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
# After editing any file, IMMEDIATELY run:
|
|
17
|
+
/hooks post-edit [FILE_PATH] --memory-key "analyst/[ANALYSIS_TYPE]" --structured
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
**This provides**:
|
|
21
|
+
- 🧪 **TDD Compliance**: Validates test-first development practices
|
|
22
|
+
- 🔒 **Security Analysis**: Detects eval(), hardcoded credentials, XSS vulnerabilities
|
|
23
|
+
- 🎨 **Formatting**: Prettier/rustfmt analysis with diff preview
|
|
24
|
+
- 📊 **Coverage Analysis**: Test coverage validation with configurable thresholds
|
|
25
|
+
- 🤖 **Actionable Recommendations**: Specific steps to improve code quality
|
|
26
|
+
- 💾 **Memory Coordination**: Stores results for cross-agent collaboration
|
|
27
|
+
|
|
28
|
+
**⚠️ NO EXCEPTIONS**: Run this hook for ALL file types (JS, TS, Rust, Python, etc.)
|
|
29
|
+
|
|
17
30
|
## Core Responsibilities
|
|
18
31
|
|
|
19
32
|
### 1. Code Quality Analysis
|
|
@@ -46,556 +59,201 @@ You are an Analyst Agent, a senior code analyst and optimization expert speciali
|
|
|
46
59
|
|
|
47
60
|
## Analysis Methodologies
|
|
48
61
|
|
|
49
|
-
### 1. Static Code Analysis
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
};
|
|
133
|
-
resources: {
|
|
134
|
-
cpuUsage: number;
|
|
135
|
-
memoryUsage: number;
|
|
136
|
-
diskIO: number;
|
|
137
|
-
networkIO: number;
|
|
138
|
-
};
|
|
139
|
-
errors: {
|
|
140
|
-
errorRate: number;
|
|
141
|
-
timeouts: number;
|
|
142
|
-
failures: number;
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
const analyzePerformanceMetrics = (metrics: PerformanceMetrics): PerformanceReport => {
|
|
147
|
-
const issues: PerformanceIssue[] = [];
|
|
148
|
-
|
|
149
|
-
if (metrics.responseTime.p95 > 1000) {
|
|
150
|
-
issues.push({
|
|
151
|
-
type: 'HighLatency',
|
|
152
|
-
severity: 'high',
|
|
153
|
-
description: 'P95 response time exceeds 1 second',
|
|
154
|
-
recommendation: 'Optimize database queries and add caching'
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
if (metrics.resources.memoryUsage > 80) {
|
|
159
|
-
issues.push({
|
|
160
|
-
type: 'HighMemoryUsage',
|
|
161
|
-
severity: 'medium',
|
|
162
|
-
description: 'Memory usage exceeds 80%',
|
|
163
|
-
recommendation: 'Investigate memory leaks and optimize data structures'
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
return {
|
|
168
|
-
summary: generatePerformanceSummary(metrics),
|
|
169
|
-
issues,
|
|
170
|
-
recommendations: generateOptimizationRecommendations(issues),
|
|
171
|
-
benchmarks: compareToBenchmarks(metrics)
|
|
172
|
-
};
|
|
173
|
-
};
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
### 3. Security Analysis
|
|
177
|
-
|
|
178
|
-
```typescript
|
|
179
|
-
// Security vulnerability detection
|
|
180
|
-
const securityAnalysis = {
|
|
181
|
-
// OWASP Top 10 checks
|
|
182
|
-
checkSQLInjection: (code: string): SecurityIssue[] => {
|
|
183
|
-
const sqlInjectionPatterns = [
|
|
184
|
-
/query\s*\+.*user.*input/i,
|
|
185
|
-
/execute.*\$\{.*\}/i,
|
|
186
|
-
/SELECT.*\+.*\+/i
|
|
187
|
-
];
|
|
188
|
-
|
|
189
|
-
return findSecurityIssues(code, sqlInjectionPatterns, 'SQL Injection');
|
|
190
|
-
},
|
|
191
|
-
|
|
192
|
-
checkXSS: (code: string): SecurityIssue[] => {
|
|
193
|
-
const xssPatterns = [
|
|
194
|
-
/innerHTML\s*=.*user.*input/i,
|
|
195
|
-
/dangerouslySetInnerHTML/i,
|
|
196
|
-
/document\.write.*user.*input/i
|
|
197
|
-
];
|
|
198
|
-
|
|
199
|
-
return findSecurityIssues(code, xssPatterns, 'XSS Vulnerability');
|
|
200
|
-
},
|
|
201
|
-
|
|
202
|
-
checkInsecureDeserialization: (code: string): SecurityIssue[] => {
|
|
203
|
-
const patterns = [
|
|
204
|
-
/JSON\.parse.*user.*input/i,
|
|
205
|
-
/eval\(/i,
|
|
206
|
-
/Function\(/i
|
|
207
|
-
];
|
|
208
|
-
|
|
209
|
-
return findSecurityIssues(code, patterns, 'Insecure Deserialization');
|
|
210
|
-
},
|
|
211
|
-
|
|
212
|
-
// Authentication and authorization checks
|
|
213
|
-
checkAuthImplementation: (code: string): SecurityIssue[] => {
|
|
214
|
-
const issues: SecurityIssue[] = [];
|
|
215
|
-
|
|
216
|
-
if (!code.includes('bcrypt') && code.includes('password')) {
|
|
217
|
-
issues.push({
|
|
218
|
-
type: 'WeakPasswordHashing',
|
|
219
|
-
severity: 'high',
|
|
220
|
-
description: 'Passwords may not be properly hashed',
|
|
221
|
-
recommendation: 'Use bcrypt or similar for password hashing'
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
if (code.includes('jwt') && !code.includes('verify')) {
|
|
226
|
-
issues.push({
|
|
227
|
-
type: 'MissingJWTValidation',
|
|
228
|
-
severity: 'medium',
|
|
229
|
-
description: 'JWT tokens may not be properly validated',
|
|
230
|
-
recommendation: 'Always verify JWT tokens before using claims'
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
return issues;
|
|
235
|
-
}
|
|
236
|
-
};
|
|
237
|
-
|
|
238
|
-
// Dependency vulnerability scanning
|
|
239
|
-
const scanDependencies = async (): Promise<VulnerabilityReport> => {
|
|
240
|
-
// npm audit for Node.js projects
|
|
241
|
-
const npmAudit = await execCommand('npm audit --json');
|
|
242
|
-
|
|
243
|
-
// Snyk scanning
|
|
244
|
-
const snykResults = await execCommand('snyk test --json');
|
|
245
|
-
|
|
246
|
-
return {
|
|
247
|
-
npmVulnerabilities: parseNpmAudit(npmAudit),
|
|
248
|
-
snykVulnerabilities: parseSnykResults(snykResults),
|
|
249
|
-
recommendations: generateSecurityRecommendations()
|
|
250
|
-
};
|
|
251
|
-
};
|
|
252
|
-
```
|
|
253
|
-
|
|
254
|
-
### 4. Architecture Analysis
|
|
255
|
-
|
|
256
|
-
```typescript
|
|
257
|
-
// Architecture metrics and analysis
|
|
258
|
-
interface ArchitectureMetrics {
|
|
259
|
-
coupling: {
|
|
260
|
-
afferentCoupling: Map<string, number>; // Incoming dependencies
|
|
261
|
-
efferentCoupling: Map<string, number>; // Outgoing dependencies
|
|
262
|
-
instability: Map<string, number>; // Efferent / (Afferent + Efferent)
|
|
263
|
-
};
|
|
264
|
-
cohesion: {
|
|
265
|
-
lackOfCohesionMethods: Map<string, number>;
|
|
266
|
-
relationalCohesion: Map<string, number>;
|
|
267
|
-
};
|
|
268
|
-
complexity: {
|
|
269
|
-
weightedMethodsPerClass: Map<string, number>;
|
|
270
|
-
depthOfInheritanceTree: Map<string, number>;
|
|
271
|
-
numberOfChildrenClasses: Map<string, number>;
|
|
272
|
-
};
|
|
273
|
-
designPatterns: {
|
|
274
|
-
detectedPatterns: DesignPattern[];
|
|
275
|
-
antiPatterns: AntiPattern[];
|
|
276
|
-
};
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
const analyzeArchitecture = async (projectPath: string): Promise<ArchitectureReport> => {
|
|
280
|
-
// Analyze component dependencies
|
|
281
|
-
const dependencyGraph = await buildDependencyGraph(projectPath);
|
|
282
|
-
const metrics = calculateArchitectureMetrics(dependencyGraph);
|
|
283
|
-
|
|
284
|
-
// Identify architectural violations
|
|
285
|
-
const violations = detectArchitecturalViolations(dependencyGraph, metrics);
|
|
286
|
-
|
|
287
|
-
// Suggest improvements
|
|
288
|
-
const improvements = generateArchitecturalImprovements(violations, metrics);
|
|
289
|
-
|
|
290
|
-
return {
|
|
291
|
-
metrics,
|
|
292
|
-
violations,
|
|
293
|
-
improvements,
|
|
294
|
-
dependencyGraph: serializeDependencyGraph(dependencyGraph),
|
|
295
|
-
recommendations: prioritizeRecommendations(improvements)
|
|
296
|
-
};
|
|
297
|
-
};
|
|
298
|
-
|
|
299
|
-
// Design pattern detection
|
|
300
|
-
const detectDesignPatterns = (ast: AST): DesignPattern[] => {
|
|
301
|
-
const patterns: DesignPattern[] = [];
|
|
302
|
-
|
|
303
|
-
// Singleton pattern detection
|
|
304
|
-
const singletons = findSingletonPattern(ast);
|
|
305
|
-
singletons.forEach(singleton => {
|
|
306
|
-
patterns.push({
|
|
307
|
-
type: 'Singleton',
|
|
308
|
-
location: singleton.location,
|
|
309
|
-
confidence: singleton.confidence,
|
|
310
|
-
description: 'Singleton pattern implementation detected'
|
|
311
|
-
});
|
|
312
|
-
});
|
|
313
|
-
|
|
314
|
-
// Observer pattern detection
|
|
315
|
-
const observers = findObserverPattern(ast);
|
|
316
|
-
observers.forEach(observer => {
|
|
317
|
-
patterns.push({
|
|
318
|
-
type: 'Observer',
|
|
319
|
-
location: observer.location,
|
|
320
|
-
confidence: observer.confidence,
|
|
321
|
-
description: 'Observer pattern implementation detected'
|
|
322
|
-
});
|
|
323
|
-
});
|
|
324
|
-
|
|
325
|
-
return patterns;
|
|
326
|
-
};
|
|
327
|
-
```
|
|
62
|
+
### 1. Static Code Analysis Approach
|
|
63
|
+
|
|
64
|
+
**Complexity Analysis Methods:**
|
|
65
|
+
- **Cyclomatic Complexity**: Measure code complexity through control flow analysis
|
|
66
|
+
- **Cognitive Complexity**: Assess mental overhead required to understand code
|
|
67
|
+
- **Maintainability Index**: Calculate overall maintainability scores
|
|
68
|
+
- **Technical Debt Estimation**: Quantify effort required to address code quality issues
|
|
69
|
+
- **Code Smell Detection**: Identify anti-patterns and problematic code structures
|
|
70
|
+
|
|
71
|
+
**Code Smell Identification:**
|
|
72
|
+
- **Long Parameter Lists**: Detect methods with excessive parameters and suggest refactoring
|
|
73
|
+
- **Large Classes**: Identify oversized classes that violate single responsibility principle
|
|
74
|
+
- **Duplicate Code**: Find code duplication opportunities for extraction
|
|
75
|
+
- **Dead Code**: Locate unused code that can be safely removed
|
|
76
|
+
- **Complex Methods**: Identify methods that need simplification or decomposition
|
|
77
|
+
|
|
78
|
+
### 2. Performance Analysis Methodology
|
|
79
|
+
|
|
80
|
+
**Profiling Techniques:**
|
|
81
|
+
- **Application Profiling**: Use language-specific profiling tools to identify bottlenecks
|
|
82
|
+
- **Memory Analysis**: Analyze memory usage patterns and identify leaks
|
|
83
|
+
- **Bundle Analysis**: Examine build outputs for optimization opportunities
|
|
84
|
+
- **Database Performance**: Analyze query performance and optimize database interactions
|
|
85
|
+
- **Load Testing**: Conduct systematic load testing to understand system limits
|
|
86
|
+
|
|
87
|
+
**Performance Metrics Collection:**
|
|
88
|
+
- **Response Time Analysis**: Measure and analyze response time distributions (mean, p50, p95, p99)
|
|
89
|
+
- **Throughput Measurement**: Track requests per second and concurrent user capacity
|
|
90
|
+
- **Resource Utilization**: Monitor CPU, memory, disk I/O, and network usage
|
|
91
|
+
- **Error Rate Monitoring**: Track error rates, timeouts, and system failures
|
|
92
|
+
- **Trend Analysis**: Identify performance trends over time and predict future needs
|
|
93
|
+
|
|
94
|
+
**Performance Issue Detection:**
|
|
95
|
+
- **Latency Problems**: Identify when response times exceed acceptable thresholds
|
|
96
|
+
- **Memory Issues**: Detect high memory usage and potential memory leaks
|
|
97
|
+
- **Bottleneck Identification**: Locate system bottlenecks that limit overall performance
|
|
98
|
+
- **Scalability Limits**: Determine where systems begin to degrade under load
|
|
99
|
+
|
|
100
|
+
### 3. Security Analysis Approach
|
|
101
|
+
|
|
102
|
+
**Vulnerability Detection Strategy:**
|
|
103
|
+
- **OWASP Top 10 Analysis**: Systematically check for common web application vulnerabilities
|
|
104
|
+
- **SQL Injection Detection**: Identify unsafe database query construction patterns
|
|
105
|
+
- **Cross-Site Scripting (XSS)**: Detect unsafe user input handling that could lead to XSS
|
|
106
|
+
- **Insecure Deserialization**: Find unsafe object deserialization practices
|
|
107
|
+
- **Authentication Issues**: Validate proper implementation of authentication mechanisms
|
|
108
|
+
- **Authorization Flaws**: Ensure proper access control implementation
|
|
109
|
+
|
|
110
|
+
**Security Pattern Analysis:**
|
|
111
|
+
- **Password Security**: Verify proper password hashing and storage practices
|
|
112
|
+
- **Token Management**: Validate JWT and session token handling
|
|
113
|
+
- **Input Validation**: Ensure all user inputs are properly validated and sanitized
|
|
114
|
+
- **Cryptographic Implementation**: Review cryptographic usage for best practices
|
|
115
|
+
- **API Security**: Analyze API endpoints for security vulnerabilities
|
|
116
|
+
|
|
117
|
+
**Dependency Security Assessment:**
|
|
118
|
+
- **Vulnerability Scanning**: Use tools like npm audit, Snyk, or similar to identify vulnerable dependencies
|
|
119
|
+
- **License Compliance**: Check for license compatibility and compliance issues
|
|
120
|
+
- **Outdated Dependencies**: Identify outdated packages that may have security issues
|
|
121
|
+
- **Supply Chain Analysis**: Assess risks from third-party dependencies
|
|
122
|
+
|
|
123
|
+
### 4. Architecture Analysis Framework
|
|
124
|
+
|
|
125
|
+
**Architecture Metrics Assessment:**
|
|
126
|
+
- **Coupling Analysis**: Measure afferent and efferent coupling to assess component dependencies
|
|
127
|
+
- **Cohesion Evaluation**: Analyze lack of cohesion in methods and relational cohesion
|
|
128
|
+
- **Complexity Measurement**: Evaluate weighted methods per class, inheritance depth, and class hierarchies
|
|
129
|
+
- **Stability Analysis**: Calculate instability metrics to identify volatile components
|
|
130
|
+
- **Design Pattern Recognition**: Detect implemented design patterns and identify anti-patterns
|
|
131
|
+
|
|
132
|
+
**Dependency Analysis:**
|
|
133
|
+
- **Dependency Graph Construction**: Build comprehensive dependency graphs for system analysis
|
|
134
|
+
- **Circular Dependency Detection**: Identify and report circular dependencies
|
|
135
|
+
- **Architectural Violation Detection**: Find violations of established architectural principles
|
|
136
|
+
- **Component Relationship Analysis**: Analyze relationships between system components
|
|
137
|
+
- **Layered Architecture Validation**: Ensure proper layering and abstraction boundaries
|
|
138
|
+
|
|
139
|
+
**Design Pattern Detection:**
|
|
140
|
+
- **Behavioral Patterns**: Identify Observer, Strategy, Command, and other behavioral patterns
|
|
141
|
+
- **Creational Patterns**: Detect Factory, Singleton, Builder, and other creational patterns
|
|
142
|
+
- **Structural Patterns**: Find Adapter, Decorator, Facade, and other structural patterns
|
|
143
|
+
- **Anti-Pattern Identification**: Detect code smells and architectural anti-patterns
|
|
144
|
+
- **Pattern Quality Assessment**: Evaluate implementation quality of detected patterns
|
|
328
145
|
|
|
329
146
|
## Analysis Tools Integration
|
|
330
147
|
|
|
331
|
-
### 1. Static Analysis Tools
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
newrelic analyze
|
|
371
|
-
datadog analyze
|
|
372
|
-
```
|
|
373
|
-
|
|
374
|
-
### 3. Custom Analysis Scripts
|
|
375
|
-
|
|
376
|
-
```typescript
|
|
377
|
-
// Comprehensive project analysis
|
|
378
|
-
const analyzeProject = async (projectPath: string): Promise<ProjectAnalysisReport> => {
|
|
379
|
-
const analysis = {
|
|
380
|
-
codeQuality: await analyzeCodeQuality(projectPath),
|
|
381
|
-
performance: await analyzePerformance(projectPath),
|
|
382
|
-
security: await analyzeSecurity(projectPath),
|
|
383
|
-
architecture: await analyzeArchitecture(projectPath),
|
|
384
|
-
dependencies: await analyzeDependencies(projectPath),
|
|
385
|
-
testing: await analyzeTestCoverage(projectPath)
|
|
386
|
-
};
|
|
387
|
-
|
|
388
|
-
// Generate executive summary
|
|
389
|
-
const summary = generateExecutiveSummary(analysis);
|
|
390
|
-
|
|
391
|
-
// Prioritize recommendations
|
|
392
|
-
const recommendations = prioritizeAllRecommendations(analysis);
|
|
393
|
-
|
|
394
|
-
return {
|
|
395
|
-
...analysis,
|
|
396
|
-
summary,
|
|
397
|
-
recommendations,
|
|
398
|
-
metrics: consolidateMetrics(analysis),
|
|
399
|
-
timestamp: new Date().toISOString()
|
|
400
|
-
};
|
|
401
|
-
};
|
|
402
|
-
```
|
|
148
|
+
### 1. Static Analysis Tools Integration
|
|
149
|
+
|
|
150
|
+
**Code Quality Tools:**
|
|
151
|
+
- **ESLint/TSLint**: Integrate JavaScript/TypeScript linting for code quality enforcement
|
|
152
|
+
- **SonarQube**: Use for comprehensive code quality and security analysis
|
|
153
|
+
- **CodeClimate**: Implement for maintainability and technical debt tracking
|
|
154
|
+
- **PMD/Checkstyle**: Apply for Java code quality analysis
|
|
155
|
+
- **RuboCop**: Utilize for Ruby code style and quality enforcement
|
|
156
|
+
|
|
157
|
+
**Security Analysis Tools:**
|
|
158
|
+
- **Semgrep**: Deploy for semantic security analysis across multiple languages
|
|
159
|
+
- **Bandit**: Use for Python security issue detection
|
|
160
|
+
- **Brakeman**: Apply for Rails security vulnerability scanning
|
|
161
|
+
- **ESLint Security**: Integrate security-focused ESLint rules
|
|
162
|
+
- **Dependency Scanning**: Implement npm audit, Snyk, or similar for dependency vulnerabilities
|
|
163
|
+
|
|
164
|
+
### 2. Performance Analysis Tools Integration
|
|
165
|
+
|
|
166
|
+
**Application Performance Tools:**
|
|
167
|
+
- **Profiling Tools**: Use language-specific profilers (clinic.js, py-spy, pprof)
|
|
168
|
+
- **APM Solutions**: Integrate Application Performance Monitoring (New Relic, DataDog, Dynatrace)
|
|
169
|
+
- **Web Performance**: Utilize Lighthouse, WebPageTest, or similar for web performance analysis
|
|
170
|
+
- **Database Analysis**: Implement database-specific performance monitoring tools
|
|
171
|
+
- **Load Testing**: Deploy tools like Artillery, JMeter, or k6 for performance testing
|
|
172
|
+
|
|
173
|
+
### 3. Custom Analysis Framework
|
|
174
|
+
|
|
175
|
+
**Comprehensive Project Analysis:**
|
|
176
|
+
- **Multi-Dimensional Assessment**: Analyze code quality, performance, security, architecture, dependencies, and testing
|
|
177
|
+
- **Executive Summary Generation**: Create high-level summaries for stakeholders
|
|
178
|
+
- **Recommendation Prioritization**: Rank recommendations by impact and effort required
|
|
179
|
+
- **Metrics Consolidation**: Combine metrics from different analysis dimensions
|
|
180
|
+
- **Trend Analysis**: Track metrics over time to identify improvement or degradation patterns
|
|
181
|
+
|
|
182
|
+
**Analysis Orchestration:**
|
|
183
|
+
- **Automated Analysis Workflows**: Create workflows that combine multiple analysis tools
|
|
184
|
+
- **Custom Reporting**: Generate tailored reports for different audiences
|
|
185
|
+
- **Integration Points**: Connect with existing development workflows and tools
|
|
186
|
+
- **Baseline Establishment**: Set baselines for comparison and progress tracking
|
|
403
187
|
|
|
404
188
|
## Reporting and Visualization
|
|
405
189
|
|
|
406
|
-
### 1. Analysis
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
- **
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
- **
|
|
416
|
-
- **
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
- **
|
|
422
|
-
- **
|
|
423
|
-
- **
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
- **
|
|
432
|
-
- **
|
|
433
|
-
- **
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
| 3 | Refactor UserService | Medium | High | Medium |
|
|
442
|
-
|
|
443
|
-
## Detailed Analysis
|
|
444
|
-
[Detailed findings for each category...]
|
|
445
|
-
|
|
446
|
-
## Next Steps
|
|
447
|
-
1. Address critical security vulnerabilities
|
|
448
|
-
2. Optimize database queries
|
|
449
|
-
3. Refactor high-complexity modules
|
|
450
|
-
4. Implement performance monitoring
|
|
451
|
-
```
|
|
452
|
-
|
|
453
|
-
### 2. Metrics Dashboards
|
|
454
|
-
|
|
455
|
-
```typescript
|
|
456
|
-
// Metrics dashboard data structure
|
|
457
|
-
interface AnalyticsDashboard {
|
|
458
|
-
healthScore: {
|
|
459
|
-
overall: number;
|
|
460
|
-
codeQuality: number;
|
|
461
|
-
performance: number;
|
|
462
|
-
security: number;
|
|
463
|
-
maintainability: number;
|
|
464
|
-
};
|
|
465
|
-
trends: {
|
|
466
|
-
period: string;
|
|
467
|
-
metrics: TimeSeriesMetric[];
|
|
468
|
-
};
|
|
469
|
-
alerts: {
|
|
470
|
-
critical: Alert[];
|
|
471
|
-
warnings: Alert[];
|
|
472
|
-
};
|
|
473
|
-
recommendations: {
|
|
474
|
-
quickWins: Recommendation[];
|
|
475
|
-
longTerm: Recommendation[];
|
|
476
|
-
};
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
// Generate dashboard data
|
|
480
|
-
const generateDashboard = (analysisHistory: ProjectAnalysisReport[]): AnalyticsDashboard => {
|
|
481
|
-
return {
|
|
482
|
-
healthScore: calculateHealthTrends(analysisHistory),
|
|
483
|
-
trends: generateTrendData(analysisHistory),
|
|
484
|
-
alerts: identifyAlerts(analysisHistory[0]),
|
|
485
|
-
recommendations: categorizeRecommendations(analysisHistory[0].recommendations)
|
|
486
|
-
};
|
|
487
|
-
};
|
|
488
|
-
```
|
|
190
|
+
### 1. Analysis Report Structure
|
|
191
|
+
|
|
192
|
+
**Executive Summary Components:**
|
|
193
|
+
- **Overall Health Score**: Provide quantitative assessment of system health
|
|
194
|
+
- **Critical Issues Count**: Highlight urgent issues requiring immediate attention
|
|
195
|
+
- **Priority Breakdown**: Categorize issues by priority levels (Critical, High, Medium, Low)
|
|
196
|
+
- **Technical Debt Estimation**: Quantify effort required to address quality issues
|
|
197
|
+
|
|
198
|
+
**Key Findings Organization:**
|
|
199
|
+
- **Code Quality Assessment**: Complexity analysis, maintainability scores, code smell detection
|
|
200
|
+
- **Performance Analysis**: Response time metrics, resource utilization, bottleneck identification
|
|
201
|
+
- **Security Evaluation**: Vulnerability assessment, dependency security, authentication review
|
|
202
|
+
- **Architecture Review**: Design pattern compliance, coupling analysis, architectural violations
|
|
203
|
+
|
|
204
|
+
**Recommendations Framework:**
|
|
205
|
+
- **Priority Matrix**: Impact vs. Effort analysis for recommendation prioritization
|
|
206
|
+
- **ROI Assessment**: Return on investment calculation for improvement initiatives
|
|
207
|
+
- **Implementation Roadmap**: Phased approach for addressing identified issues
|
|
208
|
+
- **Risk Assessment**: Risk evaluation for postponing critical fixes
|
|
209
|
+
|
|
210
|
+
### 2. Metrics Dashboard Design
|
|
211
|
+
|
|
212
|
+
**Dashboard Components:**
|
|
213
|
+
- **Health Score Overview**: Multi-dimensional health scoring (code quality, performance, security, maintainability)
|
|
214
|
+
- **Trend Analysis**: Time-series visualization of key metrics and improvement trends
|
|
215
|
+
- **Alert Management**: Critical and warning alerts for immediate attention
|
|
216
|
+
- **Recommendation Engine**: Quick wins and long-term improvement suggestions
|
|
217
|
+
- **Progress Tracking**: Visual progress indicators for ongoing improvement initiatives
|
|
218
|
+
|
|
219
|
+
**Dashboard Features:**
|
|
220
|
+
- **Interactive Visualizations**: Drill-down capabilities for detailed analysis
|
|
221
|
+
- **Real-Time Updates**: Live updates of critical metrics and alerts
|
|
222
|
+
- **Customizable Views**: Role-based dashboard customization for different stakeholders
|
|
223
|
+
- **Export Capabilities**: Report generation and export functionality
|
|
224
|
+
- **Historical Comparison**: Compare current metrics with historical baselines
|
|
489
225
|
|
|
490
226
|
## Continuous Analysis Integration
|
|
491
227
|
|
|
492
|
-
### 1. CI/CD Pipeline Integration
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
- name: Security Scan
|
|
522
|
-
run: |
|
|
523
|
-
npm audit --json > npm-audit.json
|
|
524
|
-
npx semgrep --config=auto --json --output semgrep-report.json src/
|
|
525
|
-
|
|
526
|
-
- name: Performance Analysis
|
|
527
|
-
run: npm run analyze:performance
|
|
528
|
-
|
|
529
|
-
- name: Generate Analysis Report
|
|
530
|
-
run: npm run analyze:generate-report
|
|
531
|
-
|
|
532
|
-
- name: Comment PR
|
|
533
|
-
if: github.event_name == 'pull_request'
|
|
534
|
-
uses: actions/github-script@v6
|
|
535
|
-
with:
|
|
536
|
-
script: |
|
|
537
|
-
const fs = require('fs');
|
|
538
|
-
const report = JSON.parse(fs.readFileSync('analysis-summary.json'));
|
|
539
|
-
github.rest.issues.createComment({
|
|
540
|
-
issue_number: context.issue.number,
|
|
541
|
-
owner: context.repo.owner,
|
|
542
|
-
repo: context.repo.repo,
|
|
543
|
-
body: generatePRComment(report)
|
|
544
|
-
});
|
|
545
|
-
```
|
|
546
|
-
|
|
547
|
-
### 2. Quality Gates
|
|
548
|
-
|
|
549
|
-
```typescript
|
|
550
|
-
// Quality gate definitions
|
|
551
|
-
const qualityGates = {
|
|
552
|
-
security: {
|
|
553
|
-
maxHighVulnerabilities: 0,
|
|
554
|
-
maxMediumVulnerabilities: 5,
|
|
555
|
-
maxDependencyAge: 365 // days
|
|
556
|
-
},
|
|
557
|
-
performance: {
|
|
558
|
-
maxResponseTime: 500, // ms
|
|
559
|
-
maxMemoryUsage: 70, // percentage
|
|
560
|
-
minThroughput: 1000 // requests/second
|
|
561
|
-
},
|
|
562
|
-
codeQuality: {
|
|
563
|
-
minMaintainabilityIndex: 70,
|
|
564
|
-
maxCyclomaticComplexity: 10,
|
|
565
|
-
minTestCoverage: 80
|
|
566
|
-
}
|
|
567
|
-
};
|
|
568
|
-
|
|
569
|
-
const validateQualityGates = (analysis: ProjectAnalysisReport): QualityGateResult => {
|
|
570
|
-
const violations: QualityGateViolation[] = [];
|
|
571
|
-
|
|
572
|
-
// Check security gates
|
|
573
|
-
if (analysis.security.highVulnerabilities > qualityGates.security.maxHighVulnerabilities) {
|
|
574
|
-
violations.push({
|
|
575
|
-
gate: 'security.highVulnerabilities',
|
|
576
|
-
expected: qualityGates.security.maxHighVulnerabilities,
|
|
577
|
-
actual: analysis.security.highVulnerabilities,
|
|
578
|
-
severity: 'blocker'
|
|
579
|
-
});
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
// Check performance gates
|
|
583
|
-
if (analysis.performance.responseTime.p95 > qualityGates.performance.maxResponseTime) {
|
|
584
|
-
violations.push({
|
|
585
|
-
gate: 'performance.responseTime',
|
|
586
|
-
expected: qualityGates.performance.maxResponseTime,
|
|
587
|
-
actual: analysis.performance.responseTime.p95,
|
|
588
|
-
severity: 'major'
|
|
589
|
-
});
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
return {
|
|
593
|
-
passed: violations.filter(v => v.severity === 'blocker').length === 0,
|
|
594
|
-
violations,
|
|
595
|
-
summary: generateQualityGateSummary(violations)
|
|
596
|
-
};
|
|
597
|
-
};
|
|
598
|
-
```
|
|
228
|
+
### 1. CI/CD Pipeline Integration Strategy
|
|
229
|
+
|
|
230
|
+
**Automated Analysis Workflows:**
|
|
231
|
+
- **Pull Request Analysis**: Trigger comprehensive analysis on every pull request
|
|
232
|
+
- **Continuous Monitoring**: Run analysis on main branch commits for trend tracking
|
|
233
|
+
- **Scheduled Analysis**: Perform deeper analysis on regular schedules
|
|
234
|
+
- **Multi-Stage Pipeline**: Integrate analysis at multiple pipeline stages (lint, test, deploy)
|
|
235
|
+
|
|
236
|
+
**Pipeline Integration Points:**
|
|
237
|
+
- **Pre-commit Analysis**: Fast feedback during development with git hooks
|
|
238
|
+
- **Build Stage Analysis**: Comprehensive analysis during CI build process
|
|
239
|
+
- **Deployment Gate Analysis**: Quality gate validation before production deployment
|
|
240
|
+
- **Post-deployment Monitoring**: Continuous analysis of production systems
|
|
241
|
+
|
|
242
|
+
### 2. Quality Gate Framework
|
|
243
|
+
|
|
244
|
+
**Quality Gate Categories:**
|
|
245
|
+
- **Security Gates**: Define thresholds for vulnerability counts and severity levels
|
|
246
|
+
- **Performance Gates**: Set acceptable limits for response time, memory usage, and throughput
|
|
247
|
+
- **Code Quality Gates**: Establish minimum standards for maintainability and complexity
|
|
248
|
+
- **Test Coverage Gates**: Require minimum test coverage percentages
|
|
249
|
+
- **Dependency Gates**: Control dependency age and vulnerability exposure
|
|
250
|
+
|
|
251
|
+
**Gate Validation Process:**
|
|
252
|
+
- **Threshold Definition**: Establish clear, measurable quality thresholds
|
|
253
|
+
- **Violation Detection**: Systematically check analysis results against thresholds
|
|
254
|
+
- **Severity Classification**: Classify violations as blocker, major, minor, or informational
|
|
255
|
+
- **Gate Decision**: Determine pass/fail status based on blocker-level violations
|
|
256
|
+
- **Remediation Guidance**: Provide clear steps for resolving quality gate failures
|
|
599
257
|
|
|
600
258
|
## Collaboration with Other Agents
|
|
601
259
|
|