po4yka/rust-skills / skills/rust-embedded-no-std
rust-embedded-no-std
VerifiedUse when writing, porting, or debugging bare-metal Rust firmware or no_std libraries, such as embedded-hal drivers, Embassy or RTIC tasks, flashing and logging with probe-rs and defmt, memory.x and linker scripts, panic and allocator policy, interrupt-shared state, and atomics on cores without compare-and-swap. Triggers on embedded Rust, cortex-m-rt, thumbv6m, critical-section, portable-atomic, panic_handler, or HardFault.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 11.5 KB |
| references/board-bring-up.md | markdown | 5.2 KB |
| references/defmt.md | markdown | 1.8 KB |
| references/dma.md | markdown | 1.7 KB |
| references/interrupts-and-atomics.md | markdown | 2.7 KB |
| references/resource-budgets.md | markdown | 1.9 KB |
| references/runtime-faults.md | markdown | 1.0 KB |
| references/task-frameworks.md | markdown | 1.9 KB |
| references/verification.md | markdown | 3.3 KB |
references/task-frameworks.md
View on GitHub# Embassy and RTIC rules
Use these rules after `SKILL.md` selects Embassy or RTIC as the task model.
## Rules for both frameworks
- Bound every channel capacity. Define the overflow policy at the sender.
- Reject an interrupt vector that a HAL, executor, dispatcher, or monotonic owns
twice.
- Verify timer progress and every asynchronous interrupt wake-up on the real
device. A host test cannot prove either one.
## Embassy
Prove that every spawned task has a static slot. Prove that no task waits
synchronously inside the executor: a blocking wait stops every task on that
executor.
When Embassy uses time, select exactly one compatible time driver in the final
binary. Use its fixed tick rate, or select a rate only when the driver supports
that choice. Verify that the clock and interrupt-latency budget support the
rate. Bind each interrupt that an asynchronous driver requires through the
documented HAL or runtime mechanism.
Copy Cargo features and the spawn pattern from the upstream examples of the
release tag that you use, not from `main` or an older post. Code from an older
release does not compile against a newer executor. As of embassy-executor
0.10.0 (released 2026-03,
[changelog](https://github.com/embassy-rs/embassy/blob/main/embassy-executor/CHANGELOG.md)):
- The `arch-*` features are named `platform-*` (0.10).
- A task call returns a `Result` that fails when the task pool is full (0.10).
Unwrap it before the spawn: `spawner.spawn(blink(led).unwrap())`, or
`spawner.spawn(defmt::unwrap!(blink(led)))` when the binary uses defmt.
`spawner.spawn` returns `()`. Before 0.10, `spawner.spawn` itself returned
the `Result`.
- Task pools are static on stable since 0.8. The `task-arena-size-*` features
no longer exist. Remove them from an old `Cargo.toml`.
## RTIC
Prove resource ceilings, priority ordering, and the maximum lock duration.
Reserve each declared dispatcher for software tasks. Bind and start each
selected monotonic.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |