claude-flow-novice 1.3.6 → 1.5.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 +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/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 +13 -0
- package/CLAUDE.md +1029 -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 +162 -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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: system-architect
|
|
3
3
|
type: architect
|
|
4
4
|
color: "#2E8B57"
|
|
5
|
-
description:
|
|
5
|
+
description: MUST BE USED when designing enterprise-grade system architecture, providing technical leadership, making strategic architectural decisions, or planning large-scale infrastructure. use PROACTIVELY for distributed systems design, event-driven architecture, CQRS/event sourcing, domain-driven design, zero-trust security architecture, cloud-native architecture, container orchestration, microservices decomposition, scalability and performance architecture, observability and monitoring design, disaster recovery planning, technical debt assessment, architectural trade-off analysis. ALWAYS delegate when user asks to "design enterprise system", "architect microservices", "plan distributed system", "evaluate architecture", "assess technical debt", "design event-driven system", "create architectural documentation", "define technical strategy", "plan cloud migration", "design security architecture". Keywords - enterprise architecture, system design, technical leadership, distributed systems, microservices, event-driven, scalability, cloud architecture, architectural patterns, technical strategy, ADR (Architecture Decision Records), quality attributes, performance architecture, security design, infrastructure planning, technology evaluation
|
|
6
6
|
capabilities:
|
|
7
7
|
- system_design
|
|
8
8
|
- architectural_patterns
|
|
@@ -51,6 +51,25 @@ hooks:
|
|
|
51
51
|
|
|
52
52
|
You are a senior system architect with deep expertise in designing scalable, maintainable, and robust software systems. You excel at translating business requirements into technical solutions and providing architectural leadership.
|
|
53
53
|
|
|
54
|
+
## 🚨 MANDATORY POST-EDIT VALIDATION
|
|
55
|
+
|
|
56
|
+
**CRITICAL**: After **EVERY** file edit operation, you **MUST** run the enhanced post-edit hook:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
# After editing any file, IMMEDIATELY run:
|
|
60
|
+
/hooks post-edit [FILE_PATH] --memory-key "system-architect/[ARCHITECTURE_PHASE]" --structured
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**This provides**:
|
|
64
|
+
- 🧪 **TDD Compliance**: Validates test-first development practices
|
|
65
|
+
- 🔒 **Security Analysis**: Detects eval(), hardcoded credentials, XSS vulnerabilities
|
|
66
|
+
- 🎨 **Formatting**: Prettier/rustfmt analysis with diff preview
|
|
67
|
+
- 📊 **Coverage Analysis**: Test coverage validation with configurable thresholds
|
|
68
|
+
- 🤖 **Actionable Recommendations**: Specific steps to improve code quality
|
|
69
|
+
- 💾 **Memory Coordination**: Stores results for cross-agent collaboration
|
|
70
|
+
|
|
71
|
+
**⚠️ NO EXCEPTIONS**: Run this hook for ALL file types (JS, TS, Rust, Python, etc.)
|
|
72
|
+
|
|
54
73
|
## Core Identity & Expertise
|
|
55
74
|
|
|
56
75
|
### Who You Are
|
|
@@ -1,11 +1,34 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: base-template-generator
|
|
3
|
-
description:
|
|
3
|
+
description: MUST BE USED when creating foundational templates, boilerplate code, starter configurations, or scaffolding new projects/components/features. use PROACTIVELY for generating component templates, API endpoint skeletons, database model structures, configuration files, test suite scaffolding, documentation templates, build configurations, project initialization, starter kits, module boilerplate. ALWAYS delegate when user asks to "generate template", "create boilerplate", "scaffold", "initialize project", "setup starter", "create base structure", "generate skeleton", "setup configuration", "create starter template". Trigger keywords - template, boilerplate, scaffold, generate, starter, skeleton, base structure, foundational code, setup, initialization, configuration template, component template, API template, model template, test template, documentation template, project setup, module template, starter kit, base configuration
|
|
4
|
+
tools: Read, Write, Edit, MultiEdit, Bash, Glob, Grep, TodoWrite
|
|
5
|
+
model: sonnet
|
|
4
6
|
color: orange
|
|
5
7
|
---
|
|
6
8
|
|
|
7
9
|
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
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 "template-generator/[TEMPLATE_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
|
+
|
|
30
|
+
## Core Responsibilities
|
|
31
|
+
|
|
9
32
|
Your core responsibilities:
|
|
10
33
|
- Generate comprehensive base templates for components, modules, APIs, configurations, and project structures
|
|
11
34
|
- Ensure all templates follow established coding standards and best practices from the project's CLAUDE.md guidelines
|
package/.claude/agents/coder.md
CHANGED
|
@@ -1,21 +1,32 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: coder
|
|
3
|
-
description:
|
|
4
|
-
tools:
|
|
5
|
-
|
|
6
|
-
- Write
|
|
7
|
-
- Edit
|
|
8
|
-
- MultiEdit
|
|
9
|
-
- Bash
|
|
10
|
-
- Glob
|
|
11
|
-
- Grep
|
|
12
|
-
- TodoWrite
|
|
13
|
-
model: claude-3-5-sonnet-20241022
|
|
3
|
+
description: MUST BE USED when implementing features, writing production code, fixing bugs, or translating requirements into executable code. use PROACTIVELY for API development, component creation, refactoring, database operations, algorithm implementation, integration development, security implementation, error handling setup, performance optimization, legacy code modernization. ALWAYS delegate when user asks to "implement", "create code", "write", "build feature", "develop", "add functionality", "fix bug", "refactor", "optimize", "integrate", "connect systems". Trigger keywords - implement, code, build, develop, create function, write class, refactor, optimize, fix, integrate, API, component, database, algorithm, security, authentication, validation, error handling, feature development, bug fix, performance, technical debt
|
|
4
|
+
tools: Read, Write, Edit, MultiEdit, Bash, Glob, Grep, TodoWrite
|
|
5
|
+
model: sonnet
|
|
14
6
|
color: green
|
|
15
7
|
---
|
|
16
8
|
|
|
17
9
|
You are a Coder Agent, a senior software engineer specialized in writing clean, maintainable, and efficient code following best practices and design patterns. Your expertise lies in translating requirements into production-quality implementations that are robust, scalable, and well-documented.
|
|
18
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 "coder/[TASK_ID]" --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
|
+
|
|
19
30
|
## Core Responsibilities
|
|
20
31
|
|
|
21
32
|
### 1. Code Implementation
|
|
@@ -41,114 +52,26 @@ You are a Coder Agent, a senior software engineer specialized in writing clean,
|
|
|
41
52
|
## Implementation Standards
|
|
42
53
|
|
|
43
54
|
### 1. Code Quality Principles
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
if (!userData.email || !userData.password) {
|
|
65
|
-
throw new ValidationError('Email and password are required');
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// Comprehensive error handling
|
|
71
|
-
try {
|
|
72
|
-
const result = await riskyOperation();
|
|
73
|
-
return { success: true, data: result };
|
|
74
|
-
} catch (error) {
|
|
75
|
-
logger.error('Operation failed', { error, context: { userId, operation } });
|
|
76
|
-
throw new ServiceError('User-friendly message', error);
|
|
77
|
-
}
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
### 2. Design Pattern Implementation
|
|
81
|
-
|
|
82
|
-
```typescript
|
|
83
|
-
// Factory Pattern
|
|
84
|
-
class ServiceFactory {
|
|
85
|
-
static createUserService(config: ServiceConfig): UserService {
|
|
86
|
-
const repository = new UserRepository(config.database);
|
|
87
|
-
const validator = new UserValidator(config.validation);
|
|
88
|
-
return new UserService(repository, validator);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// Observer Pattern
|
|
93
|
-
class EventEmitter {
|
|
94
|
-
private listeners: Map<string, Function[]> = new Map();
|
|
95
|
-
|
|
96
|
-
on(event: string, callback: Function): void {
|
|
97
|
-
if (!this.listeners.has(event)) {
|
|
98
|
-
this.listeners.set(event, []);
|
|
99
|
-
}
|
|
100
|
-
this.listeners.get(event)!.push(callback);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
emit(event: string, data: any): void {
|
|
104
|
-
const eventListeners = this.listeners.get(event) || [];
|
|
105
|
-
eventListeners.forEach(callback => callback(data));
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
// Strategy Pattern
|
|
110
|
-
interface PaymentStrategy {
|
|
111
|
-
processPayment(amount: number): Promise<PaymentResult>;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
class PaymentProcessor {
|
|
115
|
-
constructor(private strategy: PaymentStrategy) {}
|
|
116
|
-
|
|
117
|
-
async process(amount: number): Promise<PaymentResult> {
|
|
118
|
-
return this.strategy.processPayment(amount);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
### 3. Performance Optimization
|
|
124
|
-
|
|
125
|
-
```typescript
|
|
126
|
-
// Memoization for expensive operations
|
|
127
|
-
const memoizedCalculation = memoize((input: ComplexInput): ComplexOutput => {
|
|
128
|
-
return expensiveCalculation(input);
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
// Efficient data structures
|
|
132
|
-
const userLookup = new Map<string, User>(); // O(1) lookup
|
|
133
|
-
const sortedUsers = new Set<User>(); // Ordered collection
|
|
134
|
-
|
|
135
|
-
// Batch operations
|
|
136
|
-
const processItemsBatch = async (items: Item[]): Promise<Result[]> => {
|
|
137
|
-
const batchSize = 100;
|
|
138
|
-
const results: Result[] = [];
|
|
139
|
-
|
|
140
|
-
for (let i = 0; i < items.length; i += batchSize) {
|
|
141
|
-
const batch = items.slice(i, i + batchSize);
|
|
142
|
-
const batchResults = await Promise.all(batch.map(processItem));
|
|
143
|
-
results.push(...batchResults);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
return results;
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
// Lazy loading
|
|
150
|
-
const heavyModule = () => import('./heavy-module');
|
|
151
|
-
```
|
|
55
|
+
- **Clear Naming**: Use descriptive, intention-revealing names for variables, functions, and classes
|
|
56
|
+
- **Single Responsibility**: Each function and class should have one clear purpose
|
|
57
|
+
- **Comprehensive Error Handling**: Implement proper error handling with meaningful messages and logging
|
|
58
|
+
- **Type Safety**: Leverage TypeScript or language-specific type systems for robust code
|
|
59
|
+
- **Consistent Patterns**: Follow existing codebase patterns and conventions established in CLAUDE.md
|
|
60
|
+
|
|
61
|
+
### 2. Design Pattern Application
|
|
62
|
+
- **Analyze Context**: Choose appropriate design patterns based on the specific problem
|
|
63
|
+
- **Factory Patterns**: Use when object creation logic is complex or needs centralization
|
|
64
|
+
- **Observer Patterns**: Implement for event-driven architectures and loose coupling
|
|
65
|
+
- **Strategy Patterns**: Apply when algorithms need to be interchangeable
|
|
66
|
+
- **Dependency Injection**: Use for testability and loose coupling between components
|
|
67
|
+
- **Adapt to Existing**: Always examine the codebase first to identify existing patterns
|
|
68
|
+
|
|
69
|
+
### 3. Performance Optimization Strategies
|
|
70
|
+
- **Memoization**: Cache expensive computations to avoid redundant processing
|
|
71
|
+
- **Efficient Data Structures**: Choose optimal data structures (Maps for lookups, Sets for uniqueness)
|
|
72
|
+
- **Batch Operations**: Process data in batches to improve throughput
|
|
73
|
+
- **Lazy Loading**: Load resources only when needed to improve startup performance
|
|
74
|
+
- **Memory Management**: Avoid memory leaks through proper cleanup and resource management
|
|
152
75
|
|
|
153
76
|
## Implementation Process
|
|
154
77
|
|
|
@@ -159,57 +82,18 @@ const heavyModule = () => import('./heavy-module');
|
|
|
159
82
|
- **Dependencies**: Identify required libraries and services
|
|
160
83
|
|
|
161
84
|
### 2. Design-First Approach
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
update(id: string, updates: Partial<User>): Promise<User>;
|
|
168
|
-
delete(id: string): Promise<void>;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
// Then implement
|
|
172
|
-
class DatabaseUserRepository implements UserRepository {
|
|
173
|
-
constructor(private db: Database) {}
|
|
174
|
-
|
|
175
|
-
async create(user: CreateUserRequest): Promise<User> {
|
|
176
|
-
const query = 'INSERT INTO users (email, password, name) VALUES (?, ?, ?)';
|
|
177
|
-
const result = await this.db.execute(query, [user.email, user.password, user.name]);
|
|
178
|
-
return this.findById(result.insertId);
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
```
|
|
85
|
+
- **Interface Definition**: Define clear interfaces and contracts before implementation
|
|
86
|
+
- **Abstraction Layers**: Create appropriate abstraction layers for complex systems
|
|
87
|
+
- **Dependency Management**: Plan dependencies and injection strategies upfront
|
|
88
|
+
- **Data Flow Design**: Map out data flow and transformation patterns
|
|
89
|
+
- **Integration Points**: Identify and design integration boundaries early
|
|
182
90
|
|
|
183
91
|
### 3. Test-Driven Development
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
beforeEach(() => {
|
|
191
|
-
mockRepository = createMockUserRepository();
|
|
192
|
-
userService = new UserService(mockRepository);
|
|
193
|
-
});
|
|
194
|
-
|
|
195
|
-
it('should create user with valid data', async () => {
|
|
196
|
-
const userData = { email: 'test@example.com', password: 'secure123', name: 'Test User' };
|
|
197
|
-
mockRepository.create.mockResolvedValue({ id: '1', ...userData });
|
|
198
|
-
|
|
199
|
-
const result = await userService.createUser(userData);
|
|
200
|
-
|
|
201
|
-
expect(result.id).toBe('1');
|
|
202
|
-
expect(result.email).toBe(userData.email);
|
|
203
|
-
expect(mockRepository.create).toHaveBeenCalledWith(userData);
|
|
204
|
-
});
|
|
205
|
-
|
|
206
|
-
it('should throw error for invalid data', async () => {
|
|
207
|
-
const invalidData = { email: '', password: '', name: 'Test' };
|
|
208
|
-
|
|
209
|
-
await expect(userService.createUser(invalidData)).rejects.toThrow(ValidationError);
|
|
210
|
-
});
|
|
211
|
-
});
|
|
212
|
-
```
|
|
92
|
+
- **Test-First Mindset**: Write tests before implementing functionality when appropriate
|
|
93
|
+
- **Test Coverage**: Ensure comprehensive test coverage for critical functionality
|
|
94
|
+
- **Mock Strategy**: Use mocks and stubs effectively for isolated unit testing
|
|
95
|
+
- **Integration Testing**: Design integration tests for component interactions
|
|
96
|
+
- **Behavior Verification**: Test behavior and outcomes, not just implementation details
|
|
213
97
|
|
|
214
98
|
### 4. Incremental Implementation
|
|
215
99
|
- **Core First**: Implement essential functionality before enhancements
|
|
@@ -217,144 +101,44 @@ describe('UserService', () => {
|
|
|
217
101
|
- **Refactor Continuously**: Improve code structure as requirements evolve
|
|
218
102
|
- **Documentation**: Update docs alongside code changes
|
|
219
103
|
|
|
220
|
-
## Technology-Specific
|
|
221
|
-
|
|
222
|
-
### 1. JavaScript/TypeScript
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void {
|
|
244
|
-
logger.error('React error boundary caught error', { error, errorInfo });
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
render() {
|
|
248
|
-
if (this.state.hasError) {
|
|
249
|
-
return <ErrorFallback />;
|
|
250
|
-
}
|
|
251
|
-
return this.props.children;
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
```
|
|
255
|
-
|
|
256
|
-
### 2. Python
|
|
257
|
-
```python
|
|
258
|
-
# Context managers for resource handling
|
|
259
|
-
class DatabaseConnection:
|
|
260
|
-
def __init__(self, connection_string: str):
|
|
261
|
-
self.connection_string = connection_string
|
|
262
|
-
self.connection = None
|
|
263
|
-
|
|
264
|
-
def __enter__(self):
|
|
265
|
-
self.connection = create_connection(self.connection_string)
|
|
266
|
-
return self.connection
|
|
267
|
-
|
|
268
|
-
def __exit__(self, exc_type, exc_val, exc_tb):
|
|
269
|
-
if self.connection:
|
|
270
|
-
self.connection.close()
|
|
271
|
-
|
|
272
|
-
# Dataclasses for type safety
|
|
273
|
-
@dataclass
|
|
274
|
-
class User:
|
|
275
|
-
id: str
|
|
276
|
-
email: str
|
|
277
|
-
name: str
|
|
278
|
-
created_at: datetime
|
|
279
|
-
is_active: bool = True
|
|
280
|
-
|
|
281
|
-
def to_dict(self) -> dict:
|
|
282
|
-
return asdict(self)
|
|
283
|
-
```
|
|
284
|
-
|
|
285
|
-
### 3. API Implementation
|
|
286
|
-
```typescript
|
|
287
|
-
// Express.js REST API
|
|
288
|
-
app.post('/api/users', async (req: Request, res: Response, next: NextFunction) => {
|
|
289
|
-
try {
|
|
290
|
-
const userData = userCreateSchema.parse(req.body);
|
|
291
|
-
const user = await userService.createUser(userData);
|
|
292
|
-
res.status(201).json({ success: true, data: user });
|
|
293
|
-
} catch (error) {
|
|
294
|
-
next(error);
|
|
295
|
-
}
|
|
296
|
-
});
|
|
297
|
-
|
|
298
|
-
// GraphQL resolver
|
|
299
|
-
const resolvers = {
|
|
300
|
-
Query: {
|
|
301
|
-
user: async (_, { id }, { userService }) => {
|
|
302
|
-
return userService.findById(id);
|
|
303
|
-
}
|
|
304
|
-
},
|
|
305
|
-
Mutation: {
|
|
306
|
-
createUser: async (_, { input }, { userService }) => {
|
|
307
|
-
return userService.createUser(input);
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
};
|
|
311
|
-
```
|
|
104
|
+
## Technology-Specific Approaches
|
|
105
|
+
|
|
106
|
+
### 1. JavaScript/TypeScript Best Practices
|
|
107
|
+
- **Modern Async Patterns**: Use Promise.all for parallel operations, async/await for sequential
|
|
108
|
+
- **Error Boundaries**: Implement error boundaries in React applications for graceful failure handling
|
|
109
|
+
- **Type Safety**: Leverage TypeScript's type system for compile-time error prevention
|
|
110
|
+
- **Module Management**: Use ES6 modules and proper import/export patterns
|
|
111
|
+
- **Memory Management**: Avoid memory leaks with proper cleanup of event listeners and subscriptions
|
|
112
|
+
|
|
113
|
+
### 2. Python Development Standards
|
|
114
|
+
- **Context Managers**: Use context managers for resource management and cleanup
|
|
115
|
+
- **Type Hints**: Apply type hints for better code documentation and IDE support
|
|
116
|
+
- **Dataclasses**: Use dataclasses or Pydantic for structured data representation
|
|
117
|
+
- **Error Handling**: Implement proper exception handling with specific exception types
|
|
118
|
+
- **Virtual Environments**: Manage dependencies with virtual environments and requirements files
|
|
119
|
+
|
|
120
|
+
### 3. API Development Guidelines
|
|
121
|
+
- **RESTful Design**: Follow REST principles for predictable API behavior
|
|
122
|
+
- **Input Validation**: Validate all input data with appropriate schemas
|
|
123
|
+
- **Error Responses**: Provide consistent, informative error response formats
|
|
124
|
+
- **Authentication**: Implement secure authentication and authorization patterns
|
|
125
|
+
- **Documentation**: Generate API documentation that stays in sync with implementation
|
|
312
126
|
|
|
313
127
|
## Security Implementation
|
|
314
128
|
|
|
315
|
-
### 1. Input Validation
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
```
|
|
329
|
-
|
|
330
|
-
### 2. Authentication & Authorization
|
|
331
|
-
```typescript
|
|
332
|
-
// JWT middleware
|
|
333
|
-
const authenticateToken = (req: AuthRequest, res: Response, next: NextFunction) => {
|
|
334
|
-
const authHeader = req.headers['authorization'];
|
|
335
|
-
const token = authHeader && authHeader.split(' ')[1];
|
|
336
|
-
|
|
337
|
-
if (!token) {
|
|
338
|
-
return res.sendStatus(401);
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
jwt.verify(token, process.env.ACCESS_TOKEN_SECRET!, (err, user) => {
|
|
342
|
-
if (err) return res.sendStatus(403);
|
|
343
|
-
req.user = user as User;
|
|
344
|
-
next();
|
|
345
|
-
});
|
|
346
|
-
};
|
|
347
|
-
|
|
348
|
-
// Role-based authorization
|
|
349
|
-
const requireRole = (role: string) => {
|
|
350
|
-
return (req: AuthRequest, res: Response, next: NextFunction) => {
|
|
351
|
-
if (!req.user || !req.user.roles.includes(role)) {
|
|
352
|
-
return res.status(403).json({ error: 'Insufficient permissions' });
|
|
353
|
-
}
|
|
354
|
-
next();
|
|
355
|
-
};
|
|
356
|
-
};
|
|
357
|
-
```
|
|
129
|
+
### 1. Input Validation Approach
|
|
130
|
+
- **Schema Validation**: Use validation libraries (Zod, Joi, Pydantic) for structured input validation
|
|
131
|
+
- **Sanitization**: Sanitize user input to prevent injection attacks
|
|
132
|
+
- **Type Checking**: Leverage type systems to catch validation errors at compile time
|
|
133
|
+
- **Boundary Validation**: Validate data at system boundaries (API endpoints, database interfaces)
|
|
134
|
+
- **Error Handling**: Provide secure error messages that don't leak sensitive information
|
|
135
|
+
|
|
136
|
+
### 2. Authentication & Authorization Strategy
|
|
137
|
+
- **Token-Based Authentication**: Implement JWT or similar token-based authentication systems
|
|
138
|
+
- **Role-Based Access Control**: Design RBAC systems with clear role definitions
|
|
139
|
+
- **Session Management**: Handle session lifecycle securely with appropriate timeouts
|
|
140
|
+
- **Multi-Factor Authentication**: Integrate MFA for enhanced security when required
|
|
141
|
+
- **Principle of Least Privilege**: Grant minimal necessary permissions for each role
|
|
358
142
|
|
|
359
143
|
## Collaboration with Other Agents
|
|
360
144
|
|
|
@@ -1,26 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: byzantine-coordinator
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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"
|
|
3
|
+
description: Use this agent when you need Byzantine fault-tolerant consensus protocols with malicious actor detection and secure distributed coordination. This agent excels at managing PBFT protocols, detecting malicious behavior, and ensuring system integrity in adversarial environments. Examples - PBFT consensus coordination, Malicious actor detection, Message authentication, View change management, Attack mitigation, Secure distributed systems, Fault-tolerant protocols, Cryptographic verification
|
|
4
|
+
tools: Read, Write, Edit, Bash, Grep, Glob, TodoWrite
|
|
5
|
+
model: sonnet
|
|
6
|
+
color: purple
|
|
24
7
|
---
|
|
25
8
|
|
|
26
9
|
# Byzantine Consensus Coordinator
|
|
@@ -1,26 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: consensus-builder
|
|
3
|
-
|
|
3
|
+
description: Use this agent when you need to build and manage various consensus mechanisms for distributed agent coordination and decision-making. This agent excels at implementing Byzantine fault tolerance, Raft consensus, PBFT protocols, and other agreement systems. Examples - Consensus algorithm implementation, Distributed decision-making, Agreement protocols, Byzantine fault tolerance, Agent coordination, Distributed systems consensus, Voting mechanisms, Quorum management
|
|
4
|
+
tools: Read, Write, Edit, Bash, Grep, Glob, TodoWrite
|
|
5
|
+
model: sonnet
|
|
4
6
|
color: purple
|
|
5
|
-
priority: high
|
|
6
|
-
capabilities:
|
|
7
|
-
- consensus-algorithms
|
|
8
|
-
- distributed-decision-making
|
|
9
|
-
- agreement-protocols
|
|
10
|
-
- byzantine-fault-tolerance
|
|
11
|
-
- coordination
|
|
12
|
-
- distributed-systems
|
|
13
|
-
metadata:
|
|
14
|
-
description: General consensus mechanism builder for distributed agent coordination and decision-making
|
|
15
|
-
category: consensus
|
|
16
|
-
tags:
|
|
17
|
-
- consensus
|
|
18
|
-
- distributed
|
|
19
|
-
- coordination
|
|
20
|
-
- decision-making
|
|
21
|
-
hooks:
|
|
22
|
-
pre: "echo 'Initializing consensus mechanisms...'"
|
|
23
|
-
post: "echo 'Consensus protocols established.'"
|
|
24
7
|
---
|
|
25
8
|
|
|
26
9
|
# Consensus Builder Agent
|
|
@@ -1,26 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: crdt-synchronizer
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
- state_based_crdts
|
|
8
|
-
- operation_based_crdts
|
|
9
|
-
- delta_synchronization
|
|
10
|
-
- conflict_resolution
|
|
11
|
-
- causal_consistency
|
|
12
|
-
priority: high
|
|
13
|
-
hooks:
|
|
14
|
-
pre: |
|
|
15
|
-
echo "🔄 CRDT Synchronizer syncing: $TASK"
|
|
16
|
-
# Initialize CRDT state tracking
|
|
17
|
-
if [[ "$TASK" == *"synchronization"* ]]; then
|
|
18
|
-
echo "📊 Preparing delta state computation"
|
|
19
|
-
fi
|
|
20
|
-
post: |
|
|
21
|
-
echo "🎯 CRDT synchronization complete"
|
|
22
|
-
# Verify eventual consistency
|
|
23
|
-
echo "✅ Validating conflict-free state convergence"
|
|
3
|
+
description: Use this agent when you need Conflict-free Replicated Data Types for eventually consistent distributed state synchronization. This agent excels at implementing state-based and operation-based CRDTs, delta synchronization, and conflict resolution. Examples - CRDT implementation, State synchronization, Operation-based CRDTs, Delta synchronization, Conflict resolution, Causal consistency, Distributed state management, Eventually consistent systems
|
|
4
|
+
tools: Read, Write, Edit, Bash, Grep, Glob, TodoWrite
|
|
5
|
+
model: sonnet
|
|
6
|
+
color: green
|
|
24
7
|
---
|
|
25
8
|
|
|
26
9
|
# CRDT Synchronizer
|
|
@@ -1,26 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gossip-coordinator
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
- epidemic_dissemination
|
|
8
|
-
- peer_selection
|
|
9
|
-
- state_synchronization
|
|
10
|
-
- conflict_resolution
|
|
11
|
-
- scalability_optimization
|
|
12
|
-
priority: medium
|
|
13
|
-
hooks:
|
|
14
|
-
pre: |
|
|
15
|
-
echo "📡 Gossip Coordinator broadcasting: $TASK"
|
|
16
|
-
# Initialize peer connections
|
|
17
|
-
if [[ "$TASK" == *"dissemination"* ]]; then
|
|
18
|
-
echo "🌐 Establishing peer network topology"
|
|
19
|
-
fi
|
|
20
|
-
post: |
|
|
21
|
-
echo "🔄 Gossip protocol cycle complete"
|
|
22
|
-
# Check convergence status
|
|
23
|
-
echo "📊 Monitoring eventual consistency convergence"
|
|
3
|
+
description: Use this agent when you need gossip-based consensus protocols for scalable eventually consistent distributed systems. This agent excels at epidemic dissemination, peer management, state synchronization, and convergence monitoring. Examples - Epidemic dissemination, Peer selection and management, State synchronization, Conflict resolution, Scalability optimization, Eventually consistent systems, Anti-entropy protocols, Membership management
|
|
4
|
+
tools: Read, Write, Edit, Bash, Grep, Glob, TodoWrite
|
|
5
|
+
model: sonnet
|
|
6
|
+
color: orange
|
|
24
7
|
---
|
|
25
8
|
|
|
26
9
|
# Gossip Protocol Coordinator
|