К основному содержанию
скилл CX Codex

jlcpcb — скилл для Claude Code: заказ плат и сборки

Скилл для заказа плат и монтажа на JLCPCB: правила проектирования, BOM/CPL, базовые и extended-компоненты, ограничения сборки.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add aklofas/kicad-happy --skill jlcpcb -a claude-code
Открыть на GitHub

Что делает jlcpcb

Скилл jlcpcb помогает агенту вести проект от схемы в KiCad до заказа на JLCPCB. Внутри — правила проектирования для плат на 1–2 слоя и многослойных, ограничения экономичной и стандартной сборки, порядок оформления заказа. Агент подскажет, какие компоненты попадают в базовые, а какие в extended, и как это влияет на цену.

Отдельная часть — BOM и CPL. Скилл объясняет формат BOM для сборки: колонки Comment, Designator, Footprint и LCSC Part #. Заголовок с номером LCSC должен совпадать посимвольно, иначе загрузка не пройдёт. Для KiCad описан порядок: добавить поле LCSC к символам, выгрузить CSV и переименовать колонки под формат JLCPCB.

Есть таблица поворотов для pick-and-place: у SOT-23, SOT-223 и диодов SMA/SMB/SMC типичное смещение +180°, у QFN +90°. Правки вносятся прямо в CPL до загрузки. Симметричные детали вроде резисторов и конденсаторов могут проскочить проверку с неверным разворотом на 180°, поэтому после первого заказа стоит записать нужные поправки и применять их дальше. Для gerber, CPL и заказа трафарета скилл отправляет к скиллу bom.

Какие задачи решает

  • проверить проект на соответствие правилам JLCPCB до отправки
  • собрать BOM с номерами LCSC для монтажа
  • посчитать, во сколько обойдутся extended-компоненты
  • поправить повороты деталей в CPL перед загрузкой
  • выбрать между экономичной и стандартной сборкой

Примеры запросов агенту

  • Проверь мою плату в KiCad на минимальные зазоры и ширину дорожек по правилам JLCPCB
  • Собери BOM для JLCPCB из этой схемы, добавь колонку LCSC Part #
  • У меня SOT-23 и QFN в CPL — какие повороты поправить перед загрузкой?

Как установить jlcpcb

1Через Skills CLI (Vercel)

npx skills add aklofas/kicad-happy --skill jlcpcb -a claude-code

2Вручную: положить файлы

~/.claude/skills/jlcpcb/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/jlcpcb/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Из того же набора12

kicad Анализирует проекты KiCad версий 5–10 и схемы в PDF, сверяет трассировку и проверяет плату перед заказом на производстве. CX Codex +1 1 100установок bom Управляет перечнем компонентов (BOM) в проектах KiCad и координирует поиск деталей у дистрибьюторов. Хранит номера компонентов и цены прямо в свойствах символов схемы. CX Codex +1 697установок lcsc Ищет электронные компоненты в каталоге LCSC по коду Cxxxxx или MPN, проверяет остатки, цены и скачивает даташиты. Пригодится при подготовке BOM для монтажа печатных плат на JLCPCB. CX Codex +1 638установок spice Гоняет SPICE-симуляции по подсхемам из анализа KiCad-схемы: фильтры, делители, каскады на ОУ, кварцы. Проверяет расчётные значения против реального прогона. CX Codex +1 624установок emc Проверяет печатные платы KiCad на электромагнитную совместимость до заказа образцов. Находит 44 типа проблем разводки, полигонов и цепей питания. CX Codex +1 612установок datasheets Извлекает характеристики и цоколёвку микросхем из PDF-даташитов в структурированный JSON для анализа схем. CX Codex +1 600установок digikey Ищет электронные компоненты в DigiKey, проверяет цены и наличие, скачивает даташиты. Пригодится для прототипов и синхронизации данных со схемой. CX Codex +1 508установок mouser Ищет электронные компоненты в Mouser, сверяет цену, наличие и параметры. Пригодится для подбора деталей и работы со спецификацией KiCad. CX Codex +1 490установок

Похожие

