punkfab

Circuit Skills — Design skill for Claude Code

Design community

Claude Code skills for code-driven electronics: circuit-sim (ngspice/Falstad) + pcb-layout (tscircuit→KiCad, IPC routing, fast place→route loop).

How to install Circuit Skills

This entry records only its repository, not the path inside it, so there is no exact command to give. Open punkfab/circuit-skills and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Circuit Skills does

Claude Code skills for code-driven electronics: circuit-sim (ngspice/Falstad) + pcb-layout (tscircuit→KiCad, IPC routing, fast place→route loop).

Alternatives in Design

  • Dna — Place a design in the measured design space — nearest systems, per-axis percentiles, outliers 3.6k ★
  • Deepclaude — Use Claude Code's autonomous agent loop with DeepSeek V4 Pro, OpenRouter, or any Anthropic-compatible backend 2.3k ★
  • Scroll Craft — Claude Code skill for premium scroll-driven websites 1k ★

README

circuit-skills

[Claude Code](https://claude.com/claude-code) skills for designing real electronics — from topology to a fabbable board to a hero render — the code-driven, reproducible way. Skills that compose across the flow: **simulate → lay out → fit the enclosure → render.**

`circuit-sim` — simulate before you commit

Find the topology and pick parts with evidence, not guesses. Two passes from **one parametric ngspice deck** (the source of truth): Falstad/CircuitJS1 for interactive intuition (its netlist is *generated* from the deck so the toy and the rigorous sim never drift), then ngspice for exact transient/AC, parametric sweeps, and data-driven part selection. For power converters, drivers, resonant tanks, filters, oscillators, analog front-ends.

`pcb-layout` — generate placement in code, finish routing in KiCad

The north star: **routing difficulty is set at placement time, and every autorouter is immature** — so you design so routing is trivial and hand-finish the tail. tscircuit (React/TSX) generates a placed board; KiCad routes. What's encoded here:

  • The repeatable place→route loop in one command (scripts/route.sh): export placement → reconcile nets → keepout the board holes → fast Freerouting (capped, never spins) → inject the route into KiCad over the IPC API → drc_check.py triage. Iterate on placement, not the router.
  • Automate KiCad headless via the IPC API (kipy) — add ground/power planes, inject a Freerouting SES, refill zones, save — all without GUI menus (the deprecated SWIG ExportSpecctraDSN is broken).
  • Net reconciliation (merge_nets.py) — collapse the per-subcircuit net fragments tscircuit emits, so the modular flow gets a flat netlist and no false shorts.
  • Auto-keepouts (add_cutout_keepouts.py) — detect interior board holes (windows, cutouts, screw holes) and stop the router crossing them.
  • Layer-stackup strategy — 2-layer + pour for simple boards; 4-layer with real GND/PWR p