Skip to main content
skill CX Codex

domain-embedded — Claude Code skill: setup and use

Guides embedded and no_std Rust work around memory, interrupts, and peripheral access. Use it when building firmware for microcontrollers.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add actionbook/rust-skills --skill domain-embedded -a claude-code
Open on GitHub

What domain-embedded does

This skill adds embedded Rust constraints to the agent context: no heap, static buffers, peripheral ownership, and interrupt-safe shared state. It steers code away from Vec towards heapless::Vec<T, N>, and points to critical sections with Mutex<RefCell<T>> where state is shared.

It watches Cargo.toml and .cargo/config.toml, including the target configuration. The guidance covers PAC and HAL layers, embedded-hal, RTIC, Embassy, plus patterns based on #![no_std], #![no_main], #[entry], and static state.

Blocking code does not belong in an ISR because it can delay other interrupts. That is a reason to inspect interrupt handlers before adding I/O work.

What it helps with

  • replace heap-backed collections in no_std code
  • protect shared state from ISR races
  • assign clear ownership to GPIO and peripherals
  • choose RTIC, Embassy, or bare metal execution patterns

Example prompts for the agent

  • Review this Cargo.toml for embedded no_std Rust constraints.
  • Replace this Vec buffer with a fixed heapless collection.
  • Check GPIO access shared by an interrupt handler and the main loop.

How to install domain-embedded

1Skills CLI (Vercel)

npx skills add actionbook/rust-skills --skill domain-embedded -a claude-code

2Manually: put the files in place

~/.claude/skills/domain-embedded/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/domain-embedded/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about domain-embedded

How do I install domain-embedded in Claude Code?

Run npx skills add actionbook/rust-skills --skill domain-embedded -a claude-code, then run npx skills add actionbook/rust-skills --skill domain-embedded -a claude-code again. The skill file is placed at ~/.claude/skills/domain-embedded/SKILL.md.

What does domain-embedded do?

It gives an agent rules for embedded and no_std Rust, including static memory, peripheral ownership, and interrupt safety. It also maps those constraints to Rust patterns and crates.

Why should I avoid Vec and blocking work in an ISR?

Vec commonly relies on heap allocation, while the skill points to fixed-capacity heapless collections. Blocking an ISR can delay other interrupts, so work should be deferred to the main loop.

Similar skills

All skills for Programming languages →

From the same set33

rust-skill-creator Builds assistant skills from Rust crate docs or the standard library. Saves API details and code examples to local files. CX Codex +1 3,000installs domain-ml A Rust-focused skill for ML and AI app design, covering model loading, tensor handling, batching, streaming, and GPU inference. CX Codex +1 2,800installs domain-fintech A skill that gives the agent fintech domain rules for Rust: decimal money, immutable transactions, audit trails. Useful when you build payments or ledgers. CX Codex +1 2,800installs domain-cloud-native A domain skill that injects cloud-native architecture rules into Rust projects, covering health endpoints, graceful exits, and stateless design. CX Codex +1 2,900installs rust-router A skill that stops the agent from answering Rust questions off the cuff and walks it through layers instead: language mechanics, design choices, domain constraints. CX Codex +1 2,700installs domain-iot This skill turns IoT constraints into Rust design choices: the network drops, power is scarce, the device is physically reachable. It steers the agent toward buffering, retries and TLS. CX Codex +1 2,700installs core-fix-skill-docs Audits documentation links in generated Rust skills and downloads missing files from docs.rs. Runs manually via the /fix-skill-docs command. CX Codex +1 1,800installs core-dynamic-skills A support skill that reads your Cargo.toml dependencies and generates local skills for Rust crates. It only runs through the sync commands. CX Codex +1 1,800installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor