Jlcpcb logo

Jlcpcb

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

Overview

Publisheraklofas
Repositorykicad-happy
Skill namejlcpcb
Stars
1.2K
Forks
109
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by aklofas on GitHub. Read the source before you install it.

Installation

Install the Jlcpcb AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/aklofas/kicad-happy.git /tmp/kicad-happy
mkdir -p .claude/skills
cp -r /tmp/kicad-happy/skills/jlcpcb .claude/skills/jlcpcb
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Jlcpcb in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Jlcpcb on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Jlcpcb is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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
emcEMC pre-compliance risk analysis — run before fab to catch EMC issues
spiceSPICE simulation — verify analog subcircuits before committing to fab

Assembly Parts Library

Part Categories

CategoryDescriptionAssembly Fee
BasicCommon parts (resistors, caps, diodes, common ICs) pre-loaded on pick-and-place machinesNo extra fee
Extended300k+ 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:

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

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

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)

Frequently asked questions

What does the Jlcpcb AI skill do?

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.

Why use Jlcpcb on TypingMind?

Because you install it once and use it with any model. Jlcpcb is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Jlcpcb in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/aklofas/kicad-happy/tree/main/skills/jlcpcb. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Jlcpcb?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Jlcpcb?

As many as you like. As long as a model supports skills, you can use Jlcpcb with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Jlcpcb AI skill free?

Yes. It is published on GitHub by aklofas under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