
Kicad File Format
If you're programmatically reading or writing KiCad schematics and PCBs, this is your reference sheet. It covers the S-expression format for both .kicad_sch and .kicad_pcb files in KiCad 8.x, with concrete examples of symbols, wires, footprints, traces, vias, and zones. The documentation is practical: it shows you exactly how to structure a symbol instance with properties, how net numbers work across pads and segments, and what a hierarchical sheet block looks like. This is the kind of thing you want when you're building automation for board generation or parsing existing designs, not clicking around in the GUI.
- skills.sh installs
- 232
- GitHub stars
- 14
- last updated
- Aug 21, 2026
Install
$ npx -y skills add o2scale/electronics-agent-kit --skill kicad-file-format --agent claude-codeInstalls into .claude/skills of the current project.
Files
KiCad File Format Reference
Complete reference for KiCad 8.x S-expression file formats.
KiCad uses Lisp-style S-expressions for all file formats. Files are human-readable and text-based.
1. S-Expression Basics
Syntax
(keyword value)
(keyword (nested value))
(keyword
(child1 value)
(child2 value)
)
Common Patterns
- Coordinates:
(at x y angle)or(xy x y) - UUIDs:
(uuid "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") - Strings:
"quoted string"orunquoted_identifier - Numbers:
1.234(always decimal, no units in file) - Booleans:
yes/no
2. Schematic Format (.kicad_sch)
File Structure
Sponsors
Details
- Repository
- github.com/o2scale/electronics-agent-kit
- Categories
- Documentation, Code Review & Quality, AI & Agent Building
- First seen
- Jun 3, 2026