Export 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.
7 stars
0 votes
0 copies
0 views
Added November 6, 2026
ai-agentsjavabashgit
Works with
cli
Security analysis
A100/100
Scanned November 13, 2026
$npx -y skills add virajrungta/viaduct --skill fab --agent claude-code
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Fab?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/virajrungta-fab-viaduct)
---
name: fab
description: Export 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.
argument-hint: "[project dir or .kicad_pro]"
---
# Fabrication outputs and ordering
## The kipcb engine
This plugin drives `kipcb`, Viaduct's open-source KiCad engine (MIT,
https://github.com/virajrungta/viaduct), which runs on the user's computer.
Below, `kipcb` means `"$HOME/.viaduct/engine/2.14/plugin/bin/kipcb"`; always call
it by that full path. Before the first kipcb command in a session:
1. Check it's there: `test -x "$HOME/.viaduct/engine/2.14/plugin/bin/kipcb" && echo installed`
2. If it isn't, tell the user Viaduct needs its engine: release V2.14 of the
open-source Viaduct repo, downloaded once from GitHub (about 3 MB) into
`~/.viaduct/engine/2.14`. Ask with AskUserQuestion before downloading. If they
agree, run these three commands:
```bash
mkdir -p "$HOME/.viaduct/engine/2.14"
curl -fsSL -o "$HOME/.viaduct/engine/v2.14.tar.gz" https://github.com/virajrungta/viaduct/archive/refs/tags/v2.14.tar.gz
tar -xzf "$HOME/.viaduct/engine/v2.14.tar.gz" -C "$HOME/.viaduct/engine/2.14" --strip-components=1
```
Then run `kipcb doctor` and tell the user plainly what's missing, if anything
(KiCad 9 and Java 21+; `kipcb doctor` prints the install commands). If they
decline, say that boards can't be built or checked without it, and help with
what doesn't need it.
The user's defaults (manufacturer, build method, layer count, learning) are in
`kipcb settings`: JLCPCB, assembled by the manufacturer, auto layers and learning on
until the user changes them. When the user asks for different defaults, save them,
e.g. `kipcb settings --save --fab PCBWay --build "Hand soldering" --layers 4 --learning false`.
1. Locate the project (the argument, or the single `.kicad_pro` nearby).
2. Run `kipcb drc <project>`. If there are errors or unconnected items, stop
and explain them. Offer to fix them (via `/viaduct:design` for kipcb specs, or
directly in KiCad). `kipcb fab --force` exists, but only use it if the user
explicitly accepts the risk.
3. Run `kipcb fab <project>`. The output format follows the user's manufacturer
setting (see `kipcb settings`); pass `--fab jlcpcb` or `--fab generic` to override.
4. Read `fab/<name>-bom.csv`. Flag parts without an LCSC number when the user
wants JLCPCB assembly, and never make one up: find candidates with
`kipcb lcsc -s "<part> <package>"` (live stock, basic parts first) and let the
user confirm, or suggest JLCPCB's BOM tool, hand-soldering or DNP. `kipcb fab`
also warns about BOM parts that are out of stock at JLCPCB; relay those.
5. Run `kipcb cost <project>` and relay the rough cost (5, 10 and 100 boards,
per-board price, the priciest parts, extended-part fees). Say it's an
estimate without shipping; the live quote is the real price. If one part
dominates or extended fees add up, suggest a cheaper basic part
(`kipcb lcsc -s ... --basic`) but let the user decide.
6. Mention `fab/<name>.step`, a 3D model of the assembled board for designing
an enclosure in Fusion 360, Onshape, FreeCAD or SolidWorks.
7. Show `previews/review.png` (render it with `kipcb render <project> --what review`
if it's missing) so the user sees what they're ordering. `kipcb report <project>`
prints the summary with the project location and file list.
8. Hand off with the file paths and the ordering checklist from
`${CLAUDE_PLUGIN_ROOT}/skills/design/references/manufacturing.md`: upload the
Gerber zip, confirm size/layers/thickness/finish, then upload the BOM and
CPL for assembly and check rotations in the preview.
Don't place orders, upload files to a fab, or enter payment details on the
user's behalf. Prepare the files and explain the steps; the user does the ordering.