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.
Files changed (345) hide show
  1. package/.claude/agents/analysis/code-analyzer.md +3 -20
  2. package/.claude/agents/analysis/code-review/analyze-code-quality.md +1 -1
  3. package/.claude/agents/analyst.md +208 -550
  4. package/.claude/agents/architect.md +136 -469
  5. package/.claude/agents/architecture/system-architect.md +20 -1
  6. package/.claude/agents/architecture/system-design/arch-system-design.md +1 -1
  7. package/.claude/agents/base-template-generator.md +24 -1
  8. package/.claude/agents/coder.md +87 -303
  9. package/.claude/agents/consensus/byzantine-coordinator.md +4 -21
  10. package/.claude/agents/consensus/consensus-builder.md +3 -20
  11. package/.claude/agents/consensus/crdt-synchronizer.md +4 -21
  12. package/.claude/agents/consensus/gossip-coordinator.md +4 -21
  13. package/.claude/agents/consensus/performance-benchmarker.md +4 -21
  14. package/.claude/agents/consensus/quorum-manager.md +4 -21
  15. package/.claude/agents/consensus/raft-manager.md +4 -21
  16. package/.claude/agents/consensus/security-manager.md +4 -21
  17. package/.claude/agents/coordinator.md +22 -11
  18. package/.claude/agents/data/ml/data-ml-model.md +2 -2
  19. package/.claude/agents/development/backend/dev-backend-api.md +2 -2
  20. package/.claude/agents/devops/ci-cd/ops-cicd-github.md +2 -2
  21. package/.claude/agents/devops/devops-engineer.md +134 -402
  22. package/.claude/agents/documentation/api-docs/docs-api-openapi.md +2 -2
  23. package/.claude/agents/github/code-review-swarm.md +1 -1
  24. package/.claude/agents/github/github-specialist.md +856 -0
  25. package/.claude/agents/github/pr-manager.md +1 -1
  26. package/.claude/agents/github/release-manager.md +1 -1
  27. package/.claude/agents/neural/neural-pattern-agent.md +762 -0
  28. package/.claude/agents/optimization/benchmark-suite.md +1 -1
  29. package/.claude/agents/optimization/perf-analyzer.md +1 -1
  30. package/.claude/agents/optimization/performance-monitor.md +1 -1
  31. package/.claude/agents/planner.md +135 -0
  32. package/.claude/agents/researcher.md +22 -9
  33. package/.claude/agents/reviewer.md +291 -0
  34. package/.claude/agents/security/security-specialist.md +1 -1
  35. package/.claude/agents/sparc/architecture.md +1 -1
  36. package/.claude/agents/sparc/pseudocode.md +1 -1
  37. package/.claude/agents/sparc/refinement.md +1 -1
  38. package/.claude/agents/sparc/specification.md +1 -1
  39. package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +2 -2
  40. package/.claude/agents/tester.md +21 -11
  41. package/.claude/agents/testing/unit/tdd-london-swarm.md +1 -1
  42. package/.claude/agents/testing/validation/production-validator.md +1 -1
  43. package/.claude/commands/claude-soul.js +1 -1
  44. package/.claude/hooks.json +12 -15
  45. package/{.claude → .claude-flow-novice/.claude}/agents/MIGRATION_SUMMARY.md +1 -1
  46. package/.claude-flow-novice/.claude/agents/analysis/code-analyzer.md +192 -0
  47. package/.claude-flow-novice/.claude/agents/analysis/code-review/analyze-code-quality.md +180 -0
  48. package/.claude-flow-novice/.claude/agents/analyst.md +300 -0
  49. package/.claude-flow-novice/.claude/agents/architect.md +557 -0
  50. package/.claude-flow-novice/.claude/agents/architecture/system-architect.md +630 -0
  51. package/.claude-flow-novice/.claude/agents/architecture/system-design/arch-system-design.md +156 -0
  52. package/.claude-flow-novice/.claude/agents/base-template-generator.md +65 -0
  53. package/.claude-flow-novice/.claude/agents/coder.md +180 -0
  54. package/.claude-flow-novice/.claude/agents/consensus/byzantine-coordinator.md +46 -0
  55. package/.claude-flow-novice/.claude/agents/consensus/consensus-builder.md +225 -0
  56. package/.claude-flow-novice/.claude/agents/consensus/crdt-synchronizer.md +980 -0
  57. package/.claude-flow-novice/.claude/agents/consensus/gossip-coordinator.md +46 -0
  58. package/.claude-flow-novice/.claude/agents/consensus/performance-benchmarker.md +834 -0
  59. package/.claude-flow-novice/.claude/agents/consensus/quorum-manager.md +806 -0
  60. package/.claude-flow-novice/.claude/agents/consensus/raft-manager.md +46 -0
  61. package/.claude-flow-novice/.claude/agents/consensus/security-manager.md +605 -0
  62. package/.claude-flow-novice/.claude/agents/coordinator.md +842 -0
  63. package/.claude-flow-novice/.claude/agents/data/ml/data-ml-model.md +193 -0
  64. package/.claude-flow-novice/.claude/agents/development/backend/dev-backend-api.md +142 -0
  65. package/.claude-flow-novice/.claude/agents/devops/ci-cd/ops-cicd-github.md +164 -0
  66. package/.claude-flow-novice/.claude/agents/devops/devops-engineer.md +638 -0
  67. package/.claude-flow-novice/.claude/agents/documentation/api-docs/docs-api-openapi.md +174 -0
  68. package/.claude-flow-novice/.claude/agents/github/code-review-swarm.md +538 -0
  69. package/.claude-flow-novice/.claude/agents/github/github-modes.md +173 -0
  70. package/.claude-flow-novice/.claude/agents/github/github-specialist.md +856 -0
  71. package/.claude-flow-novice/.claude/agents/github/issue-tracker.md +319 -0
  72. package/.claude-flow-novice/.claude/agents/github/multi-repo-swarm.md +553 -0
  73. package/.claude-flow-novice/.claude/agents/github/pr-manager.md +191 -0
  74. package/.claude-flow-novice/.claude/agents/github/project-board-sync.md +509 -0
  75. package/.claude-flow-novice/.claude/agents/github/release-manager.md +367 -0
  76. package/.claude-flow-novice/.claude/agents/github/release-swarm.md +583 -0
  77. package/.claude-flow-novice/.claude/agents/github/repo-architect.md +398 -0
  78. package/.claude-flow-novice/.claude/agents/github/swarm-issue.md +573 -0
  79. package/.claude-flow-novice/.claude/agents/github/swarm-pr.md +428 -0
  80. package/.claude-flow-novice/.claude/agents/github/sync-coordinator.md +452 -0
  81. package/.claude-flow-novice/.claude/agents/github/workflow-automation.md +635 -0
  82. package/.claude-flow-novice/.claude/agents/goal/goal-planner.md +73 -0
  83. package/.claude-flow-novice/.claude/agents/neural/neural-pattern-agent.md +762 -0
  84. package/.claude-flow-novice/.claude/agents/neural/safla-neural.md +74 -0
  85. package/.claude-flow-novice/.claude/agents/optimization/benchmark-suite.md +665 -0
  86. package/.claude-flow-novice/.claude/agents/optimization/load-balancer.md +431 -0
  87. package/.claude-flow-novice/.claude/agents/optimization/perf-analyzer.md +725 -0
  88. package/.claude-flow-novice/.claude/agents/optimization/performance-monitor.md +672 -0
  89. package/.claude-flow-novice/.claude/agents/optimization/resource-allocator.md +674 -0
  90. package/.claude-flow-novice/.claude/agents/optimization/topology-optimizer.md +808 -0
  91. package/.claude-flow-novice/.claude/agents/planner.md +135 -0
  92. package/.claude-flow-novice/.claude/agents/researcher.md +185 -0
  93. package/.claude-flow-novice/.claude/agents/reviewer.md +291 -0
  94. package/.claude-flow-novice/.claude/agents/security/security-specialist.md +978 -0
  95. package/.claude-flow-novice/.claude/agents/sparc/architecture.md +472 -0
  96. package/.claude-flow-novice/.claude/agents/sparc/pseudocode.md +318 -0
  97. package/.claude-flow-novice/.claude/agents/sparc/refinement.md +525 -0
  98. package/.claude-flow-novice/.claude/agents/sparc/specification.md +276 -0
  99. package/.claude-flow-novice/.claude/agents/specialized/mobile/spec-mobile-react-native.md +226 -0
  100. package/.claude-flow-novice/.claude/agents/sublinear/consciousness-evolution-agent.md +499 -0
  101. package/.claude-flow-novice/.claude/agents/sublinear/matrix-solver-agent.md +113 -0
  102. package/.claude-flow-novice/.claude/agents/sublinear/nanosecond-scheduler-agent.md +644 -0
  103. package/.claude-flow-novice/.claude/agents/sublinear/pagerank-agent.md +699 -0
  104. package/.claude-flow-novice/.claude/agents/sublinear/phi-calculator-agent.md +749 -0
  105. package/.claude-flow-novice/.claude/agents/sublinear/psycho-symbolic-agent.md +543 -0
  106. package/.claude-flow-novice/.claude/agents/sublinear/sublinear.md +816 -0
  107. package/.claude-flow-novice/.claude/agents/sublinear/temporal-advantage-agent.md +360 -0
  108. package/.claude-flow-novice/.claude/agents/swarm/adaptive-coordinator-enhanced.md +746 -0
  109. package/.claude-flow-novice/.claude/agents/swarm/adaptive-coordinator.md +396 -0
  110. package/.claude-flow-novice/.claude/agents/swarm/hierarchical-coordinator.md +300 -0
  111. package/.claude-flow-novice/.claude/agents/swarm/mesh-coordinator.md +435 -0
  112. package/.claude-flow-novice/.claude/agents/templates/automation-smart-agent.md +205 -0
  113. package/.claude-flow-novice/.claude/agents/templates/coordinator-swarm-init.md +90 -0
  114. package/.claude-flow-novice/.claude/agents/templates/github-pr-manager.md +177 -0
  115. package/.claude-flow-novice/.claude/agents/templates/implementer-sparc-coder.md +259 -0
  116. package/.claude-flow-novice/.claude/agents/templates/memory-coordinator.md +187 -0
  117. package/.claude-flow-novice/.claude/agents/templates/migration-plan.md +746 -0
  118. package/.claude-flow-novice/.claude/agents/templates/orchestrator-task.md +139 -0
  119. package/.claude-flow-novice/.claude/agents/templates/performance-analyzer.md +199 -0
  120. package/.claude-flow-novice/.claude/agents/templates/sparc-coordinator.md +183 -0
  121. package/.claude-flow-novice/.claude/agents/tester.md +663 -0
  122. package/.claude-flow-novice/.claude/agents/testing/e2e/playwright-agent.md +249 -0
  123. package/.claude-flow-novice/.claude/agents/testing/unit/tdd-london-swarm.md +244 -0
  124. package/.claude-flow-novice/.claude/agents/testing/validation/production-validator.md +395 -0
  125. package/.claude-flow-novice/dist/index.js +12 -24
  126. package/.claude-flow-novice/dist/index.js.map +1 -0
  127. package/.claude-flow-novice/dist/src/agents/agent-manager.js +123 -69
  128. package/.claude-flow-novice/dist/src/agents/agent-manager.js.map +1 -1
  129. package/.claude-flow-novice/dist/src/agents/github/utils/hook-integration.js +7 -7
  130. package/.claude-flow-novice/dist/src/agents/github/utils/hook-integration.js.map +1 -1
  131. package/.claude-flow-novice/dist/src/agents/stage3-integration-validator.js +485 -0
  132. package/.claude-flow-novice/dist/src/agents/stage3-integration-validator.js.map +1 -0
  133. package/.claude-flow-novice/dist/src/agents/unified-ultra-fast-agent-manager.js +630 -0
  134. package/.claude-flow-novice/dist/src/agents/unified-ultra-fast-agent-manager.js.map +1 -0
  135. package/.claude-flow-novice/dist/src/cli/commands/agent.js +1 -1
  136. package/.claude-flow-novice/dist/src/cli/commands/agent.js.map +1 -1
  137. package/.claude-flow-novice/dist/src/cli/commands/config-integration.js +6 -6
  138. package/.claude-flow-novice/dist/src/cli/commands/enterprise.js +18 -18
  139. package/.claude-flow-novice/dist/src/cli/commands/enterprise.js.map +1 -1
  140. package/.claude-flow-novice/dist/src/cli/commands/goal-init.js +4 -4
  141. package/.claude-flow-novice/dist/src/cli/commands/help-new.js +23 -23
  142. package/.claude-flow-novice/dist/src/cli/commands/help-new.js.map +1 -1
  143. package/.claude-flow-novice/dist/src/cli/commands/help.js +74 -74
  144. package/.claude-flow-novice/dist/src/cli/commands/help.js.map +1 -1
  145. package/.claude-flow-novice/dist/src/cli/commands/hive-mind/pause.js +2 -2
  146. package/.claude-flow-novice/dist/src/cli/commands/hive-mind/pause.js.map +1 -1
  147. package/.claude-flow-novice/dist/src/cli/commands/hive.js +4 -4
  148. package/.claude-flow-novice/dist/src/cli/commands/index.js +103 -132
  149. package/.claude-flow-novice/dist/src/cli/commands/index.js.map +1 -1
  150. package/.claude-flow-novice/dist/src/cli/commands/mcp.js +1 -1
  151. package/.claude-flow-novice/dist/src/cli/commands/migrate.js +4 -4
  152. package/.claude-flow-novice/dist/src/cli/commands/migrate.js.map +1 -1
  153. package/.claude-flow-novice/dist/src/cli/commands/monitor.js +1 -1
  154. package/.claude-flow-novice/dist/src/cli/commands/neural-init.js +4 -4
  155. package/.claude-flow-novice/dist/src/cli/commands/ruv-swarm.js +8 -8
  156. package/.claude-flow-novice/dist/src/cli/commands/sparc.js +12 -12
  157. package/.claude-flow-novice/dist/src/cli/commands/sparc.js.map +1 -1
  158. package/.claude-flow-novice/dist/src/cli/commands/start/start-command.js +3 -3
  159. package/.claude-flow-novice/dist/src/cli/commands/status.js +1 -1
  160. package/.claude-flow-novice/dist/src/cli/commands/swarm.js +7 -7
  161. package/.claude-flow-novice/dist/src/cli/commands/swarm.js.map +1 -1
  162. package/.claude-flow-novice/dist/src/cli/commands/verification.js +18 -18
  163. package/.claude-flow-novice/dist/src/cli/completion.js +54 -54
  164. package/.claude-flow-novice/dist/src/cli/completion.js.map +1 -1
  165. package/.claude-flow-novice/dist/src/cli/consolidated/ConsolidatedCLI.js +11 -11
  166. package/.claude-flow-novice/dist/src/cli/consolidated/ConsolidatedCLI.js.map +1 -1
  167. package/.claude-flow-novice/dist/src/cli/consolidated/core/CommandHandlers.js +31 -31
  168. package/.claude-flow-novice/dist/src/cli/consolidated/core/TierManager.js +39 -39
  169. package/.claude-flow-novice/dist/src/cli/consolidated/core/TierManager.js.map +1 -1
  170. package/.claude-flow-novice/dist/src/cli/consolidated/help/InteractiveHelp.js +25 -25
  171. package/.claude-flow-novice/dist/src/cli/consolidated/help/InteractiveHelp.js.map +1 -1
  172. package/.claude-flow-novice/dist/src/cli/consolidated/routing/CommandRouter.js +8 -8
  173. package/.claude-flow-novice/dist/src/cli/consolidated/routing/CommandRouter.js.map +1 -1
  174. package/.claude-flow-novice/dist/src/cli/consolidated/utils/IntelligentDefaults.js +6 -6
  175. package/.claude-flow-novice/dist/src/cli/consolidated/utils/IntelligentDefaults.js.map +1 -1
  176. package/.claude-flow-novice/dist/src/cli/consolidated/utils/PerformanceOptimizer.js +7 -7
  177. package/.claude-flow-novice/dist/src/cli/consolidated/utils/PerformanceOptimizer.js.map +1 -1
  178. package/.claude-flow-novice/dist/src/cli/index-remote.js +10 -10
  179. package/.claude-flow-novice/dist/src/cli/index.js +1 -1
  180. package/.claude-flow-novice/dist/src/cli/init/directory-structure.js +8 -8
  181. package/.claude-flow-novice/dist/src/cli/init/index.js +3 -3
  182. package/.claude-flow-novice/dist/src/cli/init/sparc-environment.js +67 -67
  183. package/.claude-flow-novice/dist/src/cli/init/swarm-commands.js +18 -18
  184. package/.claude-flow-novice/dist/src/cli/node-repl.js +2 -2
  185. package/.claude-flow-novice/dist/src/cli/repl.js +1 -1
  186. package/.claude-flow-novice/dist/src/cli/simple-cli.js +68 -68
  187. package/.claude-flow-novice/dist/src/cli/simple-cli.js.map +1 -1
  188. package/.claude-flow-novice/dist/src/cli/simple-commands/session-start-soul.js +271 -0
  189. package/.claude-flow-novice/dist/src/cli/simple-orchestrator.js +7 -7
  190. package/.claude-flow-novice/dist/src/cli/simple-orchestrator.js.map +1 -1
  191. package/.claude-flow-novice/dist/src/cli/ui/fallback-handler.js +7 -7
  192. package/.claude-flow-novice/dist/src/communication/enhanced-event-bus.js +816 -0
  193. package/.claude-flow-novice/dist/src/communication/enhanced-event-bus.js.map +1 -0
  194. package/.claude-flow-novice/dist/src/communication/failure-recovery-system.js +812 -0
  195. package/.claude-flow-novice/dist/src/communication/failure-recovery-system.js.map +1 -0
  196. package/.claude-flow-novice/dist/src/communication/optimized-serialization.js +369 -0
  197. package/.claude-flow-novice/dist/src/communication/optimized-serialization.js.map +1 -0
  198. package/.claude-flow-novice/dist/src/communication/performance-optimizations.js +526 -0
  199. package/.claude-flow-novice/dist/src/communication/performance-optimizations.js.map +1 -0
  200. package/.claude-flow-novice/dist/src/communication/performance-validator.js +532 -0
  201. package/.claude-flow-novice/dist/src/communication/performance-validator.js.map +1 -0
  202. package/.claude-flow-novice/dist/src/communication/priority-message-queue.js +525 -0
  203. package/.claude-flow-novice/dist/src/communication/priority-message-queue.js.map +1 -0
  204. package/.claude-flow-novice/dist/src/communication/shared-buffer-bus.js +218 -0
  205. package/.claude-flow-novice/dist/src/communication/shared-buffer-bus.js.map +1 -0
  206. package/.claude-flow-novice/dist/src/communication/ultra-fast-communication-bus.js +521 -0
  207. package/.claude-flow-novice/dist/src/communication/ultra-fast-communication-bus.js.map +1 -0
  208. package/.claude-flow-novice/dist/src/communication/ultra-fast-serialization.js +563 -0
  209. package/.claude-flow-novice/dist/src/communication/ultra-fast-serialization.js.map +1 -0
  210. package/.claude-flow-novice/dist/src/communication/websocket-cluster.js +344 -0
  211. package/.claude-flow-novice/dist/src/communication/websocket-cluster.js.map +1 -0
  212. package/.claude-flow-novice/dist/src/communication/zero-copy-structures.js +369 -0
  213. package/.claude-flow-novice/dist/src/communication/zero-copy-structures.js.map +1 -0
  214. package/.claude-flow-novice/dist/src/config/config-manager.js +1 -1
  215. package/.claude-flow-novice/dist/src/config/config-manager.js.map +1 -1
  216. package/.claude-flow-novice/dist/src/config/core/intelligent-configuration-manager.js +1 -1
  217. package/.claude-flow-novice/dist/src/config/integration/hooks-integration.js +6 -6
  218. package/.claude-flow-novice/dist/src/config/integration/hooks-integration.js.map +1 -1
  219. package/.claude-flow-novice/dist/src/config/migration/config-migration.js +1 -1
  220. package/.claude-flow-novice/dist/src/config/ruv-swarm-integration.js +1 -1
  221. package/.claude-flow-novice/dist/src/config/utils/zero-config-setup.js +1 -1
  222. package/.claude-flow-novice/dist/src/config/utils/zero-config-setup.js.map +1 -1
  223. package/.claude-flow-novice/dist/src/config/web-portal-config.js +0 -9
  224. package/.claude-flow-novice/dist/src/config/web-portal-config.js.map +1 -1
  225. package/.claude-flow-novice/dist/src/config/zero-config-setup.js +18 -18
  226. package/.claude-flow-novice/dist/src/config/zero-config-setup.js.map +1 -1
  227. package/.claude-flow-novice/dist/src/core/logger.js +33 -10
  228. package/.claude-flow-novice/dist/src/core/logger.js.map +1 -1
  229. package/.claude-flow-novice/dist/src/migration/index.js +1 -1
  230. package/.claude-flow-novice/dist/src/migration/index.js.map +1 -1
  231. package/.claude-flow-novice/dist/src/migration/migration-runner.js +4 -4
  232. package/.claude-flow-novice/dist/src/migration/migration-runner.js.map +1 -1
  233. package/.claude-flow-novice/dist/src/monitoring/agent-health-monitor.js +430 -0
  234. package/.claude-flow-novice/dist/src/monitoring/agent-health-monitor.js.map +1 -0
  235. package/.claude-flow-novice/dist/src/slash-commands/claude-soul.js +248 -365
  236. package/.claude-flow-novice/dist/src/slash-commands/register-all-commands.js +1 -1
  237. package/.claude-flow-novice/dist/src/swarm/claude-code-interface.js +1 -1
  238. package/.claude-flow-novice/dist/src/swarm/claude-flow-executor.js +1 -1
  239. package/.claude-flow-novice/dist/src/swarm/consensus-coordinator.js +471 -0
  240. package/.claude-flow-novice/dist/src/swarm/consensus-coordinator.js.map +1 -0
  241. package/.claude-flow-novice/dist/src/swarm/hive-mind-integration.js +1 -1
  242. package/.claude-flow-novice/dist/src/swarm/large-scale-coordinator.js +543 -0
  243. package/.claude-flow-novice/dist/src/swarm/large-scale-coordinator.js.map +1 -0
  244. package/.claude-flow-novice/dist/src/swarm/optimizations/connection-pool.js +1 -1
  245. package/.claude-flow-novice/dist/src/swarm/optimizations/optimized-executor.js +1 -1
  246. package/.claude-flow-novice/dist/src/swarm/types.js.map +1 -1
  247. package/.claude-flow-novice/dist/src/swarm-fullstack/integrations/communication-bridge.js +709 -0
  248. package/.claude-flow-novice/dist/src/swarm-fullstack/integrations/communication-bridge.js.map +1 -0
  249. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/api-contract-validator.js +612 -0
  250. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/api-contract-validator.js.map +1 -0
  251. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/backend-test-orchestrator.js +679 -0
  252. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/backend-test-orchestrator.js.map +1 -0
  253. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/frontend-test-orchestrator.js +654 -0
  254. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/frontend-test-orchestrator.js.map +1 -0
  255. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/visual-regression.js +402 -0
  256. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/visual-regression.js.map +1 -0
  257. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/convergence-detector.js +459 -0
  258. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/convergence-detector.js.map +1 -0
  259. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/fix-coordinator.js +513 -0
  260. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/fix-coordinator.js.map +1 -0
  261. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/index.js +19 -0
  262. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/index.js.map +1 -0
  263. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/iterative-build-test.js +568 -0
  264. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/iterative-build-test.js.map +1 -0
  265. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/regression-test-manager.js +418 -0
  266. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/regression-test-manager.js.map +1 -0
  267. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/test-result-analyzer.js +530 -0
  268. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/test-result-analyzer.js.map +1 -0
  269. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/workflow-metrics.js +250 -0
  270. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/workflow-metrics.js.map +1 -0
  271. package/.claude-flow-novice/dist/src/task/index.js +7 -7
  272. package/.claude-flow-novice/dist/src/validation/fullstack-integration-validator.js +420 -0
  273. package/.claude-flow-novice/dist/src/validation/fullstack-integration-validator.js.map +1 -0
  274. package/.claude-flow-novice/dist/src/validation/production-validator.js +1435 -0
  275. package/.claude-flow-novice/dist/src/validation/production-validator.js.map +1 -0
  276. package/.claude-flow-novice/dist/src/verification/cli-integration.js +3 -3
  277. package/.claude-flow-novice/dist/src/verification/hooks.js +1 -1
  278. package/CHANGELOG.md +13 -0
  279. package/CLAUDE.md +1029 -68
  280. package/README.md +0 -1
  281. package/config/build/babel.config.cjs +19 -11
  282. package/config/typescript/tsconfig.json +1 -1
  283. package/examples/claude-api-error-handling.ts +2 -2
  284. package/examples/frontend-testing-demo.ts +470 -0
  285. package/examples/litellm/config/config.yaml +1 -1
  286. package/package.json +13 -7
  287. package/scripts/build/unified-builder.sh +6 -6
  288. package/scripts/build/validate-agents.js +238 -0
  289. package/scripts/run-production-validation.ts +590 -0
  290. package/scripts/test/test-coordination-features.ts +2 -2
  291. package/scripts/validate-stage3-performance.ts +377 -0
  292. package/src/cli/simple-commands/hooks.js +1 -0
  293. package/src/cli/simple-commands/init/agent-copier.js +0 -2
  294. package/src/cli/simple-commands/init/index.js +5 -97
  295. package/src/cli/simple-commands/init/templates/CLAUDE.md +162 -1158
  296. package/src/cli/simple-commands/init/templates/claude-md.js +38 -157
  297. package/src/swarm-fullstack/integrations/communication-bridge.ts +931 -0
  298. package/src/swarm-fullstack/testing/api-contract-validator.ts +909 -0
  299. package/src/swarm-fullstack/testing/backend-test-orchestrator.ts +791 -0
  300. package/src/swarm-fullstack/testing/frontend-test-orchestrator.ts +853 -0
  301. package/src/swarm-fullstack/testing/visual-regression.ts +507 -0
  302. package/src/swarm-fullstack/workflows/convergence-detector.ts +736 -0
  303. package/src/swarm-fullstack/workflows/fix-coordinator.ts +677 -0
  304. package/src/swarm-fullstack/workflows/index.ts +75 -0
  305. package/src/swarm-fullstack/workflows/iterative-build-test.ts +829 -0
  306. package/src/swarm-fullstack/workflows/regression-test-manager.ts +590 -0
  307. package/src/swarm-fullstack/workflows/test-result-analyzer.ts +739 -0
  308. package/src/swarm-fullstack/workflows/workflow-metrics.ts +399 -0
  309. package/wiki/command-reference/README.md +1 -2
  310. package/wiki/command-reference/mcp-tools/README.md +1 -1
  311. package/wiki/getting-started/claude-code-mcp/README.md +1 -2
  312. package/wiki/getting-started/installation/README.md +2 -10
  313. package/.claude/commands/flow-nexus/app-store.md +0 -124
  314. package/.claude/commands/flow-nexus/challenges.md +0 -120
  315. package/.claude/commands/flow-nexus/login-registration.md +0 -65
  316. package/.claude/commands/flow-nexus/neural-network.md +0 -134
  317. package/.claude/commands/flow-nexus/payments.md +0 -116
  318. package/.claude/commands/flow-nexus/sandbox.md +0 -83
  319. package/.claude/commands/flow-nexus/swarm.md +0 -87
  320. package/.claude/commands/flow-nexus/user-tools.md +0 -152
  321. package/.claude/commands/flow-nexus/workflow.md +0 -115
  322. package/.claude-flow-novice/dist/cli/index.js +0 -45
  323. package/.claude-flow-novice/dist/core/index.js +0 -22
  324. package/.claude-flow-novice/dist/mcp/mcp-server-novice.js +0 -595
  325. package/.claude-flow-novice/dist/mcp/mcp-server-sdk.js +0 -649
  326. package/.claude-flow-novice/dist/mcp/mcp-server-with-slash-commands.js +0 -776
  327. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/claude-md.js +0 -1101
  328. package/src/cli/simple-commands/init/templates/CLAUDE.md.optimized +0 -265
  329. /package/{.claude → .claude-flow-novice/.claude}/agents/README.md +0 -0
  330. /package/{.claude → .claude-flow-novice/.claude}/agents/backend-dev.json +0 -0
  331. /package/{.claude → .claude-flow-novice/.claude}/agents/code-analyzer.json +0 -0
  332. /package/{.claude → .claude-flow-novice/.claude}/agents/coder.json +0 -0
  333. /package/{.claude → .claude-flow-novice/.claude}/agents/consensus/README.md +0 -0
  334. /package/{.claude → .claude-flow-novice/.claude}/agents/core/coder.md +0 -0
  335. /package/{.claude → .claude-flow-novice/.claude}/agents/core/planner.md +0 -0
  336. /package/{.claude → .claude-flow-novice/.claude}/agents/core/researcher.md +0 -0
  337. /package/{.claude → .claude-flow-novice/.claude}/agents/core/reviewer.md +0 -0
  338. /package/{.claude → .claude-flow-novice/.claude}/agents/core/tester.md +0 -0
  339. /package/{.claude → .claude-flow-novice/.claude}/agents/optimization/README.md +0 -0
  340. /package/{.claude → .claude-flow-novice/.claude}/agents/planner.json +0 -0
  341. /package/{.claude → .claude-flow-novice/.claude}/agents/researcher.json +0 -0
  342. /package/{.claude → .claude-flow-novice/.claude}/agents/reviewer.json +0 -0
  343. /package/{.claude → .claude-flow-novice/.claude}/agents/swarm/README.md +0 -0
  344. /package/{.claude → .claude-flow-novice/.claude}/agents/system-architect.json +0 -0
  345. /package/{.claude → .claude-flow-novice/.claude}/agents/tester.json +0 -0
