ltspice

ltspice is a skill for Claude Code, Codex from ProfYangShengXu/nuedc-skills. It costs 62 tokens per session (4,053 once invoked), scanned A, original, MIT.

A guide to LTspice, a free circuit simulator that models electronic circuits and displays their behavior as waveforms.

In plain words
What is it for?
Use it to create SPICE netlists, run transient, AC, DC, and FFT simulations, inspect waveforms, and automate supported batch simulations.
Why use it?
It helps turn a circuit design into simulations and measurements before building or testing the physical hardware.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it to create SPICE netlists, run transient, AC, DC, and FFT simulations, inspect waveforms, and automate supported batch simulations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/profyangshengxu/nuedc-skills/ltspice
Install

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.

Any agent
npx skills add ProfYangShengXu/nuedc-skills --skill ltspice
Clone the repo
git clone --depth 1 https://github.com/ProfYangShengXu/nuedc-skills

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 ltspice

README.md
[![agentmods](https://agentmods.dev/badge/skills/profyangshengxu/nuedc-skills/ltspice/github.svg)](https://agentmods.dev/skills/profyangshengxu/nuedc-skills/ltspice)
Your own site
<a href="https://agentmods.dev/skills/profyangshengxu/nuedc-skills/ltspice"><img src="https://agentmods.dev/badge/skills/profyangshengxu/nuedc-skills/ltspice/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 ltspice

Your own site · 80×15
<a href="https://agentmods.dev/skills/profyangshengxu/nuedc-skills/ltspice"><img src="https://agentmods.dev/badge/skills/profyangshengxu/nuedc-skills/ltspice.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,053 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.00062 $0.04053
Opus 5 $0.00031 $0.02027
Sonnet 5 $0.00012 $0.00811
Haiku 4.5 $0.00006 $0.00405

Measured 11d ago against content hash 3d0228095cb7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

ltspice 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 11d 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.

.reasonix/skills/ltspice/SKILL.md · 439 lines

How it starts

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

LTspice 免费电路仿真全能技能

LTspice 26.x — ADI 官方免费 SPICE 仿真器,60MB 免注册,电赛首选 原理图 → 瞬态/AC/DC/FFT → 波形查看 → 网表导出


📦 一、下载与安装

1.1 下载

官方: https://www.analog.com/en/design-center/design-tools-and-calculators/ltspice-simulator.html
大小: ~60 MB (极小!)
平台: Windows / macOS (原生 ARM)

1.2 安装

:: Windows — 静默安装
LTspice64.msi /quiet /norestart

:: 默认安装到:
:: %LOCALAPPDATA%\Programs\ADI\LTspice\LTspice.exe

1.3 验证安装

:: 检查
dir "%LOCALAPPDATA%\Programs\ADI\LTspice\LTspice.exe"

:: 添加到 PATH(可选)
set PATH=%LOCALAPPDATA%\Programs\ADI\LTspice;%PATH%

🛠 二、CLI 命令速查

命令 说明
LTspice.exe -b circuit.asc 批处理模式 — 命令行运行仿真,生成 .raw 文件
LTspice.exe -Run circuit.asc 启动 GUI 并运行仿真
LTspice.exe -netlist circuit.asc 仅生成 SPICE 网表 (.net),不仿真
LTspice.exe -FastAccess circuit.asc 快速启动(跳过初始化)
LTspice.exe -wine Linux/macOS 通过 Wine 运行提示

2.1 批处理自动化

:: run_sim.bat — 一键 LTspice 批处理仿真
:: 注意: -b 批处理模式需要实体 Windows 桌面环境,服务器/容器环境不可用
@echo off
set LT="%LOCALAPPDATA%\Programs\ADI\LTspice\LTspice.exe"

echo [1/2] Running simulation...
%LT% -b buck_converter.cir
if errorlevel 1 goto :error

echo [2/2] Done! Results in buck_converter.raw
echo To view: drag buck_converter.raw onto LTspice.exe
goto :end

:error
echo [ERROR] Simulation failed! Check .log file.
exit /b 1
:end

⚠️ LTspice 24+ 批处理模式 -b 需要实体 Windows 桌面。在 CI/服务器环境中改用 LTspice XVII(旧版)或 ngspice。


📐 三、SPICE 网表快速上手

3.1 最小网表模板

* Example: RC low-pass filter
V1 Vin 0 SINE(0 1 1k)
R1 Vin Vout 1k
C1 Vout 0 100n
.tran 5m
.end

3.2 电赛常用电路网表

3.2.1 Buck 降压 12V→5V
* Buck Converter 12V -> 5V @ 2A, 100kHz
* Auto-generated by ltspice skill

VIN 1 0 DC 12V

* PWM Switch (simplified voltage-controlled switch model)
S1 1 2 SW 0 MySwitch
.model MySwitch SW(Ron=0.1 Roff=10Meg Vt=6 Vh=-0.1)
Vpwm SW 0 PULSE(0 12 0 1n 1n 4.2u 10u)

* Catch diode
D1 0 2 MBR745
.model MBR745 D(Is=1e-8 Rs=0.05 Cjo=200p)

* L-C Filter
L1 2 3 100u
C1 3 0 220u IC=0
R_ESR 3 4 0.05
C2 4 0 10u

* Load
Rload 4 0 2.5

* Simulation
.tran 0 5m 4.5m 0.1u
.meas TRAN Vout_avg AVG V(4) FROM 4m TO 5m
.meas TRAN Vripple PP V(4) FROM 4m TO 5m

.end

Read the full file on GitHub · 439 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. 11d ago First seen · 439 lines · 62 tokens per session scan A 3d0228095cb7

Subscribe to this mod's changes

ltspice is a skill published in the GitHub repository ProfYangShengXu/nuedc-skills (2 stars, last pushed 29d ago), licensed MIT. It adds 62 tokens to every session and 4,053 once invoked, about $0.0003 per session on Opus 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-31.

Related

Other skills, from other repositories

circuit-simulator

(oh-my-embedded) Circuit simulation with ngspice. Power supply design, filter analysis, impedance matching, transient analysis. Requires ngspice installed.

captainluzik/oh-my-embedded · 37 tokens

spice

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…

aklofas/kicad-happy · 177 tokens

hwcontract

Use when firmware has timing or level requirements you can measure against a spec: pulse widths on a WS2812/NeoPixel strip, DShot ESC, servo, I2C, NEC IR, DS18B20/DHT sensor, A4988/DRV8825 stepper, PWM fan, HC-SR04, when a board prints a boot log over serial (ESP32, ESP8266, Zephyr, MicroPython, u-boot, Raspberry Pi…

MohibShaikh/hwcontract · 149 tokens

ek-omniprobe-ai

A local bridge for reading serial-port text and standard samples, then analysing logs and signal waveforms and adjusting device settings safely. Serial ports are connections commonly used to communicate with embedded devices.

EmbeddedKitOrg/EK-OmniProbe · 83 tokens

embedded-engineer

(oh-my-embedded) Senior embedded systems engineer. ESP32/STM32, FreeRTOS, RF design, power management, peripheral interfaces. Use for any embedded/firmware/electronics/hardware question.

captainluzik/oh-my-embedded · 48 tokens

component-sourcer

(oh-my-embedded) Electronic component search, BOM optimization, alternative parts finder. Searches JLCPCB/LCSC, Nexar/Octopart catalogs.

captainluzik/oh-my-embedded · 37 tokens