Skip to content
Back to skills

Kicad Fab

ASecurity

Produce fabrication outputs for a KiCad project: grouped engineering BOM, JLCPCB-format BOM and CPL placement file, gerbers and excellon drill. Use when asked to export a BOM, prepare files for JLCPCB/PCBWay, generate gerbers, or package a board for manufacturing.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 18, 2026
ai-agentspython

Works with

  • cli

Security analysis

A100/100

Scanned October 18, 2026

npx -y skills add AvatarSD/KiSkill --skill kicad-fab --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Kicad Fab?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Kicad Fab
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/avatarsd-kicad-fab/badge)](https://www.skillsdirectory.com/skills/avatarsd-kicad-fab)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: kicad-fab
description: >
  Produce fabrication outputs for a KiCad project: grouped engineering
  BOM, JLCPCB-format BOM and CPL placement file, gerbers and excellon
  drill. Use when asked to export a BOM, prepare files for JLCPCB/PCBWay,
  generate gerbers, or package a board for manufacturing.
---

# Fabrication outputs

Engine: `$(kx root)/kicad_lib/fab.py`. One call:

    python3 -m kicad_lib.cli fab SCH PCB OUTDIR     # either may be "-"

Produces: `bom.csv` (grouped by Value+Footprint, Qty column),
`bom_jlc.csv` (Comment/Designator/Footprint/LCSC Part #, DNP excluded),
`gerbers/` (+ excellon .drl), `cpl.csv` (mm, both sides).

## Notes

- JLC assembly needs an **LCSC field on each symbol** — full snippet
  (PYTHONPATH=<repo>): `doc = sexp.load_file(SCH);
  ops.set_prop(doc, "R1", "LCSC", "C25804");
  sexp.save_file(SCH, doc)` — save_file takes PATH FIRST.
  (`kx fetch` tells you the id.)
- Group key is Value+Footprint: identical parts collapse to one row with
  ranges (R1,R2 / Qty 2). DNP parts are excluded from the JLC BOM only.
- Power symbols/flags never reach the BOM (KiCad excludes # refs).
- Gerber sanity: count layers (≥ F.Cu/B.Cu/Edge.Cuts + masks/silk) and
  open one in the render if the board matters.
- Variants (KiCad 10): pass `--variant` via fab.py extension if a
  project uses them — not wired into kx yet.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.