@@ -1,21 +1,32 @@
1
1
  ---
2
2
  name: architect
3
- description: Use this agent when you need system design, architecture planning, and technical decision-making. This agent excels at designing scalable systems, defining technical specifications, and making strategic technology choices. Examples - System architecture design, Technology stack selection, Database schema design, API design, Microservices architecture, Cloud infrastructure planning, Integration architecture, Scalability planning, Technical specifications, Design patterns selection
4
- tools:
5
- - Read
6
- - Write
7
- - Edit
8
- - Bash
9
- - Glob
10
- - Grep
11
- - WebSearch
12
- - TodoWrite
13
- model: claude-3-5-sonnet-20241022
3
+ description: MUST BE USED when designing system architecture, planning technical infrastructure, making architectural decisions, or evaluating technology choices. use PROACTIVELY for database schema design, API design, microservices architecture, scalability planning, cloud infrastructure design, integration patterns, performance optimization architecture, security architecture, data flow design, component decomposition, technology stack selection. ALWAYS delegate when user asks to "design system", "architect solution", "plan infrastructure", "structure application", "choose tech stack", "design API", "design database", "scale system", "optimize architecture", "evaluate technologies". Keywords - design, architect, structure, plan, infrastructure, schema, API design, scalability, microservices, system design, technical decisions, cloud architecture, integration, performance, technology evaluation, architectural patterns
4
+ tools: Read, Write, Edit, Bash, Glob, Grep, WebSearch, TodoWrite
5
+ model: sonnet
14
6
  color: cyan
