/jitx-skills:jitx-component-modelerfrom jitx-skills
Generates JITX Python component code from datasheets, KiCad footprints, vendor pin files, or user specs. Handles standard packages, multi-unit symbols, thermal pads, pin mappings, and datasheet tests. For BGAs and pin files, parses and reconciles ball inventory before emitting.
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; scripts run unread.
Run the base jitx skill's setup first; it owns install and the supported versions.
A component task is not complete until the Component completeness check — run before calling it done block is filled row by row in COMPLETION.md next to the components, under the Checks run field of the task acceptance block in jitx-project-builder/references/completion-blocks.md. A block only in chat is not the block.
| Condition | Open |
|---|---|
| Any component task: sources, package and generator choice, KiCad import, the class and symbol, BGAs, tests, build and report. | references/component-guide.md |
| The vendor supplied a machine-readable pinout or ball-map file. | references/pin-file-generation.md |
Before writing code, read every matching row's file, and record the rows matched and files read in the References opened row. A reference file missing from disk is a blocker, never replaced by remembered API details.
Never write dimensions, pin labels, pad assignments or an MPN from memory. The source is the manufacturer's current datasheet or package document; a manufacturer pin file is authority for names, balls and banks, never geometry; named sourcing-channel data is secondary evidence the datasheet outranks; failing those, ask the user. With no source, a real component is blocked unless the user explicitly authorizes a non-MPN generic placeholder, recorded under Notes. The full ladder is in component-guide.md.
A part fact typed into the request (pin list, package, pin count) is a claim, not a source: check it against the document and send any disagreement back to the user before building.
Before recording a source as unreachable, try the manufacturer URL, the named sourcing channel and the local project directories.
When no document states an orderable MPN, ask the user while device and package are being confirmed. A device string or package name is not an MPN, and no test or build catches a fabricated one; see component-guide.md.
Never read a full datasheet PDF. Save it, check that its bytes begin %PDF-, locate pages with scripts/extract_pages.py, and read only the extract; if extraction fails or finds nothing relevant, stop and report it. Cite by figure or table caption first, then figure number, edition and page.
Output goes under components/, in a category subdirectory where the project uses them, as <manufacturer>_<mpn>.py: lowercase manufacturer, MPN as the manufacturer prints it, underscores for separators.
Refuse to proceed with:
Port for several physical pins, or several ports for alternate functions of one pin;getattr instead of an indexed list (GPIO = [Port() for _ in range(N)]);self, or a JITX class declared inside a function, method or active instantiation context;Every physical pin or ball, NC-with-pad and thermal pad included, gets its own port; contacts sharing one land share one port. The symbol carries every port. A port on several pads (ground plus the thermal pad) or a declaration order that is not pad order requires an explicit PadMapping; an unmapped thermal pad builds unconnected with no error.
Library and generator defaults are inputs to verify: check each one relied on against the source wherever the source speaks, and override from the source where they disagree. Density level is one (installed default B): set DensityLevel (jitxlib.landpatterns.ipc) explicitly or record that the default matches the source.
For a pin file, emit no component code until the parse reconciles and the user approves the inventory, and start no circuit wrapper until the user approves the mapping sample; see pin-file-generation.md.
After code exists, in order:
jitx.test.TestCase; pure helper tests may use unittest.TestCase. Every package variant gets a pad-count check by jitx.inspect.visit(lp, Pad); until it runs, verification stops. The snippet and other assertions: component-guide.md.pyright on every Python file left in the output. Tests assert metadata, pin and pad counts, .value unset, and each relied-on default or imported footprint entry against the source.jitx find, take its printed build target verbatim, then build in the available virtual environment.jitx-project-builder, with the complete Component check below embedded under Checks run, into COMPLETION.md or the project's existing equivalent.Halt: no filled block, no "done". Any non-clean type check, failing test, failed build, unrun available check, missing source, or unresolved row forces Verdict: open items. Verdict: complete is invalid until every row closes.
Then offer the datasheet application circuit and, on yes, invoke jitx-circuit-builder with the component class's import path and the figure caption.
Fill each row with its evidence (page, table or figure, then class or attribute).
## Component check
Source: <manufacturer + document number + revision/date>; page/figure cited per claim below
(+ channel evidence where the user named a sourcing channel)
Source reached by: <fetched from <url> | supplied by the user as <path> | local <path>>
Probes, when any source was recorded unreachable: <what was tried, and what each
attempt returned> | n/a (a source was reached)
User-typed facts checked against it: <each typed pin name, number, package or count,
and whether the document confirms it> | none (the user typed no part facts)
Disagreements found: NONE | <each, with the document's value, and confirmation that
it went back to the user>
References opened: <routing rows matched -> reference files read | none matched>
Identity: <class name> — mpn <literal>; manufacturer,
refdes prefix and datasheet URL set on the class
Pins: <N> ports / <N> physical pins or pads on the drawing — every power, ground,
NC-with-pad and thermal pad present; names from the datasheet's own pin table
Landpattern: <generator + args> from <page/figure>; <N> pads; dimensions transcribed —
body <L/D> <W/E> <H/A>, <pitch | n/a>, lead/termination <length> <width>,
each cited; Toleranced from the drawing's min/max, not nominal-only
Library defaults: generator/table defaults relied on: <list | none> — each checked
against the source where the source speaks to it; agreements <list>,
overrides <item + reason | none>; defaults relied on because the source
publishes nothing to check against: <list per dimension | none>
Density level: <A | B | C> — <what the source asks for, or "no preference stated">;
installed default is <level> — <set explicitly | default already matches>
Value / BOM: .value unset — pinned by a test asserting it is unset
No-field walk: datasheet-stated facts with no JITX field, recorded in the docstring: <list>
Provenance: values traceable to no datasheet page: NONE | <list + the labeled rule backing each>
Checks: pyright <clean | N errors>; pytest <N passed | not run: <reason>>;
build <status: ok via <command> | not run: <reason>>
Verdict: complete | open items: <list>
Derived from every row above; an unavailable environment is an open item.
Rows whose label leaves the content open:
n/a needs a test asserting value is None; nothing else checks what the BOM prints.evals/cases/bga-depopulation-retrieval.json (opens in a new tab)evals/cases/component-from-pin-file.json (opens in a new tab)evals/cases/connector-from-kicad-footprint.json (opens in a new tab)evals/cases/fixtures/ACME-FX500_BGA441_Package-Pinout.txt (opens in a new tab)evals/cases/opamp-quad-qfn-from-datasheet.json (opens in a new tab)evals/cases/tps736-vson8-thermal-pad.json (opens in a new tab)evals/checks/find_emitted.py (opens in a new tab)evals/checks/rail_counts.py (opens in a new tab)evals/eval-contract.yaml (opens in a new tab)evals/routing.jsonl (opens in a new tab)references/component-guide.md (opens in a new tab)references/pin-file-generation.md (opens in a new tab)scripts/extract_pages.py (opens in a new tab)scripts/test_extract_pages.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
13 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.npx claudepluginhub jitx-inc/jitx-skills --plugin jitx-skillsOther plugins' skills for the same job