Agent skill · Audited from source
Spice
skill · aklofas/kicad-happyMIT licenceAudited 15 Oct 2026 · source 4790730940af
Is it safe? With care — CAUTION, grade B (86/100). We read this skill's source at commit 4790730940af and observed filesystem and network access and no hard-coded secrets. The audit raised 8 findings, 0 critical or high. What it does: Run automatic SPICE simulations on subcircuits detected from KiCad schematic analysis — validates filter frequencies, divider ratios, opamp gains, LC resonance, and crystal load capacitance. Supports ngspice, LTspice,…
Cite
Cite this page
ModelsAtlas. “Spice (aklofas/kicad-happy)”. Retrieved 15 Oct 2026. https://modelsatlas.com/skills/aklofas/spice
Trust audit
Audit 0.4.1 · source read 15 Oct 2026
CAUTION means the audit found things worth knowing before you trust this skill. Grade B is shared by 13,985 of 14,816 audited skills.
What the source does
- FilesystemDeclared1 observation
- NetworkDeclared5 observations
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | WARN | 5 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | WARN | 3 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (8)
MEDIUMInventory / provenanceinv.symlink · .agents/skills/bom
.agents/skills/bom
- Why
- link not followed
- Fix
- —
MEDIUMInventory / provenanceinv.symlink · .agents/skills/datasheets
.agents/skills/datasheets
- Why
- link not followed
- Fix
- —
MEDIUMInventory / provenanceinv.symlink · .agents/skills/digikey
.agents/skills/digikey
- Why
- link not followed
- Fix
- —
MEDIUMInventory / provenanceinv.symlink · .agents/skills/element14
.agents/skills/element14
- Why
- link not followed
- Fix
- —
MEDIUMInventory / provenanceinv.symlink · .agents/skills/emc
.agents/skills/emc
- Why
- link not followed
- Fix
- —
MEDIUMObfuscation / stealthobf.homoglyph · scripts/extract_parasitics.py:225
if total_trace_r > 0.001: # > 1mΩ
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMObfuscation / stealthobf.homoglyph · scripts/spice_spec_fetcher.py:130
m = re.search(r'([\d.]+)\s*(TΩ|GΩ|MΩ|kΩ|Ω|Tohm|Gohm|Mohm|kohm|ohm)', text, re.IGNORECASE)
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMObfuscation / stealthobf.homoglyph · scripts/spice_templates.py:140
note = f"* Parasitic: {length:.1f}mm trace → {r_total*1000:.1f}mΩ"- Why
- No further detail recorded for this rule.
- Fix
- —
Audit 0.4.1 · source sha 4790730940af · 15 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisheraklofas GitHub userOwner of the repository this skill is read from
- Source folderaklofas/kicad-happy/skills/spiceThe exact folder we audited
- LicenceMITAs the repository states it
- Commit pinned for this verdict4790730940afA new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Run automatic SPICE simulations on subcircuits detected from KiCad schematic analysis — validates filter frequencies, divider ratios, opamp gains, LC resonance, and crystal load capacitance. Supports ngspice, LTspice,…
--- name: spice description: >- Run automatic SPICE simulations on subcircuits detected from KiCad schematic analysis — validates filter frequencies, divider ratios, opamp gains, LC resonance, and crystal load capacitance. Supports ngspice, LTspice, and Xyce (auto-detected). Generates testbenches, runs batch mode, produces structured pass/warn/fail report. Use when the user asks to simulate, verify, or validate any analog subcircuit — RC filters, LC filters, voltage dividers, opamp circuits, crystal oscillators. Also for "simulate my circuit", "run spice", "verify with simulation", "check my filter cutoff", "does this divider give the right voltage", "what's the bandwidth of this opamp stage". Consider suggesting simulation during design reviews when the schematic analyzer reports simulatable subcircuits and a SPICE simulator is available. --- # SPICE Simulation Skill Automatically generates and runs SPICE testbenches for circuit subcircuits detected by the `kicad` skill's schematic analyzer. Supports ngspice, LTspice, and Xyce (auto-detected). Validates calculated values (filter frequencies, divider ratios, opamp gains) against actual simulation results and produces a structured report. This skill inverts the typical simulation workflow: instead of requiring users to create simulation sources and configure analysis (which ~2.5% of KiCad users do), it generates targeted testbenches automatically from the analyzer's subcircuit detections. ## Related Skills | Skill | Purpose | |-------|---------| | `kicad` | Schematic/PCB analysis — produces the analyzer JSON this skill consumes | | `digikey` | Parametric specs for behavioral models, datasheet downloads | | `mouser` | Parametric specs (secondary source), datasheet downloads | | `lcsc` | Parametric specs (no auth needed), datasheet downloads | | `element14` | Parametric specs (international), datasheet downloads | | `emc` | EMC pre-compliance — uses this skill's simulator infrastructure for SPICE-enhanced PDN impedance and EMI filter analysis | **Handoff guidance:** The `kicad` skill's `analyze_schematic.py` produces the analysis JSON with subcircuit detections in the flat `findings[]` array (filtered by `detector` field). This skill reads that JSON, generates SPICE testbenches for simulatable subcircuits, runs the detected simulator (ngspice/LTspice/Xyce), and produces a structured verification report. Always run the schematic analyzer first. During a design review, run simulation after the analyzer and before writing the final report — simulation results should appear as a verification section in the report. The `emc` skill reuses this skill's simulator backend for SPICE-enhanced PDN impedance and EMI filter insertion loss checks — when ngspice is available, the EMC skill's `--spice-enhanced` flag activates these checks automatically. ## Requirements - **A SPICE simulator** — one of the following (auto-detected, first available wins): - **ngspice** — `sudo apt install ngspice` (Linux) / `brew install ngspice` (macOS) / ngspice.sourceforge.io (Windows). Most common choice. - **LTspice** — free from analog.com/ltspice. Popular on Windows, works via wine on Linux. - **Xyce** — from xyce.sandia.gov. Parallel SPICE for large circuits. - Override with `--simulator ngspice|ltspice|xyce` or `SPICE_SIMULATOR` env var. - **Python 3.10+** — stdlib only, no pip dependencies - **Schematic analyzer JSON** — from `analyze_schematic.py --output` If no simulator is installed, skip simulation gracefully and note it in the report. Do not treat a missing simulator as an error — it's an optional enhancement. ## Workflow ### Step 1: Run the schematic analyzer ```bash python3 <kicad-skill-path>/scripts/analyze_schematic.py design.kicad_sch --analysis-dir analysis/ ``` ### Step 2: Run SPICE simulations Pass `--analysis-dir analysis/` — the script auto-resolves `schematic.json` from the manifest's current run, writes `spice.json` into the same run folder, and parks intermediate `.cir` / `.raw` files at `<run>/spice_work/` by default. ```bash # Recommended: auto-resolve schematic + write spice.json into the current run python3 <skill-path>/scripts/simulate_subcircuits.py --analysis-dir analysis/ # Explicit form — positional or --schematic path python3 <skill-path>/scripts/simulate_subcircuits.py analysis.json --output sim_report.json # Simulate specific types only python3 <skill-path>/scripts/simulate_subcircuits.py --analysis-dir analysis/ --types rc_filters,voltage_dividers # Keep simulation files for debugging (default: <run>/spice_work/ when --analysis-dir is set, else a temp dir) python3 <skill-path>/scripts/simulate_subcircuits.py --analysis-dir analysis/ --workdir ./spice_runs # Increase timeout for complex circuits (default: 5s per subcircuit) python3 <skill-path>/scripts/simulate_subcircuits.py --analysis-dir analysis/ --timeout 10 # Omit file paths from output (cleaner for reports) python3 <skill-path>/scripts/simulate_subcircuits.py --analysis-dir analysis/ --compact ``` ### Step 2b (optional): PCB parasitic-aware simulation When both schematic and PCB exist, run parasitic-annotated simulation for more accurate results on analog circuits: ```bash # Analyze PCB with full trace segment detail python3 <kicad-skill-path>/scripts/analyze_pcb.py design.kicad_pcb --full --output pcb.json # Extract parasitic R/L/C from PCB geometry python3 <skill-path>/scripts/extract_parasitics.py pcb.json --output parasitics.json # Run simulation with PCB parasitics injected into testbenches python3 <skill-path>/scripts/simulate_subcircuits.py analysis.json --parasitics parasitics.json --output sim_report.json ``` With `--parasitics`, testbenches include trace resistance and via inductance between components. The report shows the parasitic impact — e.g., "48mΩ trace resistance shifts RC filter fc down 0.3%." **When to use parasitic simulation:** Consider it when the design has high-impedance feedback networks (>100kΩ),
Excerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 4790730
git clone https://github.com/aklofas/kicad-happy git -C kicad-happy checkout 4790730940af
The author documents no install command, so this uses the repository directly. Our verdict covers commit 4790730940af only.
Works in
The author has not said which agents this skill supports, and we have not tested it in any.
Audit history
Every audit, every source change
- !CAUTION B 86 / 100
first audit · source
4790730940af
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/aklofas/spice/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
aklofas/kicad-happy
BOM (Bill of Materials) management for electronics projects — the workflow skill that coordinates DigiKey, Mouser, LCSC, element14, JLCPCB, PCBWay, and KiCad skills around a unified BOM lifecycle. Create, update, and…
aklofas/kicad-happy
Extract structured specifications from electronic component datasheet PDFs — pinouts, electrical characteristics, peripherals, topology, and features. Cache extractions per project for consumption by schematic and PCB…
aklofas/kicad-happy
JLCPCB PCB fabrication and assembly — BOM/CPL generation, basic vs extended parts, assembly constraints, design rules, ordering workflow. Use with KiCad for JLCPCB manufacturing. Use this skill when the user mentions…
aklofas/kicad-happy
PCBWay PCB fabrication and assembly — turnkey/consigned assembly, design rules, ordering workflow. Alternative to JLCPCB for manufacturing. Use with KiCad. Use this skill when the user mentions PCBWay, needs turnkey…
aklofas/kicad-happy
Search Newark, Farnell, and element14 for electronic components — find parts by MPN or distributor part number, check pricing/stock, download datasheets, analyze specifications. One unified API covers all three…
aklofas/kicad-happy
AI coding agent skills for KiCad electronics design. Works with Claude Code and OpenAI Codex. Analyze schematics, review PCB layouts, EMC pre-compliance, SPICE simulation, download datasheets, source components, and…
Add this badge to your README
[](https://modelsatlas.com/skills/aklofas/spice/)
<a href="https://modelsatlas.com/skills/aklofas/spice/"><img src="https://modelsatlas.com/skills/aklofas/spice/badge.svg" alt="ModelsAtlas: CAUTION B"></a>
Questions about Spice
What does the Spice skill do?
Is Spice safe to install?
What can Spice access on my machine?
How current is this page?
Sources
- github.com/aklofas/kicad-happy/tree/main/skills/spice — the audited source at commit 4790730940af and every finding aboveObserved · 15 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Spice skill do?
- Is Spice safe to install?
- What can Spice access on my machine?