
Domain Iot
This is a Layer 3 domain constraints guide that maps IoT realities (unreliable networks, power limits, physical security risks) directly to Rust design decisions. You get constraint tables showing why offline-first matters, when to use no_std versus tokio, and how to think about MQTT QoS levels in terms of battery life. The trace-down approach is helpful: it connects "network can fail" to actual crate choices like rumqttc with exponential backoff. Covers both Linux gateways and MCU devices, which is the right scope since IoT spans that range. The common mistakes table is honest about what kills devices in production (always-on radios, no local buffering). Use this when you need to justify architectural choices for connected devices, not just implement MQTT.
- skills.sh installs
- 2.9K
- GitHub stars
- 1.6K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add actionbook/rust-skills --skill domain-iot --agent claude-codeInstalls into .claude/skills of the current project.
Files
IoT Domain
Layer 3: Domain Constraints
Domain Constraints → Design Implications
| Domain Rule | Design Constraint | Rust Implication |
|---|---|---|
| Unreliable network | Offline-first | Local buffering |
| Power constraints | Efficient code | Sleep modes, minimal alloc |
| Resource limits | Small footprint | no_std where needed |
| Security | Encrypted comms | TLS, signed firmware |
| Reliability | Self-recovery | Watchdog, error handling |
| OTA updates | Safe upgrades | Rollback capability |
Critical Constraints
Network Unreliability
RULE: Network can fail at any time
WHY: Wireless, remote locations
RUST: Local queue, retry with backoff
Power Management
RULE: Minimize power consumption
WHY: Battery life, energy costs
RUST: Sleep modes, efficient algorithms
Device Security
RULE: All communication encrypted
WHY: Physical access possible
RUST: TLS, signed messages
Trace Down ↓
From constraints to design (Layer 2):
"Need offline-first design"
↓ m12-lifecycle: Local buffer with persistence
↓ m13-domain-error: Retry with backoff
Sponsors
Details
- Repository
- github.com/actionbook/rust-skills
- Categories
- Backend & APIs, Rust
- First seen
- Jun 3, 2026
More from actionbook/rust-skills
All 38- Rust Router2.9K
- Core Agent Browser2.2K
- Core Dynamic Skills2K
- Core Actionbook2K
- Core Fix Skill Docs2K
- M15 Anti Pattern9.3K
- Coding Guidelines4.2K
- M10 Performance3.8K
- M07 Concurrency3.7K
- M06 Error Handling3.7K
- M01 Ownership3.6K
- M04 Zero Cost3.6K
- M05 Type Driven3.6K
- M02 Resource3.6K
- M03 Mutability3.6K
- Rust Refactor Helper3.6K
- M12 Lifecycle3.5K
- M09 Domain3.5K
- M14 Mental Model3.5K
- M11 Ecosystem3.5K
- M13 Domain Error3.5K
- Unsafe Checker3.5K
- Rust Code Navigator3.4K
- Rust Trait Explorer3.4K