Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add diodeinc/pcb --skill spice-simgit clone --depth 1 https://github.com/diodeinc/pcbWrote 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.
[](https://agentmods.dev/skills/diodeinc/pcb/spice-sim)<a href="https://agentmods.dev/skills/diodeinc/pcb/spice-sim"><img src="https://agentmods.dev/badge/skills/diodeinc/pcb/spice-sim/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.
<a href="https://agentmods.dev/skills/diodeinc/pcb/spice-sim"><img src="https://agentmods.dev/badge/skills/diodeinc/pcb/spice-sim.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Socket pass
- Snyk pass
- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00022 | $0.00892 |
| Opus 5.5 | $0.00009 | $0.00357 |
| Sonnet 5.5 | $0.00004 | $0.00178 |
| Haiku 4.5 | $0.00002 | $0.00089 |
Grade A, and why
spice-sim scanned grade A with 0 findings 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 22d ago.
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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Spice Simulation
Use a focused testbench such as <package>/testbench/test_<scenario>.zen for one behavior: startup, enable, a protection threshold, or current limit.
Reuse an existing bench when it covers the request.
Run it with pcb sim -v <file>.zen; a separate dummy simulation is only useful when diagnosing setup problems.
pcb sim runs the ngspice executable in batch mode in the testbench's directory and waits for it to finish; it sets no time limit.
Without -v, a successful run prints only that it passed.
Model and testbench
Every component that is not DNP needs a SPICE model.
The stdlib generics, such as resistors, capacitors, inductors, ferrite beads, crystals, diodes, LEDs, and TVS diodes, have their own.
A leaf component needs spice_model=SpiceModel(...).
Obtain a vendor model or, when appropriate, use a behavioral model with explicit limitations.
Match nets to the subcircuit's declared terminal order, and pass every PARAMS: entry in args, because defaults are not applied:
Component(
name="MyPart",
symbol=Symbol(library="MyPart.kicad_sym"),
footprint=File("MyPart.kicad_mod"),
part=Part(mpn="MYPART-1", manufacturer="Vendor"),
pins={"VIN": VIN, "VOUT": VOUT, "GND": GND},
spice_model=SpiceModel(
"MyPart.lib",
"MyPart_SUBCKT",
nets=[VIN, VOUT, GND],
args={},
),
)
The model text goes into the netlist, so a .include in the model file resolves from the testbench's directory.
The .subckt line must list all its terminals on one line; terminals on + continuation lines are not counted.
For a PSpice model, put set ngbehavior=psa in a .spiceinit file beside the testbench; for an LTspice model, set ngbehavior=ltpsa.
Without it, PSpice expressions such as VALUE={LIMIT(...)} give wrong results without an error.
Verilog-A and encrypted models do not run.
Instantiate the module under test and needed loads/passives in Zener.
Put sources, waveforms, analysis, and plot commands in the raw ngspice setup string of a top-level Simulation:
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.
- 22d ago Changed 5acf4e9fd6d3
- 2mo ago Changed · +21 lines d6a2dfde9516
- 3mo ago Changed · -89 lines · -4 tokens per session 5cf04c71a426
- 3mo ago First seen · 147 lines · 26 tokens per session scan A fa89c0870962
spice-sim is a skill published in the GitHub repository diodeinc/pcb (540 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 892 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
spice-sim compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| spice-simdiodeinc/pcb | Skill | 540 | today | MIT | A | 22 | Claude Code, Codex |
| neuroskill-bciNousResearch/hermes-agent | Skill | 269k | today | MIT | A | 18 | Claude Code, Codex |
| ruview-applicationsruvnet/RuView | Skill | 106k | today | MIT | A | 79 | Claude Code |
| lab-hardware-cadK-Dense-AI/scientific-agent-skills | Skill | 60k | 6d ago | MIT | A | 108 | Claude Code |
| pylabrobotK-Dense-AI/scientific-agent-skills | Skill | 60k | 6d ago | MIT | A | 49 | Claude Code |
| pybammK-Dense-AI/scientific-agent-skills | Skill | 60k | 6d ago | MIT | A | 70 | Claude Code, Codex |
| calibrate-roomruvnet/RuView | Skill | 106k | today | MIT | A | 41 | Claude Code |