본문으로 건너뛰기
cccskills
무료GitHub에 공개

jlcpcb

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(2)

  • SKILL.md11.0 KB
  • scripts/jlcpcb_api.py11.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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

SkillPurpose
kicadRead/analyze KiCad project files, DFM scoring against JLCPCB capabilities
bomBOM management, gerber/CPL export, stencil ordering
digikeySearch DigiKey (prototype sourcing, primary — also preferred for datasheet downloads via API)
mouserSearch Mouser (prototype sourcing, secondary)
lcscSearch LCSC (production sourcing — JLCPCB uses LCSC parts library)
pcbwayAlternative PCB fabrication & assembly

Assembly Parts Library

Part Categories

CategoryDescriptionAssembly Fee
Basic~698 common parts (resistors, caps, diodes, etc.) pre-loaded on pick-and-place machinesNo extra fee
Preferred ExtendedFrequently used extended partsNo feeder loading fee (Economic assembly)
Extended300k+ less common parts loaded on demand$3 per unique extended part

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:

ColumnRequiredDescription
Comment / ValueYesComponent value (e.g., 100nF, 10k)
DesignatorYesReference designators, comma-separated (e.g., C1,C2,C5)
FootprintYesPackage/footprint name
LCSC Part #RecommendedLCSC 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 Partner API

Apply at https://api.jlcpcb.com. Access is gated — requires review based on order history and business profile. Two tiers: Pricing (quote only) and Ordering (full lifecycle, requires monthly volume).

API Credential Setup

After approval, JLCPCB provides credentials via the developer portal at api.jlcpcb.com:

# Add to ~/.config/secrets.env
JLCPCB_Accesskey=your_access_key_here
JLCPCB_SecretKey=your_secret_key_here
# JLCPCB_AppID=optional_if_different_from_accesskey

Authentication: JOP-HMAC-SHA256

Every request is signed with HMAC-SHA256. The signing format:

String-to-sign: METHOD\nURI\nTIMESTAMP\nNONCE\nBODY\n
Signature: HMAC-SHA256(SecretKey, string_to_sign).hexdigest()

Authorization: JOP-HMAC-SHA256 appid="...",accesskey="...",timestamp="...",nonce="...",signature="..."
  • METHOD — uppercase HTTP method (GET, POST)
  • URI — path portion only (e.g., /pcb/calculate)
  • TIMESTAMP — Unix epoch in seconds (not milliseconds)
  • NONCE — 32-char hex random string
  • BODY — compact JSON body string (no spaces), empty string for GET/multipart

Base URL

https://jlcpcb.com/api/overseas/openapi

Note: prod-api.jlcpcb.com is not reachable from US networks. Use the main jlcpcb.com domain.

Scripts

# API client library (importable)
python3 <skill-path>/scripts/jlcpcb_api.py --probe    # Test connectivity
python3 <skill-path>/scripts/jlcpcb_api.py --quote    # Quick PCB price quote

The JLCPCBClient class can be imported:

from jlcpcb_api import JLCPCBClient
client = JLCPCBClient()
result, status = client.pcb_quote(layers=2, width=100, height=80, qty=5)

Endpoints

MethodPathPurposeTier
POST/pcb/calculatePCB price quote (no gerber needed)Pricing
POST/pcb/uploadGerberUpload gerber ZIP (returns fileKey)Ordering
POST/pcb/createCreate/place PCB orderOrdering
POST/pcb/wip/getQuery order production statusOrdering

Component search uses the free jlcsearch.tscircuit.com API (no key needed) via the lcsc skill — separate from the Partner API.

PCB Quote Parameters

{
  "orderType": 1,
  "pcbParam": {
    "layer": 2,
    "width": 100.0,
    "length": 80.0,
    "qty": 5,
    "thickness": 1.6,
    "pcbColor": 1,
    "surfaceFinish": 1,
    "copperWeight": 1.0,
    "goldFinger": 0,
    "materialDetails": "<see note>",
    "panelFlag": 0,
    "differentDesign": 1
  },
  "country": "US",
  "postCode": "94102",
  "city": "San Francisco"
}

