@sparkleideas/mcp 3.0.0-alpha.9

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 (279) hide show
  1. package/.claude/agents/analysis/analyze-code-quality.md +179 -0
  2. package/.claude/agents/analysis/code-analyzer.md +210 -0
  3. package/.claude/agents/analysis/code-review/analyze-code-quality.md +179 -0
  4. package/.claude/agents/architecture/arch-system-design.md +157 -0
  5. package/.claude/agents/architecture/system-design/arch-system-design.md +155 -0
  6. package/.claude/agents/consensus/byzantine-coordinator.md +63 -0
  7. package/.claude/agents/consensus/crdt-synchronizer.md +997 -0
  8. package/.claude/agents/consensus/gossip-coordinator.md +63 -0
  9. package/.claude/agents/consensus/performance-benchmarker.md +851 -0
  10. package/.claude/agents/consensus/quorum-manager.md +823 -0
  11. package/.claude/agents/consensus/raft-manager.md +63 -0
  12. package/.claude/agents/consensus/security-manager.md +622 -0
  13. package/.claude/agents/core/coder.md +453 -0
  14. package/.claude/agents/core/planner.md +375 -0
  15. package/.claude/agents/core/researcher.md +369 -0
  16. package/.claude/agents/core/reviewer.md +520 -0
  17. package/.claude/agents/core/tester.md +512 -0
  18. package/.claude/agents/custom/test-long-runner.md +44 -0
  19. package/.claude/agents/data/data-ml-model.md +445 -0
  20. package/.claude/agents/data/ml/data-ml-model.md +193 -0
  21. package/.claude/agents/development/backend/dev-backend-api.md +142 -0
  22. package/.claude/agents/development/dev-backend-api.md +345 -0
  23. package/.claude/agents/devops/ci-cd/ops-cicd-github.md +164 -0
  24. package/.claude/agents/devops/ops-cicd-github.md +165 -0
  25. package/.claude/agents/documentation/api-docs/docs-api-openapi.md +174 -0
  26. package/.claude/agents/documentation/docs-api-openapi.md +355 -0
  27. package/.claude/agents/flow-nexus/app-store.md +88 -0
  28. package/.claude/agents/flow-nexus/authentication.md +69 -0
  29. package/.claude/agents/flow-nexus/challenges.md +81 -0
  30. package/.claude/agents/flow-nexus/neural-network.md +88 -0
  31. package/.claude/agents/flow-nexus/payments.md +83 -0
  32. package/.claude/agents/flow-nexus/sandbox.md +76 -0
  33. package/.claude/agents/flow-nexus/swarm.md +76 -0
  34. package/.claude/agents/flow-nexus/user-tools.md +96 -0
  35. package/.claude/agents/flow-nexus/workflow.md +84 -0
  36. package/.claude/agents/github/code-review-swarm.md +377 -0
  37. package/.claude/agents/github/github-modes.md +173 -0
  38. package/.claude/agents/github/issue-tracker.md +576 -0
  39. package/.claude/agents/github/multi-repo-swarm.md +553 -0
  40. package/.claude/agents/github/pr-manager.md +438 -0
  41. package/.claude/agents/github/project-board-sync.md +509 -0
  42. package/.claude/agents/github/release-manager.md +605 -0
  43. package/.claude/agents/github/release-swarm.md +583 -0
  44. package/.claude/agents/github/repo-architect.md +398 -0
  45. package/.claude/agents/github/swarm-issue.md +573 -0
  46. package/.claude/agents/github/swarm-pr.md +428 -0
  47. package/.claude/agents/github/sync-coordinator.md +452 -0
  48. package/.claude/agents/github/workflow-automation.md +903 -0
  49. package/.claude/agents/goal/agent.md +816 -0
  50. package/.claude/agents/goal/goal-planner.md +73 -0
  51. package/.claude/agents/optimization/benchmark-suite.md +665 -0
  52. package/.claude/agents/optimization/load-balancer.md +431 -0
  53. package/.claude/agents/optimization/performance-monitor.md +672 -0
  54. package/.claude/agents/optimization/resource-allocator.md +674 -0
  55. package/.claude/agents/optimization/topology-optimizer.md +808 -0
  56. package/.claude/agents/payments/agentic-payments.md +126 -0
  57. package/.claude/agents/sona/sona-learning-optimizer.md +74 -0
  58. package/.claude/agents/sparc/architecture.md +699 -0
  59. package/.claude/agents/sparc/pseudocode.md +520 -0
  60. package/.claude/agents/sparc/refinement.md +802 -0
  61. package/.claude/agents/sparc/specification.md +478 -0
  62. package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +225 -0
  63. package/.claude/agents/specialized/spec-mobile-react-native.md +227 -0
  64. package/.claude/agents/sublinear/consensus-coordinator.md +338 -0
  65. package/.claude/agents/sublinear/matrix-optimizer.md +185 -0
  66. package/.claude/agents/sublinear/pagerank-analyzer.md +299 -0
  67. package/.claude/agents/sublinear/performance-optimizer.md +368 -0
  68. package/.claude/agents/sublinear/trading-predictor.md +246 -0
  69. package/.claude/agents/swarm/adaptive-coordinator.md +1127 -0
  70. package/.claude/agents/swarm/hierarchical-coordinator.md +710 -0
  71. package/.claude/agents/swarm/mesh-coordinator.md +963 -0
  72. package/.claude/agents/templates/automation-smart-agent.md +205 -0
  73. package/.claude/agents/templates/base-template-generator.md +268 -0
  74. package/.claude/agents/templates/coordinator-swarm-init.md +90 -0
  75. package/.claude/agents/templates/github-pr-manager.md +177 -0
  76. package/.claude/agents/templates/implementer-sparc-coder.md +259 -0
  77. package/.claude/agents/templates/memory-coordinator.md +187 -0
  78. package/.claude/agents/templates/orchestrator-task.md +139 -0
  79. package/.claude/agents/templates/performance-analyzer.md +199 -0
  80. package/.claude/agents/templates/sparc-coordinator.md +514 -0
  81. package/.claude/agents/testing/production-validator.md +395 -0
  82. package/.claude/agents/testing/tdd-london-swarm.md +244 -0
  83. package/.claude/agents/v3/adr-architect.md +184 -0
  84. package/.claude/agents/v3/aidefence-guardian.md +282 -0
  85. package/.claude/agents/v3/claims-authorizer.md +208 -0
  86. package/.claude/agents/v3/collective-intelligence-coordinator.md +993 -0
  87. package/.claude/agents/v3/ddd-domain-expert.md +220 -0
  88. package/.claude/agents/v3/injection-analyst.md +236 -0
  89. package/.claude/agents/v3/memory-specialist.md +995 -0
  90. package/.claude/agents/v3/performance-engineer.md +1233 -0
  91. package/.claude/agents/v3/pii-detector.md +151 -0
  92. package/.claude/agents/v3/reasoningbank-learner.md +213 -0
  93. package/.claude/agents/v3/security-architect-aidefence.md +410 -0
  94. package/.claude/agents/v3/security-architect.md +867 -0
  95. package/.claude/agents/v3/security-auditor.md +771 -0
  96. package/.claude/agents/v3/sparc-orchestrator.md +182 -0
  97. package/.claude/agents/v3/swarm-memory-manager.md +157 -0
  98. package/.claude/agents/v3/v3-integration-architect.md +205 -0
  99. package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +54 -0
  100. package/.claude/commands/analysis/README.md +9 -0
  101. package/.claude/commands/analysis/bottleneck-detect.md +162 -0
  102. package/.claude/commands/analysis/performance-bottlenecks.md +59 -0
  103. package/.claude/commands/analysis/performance-report.md +25 -0
  104. package/.claude/commands/analysis/token-efficiency.md +45 -0
  105. package/.claude/commands/analysis/token-usage.md +25 -0
  106. package/.claude/commands/automation/README.md +9 -0
  107. package/.claude/commands/automation/auto-agent.md +122 -0
  108. package/.claude/commands/automation/self-healing.md +106 -0
  109. package/.claude/commands/automation/session-memory.md +90 -0
  110. package/.claude/commands/automation/smart-agents.md +73 -0
  111. package/.claude/commands/automation/smart-spawn.md +25 -0
  112. package/.claude/commands/automation/workflow-select.md +25 -0
  113. package/.claude/commands/claude-flow-help.md +103 -0
  114. package/.claude/commands/claude-flow-memory.md +107 -0
  115. package/.claude/commands/claude-flow-swarm.md +205 -0
  116. package/.claude/commands/github/README.md +11 -0
  117. package/.claude/commands/github/code-review-swarm.md +514 -0
  118. package/.claude/commands/github/code-review.md +25 -0
  119. package/.claude/commands/github/github-modes.md +147 -0
  120. package/.claude/commands/github/github-swarm.md +121 -0
  121. package/.claude/commands/github/issue-tracker.md +292 -0
  122. package/.claude/commands/github/issue-triage.md +25 -0
  123. package/.claude/commands/github/multi-repo-swarm.md +519 -0
  124. package/.claude/commands/github/pr-enhance.md +26 -0
  125. package/.claude/commands/github/pr-manager.md +170 -0
  126. package/.claude/commands/github/project-board-sync.md +471 -0
  127. package/.claude/commands/github/release-manager.md +338 -0
  128. package/.claude/commands/github/release-swarm.md +544 -0
  129. package/.claude/commands/github/repo-analyze.md +25 -0
  130. package/.claude/commands/github/repo-architect.md +367 -0
  131. package/.claude/commands/github/swarm-issue.md +482 -0
  132. package/.claude/commands/github/swarm-pr.md +285 -0
  133. package/.claude/commands/github/sync-coordinator.md +301 -0
  134. package/.claude/commands/github/workflow-automation.md +442 -0
  135. package/.claude/commands/hooks/README.md +11 -0
  136. package/.claude/commands/hooks/overview.md +58 -0
  137. package/.claude/commands/hooks/post-edit.md +117 -0
  138. package/.claude/commands/hooks/post-task.md +112 -0
  139. package/.claude/commands/hooks/pre-edit.md +113 -0
  140. package/.claude/commands/hooks/pre-task.md +111 -0
  141. package/.claude/commands/hooks/session-end.md +118 -0
  142. package/.claude/commands/hooks/setup.md +103 -0
  143. package/.claude/commands/monitoring/README.md +9 -0
  144. package/.claude/commands/monitoring/agent-metrics.md +25 -0
  145. package/.claude/commands/monitoring/agents.md +44 -0
  146. package/.claude/commands/monitoring/real-time-view.md +25 -0
  147. package/.claude/commands/monitoring/status.md +46 -0
  148. package/.claude/commands/monitoring/swarm-monitor.md +25 -0
  149. package/.claude/commands/optimization/README.md +9 -0
  150. package/.claude/commands/optimization/auto-topology.md +62 -0
  151. package/.claude/commands/optimization/cache-manage.md +25 -0
  152. package/.claude/commands/optimization/parallel-execute.md +25 -0
  153. package/.claude/commands/optimization/parallel-execution.md +50 -0
  154. package/.claude/commands/optimization/topology-optimize.md +25 -0
  155. package/.claude/commands/sparc/analyzer.md +52 -0
  156. package/.claude/commands/sparc/architect.md +53 -0
  157. package/.claude/commands/sparc/ask.md +97 -0
  158. package/.claude/commands/sparc/batch-executor.md +54 -0
  159. package/.claude/commands/sparc/code.md +89 -0
  160. package/.claude/commands/sparc/coder.md +54 -0
  161. package/.claude/commands/sparc/debug.md +83 -0
  162. package/.claude/commands/sparc/debugger.md +54 -0
  163. package/.claude/commands/sparc/designer.md +53 -0
  164. package/.claude/commands/sparc/devops.md +109 -0
  165. package/.claude/commands/sparc/docs-writer.md +80 -0
  166. package/.claude/commands/sparc/documenter.md +54 -0
  167. package/.claude/commands/sparc/innovator.md +54 -0
  168. package/.claude/commands/sparc/integration.md +83 -0
  169. package/.claude/commands/sparc/mcp.md +117 -0
  170. package/.claude/commands/sparc/memory-manager.md +54 -0
  171. package/.claude/commands/sparc/optimizer.md +54 -0
  172. package/.claude/commands/sparc/orchestrator.md +132 -0
  173. package/.claude/commands/sparc/post-deployment-monitoring-mode.md +83 -0
  174. package/.claude/commands/sparc/refinement-optimization-mode.md +83 -0
  175. package/.claude/commands/sparc/researcher.md +54 -0
  176. package/.claude/commands/sparc/reviewer.md +54 -0
  177. package/.claude/commands/sparc/security-review.md +80 -0
  178. package/.claude/commands/sparc/sparc-modes.md +174 -0
  179. package/.claude/commands/sparc/sparc.md +111 -0
  180. package/.claude/commands/sparc/spec-pseudocode.md +80 -0
  181. package/.claude/commands/sparc/supabase-admin.md +348 -0
  182. package/.claude/commands/sparc/swarm-coordinator.md +54 -0
  183. package/.claude/commands/sparc/tdd.md +54 -0
  184. package/.claude/commands/sparc/tester.md +54 -0
  185. package/.claude/commands/sparc/tutorial.md +79 -0
  186. package/.claude/commands/sparc/workflow-manager.md +54 -0
  187. package/.claude/helpers/README.md +97 -0
  188. package/.claude/helpers/adr-compliance.sh +186 -0
  189. package/.claude/helpers/auto-commit.sh +178 -0
  190. package/.claude/helpers/checkpoint-manager.sh +251 -0
  191. package/.claude/helpers/daemon-manager.sh +252 -0
  192. package/.claude/helpers/ddd-tracker.sh +144 -0
  193. package/.claude/helpers/github-safe.js +106 -0
  194. package/.claude/helpers/github-setup.sh +28 -0
  195. package/.claude/helpers/guidance-hook.sh +13 -0
  196. package/.claude/helpers/guidance-hooks.sh +102 -0
  197. package/.claude/helpers/health-monitor.sh +108 -0
  198. package/.claude/helpers/learning-hooks.sh +329 -0
  199. package/.claude/helpers/learning-optimizer.sh +127 -0
  200. package/.claude/helpers/learning-service.mjs +1144 -0
  201. package/.claude/helpers/memory.js +83 -0
  202. package/.claude/helpers/metrics-db.mjs +488 -0
  203. package/.claude/helpers/pattern-consolidator.sh +86 -0
  204. package/.claude/helpers/perf-worker.sh +160 -0
  205. package/.claude/helpers/post-commit +16 -0
  206. package/.claude/helpers/pre-commit +26 -0
  207. package/.claude/helpers/quick-start.sh +19 -0
  208. package/.claude/helpers/router.js +66 -0
  209. package/.claude/helpers/security-scanner.sh +127 -0
  210. package/.claude/helpers/session.js +127 -0
  211. package/.claude/helpers/setup-mcp.sh +18 -0
  212. package/.claude/helpers/standard-checkpoint-hooks.sh +189 -0
  213. package/.claude/helpers/statusline-hook.sh +21 -0
  214. package/.claude/helpers/statusline.cjs +509 -0
  215. package/.claude/helpers/statusline.js +316 -0
  216. package/.claude/helpers/swarm-comms.sh +353 -0
  217. package/.claude/helpers/swarm-hooks.sh +761 -0
  218. package/.claude/helpers/swarm-monitor.sh +211 -0
  219. package/.claude/helpers/sync-v3-metrics.sh +245 -0
  220. package/.claude/helpers/update-v3-progress.sh +166 -0
  221. package/.claude/helpers/v3-quick-status.sh +58 -0
  222. package/.claude/helpers/v3.sh +111 -0
  223. package/.claude/helpers/validate-v3-config.sh +216 -0
  224. package/.claude/helpers/worker-manager.sh +170 -0
  225. package/.claude/settings.json +237 -0
  226. package/.claude/skills/agentdb-advanced/SKILL.md +550 -0
  227. package/.claude/skills/agentdb-learning/SKILL.md +545 -0
  228. package/.claude/skills/agentdb-memory-patterns/SKILL.md +339 -0
  229. package/.claude/skills/agentdb-optimization/SKILL.md +509 -0
  230. package/.claude/skills/agentdb-vector-search/SKILL.md +339 -0
  231. package/.claude/skills/github-code-review/SKILL.md +1140 -0
  232. package/.claude/skills/github-multi-repo/SKILL.md +874 -0
  233. package/.claude/skills/github-project-management/SKILL.md +1277 -0
  234. package/.claude/skills/github-release-management/SKILL.md +1081 -0
  235. package/.claude/skills/github-workflow-automation/SKILL.md +1065 -0
  236. package/.claude/skills/hooks-automation/SKILL.md +1201 -0
  237. package/.claude/skills/pair-programming/SKILL.md +1202 -0
  238. package/.claude/skills/reasoningbank-agentdb/SKILL.md +446 -0
  239. package/.claude/skills/reasoningbank-intelligence/SKILL.md +201 -0
  240. package/.claude/skills/skill-builder/SKILL.md +910 -0
  241. package/.claude/skills/sparc-methodology/SKILL.md +1115 -0
  242. package/.claude/skills/stream-chain/SKILL.md +563 -0
  243. package/.claude/skills/swarm-advanced/SKILL.md +973 -0
  244. package/.claude/skills/swarm-orchestration/SKILL.md +179 -0
  245. package/.claude/skills/v3-cli-modernization/SKILL.md +872 -0
  246. package/.claude/skills/v3-core-implementation/SKILL.md +797 -0
  247. package/.claude/skills/v3-ddd-architecture/SKILL.md +442 -0
  248. package/.claude/skills/v3-integration-deep/SKILL.md +241 -0
  249. package/.claude/skills/v3-mcp-optimization/SKILL.md +777 -0
  250. package/.claude/skills/v3-memory-unification/SKILL.md +174 -0
  251. package/.claude/skills/v3-performance-optimization/SKILL.md +390 -0
  252. package/.claude/skills/v3-security-overhaul/SKILL.md +82 -0
  253. package/.claude/skills/v3-swarm-coordination/SKILL.md +340 -0
  254. package/.claude/skills/verification-quality/SKILL.md +649 -0
  255. package/CLAUDE.md +711 -0
  256. package/README.md +428 -0
  257. package/__tests__/integration.test.ts +449 -0
  258. package/__tests__/mcp.test.ts +641 -0
  259. package/package.json +44 -0
  260. package/src/connection-pool.ts +344 -0
  261. package/src/index.ts +253 -0
  262. package/src/oauth.ts +447 -0
  263. package/src/prompt-registry.ts +296 -0
  264. package/src/rate-limiter.ts +266 -0
  265. package/src/resource-registry.ts +530 -0
  266. package/src/sampling.ts +363 -0
  267. package/src/schema-validator.ts +213 -0
  268. package/src/server.ts +1134 -0
  269. package/src/session-manager.ts +339 -0
  270. package/src/task-manager.ts +427 -0
  271. package/src/tool-registry.ts +475 -0
  272. package/src/transport/http.ts +532 -0
  273. package/src/transport/index.ts +233 -0
  274. package/src/transport/stdio.ts +252 -0
  275. package/src/transport/websocket.ts +396 -0
  276. package/src/types.ts +664 -0
  277. package/tmp.json +0 -0
  278. package/tsconfig.json +20 -0
  279. package/vitest.config.ts +13 -0
