kicad-schematic

Generate ERC-clean KiCad 8/9 schematics from symbol libraries.

1|1|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/kenchangh/kicad-schematic --skill kicad-schematic
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kicad-schematic
Source: https://github.com/kenchangh/kicad-schematic/tree/main
Command: npx skills add https://github.com/kenchangh/kicad-schematic --skill kicad-schematic

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

KiCad schematic design often suffers from pin-position guesswork and lengthy ERC iteration cycles. This skill automates end-to-end schematic generation, validation, and repair for KiCad 8/9 by deriving exact pin coordinates from symbol libraries and executing an ERC-driven workflow.

Core Features & Use Cases

  • Read KiCad symbol libraries (.kicad_sym) to obtain precise pin positions and eliminate manual guessing.
  • Generate .kicad_sch files using Python scripts and the SchematicBuilder helper to ensure deterministic pin-to-net connectivity.
  • Run ERC validation via kicad-cli sch erc --format json, parse errors, and automatically fix generator scripts with up to five iterations.
  • Support KiCad 8 to KiCad 9 migrations and pin-subsymbol naming consistency with embedded vs library symbols.

Quick Start

Describe the circuit you want and the skill will generate a KiCad 8/9 schematic, run ERC, and iteratively fix issues until a clean result.

Frequently Asked Questions about kicad-schematic

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate KiCad schematic generation from a circuit description?

Automating KiCad schematic generation involves reading .kicad_sym symbol libraries to compute exact pin positions, then using a Python-based SchematicBuilder to write the .kicad_sch file. This eliminates manual pin-position guesswork and ensures deterministic connectivity.

Can I automatically fix ERC errors in KiCad schematics?

Yes, ERC errors can be automatically fixed by running kicad-cli sch erc in JSON format, parsing the output for violations, and iteratively updating the generator scripts. This validation and repair cycle repeats up to five iterations until the schematic is fully ERC-clean.

What is the best way to migrate schematics between KiCad 8 and KiCad 9?

Migrating schematics between KiCad 8 and 9 is handled by regenerating the .kicad_sch files while maintaining pin-subsymbol naming consistency. The process resolves embedded versus library symbol differences to ensure version compatibility and a clean ERC validation result.

Does kicad-cli sch erc support JSON output for programmatic error parsing?

Yes, kicad-cli sch erc supports the --format json flag for outputting structured error data. This allows automated tools to parse ERC violations directly and programmatically apply fixes to the schematic generator scripts during iterative validation cycles.

Why do my generated KiCad schematics have incorrect pin-to-net connectivity?

Incorrect pin-to-net connectivity usually stems from guessing pin coordinates instead of deriving them from the source. By reading .kicad_sym symbol libraries to obtain exact pin positions and using SchematicBuilder, the generated .kicad_sch files achieve deterministic and accurate net connections.