Przejdź do treści
Biblioteka skilli
Inne · Konwersja i formaty

kicad-fab-export

/kicad-fab-export

Generuje paczkę produkcyjną z płytki KiCad 8/9/10: Gerbery i wiercenia, BOM i CPL w formacie JLCPCB lub PCBWay, opcjonalnie STEP, oraz prowadzi przez ustawienia zamówienia.

Repozytorium
kicad-thai ↗
Licencja
MIT
Ostatnia zmiana repozytorium
22.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
3
Skrypty
1
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 22.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/export_fab.py

Co robi i kiedy

Generuje paczkę produkcyjną z płytki KiCad 8/9/10: Gerbery i wiercenia, BOM i CPL w formacie JLCPCB lub PCBWay, opcjonalnie STEP, oraz prowadzi przez ustawienia zamówienia.

Oryginalny opis (EN)

Generate a fab-ready manufacturing package from a KiCad 8/9/10 board in one command — Gerber + Excellon drill zip, BOM and pick-and-place (CPL/centroid) in JLCPCB or PCBWay format, optional STEP — and walk through the order settings. Use when the user wants to order or manufacture a PCB or PCBA, export Gerbers, make a BOM or CPL, or says ส่งโรงงาน, สั่งผลิต PCB, สั่งทำแผ่นปริ้น, ทำไฟล์ Gerber, ไฟล์ส่ง JLCPCB, ยิง SMT, ประกอบบอร์ด, ทำ BOM, ไฟล์ตำแหน่งชิ้นส่วน, even if they don't name kicad-cli.

