embedded-rust

embedded-rust is a skill for Codex from OutlineDriven/outline-driven-development. It costs 52 tokens per session (2,396 once invoked), scanned C, original, Apache-2.0.

A guide for writing Rust firmware for small Cortex-M or RISC-V devices without a standard operating system. It covers startup, board flashing, logging, task scheduling, and panic handling in the stated embedded setup.

In plain words
What is it for?
Use it to set up or fix a no-std Rust firmware project, configure its target and memory, flash a board, and stream device logs.
Why use it?
Embedded Rust projects need device-specific memory layouts, startup code, and flashing steps that ordinary desktop Rust does not. This guide defines the inputs and checks needed to build and run that firmware.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to set up or fix a no-std Rust firmware project, configure its target and memory, flash a board, and stream device logs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/outlinedriven/outline-driven-development/embedded-rust
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OutlineDriven/outline-driven-development --skill embedded-rust
Clone the repo
git clone --depth 1 https://github.com/OutlineDriven/outline-driven-development

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for embedded-rust

README.md
[![agentmods](https://agentmods.dev/badge/skills/outlinedriven/outline-driven-development/embedded-rust/github.svg)](https://agentmods.dev/skills/outlinedriven/outline-driven-development/embedded-rust)
Your own site
<a href="https://agentmods.dev/skills/outlinedriven/outline-driven-development/embedded-rust"><img src="https://agentmods.dev/badge/skills/outlinedriven/outline-driven-development/embedded-rust/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for embedded-rust

Your own site · 80×15
<a href="https://agentmods.dev/skills/outlinedriven/outline-driven-development/embedded-rust"><img src="https://agentmods.dev/badge/skills/outlinedriven/outline-driven-development/embedded-rust.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,396 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.02396
Opus 5.5 $0.00021 $0.00958
Sonnet 5.5 $0.00010 $0.00479
Haiku 4.5 $0.00005 $0.00240

Measured 2mo ago against content hash f7b8c3dab67a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

embedded-rust scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/probe-rs/probe-rs/releases/latest/download/probe-rs-tools-installer.sh | sh

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/probe-rs/probe-rs/releases/latest/download/probe-rs-tools-installer.sh | sh
.devin/skills/embedded-rust/SKILL.md · 191 lines

How it starts

The opening of the file, as written. The whole thing — 191 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Embedded Rust

Contract

Field Bound contract
Trigger A Rust firmware project needs to be set up or fixed: #![no_std] #![no_main] layout, cortex-m-rt startup, probe-rs flashing and log streaming, defmt logging, an RTIC application, or the choice of panic handler.
Authority Reversible local: writes only the project files under the directory the user names (Cargo.toml, .cargo/config.toml, memory.x, src/); rollback is deleting that directory or reverting it in version control. No remote mutation.
Side effect New or edited project files in the named directory. Flashing a board writes the board's flash, which the next cargo run overwrites.
Done cargo build --release produces an ELF for the target triple, cargo run --release flashes it and streams defmt output to the terminal, and exactly one panic handler is linked.

Inputs

  • MCU part and its probe-rs chip name (probe-rs chip list prints the names).
  • Core: which Cortex-M or RISC-V core, and whether it has an FPU. This picks the target triple.
  • Flash and RAM origin and size from the datasheet (for memory.x).
  • Concurrency model: plain #[entry] loop, RTIC, or Embassy.
  • Debug probe on hand, or none (this picks the panic handler and the defmt transport).

Procedure

  1. Pick the target triple from the core and install it. Done when: rustup target add <triple> succeeds and the triple appears in rustc --print target-list. The full table is in references/embedded-rust-targets.md.

    Core Target triple
    Cortex-M0, M0+ thumbv6m-none-eabi
    Cortex-M3 thumbv7m-none-eabi
    Cortex-M4, M7 without FPU thumbv7em-none-eabi
    Cortex-M4F, M7F thumbv7em-none-eabihf
    Cortex-M33 with FPU thumbv8m.main-none-eabihf
    RISC-V RV32IMAC riscv32imac-unknown-none-elf
  2. Write Cargo.toml and .cargo/config.toml. Use edition 2024. The versions below are the current crates.io releases on 2026-09-05; run cargo add <crate> to take the current one rather than copying a number. debug = true in the release profile keeps DWARF for defmt and probe-rs; it does not change the flashed code size because debug info is not loaded to flash. Done when: cargo build --release links.

Read the full file on GitHub · 191 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 191 lines · 52 tokens per session scan C f7b8c3dab67a

Subscribe to this mod's changes

embedded-rust is a skill published in the GitHub repository OutlineDriven/outline-driven-development (54 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 52 tokens to every session and 2,396 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-13.

Related

embedded-rust compared with skills from other repositories

embedded-rust next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
embedded-rustOutlineDriven/outline-driven-developmentSkill542mo agoApache-2.0C52Codex
rust-no-stdmohitmishra786/low-level-dev-skillsSkill30410d agoMITA88Claude Code
wasmTheBeardedBearSAS/claude-craftSkill10813d agoMITA43Claude Code
rust-for-linuxmohitmishra786/low-level-dev-skillsSkill30410d agoMITB110Claude Code, Codex
analyzing-rust-malware-internalsmeltedinhex/analyst-ai-packSkill253d agoApache-2.0A67Claude Code, Codex
signalk-wasm-pluginsailingnaturali/claude-skillsSkill33d agoMITA114Claude Code
embedded-rustmohitmishra786/low-level-dev-skillsSkill30410d agoMITC107Claude Code, Codex