kicad-sch-api: Command for Claude Code

.claude/commands/user/create-schematic.md

create-schematic is a command for Claude Code from circuit-synth/kicad-sch-api. It costs 12 tokens per session (1,274 once invoked), scanned A, original, MIT.

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

Written for Claude Code: installed under .claude/.

This is circuit-synth/kicad-sch-api's own configuration. It tells Claude Code how to work on kicad-sch-api itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything kicad-sch-api configures →

Reuse

Borrowing it

Nothing to install: this file belongs to circuit-synth/kicad-sch-api. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/circuit-synth/kicad-sch-api/main/.claude/commands/user/create-schematic.md
Clone the repo
git clone --depth 1 https://github.com/circuit-synth/kicad-sch-api

Made for: Claude Code.

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 create-schematic

README.md
[![agentmods](https://agentmods.dev/badge/commands/circuit-synth/kicad-sch-api/create-schematic/github.svg)](https://agentmods.dev/commands/circuit-synth/kicad-sch-api/create-schematic)
Your own site
<a href="https://agentmods.dev/commands/circuit-synth/kicad-sch-api/create-schematic"><img src="https://agentmods.dev/badge/commands/circuit-synth/kicad-sch-api/create-schematic/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 create-schematic

Your own site · 80×15
<a href="https://agentmods.dev/commands/circuit-synth/kicad-sch-api/create-schematic"><img src="https://agentmods.dev/badge/commands/circuit-synth/kicad-sch-api/create-schematic.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00012 $0.01274
Opus 5.5 $0.00005 $0.00510
Sonnet 5.5 $0.00002 $0.00255
Haiku 4.5 $0.00001 $0.00127

Measured 2mo ago against content hash 0e60e4258f1e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (57 stars, last pushed 10mo ago), licensed MIT. It adds 12 tokens to every session and 1,274 once invoked, about $0.0000 per session on Opus 5.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.