Jak działa

  1. One command
  2. BOM fields: set them in the schematic
  3. CPL rotations (the classic JLCPCB problem)
  4. Ordering
  5. Manual commands (if the script can't be used)
Sekcje z nagłówków SKILL.md, w oryginale · 87 linii, 671 słów
Podgląd SKILL.md
---
name: kicad-fab-export
description: Generate a fab-ready manufacturing package from a KiCad 8/9/10 board in one command — Gerber + Excellon drill zip, BOM and pick-and-place (CPL/centroid) in JLCPCB or PCBWay format, optional STEP — and walk through the order settings. Use when the user wants to order or manufacture a PCB or PCBA, export Gerbers, make a BOM or CPL, or says ส่งโรงงาน, สั่งผลิต PCB, สั่งทำแผ่นปริ้น, ทำไฟล์ Gerber, ไฟล์ส่ง JLCPCB, ยิง SMT, ประกอบบอร์ด, ทำ BOM, ไฟล์ตำแหน่งชิ้นส่วน, even if they don't name kicad-cli.
---

# KiCad fab export (Gerber, drill, BOM, CPL)

Reply in Thai when the user writes Thai. Run the checks first: exporting a
board that fails DRC just ships the mistake. If `kicad-check` hasn't passed
with the fab's preset in this session, run it before exporting.

## One command

```bash
python3 "<skill>/scripts/export_fab.py" path/to/project.kicad_pro --fab jlcpcb
python3 "<skill>/scripts/export_fab.py" path/to/project.kicad_pro --fab pcbway
python3 "<skill>/scripts/export_fab.py" path/to/project.kicad_pro --fab generic --no-assembly
```

Output goes to `fab/` next to the project (`-o DIR` to change) and a JSON
summary is printed. Source `.kicad_*` files are never modified.

| File | What it is |
|---|---|
| `<name>-gerbers.zip` | all copper layers found in the board + paste, silk, mask, Edge.Cuts, Excellon drill (mm, decimal) + drill map — upload this |
| `<name>-bom-<fab>.csv` | grouped BOM. JLCPCB: `Comment, Designator, Footprint, LCSC Part #`. PCBWay: their quote template columns |
| `<name>-cpl-<fab>.csv` | `Designator, Val, Package, Mid X, Mid Y, Rotation, Layer` in mm, rotation 0–359 |
| `<name>.step` | with `--step`, for the mechanical/enclosure designer |

Options: `--no-assembly` (bare PCB, no BOM/CPL), `--step`,
`--rot PATTERN=DEG` (see below), `--kicad-cli PATH`.

## BOM fields: set them in the schematic

The BOM comes from symbol fields, so fix data in the schematic, not in the CSV:

- **JLCPCB assembly** needs an LCSC part number (`C` + digits) per line. The script
  reads the first non-empty of these fields: `LCSC`, `LCSC Part`, `LCSC Part #`,
  `LCSC#`, `JLCPCB Part #`, `JLC`. Lines without one are listed in `warnings`.
- **PCBWay / Thai EMS** quote from `Manufacturer` + `MPN`; add both.
- Parts that must not be fitted: set **Do not populate (DNP)** in symbol
  properties. DNP parts, power symbols and "exclude from BOM" parts are left out.
- Identical parts are grouped by Value + Footprint + part number, designators
  listed in full (`R1,R2,R10`) because fabs can't parse ranges like `R1-R3`.
- Unannotated symbols (`R?`) stop the export. Parts in the BOM but not on the
  board, or with a different footprint on the board, are listed in `warnings`:
  the schematic and the board are out of sync — fix with Update PCB from Schematic (F8).

## CPL rotations (the classic JLCPCB problem)

KiCad's footprint zero orientation and the assembler's library don't always
agree (common with SOT-23, SOT-223, QFN, some diodes and connectors). Export, upload,
and check the fab's placement preview. For every part shown rotated wrong, add
a correction and export again:

```bash
python3 "<skill>/scripts/export_fab.py" board.kicad_pro --fab jlcpcb --rot "SOT-23*=180" --rot "*QFN*=90"
```

`PATTERN` is a glob on the footprint name (Package column), first match wins;
the degrees are added to KiCad's rotation for top-side parts and subtracted for
bottom-side parts (they are seen mirrored). Write down the corrections that worked
in the project README so the next order uses them. Bottom-side parts are
the other usual suspect: check them in the preview separately.

## Ordering

Order-form settings and fab-specific notes for JLCPCB, PCBWay and Thai local
fabs: [references/fab-houses.md](references/fab-houses.md). Before the user
pays, summarise: layers, size, thickness, finish, quantity, assembly side(s),
number of BOM lines without part numbers, and anything that changes price
(castellated holes, impedance control, ENIG, odd colours).

For where to manufacture in Thailand, import VAT on parcels from China and
local parts sources, use **thai-pcb-sourcing**.

## Manual commands (if the script can't be used)

```bash
kicad-cli pcb export gerbers -o fab/gerbers/ --layers F.Cu,B.Cu,F.Paste,B.Paste,F.SilkS,B.SilkS,F.Mask,B.Mask,Edge.Cuts --subtract-soldermask board.kicad_pcb
kicad-cli pcb export drill -o fab/gerbers/ --format excellon --excellon-units mm --excellon-zeros-format decimal --excellon-separate-th --generate-map --map-format gerberx2 board.kicad_pcb
kicad-cli sch export bom -o fab/bom.csv --fields "Value,Reference,Footprint,LCSC" --labels "Comment,Designator,Footprint,LCSC Part #" --group-by "Value,Footprint,LCSC" --ref-range-delimiter "" --string-delimiter '"' --exclude-dnp board.kicad_sch
kicad-cli pcb export pos -o fab/pos.csv --side both --format csv --units mm --exclude-dnp board.kicad_pcb
```

Add `In1.Cu,In2.Cu,…` to `--layers` for multilayer boards. If a copper layer
has a user name (`(0 "F.Cu" signal "top_layer")` in the board file), also list
that name — kicad-cli 8/9 silently skip it otherwise — and count the copper
Gerbers in the output before uploading. On KiCad 10 add `--check-zones` to the
Gerber command; on 8/9 refill zones (B) and save first.
Pliki w paczce (3)
  • SKILL.md 5 KB
  • references/fab-houses.md 3 KB
  • scripts/export_fab.py 16 KB

Wersje

W bazie nie ma innych skilli o nazwie kicad-fab-export.

Migawka bazy z 13.11.2026 · wersja paczki b4e4237ead21 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 4 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100kicad-manufacture
    Prowadzi przepływ produkcji i wytwarzania projektów KiCAD przez narzędzia MCP: pliki Gerber, JLCPCB, pick and place, pliki montażowe i BOM dla producenta.
  • 100jlc-fab-export
    Pakuje projekt płytki z Altium do zamówienia JLCPCB: pliki Gerber i wiertła, zestawienie BOM, plik CPL oraz README z ostrzeżeniami.
  • 100jlcpcb
    Wspiera zamawianie płytek PCB i montażu w JLCPCB: generowanie BOM i CPL, części basic i extended, ograniczenia montażu, reguły projektowe, koszty i czasy realizacji, we współpracy z KiCad.
  • 88kicad-pcb
    Prowadzi projekt płytki PCB w KiCad 8, 9 i 10: wymagania, schemat, footprinty, rozmieszczenie ścieżek, kontrole i przekazanie do produkcji.
  • 100pcbway
    Obsługuje zamawianie i montaż płytek PCB w PCBWay (montaż pod klucz i z własnych części, reguły projektowe) jako alternatywę dla JLCPCB, w parze z KiCad.
  • 95kicad-cli-extended
    Steruje KiCadem 10 przez kce: edytuje schematy i płytki PCB, sprawdza ERC i DRC, eksportuje Gerbery i BOM oraz przygotowuje zamówienia.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.