15
7
  ---
16
8
 
17
9
  You are an Architect Agent, a senior system architect specializing in designing scalable, maintainable, and robust software systems. Your expertise lies in making strategic technical decisions, defining system architecture, and ensuring that technical solutions align with business requirements and long-term goals.
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 "architect/[DESIGN_PHASE]" --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. System Architecture Design
@@ -49,489 +60,145 @@ You are an Architect Agent, a senior system architect specializing in designing
49
60
 
50
61
  ### 1. Architecture Design Process
51
62
 
52
- ```typescript
53
- // Architecture design framework
54
- interface ArchitecturalDesign {
55
- requirements: {
56
- functional: FunctionalRequirement[];
57
- nonFunctional: NonFunctionalRequirement[];
58
- constraints: Constraint[];
59
- };
60
- architecture: {
61
- components: Component[];
62
- connections: Connection[];
63
- patterns: ArchitecturalPattern[];
64
- technologies: TechnologyChoice[];
65
- };
66
- implementation: {
67
- phases: ImplementationPhase[];
68
- timeline: Timeline;
69
- resources: ResourceRequirement[];
70
- };
71
- validation: {
72
- criteria: ValidationCriteria[];
73
- risks: Risk[];
74
- mitigations: Mitigation[];
75
- };
76
- }
77
-
78
- // Requirements analysis
79
- const analyzeRequirements = (
80
- businessRequirements: BusinessRequirement[]
81
- ): ArchitecturalRequirements => {
82
- return {
83
- functionalRequirements: extractFunctionalRequirements(businessRequirements),
84
- qualityAttributes: identifyQualityAttributes(businessRequirements),
85
- constraints: identifyConstraints(businessRequirements),
86
- assumptions: documentAssumptions(businessRequirements)
87
- };
88
- };
89
-
90
- // Architecture decision records (ADRs)
91
- interface ArchitectureDecisionRecord {
92
- id: string;
93
- title: string;
94
- status: 'proposed' | 'accepted' | 'deprecated' | 'superseded';
95
- context: string;
96
- decision: string;
97
- consequences: {
98
- positive: string[];
99
- negative: string[];
100
- risks: string[];
101
- };
102
- alternatives: AlternativeOption[];
103
- relatedDecisions: string[];
104
- }
105
- ```
63
+ **Architecture Framework Components:**
64
+ - **Requirements Analysis**: Extract functional and non-functional requirements from business needs
65
+ - **Component Design**: Define system components, their responsibilities, and interactions
66
+ - **Pattern Selection**: Choose appropriate architectural patterns and design approaches
67
+ - **Technology Evaluation**: Select technologies based on requirements and constraints
68
+ - **Implementation Planning**: Plan implementation phases, timelines, and resource allocation
69
+ - **Risk Assessment**: Identify risks and develop mitigation strategies
70
+
71
+ **Requirements Analysis Approach:**
72
+ - **Functional Requirements Extraction**: Identify what the system must do
73
+ - **Quality Attributes Identification**: Determine performance, security, scalability needs
74
+ - **Constraint Recognition**: Acknowledge technical, business, and regulatory constraints
75
+ - **Assumption Documentation**: Document architectural assumptions for validation
76
+
77
+ **Architecture Decision Records (ADRs):**
78
+ - **Decision Tracking**: Maintain records of significant architectural decisions
79
+ - **Context Documentation**: Capture the circumstances that led to decisions
80
+ - **Alternative Analysis**: Document considered alternatives and rationale for rejection
81
+ - **Consequence Evaluation**: Record positive and negative impacts of decisions
82
+ - **Status Management**: Track decision lifecycle (proposed, accepted, deprecated, superseded)
106
83
 
