AvatarSD/KiSkill / skills/kicad-fab
kicad-fab
VerifiedProduce 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.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 1.3 KB |
SKILL.md
View on GitHub---
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.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |