A guide for circuit simulation and netlist management in ngspice.

Install

mkdir -p .claude/skills/ngspice && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13444" && unzip -o skill.zip -d .claude/skills/ngspice && rm skill.zip

Installs to .claude/skills/ngspice

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Use when writing or editing ngspice circuit netlists (.cir, .sp, .spice), working with ngspice scripting (.control blocks), or interpreting simulation results. Covers ngspice-specific SPICE syntax, behavioral sources, .control scripting, Monte Carlo via control loops, parameters, XSPICE, .save, .MEAS, convergence, and common gotchas that cause silent errors. Use this skill whenever the user mentions ngspice, or is writing SPICE netlists targeting ngspice rather than LTspice.
479 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Advanced

Key capabilities

  • →Write or edit ngspice circuit netlists
  • →Work with ngspice scripting (.control blocks)
  • →Interpret simulation results
  • →Define component syntax and values with correct suffixes
  • →Configure various simulation directives (tran, ac, dc, op, noise, tf)
  • →Perform measurements using .MEAS syntax

How it works

This skill guides the user in writing ngspice netlists and control scripts, explaining syntax, directives, and common pitfalls. It covers various simulation types and measurement capabilities specific to ngspice.

Inputs & outputs

You give it
ngspice circuit netlist (.cir, .sp, .spice) or .control script
You get back
Simulation results, measurement data, or interpreted circuit behavior

When to use ngspice

  • →Writing ngspice netlists
  • →Running transient simulations
  • →Debugging convergence issues
  • →Creating Monte Carlo loops

About ngspice

This skill assists in writing circuit netlists and managing simulation controls. It explains specific syntax nuances like the importance of unit suffixes (M vs MEG) and helps debug simulation convergence errors.

>

When not to use it

  • →When writing SPICE netlists targeting LTspice instead of ngspice
  • →When a graphical schematic capture tool is preferred over netlist editing
  • →When performing simulations that require features not supported by ngspice

Limitations

  • →M means MILLI, not mega; use MEG for 1e6
  • →Unrecognized suffix letters are silently ignored
  • →.meas does NOT work in batch mode when combined with -r rawfile

How it compares

This skill provides specific guidance for ngspice, highlighting its unique syntax, directives, and behavioral differences from other SPICE simulators like LTspice, which is crucial for accurate simulation results.

Compared to similar skills

ngspice side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
ngspice (this skill)04moReviewAdvanced
senior-devops711moReviewAdvanced
server-management19moNo flagsIntermediate
azure-cloud-services07moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry