/copper:kicad-designfrom Copper for KiCad
Designs KiCad boards end-to-end using Copper MCP tools: from requirements and part selection (LCSC/JLC Basic) through schematic, ERC/DRC verification, PCB layout, and fab output.
Ships in Copper for KiCad. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Copper gives you KiCad as tools. KiCad itself (kicad-cli) checks every change, so trust the ERC/DRC counts in each result, never your own assumptions. The loop is always:
plan → whole schematic in one sch_apply batch → fix what its ERC reports → board_build → fix what its report lists → fab pack
Every call re-reads the whole conversation, so fewer, larger calls are cheaper. Results already carry KiCad's ERC/DRC
counts, a fix per finding and next: do not call verify or render after each step.
copper_status — KiCad version, active project, tool health. If there is no
project, project_create(name=...) (the fab profile's rules and a 1.6 mm
stackup preloaded; fab="<profile>" picks another fab) or project_open(path=...). copper_status shows the
active parts providers and fab profile under config.
Write a short spec before touching the schematic:
The default provider is lcsc (LCSC parts for JLCPCB assembly, JLC Basic preferred), described below. When
copper_status shows other providers (local catalogue, kicad generic parts, third-party), the same calls work:
results name their provider, and the part-number field is the provider's own instead of LCSC.
parts_search(query="10k 0402", basic_only=true) → pick the Basic part with stock. Basic parts have no
JLC setup fee; each Extended part adds ~$3 per unique part to assembly.parts_import(lcsc="C…") brings symbol,
footprint and 3D model for anything else into the project's copper-lcsc library and stamps the LCSC field.LCSC field — fab_export (profile jlcpcb) refuses
unsourced BOM lines. Parts also carry MPN + Manufacturer whenever known, whatever the provider.sch_apply with big batchesOne call per functional block (10–60 ops). Place, then connect pins by name to net names. Never compute
wire coordinates — Copper anchors a label (or power symbol for GND/+3V3/VBUS…) to each pin. On a sheet only Copper
has arranged, its layout then draws the nets inside each block as wires and keeps a name where a net leaves its block.
wire (pin to pin; it routes around other nets or refuses) draws one specific wire, as for the CC lines below; on a
sheet you arrange yourself (layout='keep', or hand-drawn) use it instead of a pair of labels between neighbours.
label names a wired net that matters.
{"ops": [
{"op": "place", "lcsc": "C165948", "ref": "J1", "group": "connector"},
{"op": "place", "spec": "5.1k 0402", "ref": "R1", "near": "J1"},
{"op": "place", "spec": "5.1k 0402", "ref": "R2", "near": "J1"},
{"op": "connect", "pin": "J1.VBUS", "net": "VBUS"},
{"op": "wire", "from": "J1.CC1", "to": "R1.1"}, {"op": "label", "net": "CC1", "pin": "R1.1"},
{"op": "wire", "from": "J1.CC2", "to": "R2.1"}, {"op": "label", "net": "CC2", "pin": "R2.1"},
{"op": "connect", "pins": ["R1.2", "R2.2", "J1.GND", "J1.SH"], "net": "GND"},
{"op": "no_connect", "pins": ["J1.SBU1", "J1.SBU2"]}
]}
ids and use them in pins ("pin": "led.A"); the result maps each id to its final ref.
A pin name that matches several pins (J1.VBUS, U1.GND) connects all of them.sch_read shows what is already on the sheet (refs, pins, nets) before you edit an existing design.no_connect; every power input pin must be driven (a PWR_FLAG on rails that only
come from a connector, otherwise ERC reports "power input not driven").dry_run=true validates a batch without writing.Every sch_apply result has verify.erc: counts plus findings, each with a fix hint naming the call that resolves it
(a separate verify call is only needed after edits made outside Copper). Fix all
errors before moving on. Treat these warnings as errors: two outputs on one net, labels that merge different
nets, pins of a power IC left unconnected.
render(target="schematic") once the schematic is complete (pictures are only attached on request) — check
readability: signal flow left→right, power at top, GND at bottom, no overlapping text. sch_tidy re-lays out a messy sheet. Humans will review this schematic; make it legible.
design_review(checks=["schematic_style"]) checks the drawing rules below; copper_help(tool="design_review")
lists them with their ids. Use judgement: break a rule when it plainly makes the sheet worse, and say why in a note.
connect draws a power symbol; a custom name such as +3V3_MCU needs the power op.text op): each rail's min / typ / max voltage and current, what each test point should read, anything
intentional but odd (floating pins, shorted inputs), and per sheet one standard-parts note with the values you
really used ("Unless noted: resistors 1% 0.063W 0402; …"). Add notes last: a sheet with notes is no longer
re-laid automatically, and sch_tidy then needs force=true.board_build(width=30, height=40, radius=1, holes="M3") runs steps 1 to 6 below in ONE call and returns one report with
a small picture of the board: use it first (call it again when it returns pending), then use the single steps only to
fix what the report lists.
pcb_sync — footprints + nets from the schematic (keeps existing placement).pcb_setup(width=30, height=40, radius=1, holes="M3", rules="fab") — outline, mounting holes, the fab profile's design rules.pcb_place(auto=true) — connectors on edges first, then the main IC, then decoupling caps at their pins (≤ 2 mm),
crystal ≤ 5 mm from the MCU, regulators near the input. render(target="pcb") and adjust.pcb_route — hand-route critical nets first if needed (mode="tracks": USB D+/D-, crystal, switching-regulator
loop), then pcb_route() autoroutes the rest with Freerouting and re-runs DRC.pcb_pour — GND on both layers of a 2-layer board, stitching vias near IC ground pins and along edges.verify(what=["erc","drc"]) — zero unconnected items and zero clearance errors. render(target="pcb3d") for a final look.Hand off to the fab-release skill: fab_export → gerbers, drill, BOM and placement file in the fab profile's format.
| Topic | Default |
|---|---|
| Decoupling | 100 nF X7R per supply pin, at the pin; + 10 µF bulk per rail; analog supply (VDDA) via ferrite bead + 1 µF + 10 nF |
| USB-C sink (device, 5 V only) | separate 5.1 kΩ from CC1 and from CC2 to GND (one shared resistor breaks e-marked cables); VBUS TVS; D+/D- ESD array (e.g. USBLC6-2SC6) at the connector; 22–27 Ω series on D+/D- only if the PHY datasheet asks |
| LDO | input 1–10 µF, output per datasheet: AMS1117 needs ≥ 22 µF (ESR-sensitive, 1.1 V dropout — not for Li-ion→3.3 V); ME6211/XC6206/XC6220 are stable with 1 µF ceramic and have ~0.1–0.25 V dropout |
| Crystal | load caps C = 2·(CL − Cstray), Cstray ≈ 3 pF → CL 12 pF ⇒ 18 pF, CL 20 pF ⇒ 33 pF (use 22 pF nearest Basic); guard with GND, no traces under it |
| Reset / enable | 10 kΩ pull-up + 100 nF–1 µF to GND (ESP32 EN: 10 k + 1 µF) |
| I²C | 4.7 kΩ pull-ups at 100 kHz, 2.2 kΩ at 400 kHz, one set per bus |
| LEDs | 1 kΩ from 3.3 V gives ~1 mA (plenty for modern LEDs); 330 Ω for ~4 mA |
| ESD | every connector pin that leaves the box: TVS/ESD diode at the connector, before series parts |
| Boot / strap pins | read the MCU's strapping table; add BOOT button to GND and RESET button, both with pull-ups |
fab_export(profile='list') has each fab's)Direct edits to .kicad_sch / .kicad_pcb text are allowed for anything the tools don't cover. Close the file
in KiCad first (or re-open it afterwards with File → Revert), keep S-expressions balanced, then call verify.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/design-reviewExpert engineering review of a KiCad schematic and PCB with Copper before ordering — power tree, decoupling, USB-C, ESD, crystals, resets/straps, pull-ups, thermal, DFM against the fab profile's rules (JLCPCB by default). Use when the user asks to "review", "check", "sanity check" or "is this ready to order" for a board, or after finishing a design and before fab output./fab-releaseProduce a manufacturing package (Gerbers, Excellon drill, BOM and placement file) for a PCB fab from a KiCad project with Copper, after verification gates pass. Works with any fab through fab profiles — JLCPCB by default, PCBWay, OSH Park, a generic Gerber X2 pack, or a user-defined profile. Use when the user asks to "order", "export gerbers", "make fab files", "release", "send to the fab" or wants a cost estimate for PCB/PCBA./npx claudepluginhub claynicholson/copper-kicad-mcp --plugin copperOther plugins' skills for the same job