This maps IoT domain constraints directly to Rust implementation choices. You get rules like "networks fail constantly" translated into concrete patterns: local buffering with persistence, exponential backoff, MQTT QoS levels. It covers the full spectrum from Linux gateways running tokio and rumqttc to no_std MCU code with embassy. The trace-down structure is the real value here, connecting "need power efficiency" to specific crate choices and sleep patterns. Includes working MQTT client code and a comparison table showing when to use std versus no_std stacks. Best used alongside the embedded and concurrency skills when you're building anything that talks to sensors or actuators over unreliable networks.

skills.sh installs
568
GitHub stars
1.3K
last updated
Jul 14, 2026

Install

$ npx -y skills add zhanghandong/rust-skills --skill domain-iot --agent claude-code

Installs into .claude/skills of the current project.

Files

IoT Domain

Layer 3: Domain Constraints

Domain Constraints → Design Implications

Domain RuleDesign ConstraintRust Implication
Unreliable networkOffline-firstLocal buffering
Power constraintsEfficient codeSleep modes, minimal alloc
Resource limitsSmall footprintno_std where needed
SecurityEncrypted commsTLS, signed firmware
ReliabilitySelf-recoveryWatchdog, error handling
OTA updatesSafe upgradesRollback 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/zhanghandong/rust-skills
Category
Rust
First seen
Jun 3, 2026

More from zhanghandong/rust-skills

All 34

Recommended

More Rust
1warpdotdev avatarfix-errorswarpdotdev/common-skillsFix compilation errors, linting issues, and test failures in the warp Rust codebase. Covers presubmit checks, WASM-specific errors, and running specific tests. 28.7Kskills.sh installs
2wshobson avatarmemory-safety-patternswshobson/agentsImplement memory-safe programming with RAII, ownership, smart pointers, and resource management across Rust, C++, and C. Use when writing safe systems code, man12.2Kskills.sh installs
3dotnet avatartest-gap-analysisdotnet/skillsPerforms pseudo-mutation analysis on production code in any language to find gaps in existing tests. Use when the user asks to find weak or shallow tests, disco4.3Kskills.sh installs
4actionbook avatarm02-resourceactionbook/rust-skillsCRITICAL: Use for smart pointers and resource management. Triggers: Box, Rc, Arc, Weak, RefCell, Cell, smart pointer, heap allocation, reference counting, RAII,3.6Kskills.sh installs
5actionbook avatarm09-domainactionbook/rust-skillsCRITICAL: Use for domain modeling. Triggers: domain model, DDD, domain-driven design, entity, value object, aggregate, repository pattern, business rules, valid3.5Kskills.sh installs
6actionbook avatarm13-domain-erroractionbook/rust-skillsUse when designing domain error handling. Keywords: domain error, error categorization, recovery strategy, retry, fallback, domain error hierarchy, user-facing 3.5Kskills.sh installs