Skip to main content
skill CX Codex

REPLACE-with-skill-name — Claude Code skill: setup and use

A skill template for microcontroller firmware projects. It organizes board hardware specs, peripheral bring-up guides, and flashing workflows.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add alexex1993/mcu-skills --skill skill-template -a claude-code
Open on GitHub

What REPLACE-with-skill-name does

This skill acts as a scaffolding blueprint for embedded firmware development. It organizes hardware details into dedicated references: reference/board-hardware.md covers pinouts, clocks, and debug ports, while reference/recipes.md supplies known peripheral recipes. The agent reads exact parameters from these files instead of guessing values.

New projects start via the template/variants/new-project.sh script. The default --full flag sets up a complete workspace, while --minimal creates a bare structure to test toolchains and flash routes before writing firmware. If project files already exist, the instructions bring configuration files in line with the template rather than rewriting working code.

What it helps with

  • Scaffold a verified microcontroller firmware project
  • Document clock trees and pin mappings for the agent
  • Set up board flashing and recovery procedures
  • Supply tested peripheral recipes and bring-up rules

Example prompts for the agent

  • Run template/variants/new-project.sh firmware-app --minimal
  • Check the clock configuration against reference/board-hardware.md
  • Explain the flashing and recovery sequence for this board

How to install REPLACE-with-skill-name

1Skills CLI (Vercel)

npx skills add alexex1993/mcu-skills --skill skill-template -a claude-code

2Manually: put the files in place

~/.claude/skills/skill-template/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/skill-template/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about REPLACE-with-skill-name

How to install REPLACE-with-skill-name in Claude Code?

Run npx skills add alexex1993/mcu-skills --skill skill-template -a claude-code.

What files does this skill template include?

It includes reference/board-hardware.md, reference/recipes.md, and a template/ folder containing a working project with the new-project.sh scaffolding script.

When should you use the minimal scaffold flag?

The --minimal flag creates a lightweight build to verify the compiler toolchain and flashing route before adding application logic.

Source text

SKILL.md · MIT
---
name: REPLACE-with-skill-name
description: >-
  Firmware development for the <VENDOR> <BOARD NAME> (<MCU PART NUMBER>) — its <peripheral>,
  <peripheral>, <peripheral>, and the <SDK/HAL> + <build system> setup around them. Use when
  working on this board or any <compatible siblings>: project setup, <config file>, clock
  configuration, pin mapping, peripheral bring-up, <the board's headline concern>, flashing, or
  debugging why something on the board does not work.
---

# <Vendor> <Board> (<MCU>)

<One paragraph: what this board is, and what the reference files hold. Say explicitly that the
detail lives in the reference files and should be read rather than guessed at.>

- `reference/board-hardware.md` — <what it answers>
- `reference/recipes.md` — <what it answers>
- `template/` — a complete working project that builds and flashes, plus a scaffolding script.

## Orientation

| | |
|---|---|
| MCU | <part number, core, flash, RAM, package> |
| Clocks | <crystals populated, and the clock tree that is known to work> |
| Display | <controller, resolution, bus, pins> |
| LED / button | <pin and **polarity** for each> |
| Storage | <internal / external flash, SD, PSRAM, with addresses> |
| USB | <peripheral, pins, bootloader behaviour> |
| Debug | <SWD/JTAG/UART header and pins> |

<Delete rows that don't apply; add rows the board needs.>

## Rules that prevent the expensive mistakes

<10–15 numbered rules from your bring-up log. Each is imperative and carries its consequence.
Template for one entry:>

1. **`<the setting, in code form>`** — <why the board needs it>. Without it, <the symptom, which
   should not obviously point back at this setting>.

## When the task is <the thing this board is used for>

<The one or two areas where the naive approach is badly wrong. Give the mechanism and the
numbers, so the model can generalise past the case you wrote down. Delete if the board has
none.>

## Starting a new project

Do not hand-assemble one. `template/` is a verified-working project — scaffold from it:

```sh
~/.claude/skills/<skill-name>/template/variants/new-project.sh <target-dir> [--full|--minimal]
cd <target-dir> && <build command>
```

- `--full` (default) — <what it contains>. <flash cost>.
- `--minimal` — <what it contains>. <flash cost>. Use it to prove the toolchain and the flashing
  route before adding anything.

When the user already has a project, prefer bringing it in line with the template's
`<config file>` over rewriting their code.

## Flashing

<The full keystroke-level sequence. What enumerates as what. What the board will not do for
itself. How to recover a bricked board. The alternative route (probe/SWD) and when it's needed.>

## Reporting

State honestly what was verified on hardware versus derived from the datasheet. <Name the
specific settings here that are outside published specs and merely work on this board.>

© alexex1993 · MIT · alexex1993/mcu-skills

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set22

esp32c3-oled042 This skill guides firmware work on the ESP32-C3 0.42-inch OLED board, from display setup to I2C peripherals. Use it to troubleshoot board behavior or start a project. CX Codex +1 ★ 22repo stars esp32-wroom-38pin A skill for firmware work on 38-pin ESP32-WROOM-32 boards: header map, safe GPIOs, flash-pin and IO0 traps, working code recipes. CX Codex +1 ★ 22repo stars esp32-wroom-36pin Hardware pin mapping and firmware reference for the 36-pin ESP32-WROOM-32 dev board. Guards against bus conflicts, strapping traps, and bad builds. CX Codex +1 ★ 22repo stars esp32-wroom-30pin This skill helps configure firmware for 30-pin ESP32-WROOM-32 boards and troubleshoot pin, power, and peripheral issues. Use it when your board matches this form factor. CX Codex +1 ★ 22repo stars beu1000-evuba A skill for firmware work on BE-U1000 and the EVU-BA boards: memory map, boot modes, peripherals, and failures that look like something else. CX Codex +1 ★ 22repo stars lgt8f328p-minievb Guides firmware development for purple LGT8F328P MiniEVB boards, handling clock traps and pin discrepancies in PlatformIO. CX Codex +1 ★ 22repo stars atmega32u4-beetle Helps develop and troubleshoot firmware for the ATmega32U4 Beetle board. Use it for PlatformIO setup, USB HID projects, or upload problems. CX Codex +1 ★ 22repo stars atmega328p-nano A skill that gives your agent board-level knowledge of the Arduino Nano and ATmega328P clones: pin map, memory budget, timers, uploads. CX Codex +1 ★ 22repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor