tech-hub-skills 1.2.0 → 1.5.2

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 (198) hide show
  1. package/{LICENSE → .claude/LICENSE} +21 -21
  2. package/.claude/README.md +291 -0
  3. package/.claude/bin/cli.js +266 -0
  4. package/{bin → .claude/bin}/copilot.js +182 -182
  5. package/{bin → .claude/bin}/postinstall.js +42 -42
  6. package/{tech_hub_skills/skills → .claude/commands}/README.md +336 -336
  7. package/{tech_hub_skills/skills → .claude/commands}/ai-engineer.md +104 -104
  8. package/{tech_hub_skills/skills → .claude/commands}/aws.md +143 -143
  9. package/{tech_hub_skills/skills → .claude/commands}/azure.md +149 -149
  10. package/{tech_hub_skills/skills → .claude/commands}/backend-developer.md +108 -108
  11. package/{tech_hub_skills/skills → .claude/commands}/code-review.md +399 -399
  12. package/{tech_hub_skills/skills → .claude/commands}/compliance-automation.md +747 -747
  13. package/{tech_hub_skills/skills → .claude/commands}/compliance-officer.md +108 -108
  14. package/{tech_hub_skills/skills → .claude/commands}/data-engineer.md +113 -113
  15. package/{tech_hub_skills/skills → .claude/commands}/data-governance.md +102 -102
  16. package/{tech_hub_skills/skills → .claude/commands}/data-scientist.md +123 -123
  17. package/{tech_hub_skills/skills → .claude/commands}/database-admin.md +109 -109
  18. package/{tech_hub_skills/skills → .claude/commands}/devops.md +160 -160
  19. package/{tech_hub_skills/skills → .claude/commands}/docker.md +160 -160
  20. package/{tech_hub_skills/skills → .claude/commands}/enterprise-dashboard.md +613 -613
  21. package/{tech_hub_skills/skills → .claude/commands}/finops.md +184 -184
  22. package/{tech_hub_skills/skills → .claude/commands}/frontend-developer.md +108 -108
  23. package/{tech_hub_skills/skills → .claude/commands}/gcp.md +143 -143
  24. package/{tech_hub_skills/skills → .claude/commands}/ml-engineer.md +115 -115
  25. package/{tech_hub_skills/skills → .claude/commands}/mlops.md +187 -187
  26. package/{tech_hub_skills/skills → .claude/commands}/network-engineer.md +109 -109
  27. package/{tech_hub_skills/skills → .claude/commands}/optimization-advisor.md +329 -329
  28. package/{tech_hub_skills/skills → .claude/commands}/orchestrator.md +623 -623
  29. package/{tech_hub_skills/skills → .claude/commands}/platform-engineer.md +102 -102
  30. package/{tech_hub_skills/skills → .claude/commands}/process-automation.md +226 -226
  31. package/{tech_hub_skills/skills → .claude/commands}/process-changelog.md +184 -184
  32. package/{tech_hub_skills/skills → .claude/commands}/process-documentation.md +484 -484
  33. package/{tech_hub_skills/skills → .claude/commands}/process-kanban.md +324 -324
  34. package/{tech_hub_skills/skills → .claude/commands}/process-versioning.md +214 -214
  35. package/{tech_hub_skills/skills → .claude/commands}/product-designer.md +104 -104
  36. package/{tech_hub_skills/skills → .claude/commands}/project-starter.md +443 -443
  37. package/{tech_hub_skills/skills → .claude/commands}/qa-engineer.md +109 -109
  38. package/{tech_hub_skills/skills → .claude/commands}/security-architect.md +135 -135
  39. package/{tech_hub_skills/skills → .claude/commands}/sre.md +109 -109
  40. package/{tech_hub_skills/skills → .claude/commands}/system-design.md +126 -126
  41. package/{tech_hub_skills/skills → .claude/commands}/technical-writer.md +101 -101
  42. package/.claude/package.json +46 -0
  43. package/{tech_hub_skills → .claude}/roles/ai-engineer/skills/01-prompt-engineering/README.md +252 -252
  44. package/.claude/roles/ai-engineer/skills/01-prompt-engineering/prompt_ab_tester.py +356 -0
  45. package/.claude/roles/ai-engineer/skills/01-prompt-engineering/prompt_template_manager.py +274 -0
  46. package/.claude/roles/ai-engineer/skills/01-prompt-engineering/token_cost_estimator.py +324 -0
  47. package/{tech_hub_skills → .claude}/roles/ai-engineer/skills/02-rag-pipeline/README.md +448 -448
  48. package/.claude/roles/ai-engineer/skills/02-rag-pipeline/document_chunker.py +336 -0
  49. package/.claude/roles/ai-engineer/skills/02-rag-pipeline/rag_pipeline.sql +213 -0
  50. package/{tech_hub_skills → .claude}/roles/ai-engineer/skills/03-agent-orchestration/README.md +599 -599
  51. package/{tech_hub_skills → .claude}/roles/ai-engineer/skills/04-llm-guardrails/README.md +735 -735
  52. package/{tech_hub_skills → .claude}/roles/ai-engineer/skills/05-vector-embeddings/README.md +711 -711
  53. package/{tech_hub_skills → .claude}/roles/ai-engineer/skills/06-llm-evaluation/README.md +777 -777
  54. package/{tech_hub_skills → .claude}/roles/azure/skills/01-infrastructure-fundamentals/README.md +264 -264
  55. package/{tech_hub_skills → .claude}/roles/azure/skills/02-data-factory/README.md +264 -264
  56. package/{tech_hub_skills → .claude}/roles/azure/skills/03-synapse-analytics/README.md +264 -264
  57. package/{tech_hub_skills → .claude}/roles/azure/skills/04-databricks/README.md +264 -264
  58. package/{tech_hub_skills → .claude}/roles/azure/skills/05-functions/README.md +264 -264
  59. package/{tech_hub_skills → .claude}/roles/azure/skills/06-kubernetes-service/README.md +264 -264
  60. package/{tech_hub_skills → .claude}/roles/azure/skills/07-openai-service/README.md +264 -264
  61. package/{tech_hub_skills → .claude}/roles/azure/skills/08-machine-learning/README.md +264 -264
  62. package/{tech_hub_skills → .claude}/roles/azure/skills/09-storage-adls/README.md +264 -264
  63. package/{tech_hub_skills → .claude}/roles/azure/skills/10-networking/README.md +264 -264
  64. package/{tech_hub_skills → .claude}/roles/azure/skills/11-sql-cosmos/README.md +264 -264
  65. package/{tech_hub_skills → .claude}/roles/azure/skills/12-event-hubs/README.md +264 -264
  66. package/{tech_hub_skills → .claude}/roles/code-review/skills/01-automated-code-review/README.md +394 -394
  67. package/{tech_hub_skills → .claude}/roles/code-review/skills/02-pr-review-workflow/README.md +427 -427
  68. package/{tech_hub_skills → .claude}/roles/code-review/skills/03-code-quality-gates/README.md +518 -518
  69. package/{tech_hub_skills → .claude}/roles/code-review/skills/04-reviewer-assignment/README.md +504 -504
  70. package/{tech_hub_skills → .claude}/roles/code-review/skills/05-review-analytics/README.md +540 -540
  71. package/{tech_hub_skills → .claude}/roles/data-engineer/skills/01-lakehouse-architecture/README.md +550 -550
  72. package/.claude/roles/data-engineer/skills/01-lakehouse-architecture/bronze_ingestion.py +337 -0
  73. package/.claude/roles/data-engineer/skills/01-lakehouse-architecture/medallion_queries.sql +300 -0
  74. package/{tech_hub_skills → .claude}/roles/data-engineer/skills/02-etl-pipeline/README.md +580 -580
  75. package/{tech_hub_skills → .claude}/roles/data-engineer/skills/03-data-quality/README.md +579 -579
  76. package/{tech_hub_skills → .claude}/roles/data-engineer/skills/04-streaming-pipelines/README.md +608 -608
  77. package/{tech_hub_skills → .claude}/roles/data-engineer/skills/05-performance-optimization/README.md +547 -547
  78. package/{tech_hub_skills → .claude}/roles/data-governance/skills/01-data-catalog/README.md +112 -112
  79. package/{tech_hub_skills → .claude}/roles/data-governance/skills/02-data-lineage/README.md +129 -129
  80. package/{tech_hub_skills → .claude}/roles/data-governance/skills/03-data-quality-framework/README.md +182 -182
  81. package/{tech_hub_skills → .claude}/roles/data-governance/skills/04-access-control/README.md +39 -39
  82. package/{tech_hub_skills → .claude}/roles/data-governance/skills/05-master-data-management/README.md +40 -40
  83. package/{tech_hub_skills → .claude}/roles/data-governance/skills/06-compliance-privacy/README.md +46 -46
  84. package/{tech_hub_skills → .claude}/roles/data-scientist/skills/01-eda-automation/README.md +230 -230
  85. package/.claude/roles/data-scientist/skills/01-eda-automation/eda_generator.py +446 -0
  86. package/{tech_hub_skills → .claude}/roles/data-scientist/skills/02-statistical-modeling/README.md +264 -264
  87. package/{tech_hub_skills → .claude}/roles/data-scientist/skills/03-feature-engineering/README.md +264 -264
  88. package/{tech_hub_skills → .claude}/roles/data-scientist/skills/04-predictive-modeling/README.md +264 -264
  89. package/{tech_hub_skills → .claude}/roles/data-scientist/skills/05-customer-analytics/README.md +264 -264
  90. package/{tech_hub_skills → .claude}/roles/data-scientist/skills/06-campaign-analysis/README.md +264 -264
  91. package/{tech_hub_skills → .claude}/roles/data-scientist/skills/07-experimentation/README.md +264 -264
  92. package/{tech_hub_skills → .claude}/roles/data-scientist/skills/08-data-visualization/README.md +264 -264
  93. package/{tech_hub_skills → .claude}/roles/devops/skills/01-cicd-pipeline/README.md +264 -264
  94. package/{tech_hub_skills → .claude}/roles/devops/skills/02-container-orchestration/README.md +264 -264
  95. package/{tech_hub_skills → .claude}/roles/devops/skills/03-infrastructure-as-code/README.md +264 -264
  96. package/{tech_hub_skills → .claude}/roles/devops/skills/04-gitops/README.md +264 -264
  97. package/{tech_hub_skills → .claude}/roles/devops/skills/05-environment-management/README.md +264 -264
  98. package/{tech_hub_skills → .claude}/roles/devops/skills/06-automated-testing/README.md +264 -264
  99. package/{tech_hub_skills → .claude}/roles/devops/skills/07-release-management/README.md +264 -264
  100. package/{tech_hub_skills → .claude}/roles/devops/skills/08-monitoring-alerting/README.md +264 -264
  101. package/{tech_hub_skills → .claude}/roles/devops/skills/09-devsecops/README.md +265 -265
  102. package/{tech_hub_skills → .claude}/roles/finops/skills/01-cost-visibility/README.md +264 -264
  103. package/{tech_hub_skills → .claude}/roles/finops/skills/02-resource-tagging/README.md +264 -264
  104. package/{tech_hub_skills → .claude}/roles/finops/skills/03-budget-management/README.md +264 -264
  105. package/{tech_hub_skills → .claude}/roles/finops/skills/04-reserved-instances/README.md +264 -264
  106. package/{tech_hub_skills → .claude}/roles/finops/skills/05-spot-optimization/README.md +264 -264
  107. package/{tech_hub_skills → .claude}/roles/finops/skills/06-storage-tiering/README.md +264 -264
  108. package/{tech_hub_skills → .claude}/roles/finops/skills/07-compute-rightsizing/README.md +264 -264
  109. package/{tech_hub_skills → .claude}/roles/finops/skills/08-chargeback/README.md +264 -264
  110. package/{tech_hub_skills → .claude}/roles/ml-engineer/skills/01-mlops-pipeline/README.md +566 -566
  111. package/{tech_hub_skills → .claude}/roles/ml-engineer/skills/02-feature-engineering/README.md +655 -655
  112. package/{tech_hub_skills → .claude}/roles/ml-engineer/skills/03-model-training/README.md +704 -704
  113. package/{tech_hub_skills → .claude}/roles/ml-engineer/skills/04-model-serving/README.md +845 -845
  114. package/{tech_hub_skills → .claude}/roles/ml-engineer/skills/05-model-monitoring/README.md +874 -874
  115. package/{tech_hub_skills → .claude}/roles/mlops/skills/01-ml-pipeline-orchestration/README.md +264 -264
  116. package/{tech_hub_skills → .claude}/roles/mlops/skills/02-experiment-tracking/README.md +264 -264
  117. package/{tech_hub_skills → .claude}/roles/mlops/skills/03-model-registry/README.md +264 -264
  118. package/{tech_hub_skills → .claude}/roles/mlops/skills/04-feature-store/README.md +264 -264
  119. package/{tech_hub_skills → .claude}/roles/mlops/skills/05-model-deployment/README.md +264 -264
  120. package/{tech_hub_skills → .claude}/roles/mlops/skills/06-model-observability/README.md +264 -264
  121. package/{tech_hub_skills → .claude}/roles/mlops/skills/07-data-versioning/README.md +264 -264
  122. package/{tech_hub_skills → .claude}/roles/mlops/skills/08-ab-testing/README.md +264 -264
  123. package/{tech_hub_skills → .claude}/roles/mlops/skills/09-automated-retraining/README.md +264 -264
  124. package/{tech_hub_skills → .claude}/roles/platform-engineer/skills/01-internal-developer-platform/README.md +153 -153
  125. package/{tech_hub_skills → .claude}/roles/platform-engineer/skills/02-self-service-infrastructure/README.md +57 -57
  126. package/{tech_hub_skills → .claude}/roles/platform-engineer/skills/03-slo-sli-management/README.md +59 -59
  127. package/{tech_hub_skills → .claude}/roles/platform-engineer/skills/04-developer-experience/README.md +57 -57
  128. package/{tech_hub_skills → .claude}/roles/platform-engineer/skills/05-incident-management/README.md +73 -73
  129. package/{tech_hub_skills → .claude}/roles/platform-engineer/skills/06-capacity-management/README.md +59 -59
  130. package/{tech_hub_skills → .claude}/roles/product-designer/skills/01-requirements-discovery/README.md +407 -407
  131. package/{tech_hub_skills → .claude}/roles/product-designer/skills/02-user-research/README.md +382 -382
  132. package/{tech_hub_skills → .claude}/roles/product-designer/skills/03-brainstorming-ideation/README.md +437 -437
  133. package/{tech_hub_skills → .claude}/roles/product-designer/skills/04-ux-design/README.md +496 -496
  134. package/{tech_hub_skills → .claude}/roles/product-designer/skills/05-product-market-fit/README.md +376 -376
  135. package/{tech_hub_skills → .claude}/roles/product-designer/skills/06-stakeholder-management/README.md +412 -412
  136. package/{tech_hub_skills → .claude}/roles/security-architect/skills/01-pii-detection/README.md +319 -319
  137. package/{tech_hub_skills → .claude}/roles/security-architect/skills/02-threat-modeling/README.md +264 -264
  138. package/{tech_hub_skills → .claude}/roles/security-architect/skills/03-infrastructure-security/README.md +264 -264
  139. package/{tech_hub_skills → .claude}/roles/security-architect/skills/04-iam/README.md +264 -264
  140. package/{tech_hub_skills → .claude}/roles/security-architect/skills/05-application-security/README.md +264 -264
  141. package/{tech_hub_skills → .claude}/roles/security-architect/skills/06-secrets-management/README.md +264 -264
  142. package/{tech_hub_skills → .claude}/roles/security-architect/skills/07-security-monitoring/README.md +264 -264
  143. package/{tech_hub_skills → .claude}/roles/system-design/skills/01-architecture-patterns/README.md +337 -337
  144. package/{tech_hub_skills → .claude}/roles/system-design/skills/02-requirements-engineering/README.md +264 -264
  145. package/{tech_hub_skills → .claude}/roles/system-design/skills/03-scalability/README.md +264 -264
  146. package/{tech_hub_skills → .claude}/roles/system-design/skills/04-high-availability/README.md +264 -264
  147. package/{tech_hub_skills → .claude}/roles/system-design/skills/05-cost-optimization-design/README.md +264 -264
  148. package/{tech_hub_skills → .claude}/roles/system-design/skills/06-api-design/README.md +264 -264
  149. package/{tech_hub_skills → .claude}/roles/system-design/skills/07-observability-architecture/README.md +264 -264
  150. package/{tech_hub_skills → .claude}/roles/system-design/skills/08-process-automation/PROCESS_TEMPLATE.md +336 -336
  151. package/{tech_hub_skills → .claude}/roles/system-design/skills/08-process-automation/README.md +521 -521
  152. package/.claude/roles/system-design/skills/08-process-automation/ai_prompt_generator.py +744 -0
  153. package/.claude/roles/system-design/skills/08-process-automation/automation_recommender.py +688 -0
  154. package/.claude/roles/system-design/skills/08-process-automation/plan_generator.py +679 -0
  155. package/.claude/roles/system-design/skills/08-process-automation/process_analyzer.py +528 -0
  156. package/.claude/roles/system-design/skills/08-process-automation/process_parser.py +684 -0
  157. package/.claude/roles/system-design/skills/08-process-automation/role_matcher.py +615 -0
  158. package/.claude/skills/README.md +336 -0
  159. package/.claude/skills/ai-engineer.md +104 -0
  160. package/.claude/skills/aws.md +143 -0
  161. package/.claude/skills/azure.md +149 -0
  162. package/.claude/skills/backend-developer.md +108 -0
  163. package/.claude/skills/code-review.md +399 -0
  164. package/.claude/skills/compliance-automation.md +747 -0
  165. package/.claude/skills/compliance-officer.md +108 -0
  166. package/.claude/skills/data-engineer.md +113 -0
  167. package/.claude/skills/data-governance.md +102 -0
  168. package/.claude/skills/data-scientist.md +123 -0
  169. package/.claude/skills/database-admin.md +109 -0
  170. package/.claude/skills/devops.md +160 -0
  171. package/.claude/skills/docker.md +160 -0
  172. package/.claude/skills/enterprise-dashboard.md +613 -0
  173. package/.claude/skills/finops.md +184 -0
  174. package/.claude/skills/frontend-developer.md +108 -0
  175. package/.claude/skills/gcp.md +143 -0
  176. package/.claude/skills/ml-engineer.md +115 -0
  177. package/.claude/skills/mlops.md +187 -0
  178. package/.claude/skills/network-engineer.md +109 -0
  179. package/.claude/skills/optimization-advisor.md +329 -0
  180. package/.claude/skills/orchestrator.md +623 -0
  181. package/.claude/skills/platform-engineer.md +102 -0
  182. package/.claude/skills/process-automation.md +226 -0
  183. package/.claude/skills/process-changelog.md +184 -0
  184. package/.claude/skills/process-documentation.md +484 -0
  185. package/.claude/skills/process-kanban.md +324 -0
  186. package/.claude/skills/process-versioning.md +214 -0
  187. package/.claude/skills/product-designer.md +104 -0
  188. package/.claude/skills/project-starter.md +443 -0
  189. package/.claude/skills/qa-engineer.md +109 -0
  190. package/.claude/skills/security-architect.md +135 -0
  191. package/.claude/skills/sre.md +109 -0
  192. package/.claude/skills/system-design.md +126 -0
  193. package/.claude/skills/technical-writer.md +101 -0
  194. package/.gitattributes +2 -0
  195. package/GITHUB_COPILOT.md +106 -0
  196. package/README.md +192 -291
  197. package/package.json +16 -46
  198. package/bin/cli.js +0 -241
