agentleFS
Novin3dpNovin3dp/claude-KiCad-pcb-designer-skill/AGENTS.md

claude-KiCad-pcb-designer-skill

AGENTS.md1 starsChanged 57 days agoMITView on GitHub

This repository is an AI-agent-ready PCB design system, not merely a Claude prompt pack. Use the Agent Skills for engineering procedure and the toolkit/ source code as the executable implementation. The same toolkit can be driven by Claude Code, Codex, Copilot, Gemini/Antigravity, Cursor, another compatible agent, or a human script. It helps you design a KiCad board end to end: schematic, placement, routing, checks, review and manufacturing hand-off. You do not need Claude Code to use it. Everything runs as…

  • Installs packages
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 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 repository4 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never invent pinouts. Take pin numbers from a datasheet, a reference schematic or the stock KiCad library.

    line 33
  2. Distinctive:

    Write a new file at each stage.

    line 34
  3. Very specific:

    Do not call a board finished because DRC/ERC/parity are clean.

    line 37
  4. Distinctive:

    Verify every automated review finding yourself before changing anything.

    line 39

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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
AGENTS.md

Instructions for AI agents (any model, any tool)

This repository is an AI-agent-ready PCB design system, not merely a Claude prompt pack. Use the Agent Skills for engineering procedure and the toolkit/ source code as the executable implementation. The same toolkit can be driven by Claude Code, Codex, Copilot, Gemini/Antigravity, Cursor, another compatible agent, or a human script.

It helps you design a KiCad board end to end: schematic, placement, routing, checks, review and manufacturing hand-off. You do not need Claude Code to use it. Everything runs as plain Python / shell commands.

Where to start

TaskReadRun
Generate a KiCad schematic from Pythonskills/kicad-schematic-generator/SKILL.mdskills/kicad-schematic-generator/gen/kigen.py, netcheck.py; example in examples/minimal-board/build.py
Place, route, repair and release a PCBtoolkit/AGENTS.md (full procedure), then skills/kicad-pcb-autorouter-workflow/SKILL.md (rationale and pitfalls)tools in toolkit/kat/ (ncroute.py, astar1.py, drc.sh, ...)
Understand a tool's argumentstoolkit/README.md (tool reference table)python3 toolkit/kat/<tool>.py

SKILL.md files are written as Claude Code/Agent Skills instructions, but they are ordinary Markdown: read them as procedures and checklists. The actual executable PCB operations live in toolkit/; prefer invoking those tools over inventing equivalent file-editing code.

Setup check (do this first, and tell the user what you find)

  1. python3 -c "import pcbnew; print(pcbnew.Version())" and kicad-cli --version. If pcbnew is missing, find the Python that ships with KiCad. The toolkit targets KiCad 8-10; the schematic generator targets KiCad 9/10.
  2. cd toolkit && pip install -r requirements.txt && make.
  3. toolkit/examples/demo/run_demo.sh and toolkit/tests/smoke.sh should succeed before you touch a user's board.

Honest status

The code was imported into this repository without being executed (the import environment only had KiCad 7). If a tool fails on first run, report the exact error to the user instead of working around it silently, and say which KiCad version you used.

Rules that apply everywhere

  • Never invent pinouts. Take pin numbers from a datasheet, a reference schematic or the stock KiCad library.
  • Write a new file at each stage; never edit the user's board in place. Report every stage.
  • Copy the board's .kicad_pro and .kicad_dru next to every intermediate .kicad_pcb before loading, filling zones or running DRC.
  • Do not call a board finished because DRC/ERC/parity are clean. Verify connector orientation, power pins against the vendor reference, footprint pads without nets, and list what still needs a physical check.
  • Verify every automated review finding yourself before changing anything; ask the user before changes that alter the architecture or cannot be undone.

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.