safe-flashing

safe-flashing is a skill for Claude Code from seayniclabs/bench. It costs 67 tokens per session (1,125 once invoked), scanned A, original, MIT.

A cautious procedure for copying firmware—the software that runs on a device—onto a USB maker board. It checks the board, chip, firmware file, and programming tool before allowing the write.

In plain words
What is it for?
Use it to prepare and flash firmware for boards such as ESP32, STM32, Arduino, and Raspberry Pi Pico, and to investigate failed flashes.
Why use it?
Writing the wrong file to the wrong board can stop the board from booting, so the procedure reduces that risk before anything is overwritten.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the bench plugin — 5 skills, 1 MCP server shipped together

Good fit Use it to prepare and flash firmware for boards such as ESP32, STM32, Arduino, and Raspberry Pi Pico, and to investigate failed flashes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/seayniclabs/bench/safe-flashing
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 seayniclabs/bench --skill safe-flashing
Clone the repo
git clone --depth 1 https://github.com/seayniclabs/bench

Made for: Claude Code.

Or install bench, the plugin that ships this one along with the rest of its 5 skills, 1 MCP server.

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 safe-flashing

README.md
[![agentmods](https://agentmods.dev/badge/skills/seayniclabs/bench/safe-flashing/github.svg)](https://agentmods.dev/skills/seayniclabs/bench/safe-flashing)
Your own site
<a href="https://agentmods.dev/skills/seayniclabs/bench/safe-flashing"><img src="https://agentmods.dev/badge/skills/seayniclabs/bench/safe-flashing/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 safe-flashing

Your own site · 80×15
<a href="https://agentmods.dev/skills/seayniclabs/bench/safe-flashing"><img src="https://agentmods.dev/badge/skills/seayniclabs/bench/safe-flashing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,125 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.00067 $0.01125
Opus 5.5 $0.00027 $0.00450
Sonnet 5.5 $0.00013 $0.00225
Haiku 4.5 $0.00007 $0.00112

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

Security

Grade A, and why

safe-flashing 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 1mo 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/safe-flashing/SKILL.md · 78 lines

How it starts

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

Safe flashing

Flashing overwrites the board's firmware. A wrong target or a wrong file can leave the board unbootable until someone reflashes it by hand. The steps below check the target, the file and the tool first, and each write needs the person's approval.

1. Identify the target

  1. list_usb_devices, then identify_device with the board's serial number or location ID. Use that identifier for every later call. Do not use a name when two boards share one.
  2. chip_detect (ESP32 and similar) to confirm the exact chip. It resets the chip into its bootloader, so the person approves it first.
  3. Record the chip, the port path from list_serial_ports, and the board family.

If two or more boards of the same family are attached, stop. Ask the person which board is the target, and get its serial number.

2. Check the firmware file

Call nothing that writes yet. Check the file yourself:

Target Expected file Tool Bench picks
ESP32, ESP32-S2, S3, C3 .bin esptool
STM32 in DFU mode .bin dfu-util
Arduino Uno, Nano, Mega (AVR) .hex avrdude
Raspberry Pi Pico (RP2040) .uf2 uf2 (copies to the RPI-RP2 drive)

Confirm the file exists, is not empty, and was built for this chip. Ask the person where it came from if the build output is unclear. A .elf cannot be flashed directly to most of these targets. Use the .bin or .hex the build produced next to it.

3. Close other sessions on the port

Call serial_close on the target's port if you opened it. A session open in Bench can block the flasher from using the port.

4. Read the approval, then flash

Call flash_firmware with:

  • identifier: the serial number or location ID from step 1
  • firmware_path: the absolute path to the file from step 2
  • tool: only when auto-detection picked the wrong one. Use esptool, dfu-util, avrdude or uf2.
  • port: only to override the detected port. It must be a /dev/cu.* path.
  • confirm: true

The approval prompt shows these arguments. Read them against steps 1 and 2 before the person approves. If anything differs (another identifier, another file, a file from another project), do not approve it: tell the person what differs.

Read the full file on GitHub · 78 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. 1mo ago First seen · 78 lines · 67 tokens per session scan A 3ae6ff36e792

Subscribe to this mod's changes

safe-flashing is a skill published in the GitHub repository seayniclabs/bench (0 stars, last pushed 1mo ago), licensed MIT. It adds 67 tokens to every session and 1,125 once invoked, about $0.0003 per session on Opus 5.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-10-29.

Related

safe-flashing compared with skills from other repositories

safe-flashing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
safe-flashingseayniclabs/benchSkill01mo agoMITA67Claude Code
qmclaw-workbenchxi-zhao/OpenQuantumSkill756d agoMITA124Codex
fieldqkit-hardwarexi-zhao/OpenQuantumSkill756d agoMITA94Codex
laboneq-controlxi-zhao/OpenQuantumSkill756d agoMITA50Claude Code, Codex
qblox-schedulingxi-zhao/OpenQuantumSkill756d agoMITA57Claude Code, Codex
qctrl-workbenchxi-zhao/OpenQuantumSkill756d agoMITA54Claude Code, Codex
qua-programsxi-zhao/OpenQuantumSkill756d agoMITA47Claude Code, Codex