@@ -1,337 +1,337 @@
1
- # Skill 1: Architecture Pattern Selection & Design
2
-
3
- ## 🎯 Overview
4
- Tools for selecting, documenting, and implementing architectural patterns with trade-off analysis.
5
-
6
- ## 🔗 Connections
7
- - **All Roles**: Provides architectural guidance for implementations
8
- - **Security Architect**: Security pattern integration (sa-02, sa-06, sa-08)
9
- - **Data Engineer**: Data architecture patterns (de-01, de-02)
10
- - **DevOps**: Infrastructure and deployment patterns (do-01, do-03, do-04)
11
- - **ML Engineer**: ML system architecture (ml-01, ml-03)
12
- - **AI Engineer**: AI application architecture (ai-02, ai-03)
13
- - **FinOps**: Cost-optimized architecture design (fo-05, fo-06)
14
-
15
- ## 🛠️ Tools Included
16
-
17
- ### 1. `pattern_selector.py`
18
- Decision framework for choosing architectural patterns.
19
-
20
- ### 2. `adr_generator.py`
21
- Architecture Decision Record (ADR) automation.
22
-
23
- ### 3. `diagram_generator.py`
24
- Mermaid diagram generation for C4 model and system architecture.
25
-
26
- ### 4. `tradeoff_analyzer.py`
27
- CAP theorem and architectural trade-off analysis.
28
-
29
- ### 5. `architecture_templates.md`
30
- Templates for common patterns (microservices, event-driven, layered, etc.).
31
-
32
- ## 📊 Supported Patterns
33
- - Microservices
34
- - Event-Driven Architecture (EDA)
35
- - Layered Architecture
36
- - CQRS & Event Sourcing
37
- - Serverless
38
- - Data Mesh
39
-
40
- ## 🚀 Quick Start
41
-
42
- ```python
43
- from pattern_selector import ArchitectureSelector
44
- from adr_generator import ADRGenerator
45
-
46
- # Analyze requirements
47
- selector = ArchitectureSelector()
48
- recommendation = selector.recommend_pattern(
49
- scalability="high",
50
- consistency="eventual",
51
- team_size="large",
52
- deployment_frequency="daily"
53
- )
54
-
55
- # Generate ADR
56
- adr = ADRGenerator()
57
- adr.create_decision_record(
58
- title="Adopt Microservices Architecture",
59
- context="Need to scale teams and deployments independently",
60
- decision="Implement microservices with event-driven communication",
61
- consequences=["Increased operational complexity", "Better scalability"]
62
- )
63
- ```
64
-
65
- ## 📚 Best Practices
66
-
67
- ### Cost-Optimized Architecture (FinOps Integration)
68
-
69
- 1. **Design for Cost Efficiency**
70
- - Choose serverless vs containers based on usage patterns
71
- - Implement auto-scaling with appropriate thresholds
72
- - Use spot instances for fault-tolerant workloads
73
- - Design for right-sizing from the start
74
- - Reference: FinOps fo-05, fo-06
75
-
76
- 2. **Cost-Aware Pattern Selection**
77
- - Evaluate TCO for each architecture pattern
78
- - Consider operational costs, not just infrastructure
79
- - Design for observability to enable optimization
80
- - Track architectural decisions vs cost impact
81
- - Reference: FinOps fo-01, System Design sd-05
82
-
83
- ### Security by Design (Security Architect Integration)
84
-
85
- 3. **Zero Trust Architecture**
86
- - Assume breach mentality
87
- - Implement least privilege access
88
- - Encrypt all data in transit and at rest
89
- - Continuous authentication and authorization
90
- - Reference: Security Architect sa-02 (IAM), sa-04 (Encryption)
91
-
92
- 4. **Defense in Depth**
93
- - Multiple layers of security controls
94
- - Network segmentation and isolation
95
- - API gateway with rate limiting
96
- - WAF and DDoS protection
97
- - Reference: Security Architect sa-03 (Network Security)
98
-
99
- ### DevOps-Enabled Architecture
100
-
101
- 5. **Infrastructure as Code**
102
- - Design for automated provisioning
103
- - Use immutable infrastructure patterns
104
- - Implement blue-green deployments
105
- - Enable infrastructure versioning
106
- - Reference: DevOps do-04 (IaC), do-05 (GitOps)
107
-
108
- 6. **Observable by Design**
109
- - Built-in logging, metrics, and tracing
110
- - Distributed tracing for microservices
111
- - Health checks and readiness probes
112
- - Structured logging standards
113
- - Reference: DevOps do-08 (Monitoring & Observability)
114
-
115
- ### Data Architecture Patterns
116
-
117
- 7. **Scalable Data Architecture**
118
- - Implement data mesh for large organizations
119
- - Use CQRS for read-heavy workloads
120
- - Design for eventual consistency
121
- - Partition strategies for scale
122
- - Reference: Data Engineer de-01, de-02
123
-
124
- 8. **Data Governance Integration**
125
- - Data catalog and lineage tracking
126
- - Policy enforcement at architecture level
127
- - Data quality gates
128
- - Compliance by design
129
- - Reference: Security Architect sa-06 (Data Governance)
130
-
131
- ### ML/AI Architecture Patterns
132
-
133
- 9. **ML System Architecture**
134
- - Separate training and serving infrastructure
135
- - Model registry and versioning
136
- - Feature store architecture
137
- - A/B testing infrastructure
138
- - Reference: ML Engineer ml-01, ml-02
139
-
140
- 10. **AI Application Architecture**
141
- - LLM gateway pattern for cost control
142
- - RAG architecture for knowledge systems
143
- - Agent orchestration patterns
144
- - Prompt template management
145
- - Reference: AI Engineer ai-01, ai-02, ai-03
146
-
147
- ## 🏗️ Architecture Decision Records (ADRs)
148
-
149
- ### Cost-Optimized Microservices
150
- ```markdown
151
- # ADR-001: Adopt Serverless-First for Microservices
152
-
153
- ## Status
154
- Accepted
155
-
156
- ## Context
157
- Need to build scalable microservices with minimal operational overhead and cost-efficient scaling.
158
-
159
- ## Decision
160
- Use Azure Functions (serverless) for event-driven services with variable load.
161
- Use Azure Container Apps for always-on services requiring more control.
162
-
163
- ## Consequences
164
- **Positive:**
165
- - Auto-scaling with pay-per-execution model (70% cost savings on variable workloads)
166
- - Reduced operational complexity
167
- - Built-in monitoring and logging
168
-
169
- **Negative:**
170
- - Cold start latency for infrequent functions
171
- - Vendor lock-in to Azure ecosystem
172
- - Limited customization vs Kubernetes
173
-
174
- ## Cost Impact
175
- - Estimated 60-70% reduction in compute costs for variable workloads
176
- - Operational cost savings: ~40% reduction in DevOps overhead
177
-
178
- ## References
179
- - FinOps fo-06 (Compute Optimization)
180
- - DevOps do-03 (Containerization)
181
- ```
182
-
183
- ### Security Architecture
184
- ```markdown
185
- # ADR-002: Implement Zero Trust Network Architecture
186
-
187
- ## Status
188
- Accepted
189
-
190
- ## Context
191
- Legacy network perimeter security insufficient for cloud-native applications.
192
-
193
- ## Decision
194
- Implement zero trust architecture with:
195
- - Mutual TLS for all service-to-service communication
196
- - Identity-based access control (not network-based)
197
- - Continuous verification and least privilege access
198
- - Azure Managed Identity for all service authentication
199
-
200
- ## Consequences
201
- **Positive:**
202
- - Stronger security posture
203
- - Better compliance with SOC 2, ISO 27001
204
- - Reduced attack surface
205
-
206
- **Negative:**
207
- - Increased complexity in initial setup
208
- - More stringent certificate management
209
- - Potential latency from additional auth checks
210
-
211
- ## Implementation
212
- - Use Azure API Management as central gateway
213
- - Implement Azure AD for identity management
214
- - Enable Azure Key Vault for secrets management
215
-
216
- ## References
217
- - Security Architect sa-02 (IAM)
218
- - Security Architect sa-04 (Encryption)
219
- - DevOps do-07 (Secrets Management)
220
- ```
221
-
222
- ## 🔄 Architecture Pattern Library
223
-
224
- ### Pattern: Event-Driven Microservices
225
- ```python
226
- """
227
- Enterprise-grade event-driven architecture with Azure Event Grid
228
- """
229
- from azure.eventgrid import EventGridPublisherClient
230
- from azure.identity import DefaultAzureCredential
231
-
232
- class EventDrivenArchitecture:
233
- def __init__(self, topic_endpoint: str):
234
- self.client = EventGridPublisherClient(
235
- topic_endpoint,
236
- DefaultAzureCredential()
237
- )
238
-
239
- def publish_event(self, event_type: str, data: dict):
240
- event = {
241
- "eventType": event_type,
242
- "subject": f"/{event_type}",
243
- "dataVersion": "1.0",
244
- "data": data
245
- }
246
- self.client.send(event)
247
-
248
- # Usage with cost tracking
249
- from finops_tracker import EventCostTracker
250
-
251
- cost_tracker = EventCostTracker()
252
-
253
- @cost_tracker.track_event_cost
254
- def process_order(order_id: str):
255
- architecture = EventDrivenArchitecture(topic_endpoint)
256
- architecture.publish_event(
257
- "order.created",
258
- {"order_id": order_id, "status": "pending"}
259
- )
260
- ```
261
-
262
- ### Pattern: CQRS with Event Sourcing
263
- ```python
264
- """
265
- Command Query Responsibility Segregation for scalable reads
266
- """
267
- class CQRSArchitecture:
268
- def __init__(self):
269
- self.write_db = CosmosDBClient() # Strong consistency
270
- self.read_db = AzureSearchClient() # Optimized for queries
271
- self.event_store = EventGridClient()
272
-
273
- def execute_command(self, command: Command):
274
- # Write to command store
275
- result = self.write_db.execute(command)
276
-
277
- # Publish event for read model update
278
- self.event_store.publish({
279
- "type": "command.executed",
280
- "aggregate_id": command.aggregate_id,
281
- "data": result
282
- })
283
-
284
- return result
285
-
286
- def execute_query(self, query: Query):
287
- # Read from optimized read model
288
- return self.read_db.search(query)
289
- ```
290
-
291
- ## 📊 Architecture Metrics
292
-
293
- | Metric | Target | Tool |
294
- |--------|--------|------|
295
- | **System Availability** | >99.9% | Azure Monitor |
296
- | **Mean Time to Recovery (MTTR)** | <30 min | Incident tracking |
297
- | **Deployment Frequency** | Daily | CI/CD metrics |
298
- | **Lead Time for Changes** | <1 day | DevOps metrics |
299
- | **Change Failure Rate** | <5% | Deployment tracking |
300
- | **Architecture Cost Efficiency** | >60% savings vs baseline | FinOps dashboard |
301
- | **Security Posture Score** | >90/100 | Security assessment |
302
-
303
- ## 🔄 Integration Patterns
304
-
305
- ### Cross-Role Architecture Workflow
306
- ```
307
- 1. Requirements Gathering (sd-02)
308
-
309
- 2. Architecture Pattern Selection (sd-01)
310
-
311
- 3. Security Architecture Review (sa-02, sa-06)
312
-
313
- 4. Cost Impact Analysis (fo-05, fo-06)
314
-
315
- 5. Infrastructure Design (do-04)
316
-
317
- 6. Data Architecture (de-01, de-02)
318
-
319
- 7. ML System Architecture (ml-01)
320
-
321
- 8. API Design (sd-04)
322
-
323
- 9. ADR Documentation (sd-01)
324
-
325
- 10. Implementation & Deployment (do-01, do-03)
326
-
327
- 11. Monitoring & Optimization (do-08, fo-01)
328
- ```
329
-
330
- ## 🎯 Quick Wins
331
-
332
- 1. **Document architecture decisions** - Enable informed evolution
333
- 2. **Implement ADRs** - Track rationale and consequences
334
- 3. **Design for observability** - Enable optimization
335
- 4. **Security by design** - Prevent costly retrofits
336
- 5. **Cost-aware architecture** - Optimize from day one
337
- 6. **Infrastructure as Code** - Enable automation and consistency
1
+ # Skill 1: Architecture Pattern Selection & Design
2
+
3
+ ## 🎯 Overview
4
+ Tools for selecting, documenting, and implementing architectural patterns with trade-off analysis.
5
+
6
+ ## 🔗 Connections
7
+ - **All Roles**: Provides architectural guidance for implementations
8
+ - **Security Architect**: Security pattern integration (sa-02, sa-06, sa-08)
9
+ - **Data Engineer**: Data architecture patterns (de-01, de-02)
10
+ - **DevOps**: Infrastructure and deployment patterns (do-01, do-03, do-04)
11
+ - **ML Engineer**: ML system architecture (ml-01, ml-03)
12
+ - **AI Engineer**: AI application architecture (ai-02, ai-03)
13
+ - **FinOps**: Cost-optimized architecture design (fo-05, fo-06)
14
+
15
+ ## 🛠️ Tools Included
16
+
17
+ ### 1. `pattern_selector.py`
18
+ Decision framework for choosing architectural patterns.
19
+
20
+ ### 2. `adr_generator.py`
21
+ Architecture Decision Record (ADR) automation.
22
+
23
+ ### 3. `diagram_generator.py`
24
+ Mermaid diagram generation for C4 model and system architecture.
25
+
26
+ ### 4. `tradeoff_analyzer.py`
27
+ CAP theorem and architectural trade-off analysis.
28
+
29
+ ### 5. `architecture_templates.md`
30
+ Templates for common patterns (microservices, event-driven, layered, etc.).
31
+
32
+ ## 📊 Supported Patterns
33
+ - Microservices
34
+ - Event-Driven Architecture (EDA)
35
+ - Layered Architecture
36
+ - CQRS & Event Sourcing
37
+ - Serverless
38
+ - Data Mesh
39
+
40
+ ## 🚀 Quick Start
41
+
42
+ ```python
43
+ from pattern_selector import ArchitectureSelector
44
+ from adr_generator import ADRGenerator
45
+
46
+ # Analyze requirements
47
+ selector = ArchitectureSelector()
48
+ recommendation = selector.recommend_pattern(
49
+ scalability="high",
50
+ consistency="eventual",
51
+ team_size="large",
52
+ deployment_frequency="daily"
53
+ )
54
+
55
+ # Generate ADR
56
+ adr = ADRGenerator()
57
+ adr.create_decision_record(
58
+ title="Adopt Microservices Architecture",
59
+ context="Need to scale teams and deployments independently",
60
+ decision="Implement microservices with event-driven communication",
61
+ consequences=["Increased operational complexity", "Better scalability"]
62
+ )
63
+ ```
64
+
65
+ ## 📚 Best Practices
66
+
67
+ ### Cost-Optimized Architecture (FinOps Integration)
68
+
69
+ 1. **Design for Cost Efficiency**
70
+ - Choose serverless vs containers based on usage patterns
71
+ - Implement auto-scaling with appropriate thresholds
72
+ - Use spot instances for fault-tolerant workloads
73
+ - Design for right-sizing from the start
74
+ - Reference: FinOps fo-05, fo-06
75
+
76
+ 2. **Cost-Aware Pattern Selection**
77
+ - Evaluate TCO for each architecture pattern
78
+ - Consider operational costs, not just infrastructure
79
+ - Design for observability to enable optimization
80
+ - Track architectural decisions vs cost impact
81
+ - Reference: FinOps fo-01, System Design sd-05
82
+
83
+ ### Security by Design (Security Architect Integration)
84
+
85
+ 3. **Zero Trust Architecture**
86
+ - Assume breach mentality
87
+ - Implement least privilege access
88
+ - Encrypt all data in transit and at rest
89
+ - Continuous authentication and authorization
90
+ - Reference: Security Architect sa-02 (IAM), sa-04 (Encryption)
91
+
92
+ 4. **Defense in Depth**
93
+ - Multiple layers of security controls
94
+ - Network segmentation and isolation
95
+ - API gateway with rate limiting
96
+ - WAF and DDoS protection
97
+ - Reference: Security Architect sa-03 (Network Security)
98
+
99
+ ### DevOps-Enabled Architecture
100
+
101
+ 5. **Infrastructure as Code**
102
+ - Design for automated provisioning
103
+ - Use immutable infrastructure patterns
104
+ - Implement blue-green deployments
105
+ - Enable infrastructure versioning
106
+ - Reference: DevOps do-04 (IaC), do-05 (GitOps)
107
+
108
+ 6. **Observable by Design**
109
+ - Built-in logging, metrics, and tracing
110
+ - Distributed tracing for microservices
111
+ - Health checks and readiness probes
112
+ - Structured logging standards
113
+ - Reference: DevOps do-08 (Monitoring & Observability)
114
+
115
+ ### Data Architecture Patterns
116
+
117
+ 7. **Scalable Data Architecture**
118
+ - Implement data mesh for large organizations
119
+ - Use CQRS for read-heavy workloads
120
+ - Design for eventual consistency
121
+ - Partition strategies for scale
122
+ - Reference: Data Engineer de-01, de-02
123
+
124
+ 8. **Data Governance Integration**
125
+ - Data catalog and lineage tracking
126
+ - Policy enforcement at architecture level
127
+ - Data quality gates
128
+ - Compliance by design
129
+ - Reference: Security Architect sa-06 (Data Governance)
130
+
131
+ ### ML/AI Architecture Patterns
132
+
133
+ 9. **ML System Architecture**
134
+ - Separate training and serving infrastructure
135
+ - Model registry and versioning
136
+ - Feature store architecture
137
+ - A/B testing infrastructure
138
+ - Reference: ML Engineer ml-01, ml-02
139
+
140
+ 10. **AI Application Architecture**
141
+ - LLM gateway pattern for cost control
142
+ - RAG architecture for knowledge systems
143
+ - Agent orchestration patterns
144
+ - Prompt template management
145
+ - Reference: AI Engineer ai-01, ai-02, ai-03
146
+
147
+ ## 🏗️ Architecture Decision Records (ADRs)
148
+
149
+ ### Cost-Optimized Microservices
150
+ ```markdown
151
+ # ADR-001: Adopt Serverless-First for Microservices
152
+
153
+ ## Status
154
+ Accepted
155
+
156
+ ## Context
157
+ Need to build scalable microservices with minimal operational overhead and cost-efficient scaling.
158
+
159
+ ## Decision
160
+ Use Azure Functions (serverless) for event-driven services with variable load.
161
+ Use Azure Container Apps for always-on services requiring more control.
162
+
163
+ ## Consequences
164
+ **Positive:**
165
+ - Auto-scaling with pay-per-execution model (70% cost savings on variable workloads)
166
+ - Reduced operational complexity
167
+ - Built-in monitoring and logging
168
+
169
+ **Negative:**
170
+ - Cold start latency for infrequent functions
171
+ - Vendor lock-in to Azure ecosystem
172
+ - Limited customization vs Kubernetes
173
+
174
+ ## Cost Impact
175
+ - Estimated 60-70% reduction in compute costs for variable workloads
176
+ - Operational cost savings: ~40% reduction in DevOps overhead
177
+
178
+ ## References
179
+ - FinOps fo-06 (Compute Optimization)
180
+ - DevOps do-03 (Containerization)
181
+ ```
182
+
183
+ ### Security Architecture
184
+ ```markdown
185
+ # ADR-002: Implement Zero Trust Network Architecture
186
+
187
+ ## Status
188
+ Accepted
189
+
190
+ ## Context
191
+ Legacy network perimeter security insufficient for cloud-native applications.
192
+
193
+ ## Decision
194
+ Implement zero trust architecture with:
195
+ - Mutual TLS for all service-to-service communication
196
+ - Identity-based access control (not network-based)
197
+ - Continuous verification and least privilege access
198
+ - Azure Managed Identity for all service authentication
199
+
200
+ ## Consequences
201
+ **Positive:**
202
+ - Stronger security posture
203
+ - Better compliance with SOC 2, ISO 27001
204
+ - Reduced attack surface
205
+
206
+ **Negative:**
207
+ - Increased complexity in initial setup
208
+ - More stringent certificate management
209
+ - Potential latency from additional auth checks
210
+
211
+ ## Implementation
212
+ - Use Azure API Management as central gateway
213
+ - Implement Azure AD for identity management
214
+ - Enable Azure Key Vault for secrets management
215
+
216
+ ## References
217
+ - Security Architect sa-02 (IAM)
218
+ - Security Architect sa-04 (Encryption)
219
+ - DevOps do-07 (Secrets Management)
220
+ ```
221
+
222
+ ## 🔄 Architecture Pattern Library
223
+
224
+ ### Pattern: Event-Driven Microservices
225
+ ```python
226
+ """
227
+ Enterprise-grade event-driven architecture with Azure Event Grid
228
+ """
229
+ from azure.eventgrid import EventGridPublisherClient
230
+ from azure.identity import DefaultAzureCredential
231
+
232
+ class EventDrivenArchitecture:
233
+ def __init__(self, topic_endpoint: str):
234
+ self.client = EventGridPublisherClient(
235
+ topic_endpoint,
236
+ DefaultAzureCredential()
237
+ )
238
+
239
+ def publish_event(self, event_type: str, data: dict):
240
+ event = {
241
+ "eventType": event_type,
242
+ "subject": f"/{event_type}",
243
+ "dataVersion": "1.0",
244
+ "data": data
245
+ }
246
+ self.client.send(event)
247
+
248
+ # Usage with cost tracking
249
+ from finops_tracker import EventCostTracker
250
+
251
+ cost_tracker = EventCostTracker()
252
+
253
+ @cost_tracker.track_event_cost
254
+ def process_order(order_id: str):
255
+ architecture = EventDrivenArchitecture(topic_endpoint)
256
+ architecture.publish_event(
257
+ "order.created",
258
+ {"order_id": order_id, "status": "pending"}
259
+ )
260
+ ```
261
+
262
+ ### Pattern: CQRS with Event Sourcing
263
+ ```python
264
+ """
265
+ Command Query Responsibility Segregation for scalable reads
266
+ """
267
+ class CQRSArchitecture:
268
+ def __init__(self):
269
+ self.write_db = CosmosDBClient() # Strong consistency
270
+ self.read_db = AzureSearchClient() # Optimized for queries
271
+ self.event_store = EventGridClient()
272
+
273
+ def execute_command(self, command: Command):
274
+ # Write to command store
275
+ result = self.write_db.execute(command)
276
+
277
+ # Publish event for read model update
278
+ self.event_store.publish({
279
+ "type": "command.executed",
280
+ "aggregate_id": command.aggregate_id,
281
+ "data": result
282
+ })
283
+
284
+ return result
285
+
286
+ def execute_query(self, query: Query):
287
+ # Read from optimized read model
288
+ return self.read_db.search(query)
289
+ ```
290
+
291
+ ## 📊 Architecture Metrics
292
+
293
+ | Metric | Target | Tool |
294
+ |--------|--------|------|
295
+ | **System Availability** | >99.9% | Azure Monitor |
296
+ | **Mean Time to Recovery (MTTR)** | <30 min | Incident tracking |
297
+ | **Deployment Frequency** | Daily | CI/CD metrics |
298
+ | **Lead Time for Changes** | <1 day | DevOps metrics |
299
+ | **Change Failure Rate** | <5% | Deployment tracking |
300
+ | **Architecture Cost Efficiency** | >60% savings vs baseline | FinOps dashboard |
301
+ | **Security Posture Score** | >90/100 | Security assessment |
302
+
303
+ ## 🔄 Integration Patterns
304
+
305
+ ### Cross-Role Architecture Workflow
306
+ ```
307
+ 1. Requirements Gathering (sd-02)
308
+
309
+ 2. Architecture Pattern Selection (sd-01)
310
+
311
+ 3. Security Architecture Review (sa-02, sa-06)
312
+
313
+ 4. Cost Impact Analysis (fo-05, fo-06)
314
+
315
+ 5. Infrastructure Design (do-04)
316
+
317
+ 6. Data Architecture (de-01, de-02)
318
+
319
+ 7. ML System Architecture (ml-01)
320
+
321
+ 8. API Design (sd-04)
322
+
323
+ 9. ADR Documentation (sd-01)
324
+
325
+ 10. Implementation & Deployment (do-01, do-03)
326
+
327
+ 11. Monitoring & Optimization (do-08, fo-01)
328
+ ```
329
+
330
+ ## 🎯 Quick Wins
331
+
332
+ 1. **Document architecture decisions** - Enable informed evolution
333
+ 2. **Implement ADRs** - Track rationale and consequences
334
+ 3. **Design for observability** - Enable optimization
335
+ 4. **Security by design** - Prevent costly retrofits
336
+ 5. **Cost-aware architecture** - Optimize from day one
337
+ 6. **Infrastructure as Code** - Enable automation and consistency