agentleFS
aklofasaklofas/kicad-happy/.cursor/rules/kicad-happy.mdc

kicad-happy / rules

Cursor rule1.3k starsChanged 8 months agoMITView on GitHub

KiCad electronics design analysis skills — schematic review, PCB layout, EMC pre-compliance, SPICE, BOM, manufacturing

Trending

Quiet since October.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 2 mentionsMay 2026: 0 mentionsJun 2026: 1 mentionJul 2026: 1 mentionAug 2026: 0 mentionsSep 2026: 9 mentionsOct 2026: 3 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the aklofas/kicad-happy repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about aklofas/kicad-happy

The biggest 5 of 17 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 17

Talked about on GitHub (17 times).

On GitHub · 17

12 more on GitHub
  • Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.

    Of the Cursor rule files we read, the 1,527 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository12 other files it gives its agents.

The file

We split this kicad-happy.mdc into the rules it gives an agent

6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run schematic analyzer: python3 skills/kicad/scripts/analyze_schematic.py <file>.kicad_sch --output sch.json

    line 24
  2. Very specific:

    Run PCB analyzer: python3 skills/kicad/scripts/analyze_pcb.py <file>.kicad_pcb --full --output pcb.json

    line 25
  3. Very specific:

    Run EMC analysis: python3 skills/emc/scripts/analyze_emc.py --schematic sch.json --pcb pcb.json

    line 26
  4. Very specific:

    Run thermal analysis: python3 skills/kicad/scripts/analyze_thermal.py --schematic sch.json --pcb pcb.json

    line 27
  5. Distinctive:

    All scripts are zero-dependency Python 3.8+ (stdlib only).

    line 29
  6. Very specific:

    Test harness at ~/Projects/kicad-happy-testharness/ validates against 1,036 real KiCad projects.

    line 42

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
kicad-happy.mdc
---
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`.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.