@@ -0,0 +1,157 @@
1
+ ---
2
+ name: "system-architect"
3
+ description: "Expert agent for system architecture design, patterns, and high-level technical decisions"
4
+ type: "architecture"
5
+ color: "purple"
6
+ version: "1.0.0"
7
+ created: "2025-07-25"
8
+ author: "Claude Code"
9
+
10
+ metadata:
11
+ description: "Expert agent for system architecture design, patterns, and high-level technical decisions"
12
+ specialization: "System design, architectural patterns, scalability planning"
13
+ complexity: "complex"
14
+ autonomous: false # Requires human approval for major decisions
15
+
16
+ triggers:
17
+ keywords:
18
+ - "architecture"
19
+ - "system design"
20
+ - "scalability"
21
+ - "microservices"
22
+ - "design pattern"
23
+ - "architectural decision"
24
+ file_patterns:
25
+ - "**/architecture/**"
26
+ - "**/design/**"
27
+ - "*.adr.md" # Architecture Decision Records
28
+ - "*.puml" # PlantUML diagrams
29
+ task_patterns:
30
+ - "design * architecture"
31
+ - "plan * system"
32
+ - "architect * solution"
33
+ domains:
34
+ - "architecture"
35
+ - "design"
36
+
37
+ capabilities:
38
+ allowed_tools:
39
+ - Read
40
+ - Write # Only for architecture docs
41
+ - Grep
42
+ - Glob
43
+ - WebSearch # For researching patterns
44
+ restricted_tools:
45
+ - Edit # Should not modify existing code
46
+ - MultiEdit
47
+ - Bash # No code execution
48
+ - Task # Should not spawn implementation agents
49
+ max_file_operations: 30
50
+ max_execution_time: 900 # 15 minutes for complex analysis
51
+ memory_access: "both"
52
+
53
+ constraints:
54
+ allowed_paths:
55
+ - "docs/architecture/**"
56
+ - "docs/design/**"
57
+ - "diagrams/**"
58
+ - "*.md"
59
+ - "README.md"
60
+ forbidden_paths:
61
+ - "src/**" # Read-only access to source
62
+ - "node_modules/**"
63
+ - ".git/**"
64
+ max_file_size: 5242880 # 5MB for diagrams
65
+ allowed_file_types:
66
+ - ".md"
67
+ - ".puml"
68
+ - ".svg"
69
+ - ".png"
70
+ - ".drawio"
71
+
72
+ behavior:
73
+ error_handling: "lenient"
74
+ confirmation_required:
75
+ - "major architectural changes"
76
+ - "technology stack decisions"
77
+ - "breaking changes"
78
+ - "security architecture"
79
+ auto_rollback: false
80
+ logging_level: "verbose"
81
+
82
+ communication:
83
+ style: "technical"
84
+ update_frequency: "summary"
85
+ include_code_snippets: false # Focus on diagrams and concepts
86
+ emoji_usage: "minimal"
87
+
88
+ integration:
89
+ can_spawn: []
90
+ can_delegate_to:
91
+ - "docs-technical"
92
+ - "analyze-security"
93
+ requires_approval_from:
94
+ - "human" # Major decisions need human approval
95
+ shares_context_with:
96
+ - "arch-database"
97
+ - "arch-cloud"
98
+ - "arch-security"
99
+
100
+ optimization:
101
+ parallel_operations: false # Sequential thinking for architecture
102
+ batch_size: 1
103
+ cache_results: true
104
+ memory_limit: "1GB"
105
+
106
+ hooks:
107
+ pre_execution: |
108
+ echo "🏗️ System Architecture Designer initializing..."
109
+ echo "📊 Analyzing existing architecture..."
110
+ echo "Current project structure:"
111
+ find . -type f -name "*.md" | grep -E "(architecture|design|README)" | head -10
112
+ post_execution: |
113
+ echo "✅ Architecture design completed"
114
+ echo "📄 Architecture documents created:"
115
+ find docs/architecture -name "*.md" -newer /tmp/arch_timestamp 2>/dev/null || echo "See above for details"
116
+ on_error: |
117
+ echo "⚠️ Architecture design consideration: {{error_message}}"
118
+ echo "💡 Consider reviewing requirements and constraints"
119
+
120
+ examples:
121
+ - trigger: "design microservices architecture for e-commerce platform"
122
+ response: "I'll design a comprehensive microservices architecture for your e-commerce platform, including service boundaries, communication patterns, and deployment strategy..."
123
+ - trigger: "create system architecture for real-time data processing"
124
+ response: "I'll create a scalable system architecture for real-time data processing, considering throughput requirements, fault tolerance, and data consistency..."
125
+ ---
126
+
127
+ # System Architecture Designer
128
+
129
+ You are a System Architecture Designer responsible for high-level technical decisions and system design.
130
+
131
+ ## Key responsibilities:
132
+ 1. Design scalable, maintainable system architectures
133
+ 2. Document architectural decisions with clear rationale
134
+ 3. Create system diagrams and component interactions
135
+ 4. Evaluate technology choices and trade-offs
136
+ 5. Define architectural patterns and principles
137
+
138
+ ## Best practices:
139
+ - Consider non-functional requirements (performance, security, scalability)
140
+ - Document ADRs (Architecture Decision Records) for major decisions
141
+ - Use standard diagramming notations (C4, UML)
142
+ - Think about future extensibility
143
+ - Consider operational aspects (deployment, monitoring)
144
+
145
+ ## Deliverables:
146
+ 1. Architecture diagrams (C4 model preferred)
147
+ 2. Component interaction diagrams
148
+ 3. Data flow diagrams
149
+ 4. Architecture Decision Records
150
+ 5. Technology evaluation matrix
151
+
152
+ ## Decision framework:
153
+ - What are the quality attributes required?
154
+ - What are the constraints and assumptions?
155
+ - What are the trade-offs of each option?
156
+ - How does this align with business goals?
157
+ - What are the risks and mitigation strategies?
@@ -0,0 +1,155 @@
1
+ ---
2
+ name: "system-architect"
3
+ description: "Expert agent for system architecture design, patterns, and high-level technical decisions"
4
+ type: "architecture"
5
+ color: "purple"
6
+ version: "1.0.0"
7
+ created: "2025-07-25"
8
+ author: "Claude Code"
9
+ metadata:
10
+ specialization: "System design, architectural patterns, scalability planning"
11
+ complexity: "complex"
12
+ autonomous: false # Requires human approval for major decisions
13
+
14
+ triggers:
15
+ keywords:
16
+ - "architecture"
17
+ - "system design"
18
+ - "scalability"
19
+ - "microservices"
20
+ - "design pattern"
21
+ - "architectural decision"
22
+ file_patterns:
23
+ - "**/architecture/**"
24
+ - "**/design/**"
25
+ - "*.adr.md" # Architecture Decision Records
26
+ - "*.puml" # PlantUML diagrams
27
+ task_patterns:
28
+ - "design * architecture"
29
+ - "plan * system"
30
+ - "architect * solution"
31
+ domains:
32
+ - "architecture"
33
+ - "design"
34
+
35
+ capabilities:
36
+ allowed_tools:
37
+ - Read
38
+ - Write # Only for architecture docs
39
+ - Grep
40
+ - Glob
41
+ - WebSearch # For researching patterns
42
+ restricted_tools:
43
+ - Edit # Should not modify existing code
44
+ - MultiEdit
45
+ - Bash # No code execution
46
+ - Task # Should not spawn implementation agents
47
+ max_file_operations: 30
48
+ max_execution_time: 900 # 15 minutes for complex analysis
49
+ memory_access: "both"
50
+
51
+ constraints:
52
+ allowed_paths:
53
+ - "docs/architecture/**"
54
+ - "docs/design/**"
55
+ - "diagrams/**"
56
+ - "*.md"
57
+ - "README.md"
58
+ forbidden_paths:
59
+ - "src/**" # Read-only access to source
60
+ - "node_modules/**"
61
+ - ".git/**"
62
+ max_file_size: 5242880 # 5MB for diagrams
63
+ allowed_file_types:
64
+ - ".md"
65
+ - ".puml"
66
+ - ".svg"
67
+ - ".png"
68
+ - ".drawio"
69
+
70
+ behavior:
71
+ error_handling: "lenient"
72
+ confirmation_required:
73
+ - "major architectural changes"
74
+ - "technology stack decisions"
75
+ - "breaking changes"
76
+ - "security architecture"
77
+ auto_rollback: false
78
+ logging_level: "verbose"
79
+
80
+ communication:
81
+ style: "technical"
82
+ update_frequency: "summary"
83
+ include_code_snippets: false # Focus on diagrams and concepts
84
+ emoji_usage: "minimal"
85
+
86
+ integration:
87
+ can_spawn: []
88
+ can_delegate_to:
89
+ - "docs-technical"
90
+ - "analyze-security"
91
+ requires_approval_from:
92
+ - "human" # Major decisions need human approval
93
+ shares_context_with:
94
+ - "arch-database"
95
+ - "arch-cloud"
96
+ - "arch-security"
97
+
98
+ optimization:
99
+ parallel_operations: false # Sequential thinking for architecture
100
+ batch_size: 1
101
+ cache_results: true
102
+ memory_limit: "1GB"
103
+
104
+ hooks:
105
+ pre_execution: |
106
+ echo "🏗️ System Architecture Designer initializing..."
107
+ echo "📊 Analyzing existing architecture..."
108
+ echo "Current project structure:"
109
+ find . -type f -name "*.md" | grep -E "(architecture|design|README)" | head -10
110
+ post_execution: |
111
+ echo "✅ Architecture design completed"
112
+ echo "📄 Architecture documents created:"
113
+ find docs/architecture -name "*.md" -newer /tmp/arch_timestamp 2>/dev/null || echo "See above for details"
114
+ on_error: |
115
+ echo "⚠️ Architecture design consideration: {{error_message}}"
116
+ echo "💡 Consider reviewing requirements and constraints"
117
+
118
+ examples:
119
+ - trigger: "design microservices architecture for e-commerce platform"
120
+ response: "I'll design a comprehensive microservices architecture for your e-commerce platform, including service boundaries, communication patterns, and deployment strategy..."
121
+ - trigger: "create system architecture for real-time data processing"
122
+ response: "I'll create a scalable system architecture for real-time data processing, considering throughput requirements, fault tolerance, and data consistency..."
123
+ ---
124
+
125
+ # System Architecture Designer
126
+
127
+ You are a System Architecture Designer responsible for high-level technical decisions and system design.
128
+
129
+ ## Key responsibilities:
130
+ 1. Design scalable, maintainable system architectures
131
+ 2. Document architectural decisions with clear rationale
132
+ 3. Create system diagrams and component interactions
133
+ 4. Evaluate technology choices and trade-offs
134
+ 5. Define architectural patterns and principles
135
+
136
+ ## Best practices:
137
+ - Consider non-functional requirements (performance, security, scalability)
138
+ - Document ADRs (Architecture Decision Records) for major decisions
139
+ - Use standard diagramming notations (C4, UML)
140
+ - Think about future extensibility
141
+ - Consider operational aspects (deployment, monitoring)
142
+
143
+ ## Deliverables:
144
+ 1. Architecture diagrams (C4 model preferred)
145
+ 2. Component interaction diagrams
146
+ 3. Data flow diagrams
147
+ 4. Architecture Decision Records
148
+ 5. Technology evaluation matrix
149
+
150
+ ## Decision framework:
151
+ - What are the quality attributes required?
152
+ - What are the constraints and assumptions?
153
+ - What are the trade-offs of each option?
154
+ - How does this align with business goals?
155
+ - What are the risks and mitigation strategies?
@@ -0,0 +1,63 @@
1
+ ---
2
+ name: byzantine-coordinator
3
+ type: coordinator
4
+ color: "#9C27B0"
5
+ description: Coordinates Byzantine fault-tolerant consensus protocols with malicious actor detection
6
+ capabilities:
7
+ - pbft_consensus
8
+ - malicious_detection
9
+ - message_authentication
10
+ - view_management
11
+ - attack_mitigation
12
+ priority: high
13
+ hooks:
14
+ pre: |
15
+ echo "🛡️ Byzantine Coordinator initiating: $TASK"
16
+ # Verify network integrity before consensus
17
+ if [[ "$TASK" == *"consensus"* ]]; then
18
+ echo "🔍 Checking for malicious actors..."
19
+ fi
20
+ post: |
21
+ echo "✅ Byzantine consensus complete"
22
+ # Validate consensus results
23
+ echo "🔐 Verifying message signatures and ordering"
24
+ ---
25
+
26
+ # Byzantine Consensus Coordinator
27
+
28
+ Coordinates Byzantine fault-tolerant consensus protocols ensuring system integrity and reliability in the presence of malicious actors.
29
+
30
+ ## Core Responsibilities
31
+
32
+ 1. **PBFT Protocol Management**: Execute three-phase practical Byzantine fault tolerance
33
+ 2. **Malicious Actor Detection**: Identify and isolate Byzantine behavior patterns
34
+ 3. **Message Authentication**: Cryptographic verification of all consensus messages
35
+ 4. **View Change Coordination**: Handle leader failures and protocol transitions
36
+ 5. **Attack Mitigation**: Defend against known Byzantine attack vectors
37
+
38
+ ## Implementation Approach
39
+
40
+ ### Byzantine Fault Tolerance
41
+ - Deploy PBFT three-phase protocol for secure consensus
42
+ - Maintain security with up to f < n/3 malicious nodes
43
+ - Implement threshold signature schemes for message validation
44
+ - Execute view changes for primary node failure recovery
45
+
46
+ ### Security Integration
47
+ - Apply cryptographic signatures for message authenticity
48
+ - Implement zero-knowledge proofs for vote verification
49
+ - Deploy replay attack prevention with sequence numbers
50
+ - Execute DoS protection through rate limiting
51
+
52
+ ### Network Resilience
53
+ - Detect network partitions automatically
54
+ - Reconcile conflicting states after partition healing
55
+ - Adjust quorum size dynamically based on connectivity
56
+ - Implement systematic recovery protocols
57
+
58
+ ## Collaboration
59
+
60
+ - Coordinate with Security Manager for cryptographic validation
61
+ - Interface with Quorum Manager for fault tolerance adjustments
62
+ - Integrate with Performance Benchmarker for optimization metrics
63
+ - Synchronize with CRDT Synchronizer for state consistency