Multi Cloud Iot
Skill Profile
(Select at least one profile to enable specific modules)
Overview
Multi-Cloud IoT Strategy enables deployment of IoT infrastructure across multiple cloud providers to achieve redundancy, compliance with data residency requirements, cost optimization, and avoidance of vendor lock-in. This approach is essential for enterprise IoT deployments requiring high availability, geographic distribution, and regulatory compliance.
Why This Matters
- Redundancy: Eliminate single points of failure
- Compliance: Meet data residency requirements
- Cost Optimization: Leverage competitive pricing
- Vendor Independence: Avoid lock-in
- Performance: Deploy closer to users/devices
Core Concepts & Rules
1. Core Principles
- Follow established patterns and conventions
- Maintain consistency across codebase
- Document decisions and trade-offs
2. Implementation Guidelines
- Start with the simplest viable solution
- Iterate based on feedback and requirements
- Test thoroughly before deployment
Inputs / Outputs / Contracts
- Inputs:
- Cloud provider configurations
- Service deployment requirements
- Compliance requirements
- Cost optimization preferences
- Entry Conditions:
- Multiple cloud accounts configured
- Service mesh deployed
- API gateway operational
- Outputs:
- Deployed multi-cloud infrastructure
- Service registry
- Cost tracking reports
- Compliance verification
- Artifacts Required (Deliverables):
- Multi-cloud orchestrator
- Service abstraction layer
- Provider selection logic
- Cost optimization rules
- Acceptance Evidence:
- Services deployed across providers
- Cost optimization achieved
- Compliance requirements met
- Failover working
- Success Criteria:
- Provider selection success rate > 95%
- Cost savings > 20%
- Compliance 100%
- Failover time < 5 minutes
Skill Composition
Quick Start / Implementation Example
- Review requirements and constraints
- Set up development environment
- Implement core functionality following patterns
- Write tests for critical paths
- Run tests and fix issues
- Document any deviations or decisions
# Example implementation following best practices
def example_function():
# Your implementation here
pass
Assumptions / Constraints / Non-goals
- Assumptions:
- Development environment is properly configured
- Required dependencies are available
- Team has basic understanding of domain
- Constraints:
- Must follow existing codebase conventions
- Time and resource limitations
- Compatibility requirements
- Non-goals:
- This skill does not cover edge cases outside scope
- Not a replacement for formal training
Compatibility & Prerequisites
- Supported Versions:
- Python 3.8+
- Node.js 16+
- Modern browsers (Chrome, Firefox, Safari, Edge)
- Required AI Tools:
- Code editor (VS Code recommended)
- Testing framework appropriate for language
- Version control (Git)
- Dependencies:
- Language-specific package manager
- Build tools
- Testing libraries
- Environment Setup:
.env.example keys: API_KEY, DATABASE_URL (no values)
Test Scenario Matrix (QA Strategy)
| Type |
Focus Area |
Required Scenarios / Mocks |
| Unit |
Core Logic |
Must cover primary logic and at least 3 edge/error cases. Target minimum 80% coverage |
| Integration |
DB / API |
All external API calls or database connections must be mocked during unit tests |
| E2E |
User Journey |
Critical user flows to test |
| Performance |
Latency / Load |
Benchmark requirements |
| Security |
Vuln / Auth |
SAST/DAST or dependency audit |
| Frontend |
UX / A11y |
Accessibility checklist (WCAG), Performance Budget (Lighthouse score) |
Technical Guardrails & Security Threat Model
1. Security & Privacy (Threat Model)
- Top Threats: Injection attacks, authentication bypass, data exposure
2. Performance & Resources
3. Architecture & Scalability
4. Observability & Reliability
Agent Directives & Error Recovery
(ข้อกำหนดสำหรับ AI Agent ในการคิดและแก้ปัญหาเมื่อเกิดข้อผิดพลาด)
- Thinking Process: Analyze root cause before fixing. Do not brute-force.
- Fallback Strategy: Stop after 3 failed test attempts. Output root cause and ask for human intervention/clarification.
- Self-Review: Check against Guardrails & Anti-patterns before finalizing.
- Output Constraints: Output ONLY the modified code block. Do not explain unless asked.
Definition of Done (DoD) Checklist
Anti-patterns / Pitfalls
- ⛔ Don't: Log PII, catch-all exception, N+1 queries
- ⚠️ Watch out for: Common symptoms and quick fixes
- 💡 Instead: Use proper error handling, pagination, and logging
Reference Links & Examples
- Internal documentation and examples
- Official documentation and best practices
- Community resources and discussions
Versioning & Changelog
- Version: 1.0.0
- Changelog:
- 2026-02-22: Initial version with complete template structure
1---2name: multi-cloud-iot3description: Multi-Cloud IoT Strategy enables deployment of IoT infrastructure across multiple cloud providers to achieve redundancy, compliance with data residency requirements, cost optimization, and avoidance o4---5
6# Multi Cloud Iot
7
8## Skill Profile
9*(Select at least one profile to enable specific modules)*
10- [ ] **DevOps**
11- [x] **Backend**
12- [ ] **Frontend**
13- [ ] **AI-RAG**
14- [ ] **Security Critical**
15
16## Overview
17Multi-Cloud IoT Strategy enables deployment of IoT infrastructure across multiple cloud providers to achieve redundancy, compliance with data residency requirements, cost optimization, and avoidance of vendor lock-in. This approach is essential for enterprise IoT deployments requiring high availability, geographic distribution, and regulatory compliance.
18
19## Why This Matters
20- **Redundancy**: Eliminate single points of failure
21- **Compliance**: Meet data residency requirements
22- **Cost Optimization**: Leverage competitive pricing
23- **Vendor Independence**: Avoid lock-in
24- **Performance**: Deploy closer to users/devices
25
26---
27
28## Core Concepts & Rules
29
30### 1. Core Principles
31- Follow established patterns and conventions
32- Maintain consistency across codebase
33- Document decisions and trade-offs
34
35### 2. Implementation Guidelines
36- Start with the simplest viable solution
37- Iterate based on feedback and requirements
38- Test thoroughly before deployment
39
40
41## Inputs / Outputs / Contracts
42* **Inputs**:
43 - Cloud provider configurations
44 - Service deployment requirements
45 - Compliance requirements
46 - Cost optimization preferences
47* **Entry Conditions**:
48 - Multiple cloud accounts configured
49 - Service mesh deployed
50 - API gateway operational
51* **Outputs**:
52 - Deployed multi-cloud infrastructure
53 - Service registry
54 - Cost tracking reports
55 - Compliance verification
56* **Artifacts Required (Deliverables)**:
57 - Multi-cloud orchestrator
58 - Service abstraction layer
59 - Provider selection logic
60 - Cost optimization rules
61* **Acceptance Evidence**:
62 - Services deployed across providers
63 - Cost optimization achieved
64 - Compliance requirements met
65 - Failover working
66* **Success Criteria**:
67 - Provider selection success rate > 95%
68 - Cost savings > 20%
69 - Compliance 100%
70 - Failover time < 5 minutes
71
72## Skill Composition
73* **Depends on**: [Advanced IaC for IoT](../76-iot-infrastructure/advanced-iac-iot/SKILL.md)
74* **Compatible with**: [Chaos Engineering for IoT](../76-iot-infrastructure/chaos-engineering-iot/SKILL.md), [Disaster Recovery for IoT](../76-iot-infrastructure/disaster-recovery-iot/SKILL.md)
75* **Conflicts with**: Single cloud deployments
76* **Related Skills**: [GitOps for IoT Infrastructure](../76-iot-infrastructure/gitops-iot-infrastructure/SKILL.md), [Disaster Recovery for IoT](../76-iot-infrastructure/disaster-recovery-iot/SKILL.md)
77
78---
79
80## Quick Start / Implementation Example
81
821. Review requirements and constraints
832. Set up development environment
843. Implement core functionality following patterns
854. Write tests for critical paths
865. Run tests and fix issues
876. Document any deviations or decisions
88
89```python
90# Example implementation following best practices
91def example_function():
92 # Your implementation here
93 pass
94```
95
96
97## Assumptions / Constraints / Non-goals
98
99* **Assumptions**:
100 - Development environment is properly configured
101 - Required dependencies are available
102 - Team has basic understanding of domain
103* **Constraints**:
104 - Must follow existing codebase conventions
105 - Time and resource limitations
106 - Compatibility requirements
107* **Non-goals**:
108 - This skill does not cover edge cases outside scope
109 - Not a replacement for formal training
110
111
112## Compatibility & Prerequisites
113
114* **Supported Versions**:
115 - Python 3.8+
116 - Node.js 16+
117 - Modern browsers (Chrome, Firefox, Safari, Edge)
118* **Required AI Tools**:
119 - Code editor (VS Code recommended)
120 - Testing framework appropriate for language
121 - Version control (Git)
122* **Dependencies**:
123 - Language-specific package manager
124 - Build tools
125 - Testing libraries
126* **Environment Setup**:
127 - `.env.example` keys: `API_KEY`, `DATABASE_URL` (no values)
128
129
130## Test Scenario Matrix (QA Strategy)
131
132| Type | Focus Area | Required Scenarios / Mocks |
133| :--- | :--- | :--- |
134| **Unit** | Core Logic | Must cover primary logic and at least 3 edge/error cases. Target minimum 80% coverage |
135| **Integration** | DB / API | All external API calls or database connections must be mocked during unit tests |
136| **E2E** | User Journey | Critical user flows to test |
137| **Performance** | Latency / Load | Benchmark requirements |
138| **Security** | Vuln / Auth | SAST/DAST or dependency audit |
139| **Frontend** | UX / A11y | Accessibility checklist (WCAG), Performance Budget (Lighthouse score) |
140
141
142## Technical Guardrails & Security Threat Model
143
144### 1. Security & Privacy (Threat Model)
145* **Top Threats**: Injection attacks, authentication bypass, data exposure
146- [ ] **Data Handling**: Sanitize all user inputs to prevent Injection attacks. Never log raw PII
147- [ ] **Secrets Management**: No hardcoded API keys. Use Env Vars/Secrets Manager
148- [ ] **Authorization**: Validate user permissions before state changes
149
150### 2. Performance & Resources
151- [ ] **Execution Efficiency**: Consider time complexity for algorithms
152- [ ] **Memory Management**: Use streams/pagination for large data
153- [ ] **Resource Cleanup**: Close DB connections/file handlers in finally blocks
154
155### 3. Architecture & Scalability
156- [ ] **Design Pattern**: Follow SOLID principles, use Dependency Injection
157- [ ] **Modularity**: Decouple logic from UI/Frameworks
158
159### 4. Observability & Reliability
160- [ ] **Logging Standards**: Structured JSON, include trace IDs `request_id`
161- [ ] **Metrics**: Track `error_rate`, `latency`, `queue_depth`
162- [ ] **Error Handling**: Standardized error codes, no bare except
163- [ ] **Observability Artifacts**:
164 - **Log Fields**: timestamp, level, message, request_id
165 - **Metrics**: request_count, error_count, response_time
166 - **Dashboards/Alerts**: High Error Rate > 5%
167
168
169## Agent Directives & Error Recovery
170*(ข้อกำหนดสำหรับ AI Agent ในการคิดและแก้ปัญหาเมื่อเกิดข้อผิดพลาด)*
171
172- **Thinking Process**: Analyze root cause before fixing. Do not brute-force.
173- **Fallback Strategy**: Stop after 3 failed test attempts. Output root cause and ask for human intervention/clarification.
174- **Self-Review**: Check against Guardrails & Anti-patterns before finalizing.
175- **Output Constraints**: Output ONLY the modified code block. Do not explain unless asked.
176
177
178## Definition of Done (DoD) Checklist
179
180- [ ] Tests passed + coverage met
181- [ ] Lint/Typecheck passed
182- [ ] Logging/Metrics/Trace implemented
183- [ ] Security checks passed
184- [ ] Documentation/Changelog updated
185- [ ] Accessibility/Performance requirements met (if frontend)
186
187
188## Anti-patterns / Pitfalls
189
190* ⛔ **Don't**: Log PII, catch-all exception, N+1 queries
191* ⚠️ **Watch out for**: Common symptoms and quick fixes
192* 💡 **Instead**: Use proper error handling, pagination, and logging
193
194
195## Reference Links & Examples
196
197* Internal documentation and examples
198* Official documentation and best practices
199* Community resources and discussions
200
201
202## Versioning & Changelog
203
204* **Version**: 1.0.0
205* **Changelog**:
206 - 2026-02-22: Initial version with complete template structure
207