pcb-design
Skill2 starsChanged 5 months agoMITView on GitHub
Generate electrically-correct STM32-class PCB designs from real, orderable parts: a connectivity-correct netlist (pins mapped by function to actual chip pins), accurate footprints derived from real footprint-name geometry (never 'package not found'), a board render that looks like a fabricated 2-layer PCB (blue soldermask, gold pads, silkscreen, autorouted copper, GND pour, custom board outline), a BOM with LCSC part numbers, and matching STM32 firmware whose pin defines equal the netlist. Use when the user wants to design a circuit board, flight controller, gamepad/RC transmitter, sensor/MCU board, wire an STM32 to sensors/radios over I2C/SPI/UART, produce a PCB board image/blueprint, generate a BOM, or generate firmware for a board. Triggers: design a PCB, flight controller, gamepad, STM32 board, sensor board, wire up an IC, netlist, footprint, blueprint, board render, BOM, board firmware.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- Nexus-Organization-Infosec/ClaudeSkillstheir own version, first seen Nov 29, 2026
- YUVARAJ-R-ai/my-claude-skillstheir own version, first seen Nov 29, 2026
- makoshan/vibehw-stacktheir own version, first seen Nov 22, 2026
- kamaljavvadi16-alt/pcb-design-skilltheir own version, first seen Nov 15, 2026
- oaslananka/kicad-mcp-protheir own version, first seen Oct 13, 2026
- skycmoon/skillstheir own version, first seen Oct 6, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- oaslananka/kicad-mcp-pro★ 247same name
- makoshan/vibehw-stack★ 35same name
- YUVARAJ-R-ai/my-claude-skills★ 2same name
- Nexus-Organization-Infosec/ClaudeSkills★ 1same name
- kamaljavvadi16-alt/pcb-design-skill★ 0same name
- skycmoon/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 65
Add support parts: a decoupling cap per IC supply pin, I²C pull-ups, crystal load caps, USB CC resistors, NRST pull-up.
- Distinctive: line 67
Place components sensibly on the chosen outline (MCU central, peripherals around).
- Very specific: line 68
Run: python3 run.py path/to/design.(py|json) → netlist + BOM + footprints + board render + firmware in out/<name>/.
- Distinctive: line 70
Import the netlist into LCEDA/KiCad and finish routing.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PCB Design (v2 — real parts · routed render · firmware)
What this produces, and what it does not
From one pin-mapped design, the pipeline emits five consistent artifacts, all grounded in real orderable parts (each with a datasheet pinout, an LCSC C-number, and a real footprint-name that encodes its land pattern):
- Netlist (
.net, KiCad-importable) — nets connect the actual chip pins by function (all of an MCU's VDD/VSS, the real PB6 for I²C SCL). Not positional. - Footprints (
.kicad_mod) — pad geometry derived from the real footprint name (LQFP-48_L7.0-W7.0-P0.50-LS9.0→ 7×7 body, 0.5 pitch, 9.0 span). Never "package not found." - Board render (
_board.png) — every footprint placed, a 2-layer grid autorouter (MST + A*) routes the nets, a GND plane is poured, and it's drawn in the EDA 2D-view style: blue soldermask, gold ENIG pads, white silkscreen (outlines, pin-1, refdes, labels), vias, mounting holes, and a custom board outline (rounded-rect, quad-X flight controller, or gamepad silhouette). - BOM (
.bom.csv) — quantities + LCSC part numbers + footprints. - Firmware (
firmware/) — emits only the drivers the board has, with absp.hpin map derived from and equal to the netlist.
Honest scope. This is the electrical layer + a believable board render, not a manufacturing-ready board. The autorouter is modest (~70–90% of nets; the remainder are drawn as honest ratsnest air-wires) — no impedance control, no rip-up/retry, no DRC sign-off. Import the netlist into LCEDA/KiCad and finish routing there. The firmware is structure- and pin-consistency-verified but not compiler-built (no ARM toolchain), so it's a correct scaffold, not certified binary. Do not claim it equals a hand-routed production board.
The design format
A design is components, each a catalog part + a pin_map of {real-pin-name: net},
a pos, and a rot. The same net name on two parts connects their real pins. The
board has a w, h, and an outline (rounded, quad_x, or gamepad).
{"name": "My Board", "board": {"w": 88, "h": 88, "outline": "quad_x"},
"components": [
{"ref": "U1", "part": "mcu_stm32f103", "pos": {"x": 44, "y": 44}, "rot": 0,
"pin_map": {"VDD": "3V3", "VSS": "GND", "PB6": "SCL", "PB7": "SDA",
"PA5": "SCK", "PA6": "MISO", "PA7": "MOSI", "PA4": "NRF_CSN"}},
{"ref": "U2", "part": "sens_mpu6050", "pos": {"x": 32, "y": 51},
"pin_map": {"VDD": "3V3", "GND": "GND", "SCL": "SCL", "SDA": "SDA"}},
...
]}pcbgen.core.PARTS lists available parts (STM32F103, MPU6050, SPL06, nRF24, XC6206
LDO, USB-C, crystal, YF16 joystick, KH-6×6 tactile, slide switch, AO4466 MOSFET,
headers, 0402/0603/1206 passives, LEDs). Use only those part ids and pin names
that exist on the part — the build reports any unknown part or pin.
Workflow
- Pick parts from
pcbgen.core.PARTS; assign the MCU's peripherals to valid pins (I²C on I²C pins, SPI on SPI pins, ADC for joysticks, etc.). - Give every supply rail one consistent name, sourced and consumed (the build flags dangling/unsourced rails).
- Add support parts: a decoupling cap per IC supply pin, I²C pull-ups, crystal load caps, USB CC resistors, NRST pull-up.
- Place components sensibly on the chosen outline (MCU central, peripherals around).
- Run:
python3 run.py path/to/design.(py|json)→ netlist + BOM + footprints + board render + firmware inout/<name>/. - Import the netlist into LCEDA/KiCad and finish routing. Flash the firmware.
See examples/fc_quad.py (quadcopter FC) and examples/gamepad.py (RC transmitter)
for two reference-grade, fully pin-mapped designs built only from real BOM parts.
Verification (always)
build() reports unknown parts/pins; connectivity_issues() flags
dangling/unsourced rails — both must be empty. The firmware generator asserts every
pin used in firmware is defined in bsp.h and equals the netlist. sim.py
batch-grades many designs (netlist + footprints + render + firmware verdict). All
must pass before you trust an output.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