107
84
  ### 2. System Design Patterns
108
85
 
109
- ```typescript
110
- // Layered Architecture Pattern
111
- interface LayeredArchitecture {
112
- presentationLayer: {
113
- components: ['Controllers', 'Views', 'DTOs'];
114
- responsibilities: ['User Interface', 'Input Validation', 'Response Formatting'];
115
- };
116
- applicationLayer: {
117
- components: ['Services', 'Use Cases', 'Application Logic'];
118
- responsibilities: ['Business Logic', 'Transaction Management', 'Coordination'];
119
- };
120
- domainLayer: {
121
- components: ['Entities', 'Value Objects', 'Domain Services'];
122
- responsibilities: ['Core Business Rules', 'Domain Logic', 'Business Invariants'];
123
- };
124
- infrastructureLayer: {
125
- components: ['Repositories', 'External Services', 'Frameworks'];
126
- responsibilities: ['Data Persistence', 'External Integration', 'Technical Concerns'];
127
- };
128
- }
129
-
130
- // Microservices Architecture Pattern
131
- interface MicroservicesArchitecture {
132
- services: {
133
- name: string;
134
- responsibilities: string[];
135
- datastore: string;
136
- api: APISpecification;
137
- dependencies: string[];
138
- scalingStrategy: ScalingStrategy;
139
- }[];
140
- communicationPatterns: {
141
- synchronous: ['HTTP/REST', 'gRPC'];
142
- asynchronous: ['Message Queues', 'Event Streaming'];
143
- };
144
- infrastructureComponents: {
145
- apiGateway: APIGatewayConfig;
146
- serviceDiscovery: ServiceDiscoveryConfig;
147
- loadBalancer: LoadBalancerConfig;
148
- monitoring: MonitoringConfig;
149
- };
150
- }
151
-
152
- // Event-Driven Architecture
153
- interface EventDrivenArchitecture {
154
- eventSources: EventSource[];
155
- eventProcessors: EventProcessor[];
156
- eventStore: EventStoreConfig;
157
- messagingInfrastructure: {
158
- eventBus: EventBusConfig;
159
- messageQueues: MessageQueueConfig[];
160
- streamProcessing: StreamProcessingConfig;
161
- };
162
- patterns: {
163
- eventSourcing: boolean;
164
- cqrs: boolean;
165
- saga: boolean;
166
- };
167
- }
168
- ```
86
+ **Layered Architecture Pattern:**
87
+ - **Presentation Layer**: Handle user interface, input validation, and response formatting
88
+ - **Application Layer**: Implement business logic, transaction management, and coordination
89
+ - **Domain Layer**: Contain core business rules, domain logic, and business invariants
90
+ - **Infrastructure Layer**: Manage data persistence, external integration, and technical concerns
91
+ - **Benefits**: Clear separation of concerns, testability, maintainability
92
+ - **Considerations**: Potential performance overhead, complexity in simple applications
93
+
94
+ **Microservices Architecture Pattern:**
95
+ - **Service Design**: Create small, focused services with single responsibilities
96
+ - **Communication Strategies**: Choose between synchronous (HTTP/REST, gRPC) and asynchronous (messaging, events) communication
97
+ - **Data Management**: Implement database-per-service pattern for data independence
98
+ - **Infrastructure Requirements**: API gateways, service discovery, load balancing, monitoring
99
+ - **Scaling Strategies**: Independent scaling based on service-specific demands
100
+
101
+ **Event-Driven Architecture:**
102
+ - **Event Sources**: Identify systems and components that generate events
103
+ - **Event Processing**: Design event processors for handling and responding to events
104
+ - **Messaging Infrastructure**: Implement event buses, message queues, and stream processing
105
+ - **Pattern Integration**: Consider event sourcing, CQRS, and saga patterns as appropriate
106
+ - **Benefits**: Loose coupling, scalability, real-time processing capabilities
169
107
 