librarian diodeinc Создаёт и чинит переиспользуемые пакеты компонентов и модулей в реестре печатных плат: символы, посадочные места, схемы включения. CX Codex +1 539установок registry-search diodeinc Находит готовые модули и компоненты в реестре перед проектированием платы или спецификации. Помогает подключить готовую обвязку на языке Zen. CX Codex +1 561установок easyeda-api JLCEDA Управляет EasyEDA через API: работает с платами, схемами, библиотеками и проектами. Нужен для отладки и разработки расширений в запущенном клиенте. CX Codex +1 610установок serenity-aleabitoreddit yan-labs Разбирает акции компаний из цепочек поставок ИИ и полупроводников по методу трейдера Serenity (@aleabitoreddit). Помогает проверять инвестиционные тезисы на узкие места. CX Codex +1 3 000установок embedded-iot-mentor Alireza Rezvani Помогает спланировать разработку электроники и IoT: выбрать плату, прошивку и способ вывода данных с датчиков. Пригодится при сборке прототипа на макетной плате. 22установок tscircuit tscircuit Помогает агенту проектировать электронику в tscircuit: подбирать компоненты, разводить дорожки и собирать герберы. Пригодится, если схема или плата живёт в TSX. CX Codex +1 1 100установок

Рядом в теме «DevOps и инфраструктура»

Всё по теме «DevOps и инфраструктура» →

Вопросы о jlcpcb

Как установить jlcpcb в Claude?

Выполните npx skills add aklofas/kicad-happy --skill jlcpcb -a claude-code. Скилл окажется в ~/.claude/skills/jlcpcb/SKILL.md.

Что делает скилл jlcpcb?

Ведёт заказ плат и сборки на JLCPCB: правила проектирования, формат BOM и CPL, деление компонентов на базовые и extended, ограничения экономичной и стандартной сборки.

Чем этот скилл отличается от bom?

jlcpcb отвечает за производство и монтаж на JLCPCB, а bom — за управление BOM, экспорт gerber и CPL, заказ трафарета.

Исходный текст

SKILL.md · MIT
---
name: jlcpcb
description: JLCPCB 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 prototype bare PCBs and stencils, wants to know JLCPCB design rules and capabilities, or is asking about PCB manufacturing costs or turnaround times. For gerber/CPL export, stencil ordering, and BOM management, see the `bom` skill.
---

# JLCPCB — PCB Fabrication & Assembly

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.

**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.

## Related Skills

| Skill | Purpose |
|-------|---------|
| `kicad` | Read/analyze KiCad project files, DFM scoring against JLCPCB capabilities |
| `bom` | BOM management, gerber/CPL export, stencil ordering |
| `digikey` | Search DigiKey (prototype sourcing, primary — also preferred for datasheet downloads via API) |
| `mouser` | Search Mouser (prototype sourcing, secondary) |
| `lcsc` | Search LCSC (production sourcing — JLCPCB uses LCSC parts library) |
| `pcbway` | Alternative PCB fabrication & assembly |
| `emc` | EMC pre-compliance risk analysis — run before fab to catch EMC issues |
| `spice` | SPICE simulation — verify analog subcircuits before committing to fab |

## Assembly Parts Library

### Part Categories

| Category | Description | Assembly Fee |
|----------|-------------|--------------|
| **Basic** | Common parts (resistors, caps, diodes, common ICs) pre-loaded on pick-and-place machines | No extra fee |
| **Extended** | 300k+ less common parts loaded on demand | $3 per unique extended part |

> 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.

### LCSC Part Numbers

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.

### Parts Search (JLCPCB-Specific)

- Parts library: `https://jlcpcb.com/parts/componentSearch?searchTxt=<query>`
- Basic parts only: `https://jlcpcb.com/parts/basic_parts`

## BOM Format for Assembly

JLCPCB accepts CSV, XLS, or XLSX BOMs with these columns:

| Column | Required | Description |
|--------|----------|-------------|
| `Comment` / `Value` | Yes | Component value (e.g., 100nF, 10k) |
| `Designator` | Yes | Reference designators, comma-separated (e.g., C1,C2,C5) |
| `Footprint` | Yes | Package/footprint name |
| `LCSC Part #` | Recommended | LCSC part number (Cxxxxx) — guarantees exact match |

