/akcli:akcli-design-calcfrom akcli — AI-native KiCad design agent (+ Altium import)
Offline engineering calculators for electronics design via `akcli calc` — E-series value snapping, resistor combinations, voltage dividers, track width, via parasitics, impedance, attenuators, power stages, and component code decoding.
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.
Never do component-value math "from memory": run akcli calc and read the
answer with its citation. Every result prints the formal source (standard,
datasheet, or textbook) the formula comes from.
akcli calc list # all calculators, grouped
akcli calc info <name> # parameters, defaults, the reference
akcli calc <name> k=v ... [--json]
Inputs accept engineering notation: 4k7, 100n, 35u, 2M2, 1e-7.
--json returns {calc, inputs, results{value,unit,note}, reference};
list --json and info <name> --json describe the registry itself.
Degenerate inputs are refused, not fudged: nan/inf are rejected at the
parameter (they are not physical quantities), and a value that would make the
formula divide by zero or leave its domain exits 2 with a USAGE envelope.
No result is ever a bare NaN/Infinity — that is not valid JSON.
Input-suffix rule — already-milli units take a bare number. When a
parameter's declared unit is itself milli-denominated (battery-life's
capacity in mAh, i_avg in mA), pass the plain datasheet number:
battery-life capacity=2500 i_avg=10 means 2500 mAh @ 10 mA. A trailing
engineering m there is rejected (ERROR: capacity is already in mAh — write capacity=2500) rather than silently applying a compounding 1000× milli.
The generic length unit m (meters) is unaffected — width=5m still means
5 mm via the milli prefix. (battery-life's default derating is 0.8, aligned
with battery; override with derating=.)
| Design moment | Calculator | Source of the formula |
|---|---|---|
| Any resistor/cap value you are about to place | eseries (snap to E24/E96) | IEC 60063:2015 |
| Value not purchasable → synthesize from 2–4 parts | rcombo | IEC 60063 pool |
| Divider for ADC/FB sensing | vdivider, vdivider-design | Horowitz & Hill 3rd ed. |
| LM317 / LDO / switcher feedback | regulator, regulator-design | TI SLVS044Y (LM317) |
| LED current limiting | led | Ohm's law + IEC 60063 |
| RC/LC filters, debounce, timing | rc, rc-charge, lc, reactance | Horowitz & Hill 3rd ed. |
| Trace must carry X amps | trackwidth, trackcurrent | IPC-2221B §6.2 |
| HV spacing between nets | clearance | IPC-2221B Table 6-1 |
| Via good enough for this current / this edge rate? | via | IPC-2221B; Johnson & Graham 1993 |
| Will this trace/wire survive a fault? | fusing | Onderdonk (1928), Preece (1884) |
| Wire gauge for off-board cabling | awg | ASTM B258-18 |
| Controlled impedance estimate | microstrip, stripline, coax, twinlead | Hammerstad–Jensen 1980; Cohn 1954; Pozar |
| Pad/attenuate an RF signal | attenuator | Ref. Data for Radio Engineers 6th ed. |
| Buck/boost L, ripple, C_out | buck, boost | TI SLVA477B / SLVA372C |
| 555 timer RC values | ne555-astable, ne555-mono | TI SLFS022I datasheet |
| Op-amp gain resistors | opamp-gain | TI SLOD006B |
| I²C bus pull-ups | i2c-pullup | NXP UM10204 Rev.7 §7.1 |
| MCU crystal C1/C2 | crystal-caps | ST AN2867 |
| Will it overheat / need a heatsink? | thermal | JEDEC JESD51-2A |
| Battery runtime | battery | rule of thumb (advisory) |
| Read/print a resistor marking | rescolor, smdcode | IEC 60062:2016; EIA-96 |
| Dissimilar-metal contact (connector plating) | galvanic | MIL-STD-889C |
| USB/LVDS/RS-485 differential routing | diffpair | IPC-2141A §5 |
| "How hot does this existing trace get?" | tracktemp | IPC-2221B (solved for ΔT) |
| dBm↔W↔Vrms, mil↔mm, oz↔µm | convert-power, convert-length, convert-copper | IEEE Std 100; NIST SP 811; IPC copper nominal |
| Comparator switching window | hysteresis, hysteresis-design | TI SLVA954 |
| RS-485 idle-bus bias / CAN termination | rs485-bias, can-termination | TIA-485-A; ISO 11898-2 |
| Will the LDO cook? | ldo | LDO datasheet practice + JESD51 |
| Gate resistor / driver current | gate-drive | TI SLUA618A (Balogh) |
| Current measurement shunt | shunt | TI SBOA170 |
| Anti-alias / smoothing filter | sallen-key | TI SLOA024B; Sallen & Key 1955 |
| ADC bits, noise floor, R-C settling | adc | MT-001; 6.02N+1.76 dB |
| Surge protection part | tvs | IEC 61000-4-5; Littelfuse guide |
| Fuse rating | fuse-derating | Littelfuse Fuseology; IEC 60127 R10 |
| Cap-charging inrush | inrush-ntc | TDK/EPCOS NTC guide |
| Antenna/PA impedance match | lmatch, pimatch | Pozar §5.1; Bowick ch. 4 |
| Isolated supply first cut | flyback | Erickson & Maksimović ch. 6 |
| Battery runtime from a datasheet mAh figure | battery-life | ANSI C18.1M + mfr. alkaline data (advisory) |
| Comparator window incl. open-drain pull-up | comparator-hysteresis | TI SLVA954 |
| Diode peak/envelope detector RC window | envelope-detector | Haykin §2.2; AoE 3rd ed. §1.6.6 |
| Enough input voltage for the LDO? | ldo-headroom | LDO datasheet V_DO; TI SLVA079 |
Deliberately missing: IPC-2152 track current — chart-based licensed
measurement data with no public closed form; this tool refuses to fake it.
Say so when a user asks, and use the conservative IPC-2221 fit
(trackwidth/tracktemp) instead.
akcli calc batch jobs.json — {"jobs":[{"calc":...,"params":{...}}]} in,
envelope array out; exit 1 if any job failed. Use for sweeps.--md — paste-ready markdown result table for reports.--ops out.json — design-type calculators (vdivider-design,
regulator-design, led, i2c-pullup, crystal-caps, hysteresis-design,
sallen-key, attenuator) emit a valid op-list with the computed standard
values filled in: edit coordinates, akcli plan, then draw. Four emit a
macro op (vdivider-design → place_divider, led →
place_led_indicator, i2c-pullup → place_pullup, crystal-caps →
place_crystal); the rest emit place_component ops.akcli view calc — local web UI (localhost) with SVG illustrations,
pinned/recent lists and shareable URLs, for humans reviewing your numbers.Before placing a passive in an op-list (akcli draw/plan), compute it
(vdivider-design, led, regulator-design, ...) and use the
*_standard E-series value as the component's value field — never the
ideal number.
During schematic review, check suspicious values: a resistor that
eseries cannot match within ~1 % on E96 is likely a typo or a
special-order part — flag it.
Manufacturability: compare trackwidth/clearance results against the
fab's minimums (see the akcli-jlcpcb-capabilities skill) and state both numbers
in the report.
Cite the source in any human-facing recommendation — the reference
field is part of the answer, copy it.
Calculator inputs come from the datasheet, not folklore. Pull the PDF
first (akcli jlc datasheet <C-number> --fetch, then read it): LED V_F
from the electrical-characteristics table (not "2.0 V"), LDO V_DO into
ldo-headroom, comparator thresholds vs the input common-mode limit,
battery capacity at the actual load current. Prefer table values; read
curves for trends only, and say which table row you used.
Turn the computed target into a sim.json assertion. A calculator gives
you the number you designed for; akcli sim proves the drawn circuit
actually hits it. After computing (say) a divider midpoint or an RC corner,
write the same value as a bound and let libngspice check it:
// vdivider-design said v_out ≈ 1.65 V → assert the built sheet agrees
{"name": "mid", "meas": "MAX v(mid) from=0 to=1m", "approx": "1.65", "tol": "0.02"}
Assertion bounds accept the same engineering notation as calc inputs
(1.65, 25m, 4.7k), so the calculator's result drops in verbatim — no
unit juggling. This closes the loop: calc = intended value, sim = measured
value, and a mismatch is a non-zero exit. See the akcli-schematic-authoring skill
and docs/sim.md.
A diode with no SPICE model? Fit one from the same datasheet row. When
akcli sim reports a diode unmodeled, take the forward-voltage table row you
already read (step 5) and run akcli sim fit-diode --point 0.37@20m --n-prior 1.05
to get a .model card — then --apply <sch> --designator D1 --write stamps
Sim.Device/Sim.Params onto the part so the next sim run resolves it. This
is the datasheet → model leg that complements calc → sim; see the
akcli-parts-sourcing skill for pulling the PDF and docs/sim.md#akcli-sim-fit-diode--datasheet--spice-model.
microstrip/stripline) are closed-form
estimates (zero trace thickness); for production impedance control defer to
the fab's field solver and say so.fusing, battery, and battery-life are explicitly advisory estimates
— never size protection or promise runtime from them without margin.regulator with vref_min/max, tol) is a
full corner enumeration; quote min/max, not just typ.Numerical behavior is cross-checked in the test suite against KiCad's
pcb_calculator (independent implementation, no code shared) and against
published datasheet/handbook values — see tests/test_calc.py.
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-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