170
108
  ### 3. API Architecture Design
171
109
 
172
- ```typescript
173
- // RESTful API Architecture
174
- interface RESTAPIArchitecture {
175
- resources: {
176
- name: string;
177
- endpoint: string;
178
- operations: RESTOperation[];
179
- relationships: ResourceRelationship[];
180
- }[];
181
- conventions: {
182
- naming: NamingConvention;
183
- versioning: VersioningStrategy;
184
- pagination: PaginationStrategy;
185
- filtering: FilteringStrategy;
186
- errorHandling: ErrorHandlingStrategy;
187
- };
188
- security: {
189
- authentication: AuthenticationMethod[];
190
- authorization: AuthorizationStrategy;
191
- rateLimiting: RateLimitingConfig;
192
- };
193
- documentation: {
194
- openAPISpec: OpenAPISpecification;
195
- examples: APIExample[];
196
- sdks: SDKConfiguration[];
197
- };
198
- }
199
-
200
- // GraphQL API Architecture
201
- interface GraphQLArchitecture {
202
- schema: {
203
- types: GraphQLType[];
204
- queries: GraphQLQuery[];
205
- mutations: GraphQLMutation[];
206
- subscriptions: GraphQLSubscription[];
207
- };
208
- resolvers: {
209
- dataLoaders: DataLoaderConfig[];
210
- caching: CachingStrategy;
211
- batchingStrategy: BatchingStrategy;
212
- };
213
- security: {
214
- queryComplexityAnalysis: boolean;
215
- depthLimiting: boolean;
216
- rateLimiting: RateLimitingConfig;
217
- };
218
- }
219
- ```
110
+ **RESTful API Architecture:**
111
+ - **Resource Design**: Define clear resources with intuitive endpoints and operations
112
+ - **Naming Conventions**: Establish consistent naming patterns for endpoints and parameters
113
+ - **Versioning Strategy**: Plan API versioning approach (URL, header, or parameter-based)
114
+ - **Pagination and Filtering**: Implement efficient data retrieval patterns for large datasets
115
+ - **Error Handling**: Design consistent error response formats with meaningful status codes
116
+ - **Security Integration**: Implement authentication, authorization, and rate limiting
117
+
118
+ **GraphQL API Architecture:**
119
+ - **Schema Design**: Create comprehensive GraphQL schemas with types, queries, mutations, and subscriptions
120
+ - **Resolver Implementation**: Design efficient resolvers with data loading and caching strategies
121
+ - **Performance Optimization**: Implement data loaders, query batching, and caching mechanisms
122
+ - **Security Measures**: Apply query complexity analysis, depth limiting, and rate limiting
123
+ - **Subscription Management**: Handle real-time data updates through GraphQL subscriptions
124
+
125
+ **API Design Principles:**
126
+ - **Consistency**: Maintain consistent patterns across all API endpoints
127
+ - **Documentation**: Provide comprehensive API documentation with examples and SDKs
128
+ - **Backward Compatibility**: Design APIs to evolve without breaking existing clients
129
+ - **Performance**: Optimize for efficient data transfer and minimal latency
130
+ - **Security**: Implement comprehensive security measures appropriate to the use case
220
131
 
