Cursor rules · aklofas/kicad-happy
1 Cursor rule file from aklofas/kicad-happy: kicad-happy.
Template by aklofas
Install
Works with Cursor. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/aklofas/kicad-happy/main/.cursor/rules -o rules
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documentation
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
Cursor project rules (.cursor/rules/*.mdc): instructions Cursor applies when it edits matching files.
- For
- Cursor
- File
.cursor/rules/kicad-happy.mdc
First lines (shown under the repo's MIT license)
--- description: KiCad electronics design analysis skills — schematic review, PCB layout, EMC pre-compliance, SPICE, BOM, manufacturing globs: ["**/*.kicad_sch", "**/*.kicad_pcb", "**/*.sch", "skills/**"] alwaysApply: false --- # kicad-happy This repo is a suite of AI-powered electronics design skills for KiCad 5-10. ## Skills Each skill lives under `skills/<name>/SKILL.md` — read the SKILL.md for full usage. Key skills: - **kicad** — Schematic/PCB/Gerber analysis. Run `python3 skills/kicad/scripts/analyze_schematic.py <file>.kicad_sch` for structured analysis. - **emc** — EMC pre-compliance (42 rules). Consumes schematic + PCB analyzer JSON. - **spice** — SPICE simulation with auto-generated testbenches. - **bom** — BOM management with multi-supplier pricing. - **digikey/mouser/lcsc/element14** — Component sourcing APIs. - **jlcpcb/pcbway** — Manufacturing prep and DFM validation. ## Analysis workflow 1. Run schematic analyzer: `python3 skills/kicad/scripts/analyze_schematic.py <file>.kicad_sch --output sch.json` 2. Run PCB analyzer: `python3 skills/kicad/scripts/analyze_pcb.py <file>.kicad_pcb --full --output pcb.json` 3. Run EMC analysis: `python3 skills/emc/scripts/analyze_emc.py --schematic sch.json --pcb pcb.json` 4. Run thermal analysis: `python3 skills/kicad/scripts/analyze_thermal.py --schematic sch.json --pcb pcb.json` All scripts are zero-dependency Python 3.8+ (stdlib only). ## Code structure - `skills/kicad/scripts/analyze_schematic.py` — Main schematic parser and orchestrator - `skills/kicad/scripts/signal_detectors.py` — Core signal path detectors (regulators, filters, opamps) - `skills/kicad/scripts/domain_detectors.py` — Domain-specific detectors (USB, Ethernet, BMS, audio, sensors) - `skills/kicad/scripts/analyze_pcb.py` — PCB layout analyzer - `skills/emc/scripts/emc_rules.py` — EMC rule implementations - `skills/kicad/scripts/kicad_types.py` — `AnalysisContext` dataclass shared by all detectors ## Testing Test harness at `~/Projects/kicad-happy-testharness/` validates against 1,036 real KiCad projects. Run `python3 run/run_schematic.py --jobs 16` and `python3 regression/run_checks.py --type schematic`.
Signals
- Stars
- 1,497
- Forks
- 131
- Open issues
- 3
- Last commit (this folder)
- May 19, 2026 (5 months ago)
- Last release
- Oct 23, 2026 (6 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/aklofas/kicad-happy
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from aklofas
- 0.832score
spice
aklofas
Run automatic SPICE simulations on subcircuits detected from KiCad schematic analysis — validates filter frequencies, divider ratios, opamp gains, LC…
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.832score
mouser
aklofas
Search Mouser Electronics for electronic components — secondary source for prototype orders.
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.832score
lcsc
aklofas
Search LCSC Electronics for electronic components — find parts by LCSC number (Cxxxxx) or MPN, check stock/pricing, download datasheets, analyze specifications.
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.832score
emc
aklofas
EMC pre-compliance risk analysis for KiCad PCB designs — 18 check categories, 44 rule IDs covering ground planes, decoupling, I/O filtering, switching…
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.832score
element14
aklofas
Search Newark, Farnell, and element14 for electronic components — find parts by MPN or distributor part number, check pricing/stock, download datasheets…
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.832score
digikey
aklofas
Search DigiKey for electronic components and download datasheets — primary source for prototype orders and the preferred API method for fetching datasheets.
SkillAFreshness: A★ 1.5KClaude Code +9
Cite this page
Cursor rules · aklofas/kicad-happy. Agent Mart. https://agentmart.dev/templates/aklofas-kicad-happy-cursor-rules (last updated 2026-10-24)