/rust-skills:rust-embeddedfrom rust-skills
Designs, implements, reviews, and validates embedded Rust firmware including no_std targets, HAL drivers, interrupts, DMA, async executors, and hardware testing.
Ships in rust-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Establish hardware facts first, then select abstractions and frameworks. Do not treat example code for a specific development board as portable; do not claim firmware is usable without hardware evidence.
Distinguish between the following deliverables:
no_std Library or Driver: Core logic should be tested on host using mock HALs.std; handle as CLI, Web, or concurrency application unless device interface or cross-compilation is involved.Confirm and record before modification:
embedded-hal, and execution framework;defmt, UART, RTT, LEDs, logic analyzers, etc.;Do not fabricate values when chip memory layout or pin configuration is uncertain. Prioritize reading existing BSPs, datasheets, reference manuals, and locked documentation from the project repository.
Check repository configuration, target selection, and dependency sources:
rustc --version --verbose
rustup target list --installed
cargo metadata --format-version 1
cargo tree -e features
Locate .cargo/config.toml, linker parameters, memory.x/linker script, build.rs, runner, chip feature flags, and existing burn commands. Recreate the current build or save failure logs first.
When selecting target, runtime, or memory layout, read Target and Runtime.
Ensure minimum firmware builds correctly on a specific target to produce checkable images before integrating complex peripherals:
Reset/Startup Code
-> Initialize Memory and Runtime
-> Initialize Clocks and Required Peripherals
-> Enter Unique Application Entry Point
-> Produce Observable Heartbeat or Diagnostics
#![no_std]; whether to use #![no_main] depends on the runtime.alloc after providing a global allocator, memory space, and failure strategies.Recommended boundaries:
Pure Domain Logic (No Hardware Dependencies)
-> portable driver (core + embedded-hal traits)
-> board adapter (specific HAL/PAC, pins, clocks)
-> firmware binary (startup, tasks, failure strategies)
embedded-hal trait but not specific PAC singletons..ok().SAFETY comments, then review deeply with rust-unsafe-ffi.Do not arbitrarily mix bare-metal interrupts, multiple executors, or different resource locking models within the same firmware.
When HAL, shared state, or framework selection is required, read HAL and Concurrency. Complex language-level concurrency semantics should use rust-concurrency.
Do not leak device keys, pairing credentials, or sensitive identifiers in logs.
Verify from fastest to slowest:
embedded-hal for driver protocol and error path testing;Complete evidence list available in Hardware Validation.
Replace <target> and <package> based on repository configuration:
cargo fmt --all -- --check
cargo test -p <portable-package> --all-targets
cargo clippy -p <portable-package> --all-targets -- -D warnings
cargo build -p <firmware-package> --target <target> --release
cargo size -p <firmware-package> --target <target> --release
cargo size requires the project to be installed and cargo-binutils; otherwise, use existing ELF/section check tools in the repository. Only execute burn or run commands if the runner is configured for that target and hardware goals are confirmed. Burning changes device state; parse exact targets first and adhere strictly to user authorization scopes.
Mark "Build Verification Only" if no real hardware is available during verification.
| Primary Issue | Assigned To |
|---|---|
| Bare pointers, MMIO, FFI, safety encapsulation invariants | rust-unsafe-ffi |
| Async, cancellation, Send/Sync and general concurrency semantics | rust-concurrency |
| Host tests, attribute tests, coverage or benchmarks | rust-testing |
| Target configuration, feature flags, build scripts | rust-cargo-build |
Language ownership, traits, errors, and core API | rust-stable |
examples/golden-no-std/: Host-compilable, mock-testable no_std driver boundary examples.agents/openai.yaml (opens in a new tab)examples/examples.md (opens in a new tab)examples/golden-no-std/Cargo.toml (opens in a new tab)examples/golden-no-std/src/lib.rs (opens in a new tab)references/hal-and-concurrency.md (opens in a new tab)references/hardware-validation.md (opens in a new tab)references/target-and-runtime.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (full-stack-skills/rust-skills) — no native marketplace selected
npx claudepluginhub p/full-stack-skills-rust-skills29 skills in this plugin
/rust-api-designDesign Rust library APIs that follow the Rust API Guidelines — naming (C-CASE, C-CONV, C-GETTER), interop traits (C-COMMON-TRAITS, C-CONVERT, C-ITER, C-SERDE), predictability (C-INTUITIVE, C-CONST), flexibility (C-GENERIC, C-NEWTYPE, C-EXT), type safety (C-BOOL, C-NONZERO, C-WRAPPER, C-STR), dependability (C-PANIC, C-UNWRAP), debuggability (C-DEBUG), and future-proofing (C-SEALED, C-STRUCT-FIELD, C-NON-EXHAUSTIVE). Use when users design a public crate API, choose between generics/concrete/newtype, decide trait bounds, hide implementation, avoid breakage, or ask "what is idiomatic Rust API design"; hand semver and publish workflow to rust-semver, lint config to rust-style-clippy, and in-crate layout to rust-module-layout./rust-by-exampleShow Rust patterns through short compilable examples — type conversions (From/Into/TryFrom/as/Deref), flow control (if let/while let/match/loop), functions and closures (Fn/FnMut/FnOnce, captures), modules (mod/use/pub/super/self), generics and traits (bounds/associated types/trait objects), error handling (?/Result/thiserror/anyhow), attributes (derive/cfg/inline/allow), unsafe (raw pointers/unions/ABI), procedural macros (derive/attribute/function-like), and inline asm. Use when users ask "how do I write X in Rust", need a concrete pattern with copy-pasteable code, or are migrating from Java/Python/Go/C++ and want the Rust equivalent; hand architecture decisions to rust-api-design/rust-workspace, std API selection to rust-stdlib, and async runtime to rust-concurrency.Other plugins' skills for the same job