actionbook avatar

Domain Embedded

Auto-injects when you're writing embedded Rust for microcontrollers and bare metal systems. Loads your target configuration from .cargo/config.toml and gives you the constraint map for no_std development: no heap means heapless collections, interrupt safety requires Mutex with critical sections, peripheral access goes through HAL ownership patterns. The trace down logic connects domain rules like "no dynamic allocation" directly to crate choices and design patterns. Covers the full stack from PAC registers up through RTIC and Embassy, with specific attention to the static state patterns you need for ISR-safe code. If you're toggling GPIOs or writing firmware, this keeps the embedded constraints front and center.

skills.sh installs
3.1K
GitHub stars
1.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add actionbook/rust-skills --skill domain-embedded --agent claude-code

Installs into .claude/skills of the current project.

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 RuleDesign ConstraintRust Implication
No heapStack allocationheapless, no Box/Vec
No stdCore only#![no_std]
Real-timePredictable timingNo dynamic alloc
Resource limitedMinimal memoryStatic buffers
Hardware safetySafe peripheral accessHAL + ownership
Interrupt safeNo blocking in ISRAtomic, 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 ↓

Sponsors

Details

Repository
github.com/actionbook/rust-skills
Category
Rust
First seen
Jun 3, 2026

More from actionbook/rust-skills

All 38

Recommended

More Rust
1actionbook avatardomain-fintechactionbook/rust-skillsUse when building fintech apps. Keywords: fintech, trading, decimal, currency, financial, money, transaction, ledger, payment, exchange rate, precision, roundin3Kskills.sh installs
2actionbook avatardomain-iotactionbook/rust-skillsUse when building IoT apps. Keywords: IoT, Internet of Things, sensor, MQTT, device, edge computing, telemetry, actuator, smart home, gateway, protocol, 物联网, 传感2.9Kskills.sh installs
3zhanghandong avatarm02-resourcezhanghandong/rust-skillsm02 resource783skills.sh installs
4zhanghandong avatarm03-mutabilityzhanghandong/rust-skillsm03 mutability773skills.sh installs
5zhanghandong avatardomain-webzhanghandong/rust-skillsdomain web648skills.sh installs
6zhanghandong avatardomain-iotzhanghandong/rust-skillsdomain iot568skills.sh installs