An agentic skills framework & software development methodology that works.
KiCad review skills for Claude Code and Codex
kicad-happy is a skill pack that turns an agent into a KiCad design reviewer. It analyzes schematics, PCB layouts, Gerbers, BOMs, and datasheets, then reports power, EMC, SPICE, sourcing, and fabrication issues in a structured way.
Builders who want their agent to read KiCad files, check circuits, and help prepare boards for manufacturing.
You can catch design, sourcing, and fabrication problems before you spend money on boards.
What it does
KiCad project analysis
Parses schematics, PCB layouts, Gerbers, and PDF reference designs, then traces nets, detects subcircuits, and checks for design issues.
SPICE simulation
Builds testbenches for detected circuits like filters, dividers, opamp stages, and feedback networks, then runs simulations and tolerance sweeps.
EMC pre-compliance checks
Flags likely EMI and EMC problems such as ground plane voids, weak decoupling, diff pair skew, board edge radiation, and ESD gaps.
Datasheet sync and extraction
Downloads datasheets for MPNs, extracts pinouts and electrical data, and caches the results for other analyzers to use.
BOM sourcing and export
Finds parts across distributors, fills in missing part numbers, validates matches, and exports supplier-ready order files.
Fabrication readiness checks
Reviews routing, DFM, schematic-to-PCB match, Gerber completeness, thermal warnings, and BOM readiness before ordering.
Distributor and fab skills
Includes skills for DigiKey, Mouser, LCSC, element14, JLCPCB, and PCBWay workflows.
How to get it
- 1Claude Code
/plugin marketplace add aklofas/kicad-happy /plugin install kicad-happy@kicad-happy
- 2[!NOTE] /plugin update may not detect new versions due to a known Claude Code issue. To…
rm -rf ~/.claude/plugins/cache/kicad-happy ~/.claude/plugins/marketplaces/kicad-happy /plugin marketplace add aklofas/kicad-happy /plugin install kicad-happy@kicad-happy
- 3Install directly from GitHub as an Antigravity plugin
agy plugin install https://github.com/aklofas/kicad-happy.git
- 4Or from a local checkout
git clone https://github.com/aklofas/kicad-happy.git agy plugin install kicad-happy
- 5Toggle when needed
agy plugin disable kicad-happy # Disable when not doing electronics review agy plugin enable kicad-happy # Enable when working on KiCad projects
- 6opencode
git clone https://github.com/aklofas/kicad-happy.git cd kicad-happy opencode
README
⚡ kicad-happy
AI-powered design review for KiCad. Analyzes schematics, PCB layouts, and Gerbers. Catches real bugs before you order boards.
Works with Claude Code, OpenAI Codex, GitHub Copilot CLI, Google Antigravity, and opencode, as a GitHub Action for automated PR reviews, or as standalone Python scripts you can run anywhere.
These skills turn your AI coding agent into a full-fledged electronics design assistant that understands your KiCad projects at a deep level: parses schematics and PCB layouts into structured data, cross-references component values against datasheets, detects common design errors, and walks you through the full prototype-to-production workflow.
🔬 What it looks like in practice
Point your agent at a KiCad project and it does the rest — parses every schematic and PCB file, traces every net, computes every voltage, and tells you what's wrong before you spend money on boards.
"Analyze my KiCad project at
hardware/rev2/"
Here's a condensed example from an open-source robot controller board. The agent found all of this automatically:
It builds your power tree — tracing every regulator from input to load, computing output voltages from feedback dividers:
VBUS (USB-C / battery input, fused)
├── AP63357 buck (500kHz switching) → 5V
│ └── Feedback: R8/R9 ratio=0.155 → Vout=3.87V
│ Power dissipation: ~0.15W (85% efficiency assumed)
└── RT9080-3.3 LDO → 3.3V
└── Decoupling: 16 caps, 10.8µF total
It identifies every subcircuit — not just passives, but the functional blocks and how they connect:
| Subcircuit | Details |
|---|---|
| Motor drive | 9x P-MOSFET switches (DMG2305UX), transistor-driven H-bridges |
| Filters | RC signal conditioning at 16Hz, 169Hz, and 1.03kHz (input filtering and debounce) |
| Lighting | WS2812B addressable LED chain on GPIO, 60mA estimated draw |
| Sensors | Onboard sensor interface, crystal oscillator with load cap validation |
| Protection | ESD clamp on USB D+/D-, dual input fuses (0.75A signal, 2.5A motor) |
It audits every connector for ESD protection — and flags the ones that are exposed:
ESD coverage: 19 connectors audited
USB-C: ESD clamp on D+/D- ✓ (partial — 13 signal pins per ground ⚠️)
Fuse F1: 2.5A motor input ✓
Fuse F2: 0.75A signal input ✓
⚠️ 6-pin header: no protection (exposed signals)
⚠️ Motor outputs: no protection (exposed to back-EMF)
⚠️ Servo connectors: no protection (exposed signals)
⚠️ Sensor port: no protection
... 19 of 19 connectors have coverage gaps
It validates your passive networks — computing actual circuit behavior from component values:
| Detection | Components | Computed Value | What It Means |
|---|---|---|---|
| RC filter | R21/C31 | fc = 15.9 Hz | Low-pass for slow analog signal |
| RC filter | R1/C13 | fc = 169 Hz | Debounce / noise rejection |
| RC filter | R2/C14 | fc = 1.03 kHz | Signal conditioning |
| Feedback | R8/R9 | ratio = 0.155 | Buck converter output voltage set |
| Divider | R42/R43 | ratio = 0.500 | Voltage sensing (half) |
| Crystal | Y1 | CL = 14.0 pF | Load cap status: ok (target: 18 pF, -22%) |
It suggests applicable certifications — based on what it detects in the design:
Suggested certifications:
FCC Part 15 Subpart B (US) — unintentional radiator compliance
CISPR 32 / CE EMC Directive (EU) — EMC compliance for EU market
It checks production readiness — BOM lock status, connector ground distribution, decoupling adequacy:
BOM lock: 0% — no MPNs assigned (prototype stage)
Decoupling: 5 rails, 34 caps total (132µF motor, 110µF logic, 10.8µF 3.3V)
Connector ground: USB-C has 13:1 signal-to-ground ratio (recommended ≤3:1)
For complete examples with all sections, see:
- Example 1: Robot controller — schematic + PCB + EMC + SPICE, 184 components
- Example 2: GNSS disciplined oscillator — full workflow including datasheet sync, 296 components, 10 power rails, Ethernet + USB + SMA
For the end-to-end walkthrough from S-expression parsing through signal detection and datasheet cross-referencing, see How It Works.
🚀 Install
[!TIP] For detailed installation, upgrade, and troubleshooting guidance across all platforms, have your AI agent read
install-guidance.md. It covers platform-specific quirks, known bugs, workarounds, and OS-specific issues.
Claude Code:
/plugin marketplace add aklofas/kicad-happy
/plugin install kicad-happy@kicad-happy
[!NOTE]
/plugin updatemay not detect new versions due to a known Claude Code issue. To get the latest version, clear the cache and reinstall:rm -rf ~/.claude/plugins/cache/kicad-happy ~/.claude/plugins/marketplaces/kicad-happy /plugin marketplace add aklofas/kicad-happy /plugin install kicad-happy@kicad-happy
OpenAI Codex:
Use Codex's built-in skill installer first:
"Use $skill-installer to install the kicad-happy skills from https://github.com/aklofas/kicad-happy"
If you prefer a manual install, install the skills into ~/.codex/skills/.
Google Antigravity CLI (agy) / Gemini:
Install directly from GitHub as an Antigravity plugin:
agy plugin install https://github.com/aklofas/kicad-happy.git
Or from a local checkout:
git clone https://github.com/aklofas/kicad-happy.git
agy plugin install kicad-happy
Toggle when needed:
agy plugin disable kicad-happy # Disable when not doing electronics review
agy plugin enable kicad-happy # Enable when working on KiCad projects
See install-guidance.md for workspace-scope installs, slash commands, and upgrade notes.
opencode:
git clone https://github.com/aklofas/kicad-happy.git
cd kicad-happy
opencode
The repo ships .opencode/opencode.json, which opencode auto-discovers and uses to load all 11 skills from ./skills/. For global availability across all projects, see install-guidance.md.
Manual install & other platforms
Claude Code (macOS / Linux):
git clone https://github.com/aklofas/kicad-happy.git
cd kicad-happy
mkdir -p ~/.claude/skills
for skill in kicad spice emc datasheets bom digikey mouser lcsc element14 jlcpcb pcbway; do
ln -sf "$(pwd)/skills/$skill" ~/.claude/skills/$skill
done
OpenAI Codex — global install (macOS / Linux):
git clone https://github.com/aklofas/kicad-happy.git
cd kicad-happy
mkdir -p ~/.codex/skills
for skill in kicad spice emc datasheets bom digikey mouser lcsc element14 jlcpcb pcbway; do
ln -sf "$(pwd)/skills/$skill" ~/.codex/skills/$skill
done
Windows PowerShell (Codex):
git clone https://github.com/aklofas/kicad-happy.git
cd kicad-happy
New-Item -ItemType Directory -Force "$HOME\.codex\skills" | Out-Null
"kicad","spice","emc","datasheets","bom","digikey","mouser","lcsc","element14","jlcpcb","pcbway" | ForEach-Object {
New-Item -ItemType SymbolicLink -Path "$HOME\.codex\skills\$_" -Target "$(Get-Location)\skills\$_" -Force | Out-Null
}
Note: Windows symlinks may require Developer Mode or elevated privileges.
The analysis scripts are pure Python 3.10+ with zero required dependencies. No pip install, no Docker, no KiCad installation needed.
Release candidates
The stable install commands above always resolve to the latest stable release on main (currently v2.1.0). When a release candidate is active, opt in by appending #<tag> to the marketplace ref:
Claude Code:
/plugin marketplace add aklofas/kicad-happy#vX.Y.Z-rc.N
/plugin install kicad-happy@kicad-happy
This pins to the RC tag. Stable users on the un-suffixed marketplace are unaffected. To switch back to stable, remove the marketplace and re-add it without the # suffix.
Codex / Gemini CLI / opencode: clone the repo and check out the RC tag before running the install above:
git clone https://github.com/aklofas/kicad-happy.git
cd kicad-happy
git checkout vX.Y.Z-rc.N
# then run the symlink install for your agent
[!IMPORTANT] Release candidates are pre-release builds intended for evaluation and feedback. They have passed the corpus regression gate and contract test suite but haven't completed extended manual validation. File issues on GitHub if you hit problems.
⚙️ GitHub Action
Also available as a GitHub Action for automated PR reviews. Every push and PR that touches KiCad files gets a commit status check and a structured review comment — power tree, SPICE results, EMC risk, thermal analysis, and more. Optionally chain with Claude for AI-powered natural-language reviews.
See the GitHub Action setup guide for workflow examples, diff-based PR reviews, and AI-powered review configuration.
📦 Skills
| Skill | What it does |
|---|---|
| kicad | ⚡ Parse and analyze KiCad schematics, PCB layouts, Gerbers, and PDF reference designs. Automated subcircuit detection, design review, DFM. |
| spice | 🔬 SPICE simulation — generates testbenches for detected subcircuits, validates filter frequencies, opamp gains, divider ratios. Monte Carlo tolerance analysis. ngspice, LTspice, Xyce. |
| emc | 📡 EMC pre-compliance — 44 rule checks for radiated emission risks, PDN impedance, diff pair skew, ESD paths. FCC/CISPR/automotive/military. |
| datasheets | 📄 Extract structured specs from datasheet PDFs — pinouts, electrical characteristics, peripherals, topology. Per-MPN caching with quality scoring. Consumed by kicad/emc/spice/thermal. |
| bom | 📋 Full BOM lifecycle — analyze, source, price, export tracking CSVs, generate per-supplier order files. |
| digikey | 🔎 Search DigiKey for components and download datasheets via API. |
| mouser | 🔎 Search Mouser for components and download datasheets. |
| lcsc | 🔎 Search LCSC for components (production sourcing, JLCPCB parts library). |
| element14 | 🔎 Search Newark/Farnell/element14 (one API, three storefronts). |
| jlcpcb | 🏭 JLCPCB fabrication and assembly — design rules, BOM/CPL format, ordering workflow. |
| pcbway | 🏭 PCBWay fabrication and assembly — turnkey with MPN-based sourcing. |
🖐️ Ask about specific circuits
You don't have to ask for a full design review — just point the agent at whatever you're working on:
"Check the two capacitive touch buttons on my PCB for routing or placement issues"
"Is my boost converter loop area going to cause EMI problems?"
"Trace the enable chain for my power sequencing — is the order correct?"
"Are the differential pairs on my USB routed correctly?"
The agent runs the analysis scripts, then autonomously digs deeper — tracing nets, analyzing zone fills, calculating clearances, reading datasheets.
What the analysis covers
| Domain | What it checks |
|---|---|
| Power | Regulator Vout from feedback dividers (~65 Vref families), power sequencing, enable chains, inrush, sleep current |
| Analog | Opamp gain/bandwidth (per-part behavioral models), voltage dividers, RC/LC filters, crystal load caps |
| Protection | TVS/ESD mapping, reverse polarity FETs, fuse sizing, clamping voltage |
| Digital | I2C pull-up validation with rise time calculation, SPI CS counts, UART voltage domains, CAN termination |
| Domain | RF chains, Ethernet, HDMI, memory, BMS, motor drivers, sensors, display/touch, audio, LED drivers, debug interfaces, and more (40 detectors total) |
| Derating | Capacitor voltage (ceramic 50%/electrolytic 80%), IC abs max, resistor power. Commercial/military/automotive profiles. Over-designed component detection. |
| PCB | Thermal via adequacy, zone stitching, trace width vs current, DFM scoring, impedance, proximity/crosstalk |
| Manufacturing | MPN coverage audit, JLCPCB/PCBWay format export, assembly complexity scoring |
| Lifecycle | Component EOL/NRND/obsolescence alerts, temperature grade audit, alternative part suggestions |
| Thermal | Junction temperature estimation for LDOs, switching regulators, shunt resistors. Package Rθ_JA lookup, PCB thermal via correction, proximity warnings for caps near hotspots. |
| EMC | Ground plane voids, decoupling, I/O filtering, switching harmonics, clock routing, diff pair skew, board edge radiation, PDN impedance, ESD paths, crosstalk, thermal derating. FCC/CISPR/automotive/military. |
🔬 SPICE simulation
"Sweep my LC matching network and show me where it actually resonates vs where I designed it"
"What's the actual phase margin on my opamp filter stage with this TL072?"
"Run SPICE on everything the analyzer detected and tell me what doesn't look right"
The spice skill goes beyond static analysis. It automatically generates SPICE testbenches for detected subcircuits — RC/LC filters, voltage dividers, opamp stages, feedback networks, transistor switches, crystal oscillators — runs them, and reports whether simulated behavior matches calculated values.
For recognized opamps (~100 parts), it uses per-part behavioral models with the real GBW, slew rate, and output swing from distributor APIs or a built-in lookup table. When both schematic and PCB exist, it injects PCB trace parasitics into the simulation.
Simulation: 14 pass, 1 warn, 0 fail
RC filter R5/C3 (fc=15.9kHz): confirmed, <0.3% error
Opamp U4A (inverting, gain=-10): 20.0dB confirmed
Bandwidth 98.8kHz (LM324 behavioral, GBW=1.0MHz)
Note: signal frequency should stay below 85kHz for <1dB gain error
Monte Carlo tolerance analysis — run N simulations per subcircuit with randomized component values within tolerance bands. Shows which component dominates output variation:
Monte Carlo (N=100): RC filter R5/C3
fc: 15.9kHz ± 1.8kHz (3σ), spread 22.6%
Sensitivity: C3 (10%) contributes 68%, R5 (5%) contributes 32%
What-if parameter sweep — instantly see the impact of component changes without editing the schematic:
> "What happens if I change R5 from 10k to 4.7k?"
RC filter R5/C3: cutoff 1.59kHz → 3.39kHz (+112.8%)
Voltage divider R5/R6: ratio 0.32 → 0.50 (+56.4%)
Requires ngspice, LTspice, or Xyce (auto-detected). Without one, simulation is skipped — the rest of the analysis still works. For the full methodology — see SPICE Integration Guide.
📡 EMC pre-compliance
"Will my board pass FCC Class B? Check for EMC issues."
"Analyze my switching regulator layout for EMI problems"
"Check my differential pairs for skew-induced common-mode radiation"
The emc skill predicts the most common causes of EMC test failures — ground plane voids, insufficient decoupling, unfiltered I/O cables, switching regulator harmonics, differential pair skew, and more. It operates on the schematic and PCB analyzer output using geometric rule checks and analytical emission formulas (Ott, Paul, Bogatin). When ngspice is available, PDN impedance and EMI filter checks are SPICE-verified for higher accuracy — otherwise analytical models are used as fallback.
EMC risk score: 73/100
CRITICAL: 1 — SPI_CLK crosses ground plane void on In1.Cu
HIGH: 2 — USB diff pair 5.2mm skew (exceeds 25ps limit),
no ground via near TVS U5
MEDIUM: 3 — decoupling cap 7mm from U3, clock on outer layer,
via stitching gap near J2
INFO: 4 — cavity resonance at 715 MHz, switching harmonics
in 30-88 MHz band
Pre-compliance test plan:
Focus band: 30-88 MHz (12 switching harmonics from U1, U4)
Highest risk interface: J1 (USB-C, unfiltered, 480 Mbps)
Probe points: L1 (45.2, 32.1)mm, Y1 (62.0, 18.5)mm
44 rule checks across power integrity, signal integrity, and radiation. Includes full-board PDN impedance with power tree analysis — traces impedance from regulator output through PCB traces to IC load points, and detects cross-rail coupling when a downstream switching regulator injects transients onto the upstream rail. Supports FCC, CISPR, automotive (CISPR 25), and military (MIL-STD-461G) standards. Generates a pre-compliance test plan with frequency band priorities, interface risk rankings, and near-field probe points. For the full methodology — see EMC Pre-Compliance Guide.
📄 Datasheets — sync and extract
"Sync datasheets for my board at
hardware/rev2/"
"What's the EN-pin threshold on the LDO I'm using?"
Datasheets flow through kicad-happy in two stages:
Sync (download). Pulls PDFs for every component with an MPN from DigiKey, LCSC, element14, or Mouser into a local datasheets/ directory. 96% success rate across 240+ manufacturers. Each PDF is verified against the expected part number.
Extract (parse). The datasheets skill turns those PDFs into structured JSON — pinouts, voltage ratings, electrical characteristics, peripherals, topology, SPICE model coefficients. Extractions are cached per-MPN under <project>/datasheets/extracted/ and scored on a five-dimension quality rubric. Analyzer skills (kicad, emc, spice, thermal) consume the cache through a shared helper API with trust gates — so a schematic finding tagged confidence: datasheet-backed means a scored extraction produced the underlying fact, not a keyword match on the part number.
For the full pipeline — page selection, the quality rubric, the consumer API, and what it deliberately doesn't do — see Datasheet Extraction Guide.
📋 BOM management — from schematic to order
"Source all the parts for my board, I'm building 5 prototypes"
The BOM skill manages the full lifecycle of your bill of materials — using your KiCad schematic as the single source of truth. No separate spreadsheets to keep in sync, no copy-pasting between tabs.
The agent analyzes your schematic to detect which distributor fields are populated (and which naming convention you're using — it handles dozens of variants like Digi-Key_PN, DigiKey Part Number, DK, etc.), identifies gaps, searches distributors to fill them, validates every match, and exports per-supplier order files in the exact upload format each distributor expects.
"I need a 3.3V LDO that can do 500mA in SOT-223, under $1"
AZ1117CH-3.3TRG1 — Arizona Microdevices
3.3V Fixed, 1A, SOT-223-3
$0.45 @ qty 1, $0.32 @ qty 100
In stock: 15,000+
AP2114H-3.3TRG1 — Diodes Incorporated
3.3V Fixed, 1A, SOT-223
$0.38 @ qty 1, $0.28 @ qty 100
In stock: 42,000+
🏭 Manufacturing
"Is this board ready to order?"
"Generate the BOM for JLCPCB assembly"
Fab release gate — an automated pre-order checklist that cross-references your schematic, PCB, and Gerber data:
Fabrication Release Gate — 8 check categories
Routing completeness ✓ PASS All 240 nets routed
BOM readiness ⚠ WARN 3 components missing MPN
DFM compliance ✓ PASS No spacing violations, standard tier compatible
Documentation ✓ PASS Title block, revision, fab notes present
Schematic ↔ PCB match ✓ PASS 296 components matched, 0 orphans
Gerber verification ✓ PASS All layers present, drill file valid
Thermal analysis ⚠ WARN U3 junction temp 92°C (margin: 18°C)
EMC pre-compliance ⚠ WARN Score 73/100 — 2 HIGH findings
Result: CONDITIONAL PASS (3 warnings to review before ordering)
BOM export — cross-references LCSC part numbers, formats to JLCPCB's exact spec, flags basic vs extended parts. Per-supplier upload files — DigiKey bulk-add CSV, Mouser cart format, LCSC BOM — with quantities already computed for your board count + spares.
🗺️ Workflow
- Design your schematic and lay out the PCB in KiCad
- Sync datasheets — the agent downloads PDFs and extracts structured specs for every MPN
- Design review — the agent runs schematic, PCB, cross-analysis, EMC, SPICE, and thermal analyzers, cross-references against datasheets, and writes a structured report with findings ranked by severity
- Iterate — fix issues, re-run the r
Files in the repo
- .agents
- .claude-plugin
- .codex-plugin
- .cursor
- .github
- .opencode
- action
- skills
- .gitignore
- action.yml
- CHANGELOG.md
- CONTRIBUTING.md
- datasheet-extraction.md
- emc-precompliance.md
- example-report-1.md
- example-report-2.md
- GEMINI.md
- github-action.md
- how-it-works.md
- install-guidance.md
- LICENSE
- llms.txt
- plugin.json
- README.md
- release-notes.md
- spice-integration.md
- VALIDATION.md
Discussion (0)
Ask about usage, or say what you built with itSign in to join the discussion.
No comments yet. Be the first to say what this is good for.
More skills

Production-grade engineering skills for AI coding agents.
817 structured cybersecurity skills for AI agents · Mapped to 6 frameworks: MITRE ATT&CK, NIST CSF 2.0, MITRE ATLAS, D3FEND, NIST AI RMF & MITRE F3 (Fight Fraud) · agentskills.io standard · Works with Claude Code, GitHub Copilot, Codex CLI, Cursor, Gemini CLI & 20+ platforms · 29 security domains · Apache 2.0
Agent Skill for complex work: research before asking, ask before planning, plan before building, verify before delivering, independent review before calling it done. Plain text, no runtime.
Anti-laziness skill for AI agents. Core: the Depth Tree method, which splits a task N layers deep and gives every leaf the full time budget of the whole task, so effort multiplies with depth. Grounded in 2025-2026 research on model laziness, underthinking and premature completion.
The trust layer for agent-to-agent commerce — natural-language mandates, ERC-7710 delegated permissions, x402 payments, escrow, and dispute resolution as one open, catch-all Agent Skill / Claude Code plugin.