Skip to content
Agentmart
Submit a tool

Cursor rules · aklofas/kicad-happy

1 Cursor rule file from aklofas/kicad-happy: kicad-happy.

Template by aklofas

IndexedMIT★ 1,497
Write a review

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.

We use your email only for this newsletter. Privacy

About

The .cursor/rules folder of aklofas/kicad-happy (1,496 stars): 1 rule files, 43 lines in all (kicad-happy).

Use cases: documentation

No 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
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from aklofas

Cite this page

Cursor rules · aklofas/kicad-happy. Agent Mart. https://agentmart.dev/templates/aklofas-kicad-happy-cursor-rules (last updated 2026-10-24)