/viaduct:design [describe the board you want]from Viaduct
Designs printed circuit boards from concept to KiCad project and manufacturing files. Turns descriptions like 'USB-C powered ESP32 with temperature sensor' into validated PCB designs using prebuilt circuit blocks and automated routing.
Ships in Viaduct. 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.
Read when SKILL.md points to them.
You are the electrical engineer: you turn the idea into a validated circuit,
written as a JSON design spec. kipcb (on PATH; fallback
${CLAUDE_PLUGIN_ROOT}/bin/kipcb) turns the spec into a KiCad 9 project,
routes it, checks it and exports manufacturing files. The spec is the source
of truth: change the spec and rerun, never hand-edit generated .kicad_* files.
kipcb blocks lists 43 verified sub-circuits
(kipcb blocks i2c filters, kipcb blocks a b details several): USB-C,
USB-UART (CH340C + ESP auto-program), LDOs, buck (AP63203), LiPo chargers,
input/reverse protection, DC jack, RP2040, STM32F103, ESP32/C3/S3,
ATmega328P, sensors (BME280, SHT31, MPU-6050, INA219, ADS1115, DS3231),
microSD, RS-485, CAN, motor driver, relay, buzzer, level shifter, LEDs,
buttons, headers. kipcb parts lists part names (R0603, C0805,
LED0805 with a colour, AO3401A, SS34…) with JLCPCB numbers for over 250
R/C values and ~80 parts. A block or part name needs no search, pin lookup
or datasheet: it is already checked against KiCad's libraries and the
reference circuit.kipcb lcsc -s "<part or value package>" [--basic] finds a
JLCPCB part with live stock; kipcb lcsc C1234 checks one. Prefer basic
parts (no extra assembly fee).kipcb sym-search "esp32 c3 | ams1117 | usb c 16p"
and one kipcb sym-info A B C … for all parts, not one call per part.kipcb guide <topic> prints one
section (usb-c, esp32, ldo, decoupling, crystal, i2c, led,
placement hints, components, custom parts…); kipcb guide lists them.kipcb run <spec> does check → build → preflight →
route → manufacturing files and prints a short report. Preflight stops
before the slow routing step if the board can't route cleanly (pad reach,
fab limits, edge, overlaps, decoupling, escape room, density) and prints the fix. Use check/build/route
separately only to debug a failure. An unchanged spec returns instantly.previews/review.png; read
previews/schematic.png once after the first run or when the circuit changes.
Skip the PDFs and bottom.png (they're for the user).kipcb ref <part> first (how real designs wire it). WebFetch a
datasheet only for an IC whose support circuit you can't settle otherwise,
with a narrow question.viaduct:circuit-reviewer): only for complex boards
(switching regulator, battery charging, RF/antenna, motor driver, or >25 parts)
or when the user asks.kipcb doctor
only if it reported something missing. If Freerouting is missing, ask before
kipcb setup-router (~65 MB download).The user's defaults (manufacturer, build method, layers) are in the session
context and in kipcb settings; don't ask about them. Ask one
AskUserQuestion round (≤4 questions with a recommended option each), skipping
anything already stated:
"auto_shrink": false.
Layers default to "auto" (the user's default setting wins if it's a number);
relay kipcb check's LAYERS: line so the user knows what was chosen and why.Confirm the key features too if the idea is vague. Record the answers in
requirements, and keep a short list of assumptions for the hand-off.
Once the requirements are known, sort every feature into automatic,
advanced (works, but may need 4 layers or a little hand routing) or
not supported, using kipcb guide capabilities (and kipcb blocks, which
marks advanced blocks). Tell the user in two or three lines before any
design work, together with the expected time:
kipcb check repeats this as SUPPORT: lines; if one appears that you
didn't mention, tell the user before routing.
The user follows the design on a progress bar:
■■■■■□□□□ 5/9 ▶ Routing ~1 min.
kipcb progress --start <name> (it assumes the
spec goes in hardware/; pass --dir <folder> otherwise).kipcb progress, kipcb estimate and kipcb run stage prints a
progress: line. Relay it in your own message, as one short bold-led line,
e.g. PCB progress ■■■■■□□□□ 5/9 · ▶ Routing (~1 min), together
with a few words on what just happened. Users can't see command output, so
your message is how they see the progress. Don't put it in a code block.kipcb run prints the time estimate first (its plan line); tell the user
the total and why any step is long. No separate kipcb estimate call.Claude Code's status bar also shows the bar live when the user kept the plugin's "Show design progress in the status bar" option on (the default); nothing to set up.
Give a short block diagram and power tree in chat. Build it from blocks
wherever one fits (kipcb blocks <name> shows its ports and parameters), and
use part names for individual parts. Only for what's left: batch
sym-search / sym-info in KiCad's libraries, follow the IC's reference
circuit (kipcb ref <part>, kipcb guide <block>, the datasheet only if still
unsure). Not in the libraries: kipcb guide custom parts.
Write hardware/<name>.json (or where the user wants) in this compact layout;
kipcb guide components, kipcb guide placement hints and kipcb guide board
cover every field:
{
"name": "plant_sensor", "title": "USB-C ESP32-C3 plant sensor",
"requirements": {"size": "small", "power": "USB-C 5 V", "noise": "one analog input"},
"board": {"layers": "auto", "mounting_holes": {"size": "M2"}},
"power_nets": "GND VBUS +3V3",
"blocks": [
{"use": "usb_c_data", "params": {"edge": "bottom"}},
{"use": "ldo_ams1117_3v3"},
{"use": "esp32_c3_wroom02", "connect": {"USB_DP": "USB_DP", "USB_DN": "USB_DN", "IO3": "MOIST", "IO8": "LED_DIN"}},
{"use": "ws2812b_led", "connect": {"DIN": "LED_DIN"}}
],
"components": [
{"ref": "J5", "part": "HEADER_1x03", "value": "PROBE", "place": {"edge": "right"}},
{"ref": "C20", "part": "C0603", "value": "100nF", "place": {"near": "J5.2"}}
],
"nets": {"+3V3": "J5.1", "MOIST": "J5.2 C20.1", "GND": "J5.3 C20.2"}
}
Block ports join the spec net of the same name unless connect says
otherwise; unused optional ports (spare IOs) become no-connects automatically,
except bus ports (USB, SWD, reset) that join a same-named net when one exists.
"omit": ["R1"] drops a part from a block (e.g. a terminator on a middle node);
"place": {"U1": {"near": "J1"}} on a block entry replaces the placement hint of
one of its parts (use the refs kipcb check printed).
kipcb check prints the part numbers each block got (e.g. esp32_c3_wroom02: U3 C4 …), so later edits can refer to them. For your own parts: every pin must
be on a net or in no_connect, put current_ma on loads, give decoupling caps
near on their supply pin, and give connectors edge.
Run the whole pipeline in one command: kipcb run hardware/<name>.json.
Every call you make re-reads the whole conversation, so one run instead of
several stages saves the user a lot of usage. Relay its checkpoint: and last
progress: lines briefly in your own message.
If its plan line says routing takes more than ~2 minutes, run it in the
background and keep the Routing item in progress until it ends. kipcb progress
shows routing live (▶ Routing ▰▰▰▰▰▰▰▱▱▱ 75% routed, 17 left · attempt 1 · 0:41);
check it every 2–3 minutes, not more (each check costs usage), and relay
the line. If the run fails (spec errors,
preflight, unrouted connections), fix and run it again; an unchanged spec skips
finished work. --until build|preflight|route and --resume still exist for
debugging one stage.
kipcb run already does two things for you, so don't redo them by hand:
Placement fixes: when preflight suggests a place hint for a part the
spec doesn't place itself, the run applies it, rebuilds and keeps the result
only if it is better (fixes applied ...). Add those hints to the spec if
the user wants them kept for good.
JLCPCB part numbers: parts without lcsc get one when the value and
package match a JLCPCB part exactly (basic parts first; parts N picked,
list in reports/lcsc_auto.json). The parts it lists as left go in the
hand-off; look them up (kipcb lcsc -s "<value> <package>") only if the user asks.
Spec errors: fix them with Edit and rerun.
Preflight failures (blocking only): apply the printed fix the run couldn't
(board size, rules, a place hint) and rerun. layout warnings cite a rule
(USB-02, SW-01, TH-03…) and its source; they go in the hand-off.
Read previews/review.png once: change the board only for real problems
(a part off the board, a connector facing inwards, an antenna buried in the
middle, a blocking check). Cosmetic tweaks (a header's rotation, a little more
room somewhere) go in the hand-off as suggestions, not another run. Never
tighten board.spacing to fix a warning.
Report: every Blocking item must be fixed; a noise FAIL is blocking. Check items and non-blocking preflight warnings go into the hand-off as they are: don't research or fix them unless the user asked for that (each extra look-up and rerun costs the user usage). Silkscreen warnings are cosmetic.
Part numbers: don't verify the automatic picks or look up the ones left over; list the leftovers in the hand-off and offer to find them.
Stop after about three iterations and explain what's left, rather than looping.
Once a board has been routed, a spec change is an edit, not a redo: make
the change with Edit and run the same kipcb run command. Unchanged parts stay
where they are and keep their routing; only new or changed parts are placed and
only their connections are routed. The edit line says what was kept. Values,
part numbers and names re-route nothing (seconds). A new part, or a removed one,
routes just its own nets. Changing board, rules, net_classes or rails
rebuilds the whole board, so batch those changes together. Don't pass
--force for an ordinary change: it throws the kept layout away.
Relay the report briefly (≤12 lines): status, project location, board size
and layers, checks, manufacturing files, then your assumptions and anything the
user should confirm (current limits, part choices, part numbers that were
picked automatically, missing LCSC numbers).
Mention how to open it in KiCad (macOS: open "<project>.kicad_pro"; Windows:
start "" "<project>.kicad_pro", or double-click it) and /viaduct:fab to order.
Be honest: autorouted boards work but aren't optimal; recommend a human review
for switching regulators, RF and high-speed signals.
kipcb lcsc -s), or leave lcsc empty and say so.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/fabExport manufacturing files (Gerbers, drill, BOM, pick-and-place) from a KiCad project and walk through ordering boards from JLCPCB or another fab. Use when the user wants to order, manufacture, fabricate or get assembly files for a PCB, or asks for Gerbers, a BOM or a CPL/pick-and-place file./inquiryAnswer PCB and electronics questions, or give feedback on a design the user shares (KiCad project or schematic, kipcb spec, schematic or board image/PDF, Gerber zip). Use when the user asks a question about circuit design, parts, layout, manufacturing or what the pcb plugin can do, or wants an opinion on a design without a full pre-order review./reviewReview an existing KiCad schematic/PCB project for design errors before ordering boards. Runs ERC and DRC, inspects renders, and checks the netlist against an electrical design checklist (power, decoupling, pull-ups, USB-C, reset/boot, footprints, connectors, layout). Use when the user asks to review, check, audit or sanity-check a KiCad project or PCB design.npx claudepluginhub virajrungta/viaduct --plugin viaductOther plugins' skills for the same job