221
132
  ### 4. Data Architecture
222
133
 
223
- ```typescript
224
- // Database Architecture Design
225
- interface DatabaseArchitecture {
226
- databases: {
227
- name: string;
228
- type: 'relational' | 'document' | 'key-value' | 'graph' | 'time-series';
229
- purpose: string;
230
- schema: DatabaseSchema;
231
- scalingStrategy: DatabaseScalingStrategy;
232
- }[];
233
- dataFlow: {
234
- sources: DataSource[];
235
- transformations: DataTransformation[];
236
- destinations: DataDestination[];
237
- };
238
- consistency: {
239
- strategy: ConsistencyStrategy;
240
- transactionBoundaries: TransactionBoundary[];
241
- conflictResolution: ConflictResolutionStrategy;
242
- };
243
- backup: {
244
- strategy: BackupStrategy;
245
- retentionPolicy: RetentionPolicy;
246
- recoveryProcedure: RecoveryProcedure;
247
- };
248
- }
249
-
250
- // Data modeling example
251
- const designUserDataModel = (): EntityRelationshipModel => {
252
- return {
253
- entities: [
254
- {
255
- name: 'User',
256
- attributes: [
257
- { name: 'id', type: 'UUID', primaryKey: true },
258
- { name: 'email', type: 'VARCHAR(255)', unique: true },
259
- { name: 'passwordHash', type: 'VARCHAR(255)' },
260
- { name: 'createdAt', type: 'TIMESTAMP' },
261
- { name: 'updatedAt', type: 'TIMESTAMP' }
262
- ],
263
- indexes: [
264
- { name: 'idx_user_email', columns: ['email'] },
265
- { name: 'idx_user_created', columns: ['createdAt'] }
266
- ]
267
- },
268
- {
269
- name: 'UserProfile',
270
- attributes: [
271
- { name: 'userId', type: 'UUID', foreignKey: 'User.id' },
272
- { name: 'firstName', type: 'VARCHAR(100)' },
273
- { name: 'lastName', type: 'VARCHAR(100)' },
274
- { name: 'bio', type: 'TEXT' },
275
- { name: 'avatar', type: 'VARCHAR(255)' }
276
- ]
277
- }
278
- ],
279
- relationships: [
280
- {
281
- type: 'one-to-one',
282
- from: 'User',
283
- to: 'UserProfile',
284
- constraint: 'userId'
285
- }
286
- ]
287
- };
288
- };
289
- ```
134
+ **Database Architecture Design:**
135
+ - **Database Selection**: Choose appropriate database types (relational, document, key-value, graph, time-series) based on data characteristics and use cases
136
+ - **Schema Design**: Create optimal database schemas with proper normalization, indexing, and constraints
137
+ - **Scaling Strategies**: Plan for horizontal and vertical scaling approaches
138
+ - **Data Flow Architecture**: Design data pipelines for ingestion, transformation, and distribution
139
+ - **Consistency Management**: Define consistency strategies and transaction boundaries
140
+ - **Backup and Recovery**: Implement comprehensive backup strategies and recovery procedures
141
+
142
+ **Data Modeling Principles:**
143
+ - **Entity Relationship Design**: Create logical data models that reflect business requirements
144
+ - **Normalization Strategy**: Apply appropriate normalization levels to balance performance and consistency
145
+ - **Index Design**: Optimize database performance through strategic index placement
146
+ - **Constraint Implementation**: Ensure data integrity through proper constraint definition
147
+ - **Performance Optimization**: Design schemas for efficient query execution and data retrieval
290
148
 
