/kisi:kisi-si-pi-reviewfrom kisi
Reviews signal and power integrity of KiCad boards using the kisi CLI. Analyzes impedance per net class, high-speed channel compliance (PCIe/USB/DDR), vias, crosstalk, regulator chains, IR drop, PDN impedance, and temperature estimates.
Ships in kisi. 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.
kisi reads the saved .kicad_pcb (and the .kicad_pro next to it for net classes), plus
<board>.kisi.json next to it if present (values with sources, see the skill kisi-prepare). It does
not talk to a running KiCad: make sure the board is saved before running kisi, and run it again
after changes. Every kisi <command> <board> prints JSON.
kisi is one file, kisi.mjs (Node.js ≥ 18; it includes the 2D field solver). Look for it in this order and
reuse it:
$KISI_MJS if set, else ~/.kisi/kisi.mjs.~/.kisi/:
curl -fsSL --create-dirs -o ~/.kisi/kisi.mjs https://github.com/riehlies/kisi/releases/latest/download/kisi.mjs
(PowerShell: Invoke-WebRequest <same URL> -OutFile $HOME\.kisi\kisi.mjs), orgh release download --repo riehlies/kisi --pattern kisi.mjs --dir ~/.kisi --clobber.kisi binary
(cargo install --path crates/kisi-cli) accepts the same commands but has no field solver.Run it as node ~/.kisi/kisi.mjs <command> <board.kicad_pcb> [options] (below written as kisi …).
kisi help lists the commands. The field solver runs for overview, net, check, crosstalk and report:
the first run on a board can take minutes (it prints progress on stderr and stops new solves after
--field-time seconds, default 120); results are cached, so later runs are fast. field_solver
in the output shows the coverage; --formula skips the solver.
kisi reads KiCad 6 to 10: a board file from KiCad 5 or older stops with an error ("This board file is from KiCad 5
or older …") – ask the user to open it in KiCad 6 or newer and save it; there is no workaround.
kisi gaps <board> – if it reports high-priority gaps (no stackup, interfaces without a target),
tell the user that results will be rough and offer to prepare the board first (kisi-prepare).kisi overview <board> – stackup and, per net class with a target impedance, the share of routed
length within ±5 % and the worst nets. Check that the stackup looks plausible (εr, tanδ;
assumed lists values that are KiCad defaults). config says which kisi.json was used.
--tolerance (the option fab stackups & tolerances; also on with a kisi.json tolerances entry or --tol)
gives every impedance the fab tolerance band (z_tol_rss_ohm, z_tol_wc_ohm, z_tol_status: dielectric
thickness, εr, copper, width; RSS and worst case against the window, information only – the default
tolerances are estimates) and the band per class, layer and tolerance; report it ahead of the calculation
accuracy. kisi stackups <board> shows what the fab's templates (a different prepreg) do to
each class; report a class whose band leaves the window or that depends strongly on the template.kisi net <board> <NET> – impedance segments along the path
(layer, length, Z), losses, TDR extremes, vias (antipad, stub resonance, return path), crosstalk.
Options --rise-ps, --roughness smooth|hvlp|standard.kisi interfaces <board> lists the buses and device-to-device lanes (pins,
series parts, terminations, branches, direction guess, profile). Boards with assembly variants (or
forks where all alternative parts are fitted) need a variant: interfaces, check and report
stop with the list – ask the user which one, then use --variant NAME (or "variant" in kisi.json);
variant in the output says which one was analysed, and stubs per lane names unused pads. Check that the end devices and
profiles make sense; kisi profiles shows the available standards. Then kisi check <board>,
with --class CLASS=PROFILE when the assignment is wrong (better: put it into kisi.json).
Only yellow/red rows are printed by default (--all for green too, --nets A,B to restrict).
Crosstalk: kisi crosstalk <board> lists the critical victims (NEXT or FEXT from 1 % of the aggressor
swing, pairs as differential noise with the common-mode noise beside it) and their worst aggressor;
kisi net then shows the aggressors of one net. source: formula values are estimates; broadside
overlaps are counted but not computed.
The first check on a board runs the field solver for all nets with a target (see Getting kisi).kisi power <board> – regulator chain balance (PI_REG/PI_LOAD fields or kisi.json, or
--tree tree.json), IR drop per rail and in the ground return (ground_return rows: max_offset_mv
adds to the drop of the parts' rails), losses (heat per part, copper loss per rail and layer) and
flow (power from the input through the regulators to the loads); --pdn RAIL adds the impedance of one
rail against its target. Losses are power; part heat assumes all drawn power stays in the part.
Per rail vias: the vias with the most current against their current capacity – an IPC-2152 estimate at
ΔT 10 K, via_capacity – and a rail warning for vias over it.
Temperature: kisi thermal <board> – steady-state estimate in still air at 25 °C (--ambient,
--airflow m/s, --vertical, --h): board temperature per layer and hot spots, per part the junction
temperature against Tj max and the case top (parts[], data_source says whether the θ values come from
PI_THERMAL or estimated package defaults), the heat through the vias and under each hot part with
parts_hints where thermal vias look short (guide values), per rail the copper temperature and the IR drop at
that temperature.
Report it as an estimate: heat leaves only through convection and radiation (no heat sinks, mounting,
connectors or enclosure – a device in a closed case runs 20 K or more hotter inside; emulate it with the case
temperature as --ambient and --h for the coupling inside), and Tj with package defaults can be off by tens of
percent of the rise.kisi report <board> writes analysis/kisi.json next to the board, so file-based review
tools (e.g. kicad-happy) and later sessions can reuse the results.kisi export <board> --lane NAME (or --bus NAME) writes SPICE subcircuits with test benches, Touchstone
files (a bus as one N-port with its port map) and a KiCad project (the lane's elements as symbols;
--kicad-style compact for one lane symbol) into analysis/export/<name>;
check_against_kisi in the output says how closely the circuit follows kisi's S-parameters. The benches use
the profile's linear ends; IBIS ends are for the user to add in KiCad.kisi.html
and drops the board files (and kisi.json) into it.field_solver.target_length_coverage_pct says so,
formulas elsewhere (single and coplanar lines within about 2 %, differential pairs and offset
striplines can be off by 5–15 % there; each row's accuracy gives the level and its uncertainty). If the
coverage is low, say so and run the command again (cached results accumulate) or raise --field-time.via_warning on a check row (and via_warnings at the top, also for green rows): a via crosses a
GND/supply plane pair that no via within 3 mm joins or bridges. The default via model then looks
nearly ideal although the plane cavity can resonate; report it, suggest a stitching via or a
decoupling capacitor next to the via, and re-run with --via-cavity --via-returns (experimental)
for an estimate of the effect.model: "4-port"): loss and return loss are Sdd21/Sdd11, and
mode_conversion_db (worst Scd21 up to 1.5 × Nyquist) is information, not judged – a high value (above about
−20 dB) points to intra-pair skew or a stub or via on one line only. Multi-drop lines along one path list every
receiver (receivers); the worst eye counts.connector_ends.<ref>.touchstone.ports), the
eye includes the worst-case crosstalk of the other lanes (crosstalk_peak); the aggressors enter at the
connector without their board traces (conservative).connector_ends (termination when
the connector receives, driver when it sends); lanes from connector to connector (e.g. test coupons) are
judged on the board share only, without an eye. Without
a channel behind the connector (rest_loss_db or a Touchstone file) the eye covers the board share
only (eye_board_share), is information and not judged – say that the rest of the channel is not
included; loss, return loss and skew are judged on the board share.kisi.mjs (field solver) there.estimate or assumption, say so. Regulator
efficiencies flagged efficiency_estimate in kisi power are kisi's default (85 %), not datasheet values.kisi net / kisi check to confirm.kisi report first; its JSON sits in the same
analysis/ folder as kicad-happy's outputs.What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
npx claudepluginhub riehlies/kisi --plugin kisiOther plugins' skills for the same job