Known field values:

  • pcbColor: 1=Green, 2=Red, 3=Yellow, 4=Blue, 5=White, 6=Black (unconfirmed)
  • surfaceFinish: 1=HASL, 2=LeadFreeHASL, 3=ENIG (unconfirmed)
  • materialDetails: Not publicly documented — requires partner docs. Values 0-14 all return pcb_material_details_error. Check api.jlcpcb.com/docs/start (behind login) for valid codes.

Gerber Upload Flow

For the Ordering tier:

  1. POST /pcb/uploadGerber — multipart form upload, sign with empty body
  2. Response returns fileKey and batchNum
  3. POST /pcb/create — pass fileKey, batchNum, and PCB params
  4. POST /pcb/wip/get — poll with orderNumber for status

PCB Design Rules (JLCPCB Capabilities)

Standard PCB (1-2 layers)

ParameterMinimum
Trace width0.127mm (5mil)
Trace spacing0.127mm (5mil)
Via diameter0.45mm
Via drill0.2mm
Annular ring0.125mm
Min hole size0.2mm
Board thickness0.4-2.4mm (default 1.6mm)
Min board size6x6mm
Max board size500x400mm (2-layer)

Multi-layer (4+ layers)

ParameterMinimum
Trace width0.09mm (3.5mil)
Trace spacing0.09mm (3.5mil)
Via diameter0.25mm
Via drill0.15mm
Board thickness0.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

FeatureEconomicStandard
SidesTop onlyTop + Bottom
Component typesSMD onlySMD + through-hole
Min component size020101005
Fine-pitch BGA/QFPDown to 0.5mm pitchDown 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 FamilyTypical 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 connectorsVaries — 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

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)

Platform Guidance

  • Claude Code: Present DFM results and pricing inline. Use AskUserQuestion for assembly options.
  • Codex/OpenCode: Present options as numbered lists. Ask user to confirm choices.
  • CLI: circuit-weaver export-jlcpcb design.yaml -o delivery is deliberately BOM-only. Add --pcb board.kicad_pcb only for a real, reference/footprint-reconciled CPL. Read delivery_manifest.json; upload bom_jlcpcb.csv and, when status is ok, cpl_jlcpcb.csv. Use circuit-weaver check-dfm board.kicad_pcb separately.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

autoroute

무료

Route non-critical nets on a real KiCad PCB or Specctra DSN through Circuit Weaver's fail-closed Freerouting integration. Use after placement and net-class setup when the user requests autorouting, a validated SES session, routing diagnostics, or post-route cleanup. Keep critical power, RF, clock, crystal, switching, and differential nets manual.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mattpainter701/kicad_automations212026년 10월 20일 업데이트

bom

무료

Manage an electronics bill of materials across distributors and fabricators: part selection, stock, pricing, alternates, ordering, KiCad properties, and BOM/CPL export. Use for distributor-neutral sourcing, cost comparison, order preparation, or requests such as "what parts do I need" and "export for JLCPCB". Do not take over schematic analysis or a complete new-design workflow unless the requested task is specifically its sourcing/manufacturing stage.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mattpainter701/kicad_automations212026년 10월 20일 업데이트

bom

무료

BOM management, sourcing, pricing, export, and fabrication preparation. Load the canonical Circuit Weaver skill from `skills/bom/SKILL.md`.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mattpainter701/kicad_automations212026년 10월 20일 업데이트

Create, import, analyze, resume, or revise an end-to-end Circuit Weaver electronic design from requirements through validated functional KiCad schematics, placement review, and a truthful manufacturing handoff. Use for new designs and for existing KiCad/PCB/Gerber projects that need durable state. Use kicad for one-off file inspection, bom for standalone sourcing, and design-wizard only when the user explicitly requests the slower questionnaire.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mattpainter701/kicad_automations212026년 10월 20일 업데이트

Create, import, analyze, or resume an end-to-end Circuit Weaver electronic design with durable project state. Load the canonical workflow from skills/circuit-weaver/SKILL.md. Use kicad for one-off file inspection, bom for sourcing, and design-wizard only when explicitly requested.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mattpainter701/kicad_automations212026년 10월 20일 업데이트

Use only for an explicitly requested step-by-step Circuit Weaver questionnaire. Load the canonical workflow from skills/design-wizard/SKILL.md; use circuit-weaver for ordinary automatic new-design requests.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mattpainter701/kicad_automations212026년 10월 20일 업데이트

mattpainter701의 스킬 모두 보기

이 스킬의 문제 신고