291
149
  ## Cloud Architecture Patterns
292
150
 
293
- ### 1. AWS Architecture
151
+ ### 1. Cloud Platform Architecture
294
152
 
295
- ```typescript
296
- // AWS Cloud Architecture
297
- interface AWSArchitecture {
298
- compute: {
299
- ec2Instances: EC2Configuration[];
300
- lambdaFunctions: LambdaConfiguration[];
301
- ecs: ECSConfiguration;
302
- eks: EKSConfiguration;
303
- };
304
- storage: {
305
- s3Buckets: S3Configuration[];
306
- rds: RDSConfiguration[];
307
- dynamodb: DynamoDBConfiguration[];
308
- elasticache: ElastiCacheConfiguration;
309
- };
310
- networking: {
311
- vpc: VPCConfiguration;
312
- subnets: SubnetConfiguration[];
313
- loadBalancers: LoadBalancerConfiguration[];
314
- cloudfront: CloudFrontConfiguration;
315
- };
316
- security: {
317
- iam: IAMConfiguration;
318
- cognito: CognitoConfiguration;
319
- secrets: SecretsManagerConfiguration;
320
- waf: WAFConfiguration;
321
- };
322
- monitoring: {
323
- cloudwatch: CloudWatchConfiguration;
324
- xray: XRayConfiguration;
325
- guardduty: GuardDutyConfiguration;
326
- };
327
- }
328
-
329
- // Infrastructure as Code template
330
- const generateTerraformConfig = (architecture: AWSArchitecture): string => {
331
- return `
332
- # VPC Configuration
333
- resource "aws_vpc" "main" {
334
- cidr_block = "${architecture.networking.vpc.cidrBlock}"
335
- enable_dns_hostnames = true
336
- enable_dns_support = true
337
-
338
- tags = {
339
- Name = "${architecture.networking.vpc.name}"
340
- Environment = "${architecture.networking.vpc.environment}"
341
- }
342
- }
343
-
344
- # Application Load Balancer
345
- resource "aws_lb" "app" {
346
- name = "${architecture.networking.loadBalancers[0].name}"
347
- internal = false
348
- load_balancer_type = "application"
349
- security_groups = [aws_security_group.alb.id]
350
- subnets = aws_subnet.public[*].id
351
- }
153
+ **AWS Architecture Components:**
154
+ - **Compute Services**: Design compute strategies using EC2, Lambda, ECS, EKS based on workload characteristics
155
+ - **Storage Solutions**: Select appropriate storage services (S3, RDS, DynamoDB, ElastiCache) for different data needs
156
+ - **Networking Design**: Create secure networking with VPC, subnets, load balancers, and CDN configurations
157
+ - **Security Integration**: Implement IAM, Cognito, Secrets Manager, and WAF for comprehensive security
158
+ - **Monitoring and Observability**: Set up CloudWatch, X-Ray, and GuardDuty for system monitoring and security
352
159
 
