stm32-build-flasher

stm32-build-flasher is an agent for Claude Code from bahaabdelwahed/embedded-claude-plugin. It costs 339 tokens per session (4,528 once invoked), scanned D, original, MIT.

An agent that checks whether an STM32 project is ready to compile and flash onto a microcontroller board.

In plain words
What is it for?
Use it to inspect C, header, assembly, linker, CubeMX, Makefile, and CMake files; check the ARM toolchain and OpenOCD; and create a Makefile when the project has the required pieces.
Why use it?
It finds missing project files and unavailable build tools before you attempt a build, and avoids creating hardware-specific files that should come from STM32CubeIDE or STM32CubeMX.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/user/STM32CubeIDE/workspace/....

Good fit Use it to inspect C, header, assembly, linker, CubeMX, Makefile, and CMake files; check the ARM toolchain and OpenOCD; and create a Makefile when the project has the required pieces.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

Made for: Claude Code.

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 stm32-build-flasher

README.md
[![agentmods](https://agentmods.dev/badge/agents/bahaabdelwahed/embedded-claude-plugin/stm32-build-flasher/github.svg)](https://agentmods.dev/agents/bahaabdelwahed/embedded-claude-plugin/stm32-build-flasher)
Your own site
<a href="https://agentmods.dev/agents/bahaabdelwahed/embedded-claude-plugin/stm32-build-flasher"><img src="https://agentmods.dev/badge/agents/bahaabdelwahed/embedded-claude-plugin/stm32-build-flasher/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 stm32-build-flasher

Your own site · 80×15
<a href="https://agentmods.dev/agents/bahaabdelwahed/embedded-claude-plugin/stm32-build-flasher"><img src="https://agentmods.dev/badge/agents/bahaabdelwahed/embedded-claude-plugin/stm32-build-flasher.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 339 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,528 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 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.00339 $0.04528
Opus 5 $0.00169 $0.02264
Sonnet 5 $0.00068 $0.00906
Haiku 4.5 $0.00034 $0.00453

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

Security

Grade D, and why

stm32-build-flasher scanned grade D 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 9d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

Ubuntu/Debian: sudo apt install gcc-arm-none-eabi binutils-arm-none-eabi

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf $(BUILD_DIR)
agents/stm32-build-flasher.md · 492 lines

How it starts

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

You are an expert STM32 build system engineer. Your role is to verify a project is complete and ready to compile and flash, check that required tools are installed, and generate a Makefile that builds and flashes the board.

CRITICAL RULE

You NEVER generate missing project files (startup files, linker scripts, CMSIS headers, HAL/LL drivers, system files). If any are missing, you tell the user exactly which files are missing, explain what they are, and instruct them to generate the project using STM32CubeIDE or STM32CubeMX. Then you stop.


Step 1: Scan the Project Structure

Glob the project directory recursively for all source files, headers, and build artifacts:

**/*.c       -> C source files
**/*.h       -> Header files
**/*.s       -> Assembly startup files
**/*.ld      -> Linker scripts
**/*.ioc     -> CubeMX project file (tells us MCU and config)
Makefile     -> Existing Makefile
CMakeLists.txt

Identify the project root (directory containing main.c or Core/Src/main.c).

1.1 Existing Makefile Check

If a Makefile is found, read it and determine whether it was generated by STM32CubeIDE. CubeIDE-generated Makefiles contain these signatures:

  • Comment headers like # Automatically generated makefile, # !!!! Do not edit this Makefile !!!!, or STM32CubeIDE
  • Absolute paths tied to the CubeIDE workspace (e.g. /home/user/STM32CubeIDE/workspace/... or C:/Users/.../STM32CubeIDE/...)
  • Variables referencing CubeIDE internal tools: CROSS_COMPILE, references to CubeIDE's bundled arm-none-eabi inside its installation folder
  • Build output in Debug/ or Release/ subdirectories (CubeIDE convention)

If the Makefile is detected as CubeIDE-generated, inform the user and proceed to generate a new portable Makefile:

## Existing Makefile Detected: CubeIDE-Generated

Found a Makefile in the project but it was generated by STM32CubeIDE.
This Makefile:
  - Contains absolute paths tied to your CubeIDE workspace
  - May reference CubeIDE's bundled ARM toolchain inside its installation directory
  - Will NOT work outside of CubeIDE's environment

A new portable Makefile will be generated that works independently of CubeIDE.
The original CubeIDE Makefile will NOT be deleted — it will be backed up as Makefile.cubide.bak

Read the full file on GitHub · 492 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. 9d ago First seen · 492 lines · 339 tokens per session scan D a12626c11a40

Subscribe to this mod's changes

stm32-build-flasher is an agent published in the GitHub repository bahaabdelwahed/embedded-claude-plugin (5 stars, last pushed 5mo ago), licensed MIT. It adds 339 tokens to every session and 4,528 once invoked, about $0.0017 per session on Opus 5. A static security scan graded it D with 2 findings (asks for root, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

fabricator

3D printing and additive manufacturing specialist covering FDM, SLA, and SLS processes from model preparation through troubleshooting.

pjt222/agent-almanac · 25 tokens

antenna-engineer

Reasons from gain–directivity–efficiency, Chu–Harrington bandwidth limits, and array factor through HFSS/CST/FEKO synthesis, IEEE 149-2021 NF/FF/CATR metrology, CTIA TRP/TIS/ECC OTA, and Friis link budgets while treating ground-plane truncation, active impedance in arrays, range ripple, and S₁₁≠pattern conflation as…

K-Dense-AI/scientific-agents · 97 tokens

cocotb-reviewer

RAT audit protocol (condensed; dev source: plugindocs/agent-lib/audit-output-protocol.md — plugin-internal, do NOT Read it at runtime).

babyworm/rtl-agent-team · 51 tokens

persona-high

Simulated senior IC designer with full datasheet / PDK / corner fluency. Specifies CRC polynomials, bit-period cycles, opcode hex, GF180MCU 5V corners. Pushes back hard when the AI hand-waves and demands datasheet-section traceability. Drives the IC Expert Agent (plain-language register) during Phase-1 training to…

vibeic/vibe-ic · 111 tokens

rtl-planner

RTL project planner. Produces 6-phase design plans (Research → Architecture → μArch → RTL → Verify → Design Note) with dependency graphs, parallel execution opportunities, and risk path identification.

babyworm/rtl-agent-team · 43 tokens

chip-esl-writer

A code-writing agent that turns an ESL architecture plan into SystemC/TLM model code. SystemC is a C++ framework for simulating hardware, while TLM models communication as transactions instead of individual signal changes.

zhaixin244-wq/fnw · 162 tokens