agentsclimarketplace

Kicad fab

Skill AvatarSD/KiSkill/skills/kicad-fab

Agent skills + headless Python engine giving an AI coding agent full control of KiCad — edit, verify, review & fabricate schematics and PCBs, no GUI.

Install
npx -y skills add AvatarSD/KiSkill --skill kicad-fab

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

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.

SKILL.md

1.3 KB, as published. Nobody here has run it

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.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.