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-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/actionbook/rust-skills
Categories
Backend & APIs, Rust
First seen
Jun 3, 2026

More from actionbook/rust-skills

All 38
1wordpress avatarwp-abilities-auditwordpress/agent-skillsAudit a WordPress plugin's REST surface and produce a standardized audit document proposing Abilities API registrations. Produces a markdown doc with a YAML sch2.9Kskills.sh installs
2elastic avatarkibana-streamselastic/agent-skillsList, inspect, enable, disable, and resync Kibana Streams via the REST API. Use when the user needs stream details, ingest/query settings, queries, significant 2.9Kskills.sh installs
3binance avatarspotbinance/binance-skills-hubBinance Spot request using the Binance API. Authentication requires API key and secret key. Supports testnet, mainnet, and demo.2.9Kskills.sh installs
4onmax avatarnuxt-modulesonmax/nuxt-skillsUse when creating Nuxt modules: (1) Published npm modules (@nuxtjs/, nuxt-), (2) Local project modules (modules/ directory), (3) Runtime extensions (components,2.9Kskills.sh installs
5elastic avatarkibana-connectorselastic/agent-skillsCreate and manage Kibana connectors for Slack, PagerDuty, Jira, webhooks, and more via REST API or Terraform. Use when configuring third-party integrations or m2.9Kskills.sh installs
6coinbase avatarmonetize-servicecoinbase/agentic-wallet-skillsBuild and deploy a paid API that other agents can pay to use via x402. Use when you or the user want to monetize an API, make money, earn money, offer a service2.9Kskills.sh installs