Bare Metal Rust
Use when the user asks about embedded Rust, no_std firmware, Cortex-M Rust, embedded-hal, PAC and svd2rust, RTIC, Embassy, probe-rs or defmt. Produces no_std firmware with safe interrupt sharing and a flash/debug toolchain. Not for general Rust application code (use lang-rust) or C firmware (use c-cpp-patterns).
Install
npx skills add j4flmao/agent-skills --skill bare-metal-rustgit clone --depth 1 https://github.com/j4flmao/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/embedded-systems/bare-metal-rust ~/.claude/skills/bare-metal-rustPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Bare-Metal Rust
## Purpose
Rust removes whole classes of firmware bugs (buffer overruns, use-after-free, data races between ISR and main) at compile time while compiling to code comparable with C. This skill shows how to structure a `no_std` project, share state with interrupts soundly, pick between RTIC, Embassy and a plain superloop, and build/flash/debug with the standard toolchain.
## Agent Protocol
### Trigger
"embedded rust", "no_std", "cortex-m rust", "embedded-hal", "PAC", "svd2rust", "RTIC", "Embassy", "probe-rs", "defmt".
### Input Context
- MCU family and existing HAL crate (e.g. `stm32f4xx-hal`, `nrf-hal`, `rp2040-hal`/`embassy-rp`, `esp-hal`)
- Concurrency model wanted (superloop, RTIC, Embassy async)
- Memory budget and whether an allocator is acceptable
### Output Artifact
Rust code (`main.rs`, `Cargo.toml`, `memory.x`, `.cargo/config.toml`) or a review. No file unless requested.
### Response Format
```
Target: {thumbv7em-none-eabihf | riscv32imac-unknown-none-elf | ...}
Stack: {PAC/HAL crate versions} + {RTIC | Embassy | superloop}
Shared state: {mechanism and why it is sound}
Code: {snippet}
Build/flash: {commands}
```
## 1. The `no_std` Environment
- `#![no_std]` links only `core` (and optionally `alloc` if you provide a `#[global_allocator]`). No threads, files, or heap by default.
- `#![no_main]` + `cortex-m-rt`'s `#[entry]` provide the reset handler, vector table and `memory.x` linker layout.Details
- Skill name
bare-metal-rust- Repository
- j4flmao/agent-skills
- Path
skills/embedded-systems/bare-metal-rust/SKILL.md- License
- MIT
- Repo updated
- 17 November 2026
FAQ
What does the Bare Metal Rust skill do?
Use when the user asks about embedded Rust, no_std firmware, Cortex-M Rust, embedded-hal, PAC and svd2rust, RTIC, Embassy, probe-rs or defmt. Produces no_std firmware with safe interrupt sharing and a flash/debug toolchain. Not for general Rust application code (use lang-rust) or C firmware (use c-cpp-patterns).
How do I install the Bare Metal Rust skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add j4flmao/agent-skills --skill bare-metal-rust. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Bare Metal Rust popular?
It lives in j4flmao/agent-skills, which has 45 GitHub stars and 6 forks.
Related skills
Agent Observability
45j4flmao/agent-skills
Use when the user asks about agent observability, tracing agent reasoning, debugging an agent loop, OpenTelemetry GenAI spans for LLM calls, LLM cost tracking per agent, agent audit logs or hallucination/eval monitoring in production. Produces instrumentation config, trace schema, dashboards, alerts and cost attribution. Not for generic service tracing without LLMs (use devops-opentelemetry).
AI Agent Architectures
45j4flmao/agent-skills
Use when the user asks to build an AI agent, design an agent that calls tools and keeps memory, write an agent system prompt or pick an agent framework (Claude Agent SDK, OpenAI Agents SDK, LangGraph). Produces an architecture brief covering loop, tools, memory, guardrails and evals, routing depth to child skills. Not for workflow patterns (use ai-agentic-workflows).
AI Agent Core Loop
45j4flmao/agent-skills
Use when the user asks about the agent loop, ReAct vs plan-and-solve, re-planning, Reflexion, an agent stuck in a loop, max iterations or termination conditions. Produces a loop spec or patch with state, success predicate, caps and no-progress detection. Not for overall agent design (use ai-agent-architectures) or tool schemas (use tool-calling-principles).
Bun
45j4flmao/agent-skills
Use when the user asks about Bun, Bun.serve, bun install, bun test, bun build --compile, bun:sqlite, Bun.file or Bun Shell. Produces Bun runtime servers, tooling and tests with Node compatibility notes. Not for the Elysia framework on Bun (use elysia-architecture).
Backend Websocket Patterns
45j4flmao/agent-skills
Use when the user asks about WebSockets, live chat with socket.io and rooms, Server-Sent Events, heartbeats, reconnection, broadcasting or scaling WebSockets with Redis pub/sub. Produces real-time messaging server code. Not for audio/video calls (use backend-web-real-time).
Cloud Architecture
45j4flmao/agent-skills
Use when the user asks about cloud architecture, the Well-Architected Framework across AWS/Azure/GCP, landing zones, multi-cloud strategy, cloud governance, or reference architectures. Produces provider-neutral architecture decisions and trade-offs. Not for provider-specific setup (use aws, devops-azure or devops-gcp) or migration waves (use cloud-migration).
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.