The column header for LCSC numbers must be exactly **"LCSC Part #"** or **"LCSC Part Number"** — typos cause upload failures.

### KiCad BOM Export for JLCPCB

1. In KiCad schematic editor, add an `LCSC` field to each symbol with the LCSC part number
2. Export BOM as CSV with columns: Reference, Value, Footprint, LCSC
3. Rename columns to match JLCPCB's expected format:
   - `Reference` -> `Designator`
   - `Value` -> `Comment`
   - `Footprint` -> `Footprint`
   - `LCSC` -> `LCSC Part #`

For gerber export settings, CPL format, and stencil ordering, see the `bom` skill.

## JLCPCB Official API (Approval Required)

Apply at `https://api.jlcpcb.com`. Access is gated — requires review based on order history and business profile.

Available APIs (once approved):
- **Components API** — real-time pricing, inventory, component specs
- **PCB API** — upload gerbers, get quotes, place orders, track status
- **Stencil API** — stencil quoting and ordering
- **3D Printing API** — SLA/MJF/SLM/FDM ordering

## PCB Design Rules (JLCPCB Capabilities)

### Standard PCB (1-2 layers)

| Parameter | Minimum |
|-----------|---------|
| Trace width | 0.127mm (5mil) |
| Trace spacing | 0.127mm (5mil) |
| Via diameter | 0.45mm |
| Via drill | 0.2mm |
| Annular ring | 0.125mm |
| Min hole size | 0.2mm |
| Board thickness | 0.4-2.4mm (default 1.6mm) |
| Min board size | 6x6mm |
| Max board size | 500x400mm (2-layer) |

### Multi-layer (4+ layers)

| Parameter | Minimum |
|-----------|---------|
| Trace width | 0.09mm (3.5mil) |
| Trace spacing | 0.09mm (3.5mil) |
| Via diameter | 0.25mm |
| Via drill | 0.15mm |
| Board thickness | 0.6-2.4mm |

### Importing DRU into KiCad

If you have a JLCPCB `.kicad_dru` design rules file, import it in KiCad Board Editor > Board Setup > Design Rules > Import Settings.

## Assembly Constraints

### Economic vs Standard Assembly

| Feature | Economic | Standard |
|---------|----------|----------|
| Sides | Top only | Top + Bottom |
| Component types | SMD only | SMD + through-hole |
| Min component size | 0201 | 01005 |
| Fine-pitch BGA/QFP | Down to 0.5mm pitch | Down to 0.4mm pitch |
| Turnaround | ~3-5 days | ~3-5 days |
| Extended part fee | $3 per unique part | $3 per unique part |

### General Constraints

- **Minimum order**: 5 PCBs for assembly
- **Unique parts limit**: No hard limit, but each extended part adds $3
- **Basic parts**: No extra fee, pre-loaded on machines

## Rotation Offsets

JLCPCB's pick-and-place uses different rotation conventions than KiCad for some footprints. Common offsets:

| Footprint Family | Typical Offset |
|-----------------|----------------|
| SOT-23, SOT-23-5, SOT-23-6 | +180° |
| SOT-223 | +180° |
| SOIC-8, SOIC-16 | +90° or +270° |
| QFN (all sizes) | +90° |
| SMA/SMB/SMC diodes | +180° |
| USB-C connectors | Varies — check datasheet |

To fix rotation issues:
1. Add rotation corrections directly in the CPL file before uploading (adjust the Rotation column)
2. For custom footprints, verify pin 1 orientation matches JLCPCB expectations
3. JLCPCB's review step catches major errors, but subtle 180° rotations on symmetric parts (caps, resistors) may slip through
4. After first assembly order, note any rotation corrections needed and apply them to future CPL exports

## Ordering Workflow

### Prototype Order (Bare PCB + Stencil)

1. **Export gerbers** from KiCad (see `bom` skill for export settings)
2. Upload gerbers to `https://cart.jlcpcb.com/quote` — configure layers, thickness, color, qty
3. Add a **framed stencil** to the cart (uses paste layers from your gerbers)
4. Order — PCBs and stencil typically arrive in ~1 week

