/jitx-skills:jitx-jlcpcbfrom jitx-skills
Provides JLCPCB/LCSC parts providers, substrates, land patterns, lock file management, and export for JITX boards. Activates when the user chooses JLCPCB as fab, assembler, or parts source.
Ships in jitx-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
jitxlib-jlcpcb covers one fab end to end. JITX ships no default fab, and this skill never chooses JLCPCB for a user: it starts once the user has.
The API is in the package docstrings, read with help(): jitxlib.jlcpcb (substrates, export and lock file usage), jitxlib.jlcpcb.parts, jitxlib.jlcpcb.parts.library and jitxlib.jlcpcb.landpattern.
jitx skill.jitx-project-builder. Once the user picks JLCPCB, its substrate, parts and release work come here.jitx-component-modeler. Wiring and placement: jitx-circuit-builder.Only after the user chose JLCPCB, add "jitxlib-jlcpcb>=4,<5" to dependencies in pyproject.toml, then install the project so its jitx pin holds:
pip install -e .
In your reply, say what installing changes: the package publishes a parts chain, so a project that names none resolves its passives through JLCPCB's catalogue, while a project that names a chain keeps it. If another installed package publishes a chain, resolution is a hard error until the project names one.
Name the chain:
[tool.jitx.parts]
chain = ["csv:parts/approved-parts.csv", "jlcpcb"]
The user's approved list comes first, the catalogue behind it, and no ideal, so a passive the catalogue cannot supply fails the build rather than becoming an unorderable IDEAL- stand-in. Take that passive to the user, change its value, case or tier only with their sign-off, and never put ideal back. In an existing chain, keep its entries in order and put "jlcpcb" where "ideal" was.
LCSCPart) for the user to match by hand in JLCPCB's BOM step; name those parts to the user.parts/approved-parts.csv to the header row of the example CSV the jitx skill copies. The example parts carry no C-number, and first in the chain they would outrank the catalogue."lcsc" in place of "jlcpcb" when the user asks for LCSC's source or a resistor query filters rated voltage, which "jlcpcb" cannot match. "lcsc" lacks assembly tiers.The jitx skill's parts gates still apply, and the user approves the final build's MPNs and C-numbers before anything is ordered.
| Class | Copper layers | Prepreg | Routing structures | On layers | Vias |
|---|---|---|---|---|---|
JLC04161H_1080 | 4 | 1080 | RS_50, DRS_90, DRS_100 | outer only | 3 standard |
JLC04161H_7628 | 4 | 7628 | RS_50, DRS_90, DRS_100 | outer only | 3 standard |
JLC06161H_7628 | 6 | 7628 | RS_50, DRS_100 | outer and the first inner layer each side | 9: standard plus extra-cost multilayer |
Import from jitxlib.jlcpcb; each class carries its stackup, fab rules and a tented, filled via for via-in-pad. Pick by layer count and the impedances the design's interfaces need, then read the structure's trace widths in the class source.
A structure the class lacks, a non-FR-4 material, or a layer count outside the set (two layers included) means a custom substrate through jitx-substrate-modeler. Vias and fab rules: jitxlib.jlcpcb.vias, jitxlib.jlcpcb.rules.
The assembly-library tier is the query attribute library: basic, preferred, extended, cheapest to assemble first. Prefer basic with rank=Minimize("library"), per query or on a design-level ResistorQuery or CapacitorQuery context. Filter with library="basic" only when the user asks for basic parts alone: the basic library is small.
A queried passive in a case the chip generator does not build (a tantalum or aluminum electrolytic) gets the catalogue footprint through LCSCLandpattern, attached by the provider with in-order ports. Name a chip case in the query to avoid it, or treat it as below.
Every other assembled component names its part with lcsc = LCSCPart("C..."), a field of the component itself, never of a circuit or landpattern.
Before writing code for a named C-number, save its channel evidence (stock, lifecycle or none stated, datasheet URL and pinout, from its catalogue page) to datasheets/sourcing/<mpn>-lcsc.txt, and cite it in the part's data source row: PLAN.md's Data Sources table, or the COMPLETION.md block below when there is no PLAN.md. The manufacturer's datasheet outranks it for pins; record any disagreement.
With the package, the user opts into its catalogue footprints (LCSCLandpattern) or models their own components through jitx-component-modeler. Ask once unless the request says; a yes, recorded in the Opt-in row and in PLAN.md when there is one, accepts the catalogue as the project's footprint source. A class you write still uses a generator where one expresses the package. With own models chosen, use no LCSCLandpattern: model a class for a queried passive the chip generator does not build, or change its case with the user's sign-off.
Once accepted, take each catalogue footprint as published: do not check its pads against the manufacturer's drawing. The pin mapping is still yours: in a component class you write, give ports={...} from the manufacturer's pinout, not pad order, and leave out a part with no readable pinout until the user supplies one. A polarized passive whose catalogue footprint the provider attaches maps its ports in pad order, assuming the catalogue's pad 1 is the anode: name each such part to the user and ask them to confirm its polarity in the placement preview. Read the build's footprint warnings (dropped vias, skipped pads, unmapped pads) and name each part and pad to the user; an unmapped pad on a port the circuit uses blocks the part like a missing pinout.
lcsc.lock.json records, by C-number, each catalogue footprint and each measured placement orientation. Commit it; it is not a cache. The first build and export need network access to jlcpcb.com, wmsc.lcsc.com and easyeda.com; later runs read the lock. Correct a wrong orientation by editing that part's entry, which outranks LCSCPart(orientation=...); delete one entry to fetch that part again.
jitx design export jlcpcb --output <packet-dir> <module.Design>
<module.Design> is the build target jitx find prints. --no-assembly writes a bare-board packet (gerber archive and order sheet) for gerbers alone. Do not use the docstring's jitx design export gerber --names jlcpcb: its drills are not the NC drill file JLCPCB expects. --overwrite allows a non-empty directory.
The export fails on any unplaced soldered component. The packet is orderable only when exported after the board is routed and the design rule check is clean: the gerbers are written at export. Routing is the user's step; report the check as clean, or not run with the reason. Until both hold, tell the user the packet is not yet orderable, what is missing, and that the export must run again afterwards.
Done means:
jitx design export parts-check <module.Design> --fail all passes, and no MPN read from the design starts with IDEAL-;<stem>-gerber.zip and <stem>-order.md, and for an assembled order <stem>-bom.csv and <stem>-cpl.csv;JLCPCB Part # is a C-number, or each row without one is named to the user;Report the packet listing to the user, with the order sheet's "Footprints taken from landpattern class names" and "Placed with no orientation correction" lists. Ask them to check rotations in JLCPCB's Confirm Parts Placement preview and to confirm the surface finish. Never upload or order.
Write this block in COMPLETION.md, each row with its evidence:
## JLCPCB check
Opt-in: <where the user chose JLCPCB>; footprints: catalogue | own models; dependency and chain as written
Substrate: <class> for <layers, impedances> | custom: <reason>
Parts: tier <ranked | filtered: user asked>; <N> LCSCPart components; IDEAL- MPNs: none
Sources: <C-number: datasheets/sourcing/<mpn>-lcsc.txt>
Catalogue footprints: none | <parts>; polarized in pad order: none | <parts>; footprint warnings: none | <part: warning>; blocked: none | <part: reason>
Packet: <file listing>; BOM rows without a C-number: none | <list>; orderable | not yet, re-export after: <routing, DRC, blocked parts>
Approval: MPNs and C-numbers <approved by the user | awaiting the user>
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub jitx-inc/jitx-skills --plugin jitx-skills13 skills in this plugin
/jitxBase skill for JITX Python PCB design: install, the jitx CLI, auth and the runtime, building designs, the viewers, exports, code quality (ruff, pyright, type annotations, check.py and grep gates), and design introspection (jitx.inspect, jitx.query, runtime submit). Use to set up JITX, start the runtime, build or find a design, open the viewer, fix a build or environment error, or find things in a design from Python. Route a whole board from requirements to jitx-project-builder, code self-review to jitx-code-review, component modeling to jitx-component-modeler, wiring and passives to jitx-circuit-builder, stackups to jitx-substrate-modeler, layout in code and realized-geometry checks to jitx-code-layout, open-layout place and route to jitx-interactive-layout, design rules, stitching, fencing and routing structures by tag to jitx-layout-constraints, SI constraints to jitx-interconnect-constraints, pin flexibility to jitx-pin-assignment, mechanical CAD to jitx-mechanical, and JLCPCB fab and parts to jitx-jlcpcb./jitx-circuit-builderUse when the user asks to "wire up", "connect", "build a circuit", create an "application circuit", declare a circuit's typed ports or bundles (Power, I2C, RGMII), compose sub-circuits into a hierarchy and connect them port to port, "place components" or sub-circuits (fixed or floating), add passives (resistors, capacitors, inductors) or decoupling, or set up power connections. Covers the Circuit class, nets and the + operator, typed ports, hierarchy, placement, and jitxlib-parts passives. Drawing a pour or copper is jitx-code-layout; pour rules are jitx-layout-constraints; provide/require pin assignment is jitx-pin-assignment./jitx-code-layoutUse when the user asks to write a fixed PCB layout in Python: place vias, and parts relative to another instance (Circuit.place), code routes through control points (RoutePoint, PairPoint, PairInsertion), Route.Sketch, Route.Config, a Route.Target taper, narrowing a route in a BGA field or a fine-pitch pad, escape or fanout geometry fixed by a stated number or pad geometry, a connector launch on its pad axis, serpentine or deskew settings on a matched section, thermal vias in an exposed pad, pours, keepouts, cutouts, Copper or OverlappableCopper (antennas, net ties), or reading the realized layout back (capture, Empty pours, 'Unable to find path'). Sorts control points between code and jitx-interactive-layout. Tag rules, escape width rules, stitching and fencing go to jitx-layout-constraints; stackups, vias and structure definitions to jitx-substrate-modeler; land-pattern mask, paste and thermal pads to jitx-component-modeler; nets and passives to jitx-circuit-builder; timing to jitx-interconnect-constraints./jitx-code-reviewSame-model self-critique pass for JITX Python code just written in this workspace. Use when the user asks to "review my JITX code", "self-critique", "check JITX conventions", "find string-hacking", "check framework-boundary issues", "audit before merge", or any equivalent. Mandatory for complete-board tier at task acceptance (folds into Think Twice); user-invoked for single-task work. Catches the architectural failure modes that grep gates and static linters miss — parallel string-keyed models, reflection-as-iteration (regardless of whether on self), owner-shaped data misplaced in design code, build-spec-then-iterate, module-import-time parallel models, and framework-boundary-bypass (the "framework does it, therefore so can I" trap). Applies an ownership test to every banned-pattern hit or proposed exception. Produces severity-tagged findings (CRITICAL / WARNING / NOTE) that fold into the task acceptance block./jitx-component-modelerCreate JITX Python component code from datasheets, KiCad footprints, vendor pin files, or user specifications. ALWAYS use this skill when user asks to "create a component", "model a part", "generate a component", "add a component", or "make a JITX component" - even without a datasheet. Also triggers on part numbers (NE555, LM1117, RP2040) and package types (SOIC, QFN, BGA, SON, SOT). Covers JITX generators for standard packages, a vendor's KiCad footprint read directly for non-standard ones, multi-unit symbols, thermal pads, pin mappings, and datasheet checks with jitx.test.TestCase. Also covers generating from a vendor's machine-readable pinout file rather than a drawing ("generate the FPGA from the pin file", "parse the package pinout file", "model this 1000-ball BGA"): parse-don't-transcribe, reconcile the ball inventory before emitting, and a committed generator with a regenerate-and-diff check. For choosing and placing an ordinary queried passive, use jitx-circuit-builder instead./jitx-interactive-layoutUse when the user asks to place components, route nets, drop vias, add pair insertions or route points, or draw pours in the open board layout from a script, so the result stays editable in the board editor: place and route a board or circuit, fan out a BGA, route DDR byte lanes, change a layout the user edited by hand, fix blocked routes, report layout issues or skew margin. Runs Python against a live design through jitx design session and jitx design exec, with the rd.layout requests (place, route, via, route_point, pair_insertion, region, modify, delete), and reads the result back through route status, rd.issues() and the bundled checks. Assumes the layout constraints are already in the design. Design rules, net classes, tags and escape-width rules in code belong to jitx-layout-constraints; decoupling modules to jitx-circuit-builder; copper, code-placed vias, code Route objects and control points in code to jitx-code-layout; topology, timing and skew constraints to jitx-interconnect-constraints.Other plugins' skills for the same job