$npx -y skills add aklofas/kicad-happy --skill jlcpcbJLCPCB PCB fabrication and assembly — BOM/CPL generation, basic vs extended parts, assembly constraints, design rules, ordering workflow. Use with KiCad for JLCPCB manufacturing. Use this skill when the user mentions JLCPCB, wants to order PCBs or assembled boards, needs prototyp
| 1 | # JLCPCB — PCB Fabrication & Assembly |
| 2 | |
| 3 | JLCPCB is a PCB fabrication and assembly service based in Shenzhen, China. It is a sister company to LCSC Electronics (common ownership) — they share the same parts library. |
| 4 | |
| 5 | **Typical usage**: Order bare prototype PCBs + framed stencil from JLCPCB during prototyping (parts sourced separately from DigiKey/Mouser, hand-assembled in lab). For production runs (100s qty), order fully assembled boards from JLCPCB using LCSC parts. PCBWay is an alternative assembler. For component searching, see the `lcsc` skill. For BOM management, gerber/CPL export, and stencil ordering, see the `bom` skill. |
| 6 | |
| 7 | ## Related Skills |
| 8 | |
| 9 | | Skill | Purpose | |
| 10 | |-------|---------| |
| 11 | | `kicad` | Read/analyze KiCad project files, DFM scoring against JLCPCB capabilities | |
| 12 | | `bom` | BOM management, gerber/CPL export, stencil ordering | |
| 13 | | `digikey` | Search DigiKey (prototype sourcing, primary — also preferred for datasheet downloads via API) | |
| 14 | | `mouser` | Search Mouser (prototype sourcing, secondary) | |
| 15 | | `lcsc` | Search LCSC (production sourcing — JLCPCB uses LCSC parts library) | |
| 16 | | `pcbway` | Alternative PCB fabrication & assembly | |
| 17 | | `emc` | EMC pre-compliance risk analysis — run before fab to catch EMC issues | |
| 18 | | `spice` | SPICE simulation — verify analog subcircuits before committing to fab | |
| 19 | |
| 20 | ## Assembly Parts Library |
| 21 | |
| 22 | ### Part Categories |
| 23 | |
| 24 | | Category | Description | Assembly Fee | |
| 25 | |----------|-------------|--------------| |
| 26 | | **Basic** | Common parts (resistors, caps, diodes, common ICs) pre-loaded on pick-and-place machines | No extra fee | |
| 27 | | **Extended** | 300k+ less common parts loaded on demand | $3 per unique extended part | |
| 28 | |
| 29 | > JLCPCB occasionally promotes a subset of frequently-used extended parts with a discounted or waived feeder fee (the program's name and terms shift over time). Check the current JLCPCB parts library page for any specific extended part before assuming the standard $3 fee applies. |
| 30 | |
| 31 | ### LCSC Part Numbers |
| 32 | |
| 33 | Every assembly component is identified by an **LCSC Part Number** (`Cxxxxx`, e.g., `C14663`). This is the definitive identifier for BOM matching. See the `lcsc` skill for searching parts. |
| 34 | |
| 35 | ### Parts Search (JLCPCB-Specific) |
| 36 | |
| 37 | - Parts library: `https://jlcpcb.com/parts/componentSearch?searchTxt=<query>` |
| 38 | - Basic parts only: `https://jlcpcb.com/parts/basic_parts` |
| 39 | |
| 40 | ## BOM Format for Assembly |
| 41 | |
| 42 | JLCPCB accepts CSV, XLS, or XLSX BOMs with these columns: |
| 43 | |
| 44 | | Column | Required | Description | |
| 45 | |--------|----------|-------------| |
| 46 | | `Comment` / `Value` | Yes | Component value (e.g., 100nF, 10k) | |
| 47 | | `Designator` | Yes | Reference designators, comma-separated (e.g., C1,C2,C5) | |
| 48 | | `Footprint` | Yes | Package/footprint name | |
| 49 | | `LCSC Part #` | Recommended | LCSC part number (Cxxxxx) — guarantees exact match | |
| 50 | |
| 51 | The column header for LCSC numbers must be exactly **"LCSC Part #"** or **"LCSC Part Number"** — typos cause upload failures. |
| 52 | |
| 53 | ### KiCad BOM Export for JLCPCB |
| 54 | |
| 55 | 1. In KiCad schematic editor, add an `LCSC` field to each symbol with the LCSC part number |
| 56 | 2. Export BOM as CSV with columns: Reference, Value, Footprint, LCSC |
| 57 | 3. Rename columns to match JLCPCB's expected format: |
| 58 | - `Reference` -> `Designator` |
| 59 | - `Value` -> `Comment` |
| 60 | - `Footprint` -> `Footprint` |
| 61 | - `LCSC` -> `LCSC Part #` |
| 62 | |
| 63 | For gerber export settings, CPL format, and stencil ordering, see the `bom` skill. |
| 64 | |
| 65 | ## JLCPCB Official API (Approval Required) |
| 66 | |
| 67 | Apply at `https://api.jlcpcb.com`. Access is gated — requires review based on order history and business profile. |
| 68 | |
| 69 | Available APIs (once approved): |
| 70 | - **Components API** — real-time pricing, inventory, component specs |
| 71 | - **PCB API** — upload gerbers, get quotes, place orders, track status |
| 72 | - **Stencil API** — stencil quoting and ordering |
| 73 | - **3D Printing API** — SLA/MJF/SLM/FDM ordering |
| 74 | |
| 75 | ## PCB Design Rules (JLCPCB Capabilities) |
| 76 | |
| 77 | ### Standard PCB (1-2 layers) |
| 78 | |
| 79 | | Parameter | Minimum | |
| 80 | |-----------|---------| |
| 81 | | Trace width | 0.127mm (5mil) | |
| 82 | | Trace spacing | 0.127mm (5mil) | |
| 83 | | Via diameter | 0.45mm | |
| 84 | | Via drill | 0.2mm | |
| 85 | | Annular ring | 0.125mm | |
| 86 | | Min hole size | 0.2mm | |
| 87 | | Board thickness | 0.4-2.4mm (default 1.6mm) | |
| 88 | | Min board size | 6x6mm | |
| 89 | | Max board size | 500x400mm (2-layer) | |
| 90 | |
| 91 | ### Multi-layer (4+ layers) |
| 92 | |
| 93 | | Parameter | Minimum | |
| 94 | |-----------|---------| |
| 95 | | Trace width | 0.09mm (3.5mil) | |
| 96 | | Trace spacing | 0.09mm (3.5mil) | |
| 97 | | Via diameter | 0.25mm | |
| 98 | | Via drill | 0.15mm | |
| 99 | | Board thickness | 0.6-2.4mm | |
| 100 | |
| 101 | ### Importing DRU into KiCad |
| 102 | |
| 103 | If you have a JLC |