Domain Embedded
Domain guide for embedded no_std Rust covering memory, interrupt safety, and peripheral ownership constraints.
- CCM score
- 51 of 100
- skills.sh installs
- 3.3K
- GitHub stars
- 1.6K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers no_std design rules, the layer stack from PAC to HAL to framework to traits, and framework choice between RTIC, Embassy, and bare metal
- Includes key crate picks (cortex-m-rt, heapless, embedded-hal, defmt, panic-probe) and a static-peripheral code pattern using Mutex<RefCell<Option<T>>>
- Enforces no heap allocation, critical sections around ISR-shared state, and no blocking work inside interrupt handlers
- Designed for developers writing firmware for Cortex-M, RISC-V, ESP32, STM32, or nRF targets
Install
$ npx -y skills add actionbook/rust-skills --skill domain-embedded -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Project Context (Auto-Injected)
Target configuration:
!cat .cargo/config.toml 2>/dev/null || echo "No .cargo/config.toml found"
Embedded Domain
Layer 3: Domain Constraints
Domain Constraints → Design Implications
| Domain Rule | Design Constraint | Rust Implication |
|---|---|---|
| No heap | Stack allocation | heapless, no Box/Vec |
| No std | Core only | #![no_std] |
| Real-time | Predictable timing | No dynamic alloc |
| Resource limited | Minimal memory | Static buffers |
| Hardware safety | Safe peripheral access | HAL + ownership |
| Interrupt safe | No blocking in ISR | Atomic, critical sections |
Critical Constraints
No Dynamic Allocation
RULE: Cannot use heap (no allocator)
WHY: Deterministic memory, no OOM
RUST: heapless::Vec<T, N>, arrays
Interrupt Safety
RULE: Shared state must be interrupt-safe
WHY: ISR can preempt at any time
RUST: Mutex<RefCell<T>> + critical section
Hardware Ownership
RULE: Peripherals must have clear ownership
WHY: Prevent conflicting access
RUST: HAL takes ownership, singletons
Trace Down ↓
Details
- Repository
- github.com/actionbook/rust-skills
- Categories
- Rust, Go
- First seen
- Jun 3, 2026
More from actionbook/rust-skills
All 38- Domain Cloud Native3.3K
- Domain Fintech3.3K
- Domain Ml3.2K
- Domain Iot3.1K
- Rust Router3.1K
- Core Agent Browser2.4K
- Core Dynamic Skills2.2K
- Core Actionbook2.2K
- Core Fix Skill Docs2.2K
- M15 Anti Pattern9.6K
- Coding Guidelines4.5K
- M10 Performance4.1K
- M07 Concurrency4K
- M06 Error Handling3.9K
- M01 Ownership3.9K
- M04 Zero Cost3.8K
- M05 Type Driven3.8K
- M02 Resource3.8K
- Rust Refactor Helper3.8K
- M03 Mutability3.8K
- M12 Lifecycle3.8K
- M09 Domain3.8K
- M14 Mental Model3.7K
- M13 Domain Error3.7K
Similar to Domain Embedded
More Rustdomain-iotSkillactionbook/rust-skills3.1K installsRust-focused IoT design guide covering offline-first constraints, power efficiency, security, and MQTT patterns.
embedded-systemsSkilljeffallan/claude-skills7.4K installsFirmware development guide for microcontrollers, RTOS tasks, interrupts, DMA, and power optimization on STM32 and ESP32.
domain-webSkillactionbook/rust-skills3.6K installsRust web-service guide that maps domain constraints to axum, actix, tower, and shared-state patterns.
arm-cortex-expertSkillsickn33/agentic-awesome-skills520 installsFirmware and driver development guide for ARM Cortex-M microcontrollers covering Teensy, STM32, nRF52, and SAMD.
arm-cortex-microcontrollersPluginwshobson/agents42.9K starsARM Cortex-M firmware development for Teensy, STM32, nRF52, and SAMD with peripheral drivers and memory safety patterns
stm32-freertos-developerSkill2939387245/agent-skill_stm32-freertos507 installsStructured guide for STM32 and FreeRTOS embedded firmware: tasks, queues, drivers, interrupts, and tuning.