embedded-review

embedded-review is a skill for Claude Code, Codex from captainluzik/oh-my-embedded. It costs 39 tokens per session (3,296 once invoked), scanned A, original, MIT.

A checklist for reviewing embedded firmware, software that runs directly on devices, with attention to memory safety, interrupts, real-time operating systems, and hardware interfaces.

In plain words
What is it for?
Use it to review C or C++ firmware, check interrupt-shared data, detect race conditions and undefined behavior, inspect peripheral code, and report findings as P0 through P3 with fixes.
Why use it?
It focuses code reviews on faults that can crash devices, corrupt data, behave unpredictably, or fail only under particular hardware conditions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review C or C++ firmware, check interrupt-shared data, detect race conditions and undefined behavior, inspect peripheral code, and report findings as P0 through P3 with fixes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/captainluzik/oh-my-embedded/embedded-review
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 captainluzik/oh-my-embedded --skill embedded-review
Clone the repo
git clone --depth 1 https://github.com/captainluzik/oh-my-embedded

Made for: Claude Code, 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-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/captainluzik/oh-my-embedded/embedded-review/github.svg)](https://agentmods.dev/skills/captainluzik/oh-my-embedded/embedded-review)
Your own site
<a href="https://agentmods.dev/skills/captainluzik/oh-my-embedded/embedded-review"><img src="https://agentmods.dev/badge/skills/captainluzik/oh-my-embedded/embedded-review/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-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/captainluzik/oh-my-embedded/embedded-review"><img src="https://agentmods.dev/badge/skills/captainluzik/oh-my-embedded/embedded-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,296 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00039 $0.03296
Opus 5 $0.00019 $0.01648
Sonnet 5 $0.00008 $0.00659
Haiku 4.5 $0.00004 $0.00330

Measured 8d ago against content hash 5167d87110e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

embedded-review scanned grade A with 0 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 8d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/embedded-review/SKILL.md · 390 lines

How it starts

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

You are a senior embedded firmware reviewer. Your job is to find bugs before they reach hardware. You review C and C++ firmware for correctness, safety, and reliability. You are not a style enforcer. You care about bugs that cause crashes, data corruption, undefined behavior, or silent failures in the field.

Every finding gets a severity label:

  • P0: Will crash or corrupt data. Ship-blocker.
  • P1: Will fail under specific conditions (race condition, edge case, power cycle). Must fix before release.
  • P2: Latent risk. Won't fail today but will fail eventually (memory leak, stack growth, wear).
  • P3: Best practice violation. Low risk but worth fixing.

When reviewing, work through the checklist below systematically. Report findings with: severity, location (file:line), description of the bug, and a concrete fix. Don't report style issues as bugs. Don't pad the review with praise.


Checklist: Volatile Correctness

Variables shared between an ISR and normal code MUST be declared volatile. Without it, the compiler may cache the value in a register and never re-read from memory.

Check for:

  • Any variable written in an ISR and read in a task/main loop
  • Any variable written in a task and polled in an ISR
  • Hardware register accesses via raw pointers (must be volatile uint32_t *)
  • Flag variables used for ISR-to-task signaling
// WRONG - compiler may optimize away the loop:
bool data_ready = false;
void IRAM_ATTR gpio_isr(void *arg) { data_ready = true; }
void task(void *arg) {
    while (!data_ready) {}  // may never see the update
}

// CORRECT:
volatile bool data_ready = false;
// Or better: use a FreeRTOS primitive (queue, semaphore, event group)

The better fix is almost always to replace the volatile flag with a proper RTOS primitive. Volatile prevents compiler optimization but doesn't prevent CPU reordering on multi-core systems. On dual-core ESP32, a volatile flag shared between cores needs a memory barrier or a spinlock.


Read the full file on GitHub · 390 lines

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. 8d ago First seen · 390 lines · 39 tokens per session scan A 5167d87110e5

Subscribe to this mod's changes

embedded-review is a skill published in the GitHub repository captainluzik/oh-my-embedded (24 stars, last pushed 6mo ago), licensed MIT. It adds 39 tokens to every session and 3,296 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

m5stack-cap-lora-1262

Hardware reference and firmware helper for the M5Stack Cap LoRa-1262 (SKU U214) — a snap-on cap for the Cardputer Adv (K132-Adv) and CardputerZero that carries a Semtech SX1262 sub-GHz LoRa radio (868–923 MHz, +22 dBm TX, external RP-SMA antenna) and an ATGM336H-6N GNSS receiver (GPS/QZSS/BeiDou/Galileo/GLONASS, UART…

iot-forge/m5stack-skills · 254 tokens

new-device-skill

Build or update an M5Stack hardware skill in this marketplace — a Controller (a board that runs firmware, like Core2 or AtomS3), a Unit (a peripheral you drive from a Controller, like a ToF sensor or a relay), or a Chip (an Espressif SoC capability layer, like esp32-c6). Use whenever adding a new board/unit/chip to…

iot-forge/m5stack-skills · 171 tokens

m5stack-tab5

Hardware reference and development helper for the M5Stack Tab5 (product code C145) — an ESP32-P4-based 5" touchscreen IoT/industrial terminal with an ESP32-C6 wireless co-processor, MIPI-DSI display, MIPI-CSI camera, ES8388 audio codec, BMI270 IMU, RX8130CE RTC, RS485, and a removable NP-F550 battery. Use this skill…

iot-forge/m5stack-skills · 236 tokens

m5stack-core2

Hardware reference and development helper for the M5Stack Core2 family — a 2.0" touchscreen ESP32 (classic, Xtensa LX6) Controller built around an AXP192 power management IC, ILI9342C display, FT6336U capacitive touch, BM8563 RTC, and (on original/1.1/1.3 revisions) an MPU6886 or BMI270 IMU. Covers the plain Core2…

iot-forge/m5stack-skills · 328 tokens

esp32-c6

Chip-level ESP-IDF capability reference for the ESP32-C6 SoC (single-core RISC-V HP core + RISC-V LP core, WiFi 6 + BLE 5.3 + Thread/Zigbee) — what the chip can do, distinct from any board's wiring. Use when a user wants to exploit ESP32-C6 hardware — WiFi 6/BLE/802.15.4 radio coexistence (Thread Border Router, Zigbee…

iot-forge/m5stack-skills · 307 tokens

esp32

Chip-level ESP-IDF capability reference for the classic ESP32 SoC (dual-core Xtensa LX6) — what the chip can do, distinct from board wiring. Covers the ESP32-D0WDQ6-V3 / ESP32-D0WD-V3 / ESP32-D0WDR2-V3 die family used in ESP32-WROOM-32 and ESP32-WROVER modules. Use for RMT (IR/WS2812), LEDC (PWM), I2S (audio/parallel…

iot-forge/m5stack-skills · 306 tokens