spice

spice is a skill for Claude Code, Codex from biosshot/kicad-copilot. It costs 40 tokens per session (1,144 once invoked), scanned B, a copy of spice, MIT.

A workflow for writing and running ngspice circuit simulations from circuit descriptions or netlists. ngspice is software that calculates how an electronic circuit behaves under specified inputs and conditions.

In plain words
What is it for?
Use it to simulate circuits, search and copy SPICE models, obtain numerical results, and create PNG plots of the results.
Why use it?
It lets engineers test circuit behaviour numerically before relying on a physical prototype. It also helps locate and verify device models used in the simulation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node scripts/copy-model.mjs "<modelId from search>" --out ./simulation/models.

Good fit Use it to simulate circuits, search and copy SPICE models, obtain numerical results, and create PNG plots of the results.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/biosshot/kicad-copilot
agentmods
npx agentmods add skills/biosshot/kicad-copilot/spice

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spice

README.md
[![agentmods](https://agentmods.dev/badge/skills/biosshot/kicad-copilot/spice/github.svg)](https://agentmods.dev/skills/biosshot/kicad-copilot/spice)
Your own site
<a href="https://agentmods.dev/skills/biosshot/kicad-copilot/spice"><img src="https://agentmods.dev/badge/skills/biosshot/kicad-copilot/spice/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spice

Your own site · 80×15
<a href="https://agentmods.dev/skills/biosshot/kicad-copilot/spice"><img src="https://agentmods.dev/badge/skills/biosshot/kicad-copilot/spice.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,144 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.01144
Opus 5.5 $0.00016 $0.00458
Sonnet 5.5 $0.00008 $0.00229
Haiku 4.5 $0.00004 $0.00114

Measured 5d ago against content hash b4b1e1bd5a87, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

spice scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

The scan reads SKILL.md. This mod also ships 9 executable files (examples/custom-plot.mjs, scripts/common.mjs, scripts/copy-model.mjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Strips warnings and disclaimersmediumAnti-refusal

Omitting safety caveats hides risk from the user and is a common jailbreak preamble.

Library `compiled` means load and generic instantiation passed without warnings on ngspice 45.2 with `ltpsa`. It does not guarantee convergence, correct pin assignments, or accuracy for the requested analysis. The runner
Origin

This is a copy

100% identical to spice — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

docs/spice/SKILL.md · 41 lines

How it starts

The opening of the file, as written. The whole thing — 41 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SPICE simulation

This skill is independent of an EDA editor and MCP. Requires Node.js >=20.19. The scripts run directly as JavaScript; no compilation or Python is needed. Resolve script paths relative to this SKILL.md, not the current working directory.

Workflow

  1. Obtain component values and actual net connections from the caller's schematic tools, supplied netlist, or circuit description. State the question being tested, supplies, input stimulus, load, and operating conditions. Detected circuit blocks are optional context, not a restriction on what can be simulated.
  2. Find device models with node scripts/search.mjs "MPN". On first use it prepares two cache files: library.jsonl and index.json with byte offsets. It returns matching models, their text, exact modelId, original sourcePath, matching reasons, and validation scope. sourcePath is an archive identifier, not an existing filesystem path. Use --include-review only when ordinary results are insufficient. Similar names do not establish an equivalent component.
  3. Save the selected model with node scripts/copy-model.mjs "<modelId from search>" --out ./simulation/models. This reads only that JSONL record and writes one .lib, returning its absolute path, model name and .include directive. Existing identical copies are reused; edited files are never overwritten. Read the complete saved model, including any text truncated in search. Establish port order from comments and the .SUBCKT declaration. Internal structure can support an inference but does not establish physical package pin numbers. Record inferred assignments; prefer another clearly documented model if important ports remain uncertain. No external pin-mapping table is required.
  4. Write a standard .cir file with a title on its first line, .include/.lib declarations, sources, .save, analysis directives, and .end. Use .op, .dc, .ac, and .tran as needed. The runner owns .control; do not include a control block. Use separate circuits for repeated parameter cases. Include only selected model files to avoid name collisions.
  5. Run node scripts/simulate.mjs circuit.cir --out results/run-01. Output directory must be new. The runner finds/prepares ngspice, sets ngbehavior=ltpsa before reading the netlist, runs with -n -b, exports ASCII raw/CSV/JSON and creates PNGs through Sharp. Numerical settings belong in .options in the netlist, not CLI flags. Relative includes resolve from each original file's directory and are copied recursively into the result's models/ directory.
  6. Read result.json, measurements in ngspice.log, numerical data, and the PNGs. Check operating points, expected magnitudes, loading, saturation, and timestep/frequency resolution. Successful execution is not proof of model fidelity or correct circuit behavior. Compare important results with an independent calculation or a meaningful known limit.
  7. Report what was simulated, the selected models and assumptions, quantitative results, and material limitations. Keep the complete result directory with the user's research: it contains the rewritten circuit and referenced model snapshots, with original paths and hashes recorded in result.json. External stimulus data files (e.g. file-backed sources) are not bundled; use inline sources or copy such data into the run explicitly.

Read the full file on GitHub · 41 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 41 lines · 40 tokens per session scan B b4b1e1bd5a87

Subscribe to this mod's changes

spice is a skill published in the GitHub repository biosshot/kicad-copilot (37 stars, last pushed 6d ago), licensed MIT. It adds 40 tokens to every session and 1,144 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (strips warnings and disclaimers). It is 100% identical to spice, differing in 0 lines, and is treated as a copy.

Related

spice compared with skills from other repositories

spice next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
spicebiosshot/kicad-copilotSkill376d agoMITB40Claude Code, Codex
kicad-librarymixelpixx/KonnectSkill1.5k29d agoAGPL-3.0A77Claude Code
kicad-pcbmixelpixx/KonnectSkill1.5k29d agoAGPL-3.0A81Claude Code
kicad-reviewmixelpixx/KonnectSkill1.5k29d agoAGPL-3.0A83Claude Code
kicad-schematicmixelpixx/KonnectSkill1.5k29d agoAGPL-3.0A71Claude Code
kicad-manufacturemixelpixx/KonnectSkill1.5k29d agoAGPL-3.0A79Claude Code
konnectmixelpixx/KonnectSkill1.5k29d agoAGPL-3.0A51Claude Code, Codex