kicad-schematic

Generate, validate, and fix KiCad 8/9 schematic files with Python and kicad-cli.

Updated Jul 29, 2025
One-click install
npx skills add https://github.com/dieguscl/dotfiles --skill kicad-schematic-dieguscl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kicad-schematic
Source: https://github.com/dieguscl/dotfiles/tree/main/claude/skills/kicad-schematic
Command: npx skills add https://github.com/dieguscl/dotfiles --skill kicad-schematic-dieguscl

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the creation, validation, and repair of KiCad schematic files, preventing common errors like guessed pin positions and ensuring electrical rule compliance.

Core Features & Use Cases

  • Programmatic Schematic Generation: Create .kicad_sch files using Python scripts with computed pin positions.
  • Electrical Rule Check (ERC) Validation: Automatically run kicad-cli sch erc and parse results.
  • Automated Error Fixing: Iteratively fix common ERC violations like pin_not_connected and label_dangling.
  • KiCad 8 to 9 Migration: Assists in migrating schematics between KiCad versions by handling symbol renames and footprint updates.
  • Use Case: Generate a complex schematic for a microcontroller board, ensuring all pins are correctly connected and all ERC rules are met, or fix a batch of existing schematics with common errors.

Quick Start

Use the kicad-schematic skill to generate a new KiCad schematic based on the provided circuit description.

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 using Python?

You can automate KiCad schematic generation by running Python scripts to compute pin positions and create `.kicad_sch` files programmatically. This prevents common errors like guessed pin locations and ensures correct electrical connections.

Can I automatically run Electrical Rule Checks and fix ERC violations in KiCad?

Yes, you can automatically run Electrical Rule Checks using `kicad-cli sch erc` and parse the results. The skill iteratively fixes common ERC violations like `pin_not_connected` and `label_dangling` to ensure compliance.

Do I need KiCad 8 installed to validate schematics with kicad-cli?

Yes, you need KiCad 8 or 9 installed with `kicad-cli` available on your system PATH. The `kicad-cli` executable is required to programmatically validate, generate, and fix `.kicad_sch` schematic files.

What is the best way to migrate schematics between KiCad versions?

The best way to migrate schematics between KiCad versions is to programmatically handle symbol renames and footprint updates. This ensures `.kicad_sch` files remain compatible when moving from KiCad 8 to 9.

Why do my programmatically generated KiCad schematics have incorrect pin positions?

Incorrect pin positions in generated KiCad schematics usually occur when positions are guessed instead of computed. Using Python scripts to calculate exact coordinates prevents these layout errors and ensures proper electrical connections.