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.
npx skills add alexex1993/mcu-skills --skill skill-template -a claude-codeWhat 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-code2Manually: put the files in place
~/.claude/skills/skill-template/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/skill-template/
1Skills CLI (Vercel)
npx skills add alexex1993/mcu-skills --skill skill-template -a codex2Manually: put the files in place
.agents/skills/skill-template/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add alexex1993/mcu-skills --skill skill-template -a cursor2Manually: put the files in place
.cursor/skills/skill-template/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install alexex1993/mcu-skills skill-template2Manually: put the files in place
.github/skills/skill-template/SKILL.md1Skills CLI (Vercel)
npx skills add alexex1993/mcu-skills --skill skill-template -a gemini-cli2Platform CLI
gemini skills install https://github.com/alexex1993/mcu-skills --path templates/skill-templateManually: put the files in place
.devin/skills/skill-template/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add alexex1993/mcu-skills --skill skill-template -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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