/akcli:akcli-parts-sourcingfrom akcli — AI-native KiCad design agent (+ Altium import)
Searches JLCPCB/LCSC catalog for parts by MPN, value, or package; checks stock, price tiers, and Basic/Extended status; converts parts into KiCad libraries; fetches datasheets; and validates BOM completeness.
Ships in akcli — AI-native KiCad design agent (+ Altium import). 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.
None: SKILL.md is the whole skill.
akcli jlc for JLCPCB/LCSC search and BOM hygieneakcli jlc searches the JLCPCB / LCSC catalog (via the public jlcsearch service). It is
the only networked akcli feature — every other command runs fully offline. For
plain schematic read/analyze/draw mechanics (formats, op-list rules, exit-code legend,
config discovery), see the akcli-circuit-design skill; this skill covers only the
sourcing loop.
B) parts, then Preferred (P). Extended parts add per-reel assembly
fees at JLCPCB. Surface the stock count with every recommendation — a perfect part with
0 stock is not sourced.--json output carries the full
price_tiers ladder; the headline price is the lowest-qFrom tier only.LCSC parameter per designator), never only in a side document.jlc datasheet
fetches the PDF, the akcli-datasheet-facts skill extracts its numbers into
datasheets/extracted/ (sha256+page pinned) so akcli review analyze
upgrades findings to datasheet_backed. Source → PDF → facts is one chain.sed the fp-lib-table or a symbol's Footprint field. Run
akcli library audit <project> to find FOOTPRINT_LIB_UNREGISTERED, then fix it with
akcli library repair <project> --rename-footprint-lib OLD=NEW --apply — hand edits drift
out of sync with the schematic and the 3D models.akcli jlc search NE555 # keyword search (default 20 results)
akcli jlc search NE555 --limit 5
akcli jlc search "0603 100nF" --json # machine-readable part objects
akcli jlc search "0402 47K" --category Resistors # drop NTC thermistors etc.
akcli jlc show C7593 # one part by LCSC C-number (bare 7593 also works)
akcli jlc show C2040 --easyeda # + 3D/STEP availability, EasyEDA manufacturer/MPN/package
The query matches MPN, category, and C-number. Read the category column
before picking a part: a value/package query (0402 47K) mixes NTC
thermistors (Sensors) in with chip resistors — pass
--category Resistors (case-insensitive exact match, client-side filter)
when the query is by value/package. Text output is a table
(LCSC MPN PACKAGE STOCK PRICE B DESCRIPTION) where the B column is B for a JLCPCB
Basic part, P for Preferred, - otherwise. --json part fields: lcsc, mpn,
package, stock, price (lowest-qFrom tier as a float, or null), basic, datasheet,
category, and attributes (with subcategory, is_preferred, and the full
price_tiers [{qFrom,qTo,price},...] ladder). Compare candidates on stock, price tier at the
build quantity, and Basic status — not just the first hit.
No results is exit 0 with a stderr notice; network/HTTP failures exit 7 with one
ERROR: NETWORK: ... line. --easyeda is best-effort: on failure it prints
(metadata unavailable) and never breaks the command.
akcli jlc add C2040 # symbol + footprint
akcli jlc add C2040 --3d # + 3D STEP model
akcli jlc add C2040 --out ./mylib --lib-name akcli --force
akcli jlc add C2040 --footprint-lib proj_jlc --3d-path relative
--footprint-lib NICKNAME sets the fp-lib-table nickname written into the symbol's
Footprint field (and the footprint output directory). Without it the footprints go to
<out>/footprint/ and the nickname is the one project fp-lib-table entry whose URI
resolves to that directory; with no such entry (or several) it stays footprint — the
#1 cause of "KiCad can't find footprint" — and stderr prints the exact (lib …) line
to add to the table. Read footprint_lib_source in --json (flag | fp-lib-table |
default): default means the table still needs that line. --3d-path {relative|absolute|'${VAR}'}
is a portability trade-off: relative (default) only resolves next to the library,
absolute always resolves on this machine but breaks on another, and a ${VAR}
prefix resolves portably via a KiCad path variable.
Conversion runs in-process (vendored MIT JLC2KiCadLib core — no external
binary). Without --out, output lands under config [paths] parts_dir
(fallback ./akcli-parts/<C-number>/). Output layout: symbol/<lib-name>.kicad_sym,
footprint/<name>.kicad_mod, footprint/packages3d/<name>.step (with --3d).
Exit codes: 0 success, 2 bad usage, 4 part has no EasyEDA CAD data,
6 conversion failed/empty, 7 network error.
A converted library is a claim, not a fact. Verify before wiring in:
akcli read <out>/symbol/<lib>.kicad_sym must match
the package drawing exactly; spot-check power/ground/pin-1 in --json..kicad_mod or view it in KiCad).--place emits a one-op place_component op-list (place.json) with lib_id
read from the produced .kicad_sym — never guessed from filenames — and prints the
ready draw command including the --symbols flag it needs. Pass --symbols
here even though draw can fall back to the project/global sym-lib-table: a
freshly converted symbol is not registered in any table yet, so the fallback
cannot find it.
akcli jlc add C2040 --out ./mylib --place --designator U1 --at 1000 1500
akcli draw board.kicad_sch --ops ./mylib/place.json --symbols ./mylib/symbol/akcli.kicad_sym # dry-run first
akcli draw board.kicad_sch --ops ./mylib/place.json --symbols ./mylib/symbol/akcli.kicad_sym --apply
akcli check board.kicad_sch --bom # dup designators, refdes gaps, missing value/footprint
akcli component board.kicad_sch U1 # confirm the placed part's pin -> net map
Missing value/footprint findings: fix via a set_component_parameters op (fields:
designator required; optional value, footprint, parameters) applied with
akcli plan / akcli draw --apply — see the akcli-circuit-design skill for op-list mechanics.
Match designators to sourced parts: record each designator's LCSC C-number (e.g. as an
LCSC entry in the op's parameters object) so the fabrication BOM maps R10 -> C25804
unambiguously. Re-run akcli check board.kicad_sch --bom after every edit; it exits 1
while findings remain (--fail-on never for report mode).
After any --apply, re-read (akcli read / akcli net) to confirm the write — never assume.
Run akcli library audit <project> to cross-check sym/fp-lib-table ↔ schematic ↔ footprint ↔
3D. Fix any FOOTPRINT_LIB_UNREGISTERED/MODEL_MISSING finding with
akcli library repair <project> --rename-footprint-lib OLD=NEW --3d-path absolute --apply
(leaves a .bak, then re-audits — exit 1 if an ERROR remains in a repaired file) instead
of manual sed.
No catalog symbol? Author one from the datasheet's pin table — never by hand-writing
S-expressions. Transcribing a pin table is the part you do reliably; laying out coordinates is
not, and that failure is silent: two pins on one connection point make KiCad join them into a
single node in every placement, with no ERC violation to find (the symbol is what told ERC they
are the same node). Write a schemas/symbol-pins.schema.json document — one object per pin with
number, name, type (a KiCad electrical type) and side (left/right/top/bottom),
optionally group to keep related pins together — and let akcli place it:
akcli library new-symbol pins.json
akcli library new-symbol pins.json -o MyLib.kicad_sym --apply
akcli library lint-symbols MyLib.kicad_sym
side and type are required and never guessed. The generator refuses (exit 6, nothing written)
if its own output would put two differing pins on one point; stack_with is the only sanctioned
way to share a coordinate, and it requires the same name and type. Run lint-symbols over any
imported or vendor-converted .kicad_sym too — SYMLIB_PIN_TYPE_UNSPECIFIED is where converted
symbols turn KiCad's ERC pin-conflict matrix into a rubber stamp. Multi-unit symbols are not
supported yet; the refusal says so explicitly.
akcli jlc datasheet C2984661 # resolve: PDF URL + MPN + manufacturer
akcli jlc datasheet C2984661 --fetch --out datasheets # download -> ./datasheets (project-local)
akcli jlc datasheet board.kicad_sch --fetch --out datasheets # every BOM line with an LCSC id, one run
akcli jlc datasheet board.kicad_sch --resolve-mpn --fetch --out datasheets # MPN-only lines: catalog lookup first
--fetch verifies
the %PDF magic — an HTML challenge page is reported as fetch-failed, never
saved as a broken .pdf. Existing files are the cache; --force refetches..pdf links are fetched; a page-link row keeps the product/
viewer URL — fetch THAT with a browser-grade fetcher (WebFetch) to locate the
PDF. no-link rows print the LCSC product-page hint. Either way the fastest
fallback is the manufacturer's own site — original-vendor PDFs
(vishay.com, ti.com, onsemi.com, ...) download fine with plain curl.akcli calc inputs (akcli-design-calc skill rule 5) and margin-check the placed
circuit against the absolute-max column. Quote the table row (symbol,
condition, min/typ/max) in the report so review can retrace it.akcli sim fit-diode --point 0.37@20m --n-prior 1.05 (a Schottky prior), which
fits a .model and can write Sim.Device/Sim.Params straight onto the part
(--apply <sch> --designator D1 --write) — turning a sourced diode into a
simulatable one. See docs/sim.md and the akcli-design-calc skill.no-lcsc lines — pin C-numbers first with
jlc bom --suggest/--fix, then re-run.akcli view live <sch> (path optional —
it auto-discovers the single .kicad_sch in the CWD) runs its networked
BOM check (?check=1), each priced line with an LCSC id gains an inline
datasheet link (resolved via the same EasyEDA path as jlc datasheet;
direct PDFs and page-links get distinct glyphs). It is per-line
failure-tolerant and absent on the offline BOM — a fast way to eyeball
coverage while reviewing the board.jlc show returns a no part ... found notice): there is no
Digi-Key/Mouser/Octopart client in akcli. Source from the vendor and flag for human review.stock > 0.jlc is the only networked subcommand; everything else in akcli
still works. Without network, jlc search/jlc show exit 7.0 success, including clean no-results (stderr notice) · 1 lint-style problems
(jlc bom stock/id problems; jlc datasheet not-found/no-link/fetch-failed) ·
2 usage error · 7 network error. Full legend and error-line format: see the
akcli-circuit-design skill.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub tipoli5890/akcli --plugin akcli13 skills in this plugin
/akcli-altium-interopWork with Altium Designer through the `akcli` CLI — Altium is akcli's read-only import surface into the KiCad-first flow: parse Altium .SchDoc/.SchLib/.PcbDoc files, export normalized JSON and Protel/KiCad/CSV netlists, deliver schematic edits back into Altium (offline human draw instructions + importable netlist — there is no Altium write path at all), and migrate Altium designs to KiCad with netlist-diff verification. Use this skill whenever the task involves: reading, exporting, or converting an Altium file; getting a design out of Altium into another tool; getting changes into an Altium schematic; or an Altium-to-KiCad migration or equivalence check. Triggers on keywords: Altium, Altium Designer, SchDoc, SchLib, PcbDoc, Protel netlist, OLE2/CFBF, Altium export, Altium import, migrate to KiCad, AD to KiCad./akcli-circuit-debugSystematically diagnose misbehaving schematics and `akcli` tool failures. Use this skill whenever the task involves: debugging net connectivity (a net that is split, merged wrongly, missing, or a pin that floats when it should not); triaging `akcli check` findings (real fault vs false positive, deciding whether a clean pass is trustworthy); investigating why `akcli plan`/`akcli draw` refused to write or what an exit code means; recovering from a failed apply (backup/rollback); or classifying parse failures and unsupported-input refusals before reporting a bug upstream. Triggers on keywords: debug, diagnose, troubleshoot, net split, floating pin, wrong net merge, false positive, ERC finding, exit code, parse error, refused, dangling endpoint, connectivity gate, rollback, backup, corrupt SchDoc, unsupported format./akcli-circuit-designRead, analyze, diff, and draw electronic schematics with the `akcli` CLI — the verification layer for AI-authored KiCad schematics (writes are dry-run by default, net-diffed and connectivity-gated); Altium files are a read-only import surface. Use this skill whenever the task involves: reading or parsing an Altium .SchDoc/.SchLib/.PcbDoc or a KiCad .kicad_sch/.kicad_sym/.kicad_pcb; extracting a netlist; running ERC, power-rail, BOM, or a design review on a schematic; producing a pin map / pinout / MCU pin->net table; diffing two schematic revisions (v1 vs v2); drawing or editing a KiCad schematic from an op-list; or working with JLC/LCSC/EDA parts, footprints, and connectivity. Triggers on keywords: SchDoc, kicad_sch, schematic, netlist, ERC, electrical rule check, design review, power rails, pinmap, pinout, schematic diff, draw KiCad, op-list./akcli-datasheet-factsExtract audited, PDF-pinned component facts into the akcli datasheet facts store (`akcli review facts`) so review findings upgrade from heuristic to datasheet_backed. Use this skill whenever the task involves: reading a component datasheet to record its Vref / crystal load capacitance / absolute maximum / thermal numbers; building or verifying `datasheets/extracted/` facts files; upgrading `akcli review analyze` findings to datasheet_backed; or checking why a finding says "verify against the datasheet". Triggers on: datasheet facts, facts store, extract datasheet, Vref, load capacitance, absolute maximum, theta_ja, 資料表, 元件參數擷取, datasheet_backed, review facts./akcli-deep-reviewGenerate LLM design-review candidates and gate them through `akcli review validate` — the agent-proposes / akcli-verifies contract. Use this skill whenever the task involves: a deep or exhaustive design review beyond the deterministic detectors; producing review observations from reading datasheets or design intent; running `review validate` on candidate findings; or presenting accepted vs quarantined LLM findings honestly. Triggers on: deep review, LLM review, candidate findings, review validate, quarantine, 深度審查, design intent review, second-opinion review, exhaustive review./akcli-design-calcOffline engineering calculators for electronics design via `akcli calc` — E-series (IEC 60063) value snapping and resistor combinations, voltage dividers, LM317/FB regulator networks, IPC-2221 track width and clearance, via parasitics, fusing current, AWG, microstrip/stripline impedance, RF attenuators, buck/boost power stages, NE555, op-amp gain pairs, I2C pull-ups, crystal load caps, junction thermal, battery life, LDO headroom, comparator hysteresis, envelope detectors, resistor color/SMD/EIA-96 codes, galvanic compatibility. Use whenever a design task needs a computed component value or a standards-backed physical check. Triggers on: resistor value, E24/E96, divider, LDO feedback, dropout, trace width, current capacity, clearance, creepage, via, impedance, attenuator, 555, pull-up, load capacitance, heatsink, hysteresis, envelope detector, battery runtime, color code, SMD marking.Other plugins' skills for the same job