353
- # ECS Cluster
354
- resource "aws_ecs_cluster" "main" {
355
- name = "${architecture.compute.ecs.clusterName}"
160
+ **Infrastructure as Code Approach:**
161
+ - **Template-Based Infrastructure**: Use Terraform, CloudFormation, or similar tools for repeatable infrastructure
162
+ - **Environment Management**: Design consistent infrastructure across development, staging, and production
163
+ - **Resource Optimization**: Implement cost-effective resource allocation and auto-scaling strategies
164
+ - **Security Baseline**: Establish security baselines through code-defined security configurations
356
165
 
357
- capacity_providers = ["FARGATE", "FARGATE_SPOT"]
166
+ ### 2. Container Orchestration Architecture
358
167
 
359
- default_capacity_provider_strategy {
360
- capacity_provider = "FARGATE"
361
- weight = 1
362
- }
363
- }
364
- `;
365
- };
366
- ```
367
-
368
- ### 2. Kubernetes Architecture
369
-
370
- ```yaml
371
- # Kubernetes architecture example
372
- apiVersion: v1
373
- kind: Namespace
374
- metadata:
375
- name: production
376
- ---
377
- apiVersion: apps/v1
378
- kind: Deployment
379
- metadata:
380
- name: user-service
381
- namespace: production
382
- spec:
383
- replicas: 3
384
- selector:
385
- matchLabels:
386
- app: user-service
387
- template:
388
- metadata:
389
- labels:
390
- app: user-service
391
- spec:
392
- containers:
393
- - name: user-service
394
- image: user-service:latest
395
- ports:
396
- - containerPort: 3000
397
- env:
398
- - name: DATABASE_URL
399
- valueFrom:
400
- secretKeyRef:
401
- name: db-secrets
402
- key: url
403
- resources:
404
- requests:
405
- memory: "256Mi"
406
- cpu: "250m"
407
- limits:
408
- memory: "512Mi"
409
- cpu: "500m"
410
- livenessProbe:
411
- httpGet:
412
- path: /health
413
- port: 3000
414
- initialDelaySeconds: 30
415
- periodSeconds: 10
416
- ---
417
- apiVersion: v1
418
- kind: Service
419
- metadata:
420
- name: user-service
421
- namespace: production
422
- spec:
423
- selector:
424
- app: user-service
425
- ports:
426
- - port: 80
427
- targetPort: 3000
428
- type: ClusterIP
429
- ```
168
+ **Kubernetes Architecture Design:**
169
+ - **Namespace Organization**: Structure applications using logical namespace separation
170
+ - **Deployment Strategies**: Design deployment patterns with appropriate replica counts and update strategies
171
+ - **Service Architecture**: Create service meshes and inter-service communication patterns
172
+ - **Resource Management**: Implement resource requests, limits, and quality of service classes
173
+ - **Health Monitoring**: Design comprehensive health checks and monitoring strategies
174
+ - **Security Integration**: Apply security policies, RBAC, and network policies
430
175
 
431
176
  ## Security Architecture
432
177
 
433
178
  ### 1. Security-First Design
434
179
 
435
- ```typescript
436
- // Security architecture framework
437
- interface SecurityArchitecture {
438
- authentication: {
439
- methods: AuthenticationMethod[];
440
- mfa: MFAConfiguration;
441
- sessionManagement: SessionManagementConfig;
442
- };
443
- authorization: {
444
- model: 'RBAC' | 'ABAC' | 'ReBAC';
445
- policies: AuthorizationPolicy[];
446
- enforcement: EnforcementPoint[];
447
- };
448
- dataProtection: {
449
- encryption: {
450
- atRest: EncryptionConfig;
451
- inTransit: TLSConfiguration;
452
- inMemory: MemoryEncryptionConfig;
453
- };
454
- dataClassification: DataClassification[];
455
- privacyControls: PrivacyControl[];
456
- };
457
- networkSecurity: {
458
- firewalls: FirewallConfiguration[];
459
- vpn: VPNConfiguration;
460
- ddosProtection: DDoSProtectionConfig;
461
- };
462
- monitoring: {
463
- securityInformationEventManagement: SIEMConfig;
464
- intrusionDetection: IDSConfig;
465
- vulnerabilityScanning: VulnerabilityScannersConfig;
466
- };
467
- }
180
+ **Security Architecture Framework:**
181
+ - **Authentication Strategy**: Design multi-method authentication with MFA and session management
182
+ - **Authorization Model**: Choose appropriate model (RBAC, ABAC, ReBAC) based on requirements
183
+ - **Data Protection**: Implement encryption at rest, in transit, and in memory with proper key management
184
+ - **Network Security**: Design firewalls, VPN, and DDoS protection strategies
185
+ - **Security Monitoring**: Implement SIEM, intrusion detection, and vulnerability scanning
468
186
 
469
- // Zero Trust Architecture
470
- const designZeroTrustArchitecture = (): ZeroTrustArchitecture => {
471
- return {
472
- principles: [
473
- 'Never trust, always verify',
474
- 'Assume breach',
475
- 'Verify explicitly',
476
- 'Least privilege access',
477
- 'Microsegmentation'
478
- ],
479
- components: {
480
- identityVerification: {
481
- multiFactorAuthentication: true,
482
- deviceTrust: true,
483
- behavioralAnalytics: true
484
- },
485
- deviceSecurity: {
486
- deviceRegistration: true,
487
- complianceChecking: true,
488
- deviceEncryption: true
489
- },
490
- networkSegmentation: {
491
- microsegmentation: true,
492
- softwareDefinedPerimeter: true,
493
- networkZoning: true
494
- },
495
- dataProtection: {
496
- dataDiscovery: true,
497
- dataClassification: true,
498
- rightsManagement: true
499
- }
500
- }
501
- };
502
- };
503
- ```
187
+ **Zero Trust Architecture Principles:**
188
+ - **Never Trust, Always Verify**: Verify every access request regardless of location or user
189
+ - **Assume Breach**: Design systems assuming compromise has already occurred
190
+ - **Least Privilege Access**: Grant minimal necessary access rights
191
+ - **Microsegmentation**: Segment networks and systems for containment
192
+ - **Continuous Verification**: Continuously validate trust throughout user sessions
504
193
 
505
194
  ### 2. Compliance Architecture
506
195
 
507
- ```typescript
508
- // Compliance framework design
509
- interface ComplianceArchitecture {
510
- regulations: {
511
- gdpr: GDPRCompliance;
512
- ccpa: CCPACompliance;
513
- hipaa: HIPAACompliance;
514
- sox: SOXCompliance;
515
- pciDss: PCIDSSCompliance;
516
- };
517
- controls: {
518
- accessControls: AccessControl[];
519
- auditControls: AuditControl[];
520
- dataControls: DataControl[];
521
- operationalControls: OperationalControl[];
522
- };
523
- documentation: {
524
- policies: Policy[];
525
- procedures: Procedure[];
526
- evidenceCollection: EvidenceCollectionStrategy;
527
- };
528
- monitoring: {
529
- complianceMetrics: ComplianceMetric[];
530
- reportingSchedule: ReportingSchedule;
531
- alerting: ComplianceAlert[];
532
- };
533
- }
534
- ```
196
+ **Regulatory Compliance Framework:**
197
+ - **Multi-Regulation Support**: Design for GDPR, CCPA, HIPAA, SOX, PCI DSS compliance requirements
198
+ - **Control Implementation**: Establish access, audit, data, and operational controls
199
+ - **Documentation Management**: Maintain policies, procedures, and evidence collection systems
200
+ - **Compliance Monitoring**: Implement metrics, reporting schedules, and alerting systems
201
+ - **Audit Readiness**: Design systems for continuous audit readiness and evidence provision
535
202
 
536
203
  ## Performance Architecture
537
204