### Production Order (Assembled Boards)

1. **Export gerbers** from KiCad (see `bom` skill for export settings)
2. **Export BOM** as CSV with LCSC part numbers (format above)
3. **Export CPL** (placement file) as CSV (see `bom` skill for format)
4. Upload gerbers to `https://cart.jlcpcb.com/quote` — configure layers, thickness, color, qty
5. Enable "PCB Assembly", select Economic or Standard
6. Upload BOM and CPL files
7. Review part matching — fix any unmatched parts by searching LCSC numbers
8. Confirm and order

### Translating Altium / KiCad BOM and CPL files

For boards exported from Altium (or other tools) whose BOM/CPL formats
don't match JLCPCB's expected columns, the `bom` skill ships
`translate_bom_pnp.py` to convert them. Two subcommands:

```bash
# BOM: KiCad/Altium CSV → JLCPCB BOM CSV (Comment, Designator, Footprint,
#                                         LCSC Part #, MPN, Manufacturer,
#                                         Quantity, Notes)
python3 skills/bom/scripts/translate_bom_pnp.py bom input_bom.csv -o jlc_bom.csv

# CPL: input CPL → JLCPCB Pick-and-Place CSV (Designator, Mid X, Mid Y,
#                                              Layer, Rotation), with mil→mm
#                                              and TopLayer/BottomLayer
#                                              normalization
python3 skills/bom/scripts/translate_bom_pnp.py pnp input_cpl.csv -o jlc_cpl.csv
```

#### The 3-step PCBA upload workflow (avoids rejection)

JLCPCB's PCBA web upload rejects orders when the CPL contains designators
that aren't in the BOM (mechanical holes, fiducials, test points, etc.
that appear in the CPL output but aren't assembly components). The
translator's `--bom` filter mode solves this:

1. **Translate the BOM first** — produces the JLCPCB-format BOM and
   establishes the authoritative designator set:
   ```bash
   python3 skills/bom/scripts/translate_bom_pnp.py bom input_bom.csv -o jlc_bom.csv
   ```

2. **Translate the CPL with `--bom` filter** — intersects CPL designators
   with BOM designators, dropping orphans:
   ```bash
   python3 skills/bom/scripts/translate_bom_pnp.py pnp input_cpl.csv -o jlc_cpl.csv --bom jlc_bom.csv
   ```
   The returned `filtered_orphans` count plus `filtered_orphan_samples`
   list lets the operator confirm which CPL rows were dropped — sanity-
   check this list before uploading. Common orphans (mounting holes,
   fiducials, test points) are expected; anything else may indicate a
   BOM/PCB mismatch worth investigating.

3. **Tabulate consigned-parts cost separately** — JLCPCB's quote does
   not auto-itemize consigned (user-supplied) part costs. Build a quote
   summary that shows: PCB fabrication, PCBA assembly fee, basic vs
   extended parts cost (per JLCPCB invoice), and a separate
   user-sourced parts subtotal. Without this breakdown the quote
   understates true unit cost by the consigned-parts amount.

This workflow is documented because JLCPCB's web upload UX silently
rejects orphan-designator CPLs with an unhelpful error; the parity
check via `--bom` is the single highest-value step in shipping a
clean PCBA order.

## Tips

- **Prefer Basic parts** — no extra fee, always in stock, faster assembly
- **Check stock before ordering** — extended parts can go out of stock; use the `lcsc` skill to search
- **Panel by JLCPCB** — for small boards, let JLCPCB panelize (cheaper) vs custom panels
- **Lead-free solder** — default is leaded (HASL); select lead-free HASL or ENIG if needed
- **Impedance control** — available for multi-layer boards, specify stackup in order notes
- **Castellated holes** — supported, enable in order options
- **V-cuts and mouse bites** — supported for panel separation
- **Silkscreen minimum** — 0.8mm height, 0.15mm line width for readable text
- **Edge clearance** — keep copper >=0.3mm from board edge (0.5mm recommended)

© aklofas · MIT · aklofas/kicad-happy

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой