create-schematic

A command that creates a KiCad schematic, an electronic circuit diagram, from a plain-language description. It selects components, sets their values, connects their pins, and saves the result as a KiCad schematic file.

In plain words
What is it for?
Use it for circuits such as voltage dividers, power supplies, LED circuits, or development-board designs, including their component values and connections.
Why use it?
It removes the manual work of translating a written circuit idea into placed components and connected wires.

Command for Claude Code

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.

agentmods
npx agentmods add commands/circuit-synth/kicad-sch-api/create-schematic
Clone the repo
git clone --depth 1 https://github.com/circuit-synth/kicad-sch-api

Made for: Claude Code.

Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,274 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00012 $0.01274
Opus 5 $0.00006 $0.00637
Sonnet 5 $0.00002 $0.00255
Haiku 4.5 $0.00001 $0.00127

Measured 2d ago against content hash 0e60e4258f1e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

create-schematic 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 2d 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.

.claude/commands/user/create-schematic.md · 195 lines

How it starts

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

Create Schematic Command

Generate a complete KiCAD schematic file from a natural language description using kicad-sch-api.

Usage

/create-schematic <description>

Examples

# Simple circuit
/create-schematic "voltage divider with two 10k resistors"

# Power supply
/create-schematic "3.3V voltage regulator circuit with AMS1117 and bypass capacitors"

# LED circuit
/create-schematic "LED circuit with 330 ohm resistor and 5V power supply"

# More complex
/create-schematic "ESP32-C3 dev board with USB-C, voltage regulator, and reset button"

What This Does

This command:

  1. Analyzes your circuit description
  2. Selects appropriate components from KiCAD libraries
  3. Creates schematic with proper component placement
  4. Adds pin-to-pin wiring connections
  5. Sets component properties (values, footprints, etc.)
  6. Saves to a .kicad_sch file in current directory
  7. Provides summary of components used

Implementation

When you provide a circuit description, I will:

1. Parse Requirements

  • Identify required components (resistors, capacitors, ICs, etc.)
  • Determine component values from description
  • Identify connections and topology

2. Select Components

# Select appropriate KiCAD library components
# Device:R for resistors
# Device:C for capacitors
# Device:LED for LEDs
# Regulator_Linear:AMS1117-3.3 for voltage regulators
# RF_Module:ESP32-C3-MINI-1 for ESP32
# etc.

3. Generate Schematic

import kicad_sch_api as ksa

# Create schematic with descriptive title
sch = ksa.create_schematic("Circuit Name from Description")

# Add components with proper spacing
# Position components logically (left to right: input -> processing -> output)
# Add appropriate footprints for each component

# Wire components together
# Use pin-to-pin wiring for automatic routing
# Add power symbols and ground connections

# Add labels for important nets
# Set component properties (tolerance, power rating, etc.)

# Save to file
sch.save("circuit_name.kicad_sch")

Read the full file on GitHub · 195 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. 2d ago First seen · 195 lines · 12 tokens per session scan A 0e60e4258f1e

Subscribe to this mod's changes

create-schematic is a command published in the GitHub repository circuit-synth/kicad-sch-api (51 stars, last pushed 9mo ago), licensed MIT. It adds 12 tokens to every session and 1,274 once invoked, about $0.0001 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-30.