/akcli:akcli-circuit-designfrom akcli — AI-native KiCad design agent (+ Altium import)
Reads, analyzes, diffs, and draws electronic schematics via the `akcli` CLI. Supports KiCad (read/write) and Altium (read-only) files. Runs ERC, power-rail, BOM, and design reviews; produces pin maps and netlists; diffs schematic revisions.
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 for schematic read / analyze / diff / drawakcli is a stdlib-only Python ≥3.11 CLI purpose-built for KiCad: it reads
KiCad .kicad_sch / .kicad_sym / .kicad_pcb and Altium binary .SchDoc /
.SchLib / .PcbDoc into one normalized model, runs design checks, diffs revisions, and
writes KiCad schematics from an op-list. Altium is a read-only import on-ramp into the
KiCad flow; akcli is not an Altium-to-KiCad converter.
When the plugin is installed, akcli is on PATH. Run it with the Bash tool. From a raw
checkout instead use PYTHONPATH=src python3 -m akcli ... or bin/akcli ....
GND, dropped a STAT↔LED1_GPIO_RD alias). Always verify converted/derived
results: re-read after writing, cross-check a netlist against an expected table, and treat
any vacuous "0 findings" with suspicion (read the metadata caveats check prints — passive-pin
ratio, No-ERC suppressed count, unnamed-net count).akcli never writes Altium files offline. KiCad gets a full
cross-platform writer (plan/draw). For Altium edits, deliver human draw instructions plus an
Altium-importable Protel netlist (akcli export --format protel).akcli capabilities --json # COLD-START: the full CLI surface manifest (commands, flags,
# exit/error tables, op vocabulary, schemas) in one document
akcli capabilities --command draw # ONE command's entry (~3% of the manifest) — prefer slices
# over the full ~106 KB document (--section exit_codes|ops|...)
akcli schema ops # any packaged JSON Schema, byte-for-byte (ops, findings,
# netlist, draw-result, ...) for client-side validation
akcli read <file> --summary --json # counts + metadata ONLY — start big boards here, never
# with a full dump (context-budget escape hatch)
akcli read <file> --json # full normalized Schematic/Pcb (carries schema_version)
akcli read <file> --md # human Markdown summary
akcli nets <file> --match 'VDD*' --json # filtered net listing (--limit N caps it; the JSON
# envelope carries total/matched/returned/truncated)
akcli net <file> [name] --json # netlist: nets -> pin members, aliases, source names
# (a named miss exits 8 with {"found": false})
akcli component <file> <REF> # one component's pin -> net (e.g. U3); omit REF to list all
akcli render <file> -o out.svg # pure-stdlib SVG — LOOK at the sheet (works on .SchDoc too)
akcli doc <file> -o book.md # pinout book: pin->net tables + power rails + BOM (human hand-off)
akcli groups <file> # functional groups (from hidden Group properties); --frame draws borders
akcli bbox Device:R --at 1000 800 # symbol world bounding box at a placement (spacing planning; sibling of pins)
akcli view live # localhost dashboard, re-renders on every apply (auto-discovers
# the single .kicad_sch in CWD; bare `akcli view` serves the hub)
akcli log <dir-or-file> # workspace write journal: what plan/draw/undo did here
Inputs: .SchDoc, .SchLib, .PcbDoc, .PcbLib, .kicad_sch, .kicad_sym, .kicad_pcb.
stdout is data, stderr is logs — so akcli ... --json | jq stays clean.
akcli read --strict turns a non-empty source that normalizes to zero objects
(EMPTY_IMPORT) into exit 1 instead of a quiet empty result.
# Design review (ERC-lite + power rails + BOM hygiene). Lint-style: exits 1 when findings exist.
akcli check <file> -C akcli.toml # all checks (ERC + power + BOM + nets + layout +
# integrity + pairs)
akcli check <file> --erc --power --bom # select checks
akcli check <file> --integrity # write-gate document checks, read-only
# (.kicad_sch: dangling endpoints, duplicate
# uuids/designators, unresolved lib_ids,
# instance paths, NC conflicts)
akcli check <file> --fail-on never # report mode (always exit 0)
# Net-level revision diff. Nets matched by MEMBERSHIP (not display name); components by
# UniqueID, then (value, footprint, pin-count) signature, then refdes.
akcli diff <file_a> <file_b>
# MCU pin -> net table (MCU from config mcu_designator or --mcu). Optional cross-check.
akcli pinmap <file> -C akcli.toml
akcli pinmap <file> --mcu U3 --expected pins.csv # expected = .csv or .json
akcli verify sch.kicad_sch board.kicad_pcb --strict # schematic <-> PCB net/refdes/footprint equivalence
akcli verify sch.kicad_sch board.kicad_pcb --library # + board footprints vs the project fp-lib-table (prints what was NOT compared)
akcli check board.kicad_sch --contract contract.toml # topology require/forbid rules ERC can't express
-C/--config akcli.toml supplies mcu_designator, [[rail]] voltages, and
[[erc_waiver]] entries; without -C, discovery walks up from the schematic's directory. Always read the metadata
header check prints before declaring a board clean.
Component values you place should come from akcli calc (60 standards-cited
engineering calculators — E-series snap, dividers, IPC-2221 track width, I²C pull-ups,
555, buck/boost, ...), not mental arithmetic — see the akcli-design-calc skill.
KiCad is the only writable target. Build an op-list JSON (document shape and the op vocabulary — 22 ops + 10 macros incl. delete_component/delete_object/add_sheet/route_net/
add_rectangle/add_text_box/set_title_block and the place_array macro —
are defined in schemas/ops.schema.json; guide: docs/op-list-authoring.md, scaffolder: akcli ops list / akcli ops template <op>). One op-list can also edit
the target AND its child sheets in one atomic transaction — envelope sheets map +
per-op "sheet" tags; the net gate evaluates the whole sheet tree; akcli undo <target> --run <run_id> reverts a multi-file run together (details: the
akcli-schematic-authoring skill):
{
"protocol_version": 2,
"target_format": "kicad",
"target_file": "board.kicad_sch",
"ops": [
{ "op": "place_component", "lib_id": "Device:R", "designator": "R10",
"x_mil": 1000, "y_mil": 800, "value": "10k" },
{ "op": "add_wire", "vertices": ["R10.2", [1100, 800]] },
{ "op": "place_power_port", "lib_id": "power:GND", "net_name": "GND", "at": [1100, 900] }
]
}
Op-list rules (the validator enforces them): coordinates are mils, origin top-left, +Y down,
50-mil grid; rotation is the enum {0,90,180,270}; mirror {none,x,y}; wire vertices is an
even, orthogonal array of [x,y] points or "REF.PIN" endpoint strings (the executor snaps a
pin ref to the pin's real world coordinate). Then:
# Validate + resolve against the target; print what WOULD change. Never writes.
akcli plan board.kicad_sch --ops ops.json
# Apply. DEFAULT IS DRY-RUN (verify only). Add --apply to write.
akcli draw board.kicad_sch --ops ops.json # dry-run: per-op results + connectivity verify
akcli draw board.kicad_sch --ops ops.json --apply # atomic snapshot->temp->verify-on-temp->os.replace + backup
akcli draw board.kicad_sch --ops ops.json --symbols extra.kicad_sym # extra symbol source (repeatable)
A lib_id nickname that --symbols and config [paths] do not cover is looked up
in the project and global sym-lib-table as a last resort, so Device:R resolves
against an installed KiCad — but pass --symbols explicitly when the result must
be reproducible on another machine.
--apply writes only if the pure-Python connectivity verifier passes (zero dangling endpoints);
otherwise the write is rejected and the original file is untouched. After applying, re-read
(akcli read / akcli net) to confirm the change — never assume the write was correct.
akcli cannot write Altium offline. To request Altium edits:
akcli export <file> --format protel -o board.net # also: --format kicad|csv
akcli read/akcli diff the result to
verify it matches intent.0 success / no findings · 1 check findings present (lint-style; --fail-on never forces 0) ·
2 usage/arg error (incl. BAD_CONFIG — an explicit -C that is missing, a directory, or
unparseable is never silently ignored) · 3 parse error (corrupt OLE2/S-expr, or bytes that
are not UTF-8 at all: KICAD_BAD_ENCODING) · 4 path not usable: missing (FILE_NOT_FOUND)
or present but unreadable — a directory where a file was expected, no read permission, an IO
error (FILE_UNREADABLE) ·
5 unsupported format · 6 op-list / verify failure (also covers TARGET_LOCKED, a
KiCad GUI lock on the target — every write path refuses on it: draw, arrange,
undo, relink-symbols --apply, library repair --apply; --allow-open overrides) ·
7 required external tool missing / network unreachable ·
8 query miss (QUERY_MISS — net/component asked for a name the file does not contain).
Without --debug, failures print one structured line, e.g.
ERROR: ALTIUM_FAT_CYCLE: .... Add --debug for a full traceback. Global flags on every
subcommand: -C/--config, -v/-vv, -q/--quiet, --json, --no-color, --debug.
8 /circuit-* commands: /circuit-review (review engine + checks, optional diff) ·
/circuit-pinmap (pinmap, optional --expected) · /circuit-diff (diff two revisions) ·
/circuit-sim (deck inspection + SPICE assertions; read-only) · /circuit-release
(release preflight GO/NO-GO with a manifest) · /circuit-draw (build + validate an
op-list and draw; user-triggered only, it writes files) · /circuit-parts (jlc search →
show → add → plan → draw: source a real part and place it; networked + writes files,
user-triggered only) · /circuit-datasheet (datasheet fetch → audited facts; networked +
writes files, user-triggered only).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
schematic-analysis, kicad, altium, netlist, erc, design-review, pinmap
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-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./akcli-jlcpcb-capabilitiesConsult 嘉立創/JLC (jlc.com) manufacturing capabilities — the PRIMARY reference — while designing a board: rigid PCB (1-64 layers, HDI blind/buried vias, 0.1 mm microvias, up to 6 oz copper), FPC, and SMT assembly limits with exact numbers, plus a JLCPCB-international (jlcpcb.com) difference table and stencil specs. Use this skill whenever the task involves: choosing trace width/spacing, via or drill sizes, board size/thickness, copper weight, solder mask or silkscreen limits; checking whether a package (0201/0402, BGA pitch, fine-pitch IC) is assemblable; Economic vs Standard SMT; panelization (V-cut, 郵票孔, process borders, Mark points); flex stackups, coverlay, stiffeners; stencil ordering; preparing / exporting Gerber+drill files for a JLC order (出圖, RS-274-X, layer mapping, plated vs non-plated holes, silkscreen-on-pads, the common DFM mistakes JLC flags); or the manufacturing handoff itself — which files a KiCad export (headless `kicad-cli` or the Fabrication Toolkit plugin) actually produces, which of them a bare-PCB order needs vs. an SMT/PCBA order, the jlc.com vs jlcpcb.com order-sequencing difference, and how LCSC part-number matching behaves on upload. Triggers on: 嘉立創, JLC, JLCPCB, 工藝能力, 製程能力, DFM, design rules, min trace, 線寬線距, annular ring, 孔環, via, 過孔, 盲埋孔, HDI, 微孔, drill, 鑽孔, board thickness, 板厚, copper weight, 銅厚, solder mask, 阻焊, silkscreen, 字符, castellated, 半孔, panelization, 拼板, V割, SMT, PCBA, BGA pitch, 0402, 0201, stencil, 鋼網, coverlay, 補強, flex, FPC, 出圖, Gerber, RS-274-X, plated, NPTH, thermal relief, DFM mistakes, Fabrication Toolkit, gerber.zip, bom.csv, positions.csv, designators.csv, netlist.ipc, 貼片, 貼片下單, 下單流程, BOM上傳, CPL, centroid, pick and place, 自助匹配選型, 嘉立創幫我選型, PCB Assembly, 出貨, order flow.Other plugins' skills for the same job