KiCadRoutingTools: Skill for Claude Code

.claude/skills/recommend-plane-mappings/SKILL.md

recommend-plane-mappings is a skill for Claude Code from drandyhaas/KiCadRoutingTools. It costs 89 tokens per session (2,518 once invoked), scanned A, original, MIT.

A KiCad board-review guide that recommends which electrical nets should use copper plane areas and which board layers should carry them. It bases the suggestions on the board stackup, connections, power needs, and signal-return paths.

In plain words
What is it for?
Use it when reviewing a KiCad PCB layout to plan ground and power pours, check existing copper zones, and decide whether the board needs a different layer stack.
Why use it?
It helps avoid choosing plane layers by guesswork, which can worsen signal quality, power delivery, or grounding. It also accounts for limits such as a two-layer board having no inner copper layers.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is drandyhaas/KiCadRoutingTools's own configuration. It tells Claude Code how to work on KiCadRoutingTools itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything KiCadRoutingTools configures →

Reuse

Borrowing it

Nothing to install: this file belongs to drandyhaas/KiCadRoutingTools. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/drandyhaas/KiCadRoutingTools/main/.claude/skills/recommend-plane-mappings/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/drandyhaas/KiCadRoutingTools

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for recommend-plane-mappings

README.md
[![agentmods](https://agentmods.dev/badge/skills/drandyhaas/kicadroutingtools/recommend-plane-mappings/github.svg)](https://agentmods.dev/skills/drandyhaas/kicadroutingtools/recommend-plane-mappings)
Your own site
<a href="https://agentmods.dev/skills/drandyhaas/kicadroutingtools/recommend-plane-mappings"><img src="https://agentmods.dev/badge/skills/drandyhaas/kicadroutingtools/recommend-plane-mappings/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for recommend-plane-mappings

Your own site · 80×15
<a href="https://agentmods.dev/skills/drandyhaas/kicadroutingtools/recommend-plane-mappings"><img src="https://agentmods.dev/badge/skills/drandyhaas/kicadroutingtools/recommend-plane-mappings.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,518 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00089 $0.02518
Opus 5.5 $0.00036 $0.01007
Sonnet 5.5 $0.00018 $0.00504
Haiku 4.5 $0.00009 $0.00252

Measured 5d ago against content hash a23b316d73ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

recommend-plane-mappings scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/recommend-plane-mappings/SKILL.md · 171 lines

How it starts

The opening of the file, as written. The whole thing — 171 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Recommend Plane Mappings

When this skill is invoked with a KiCad PCB file, recommend which nets should get copper planes and on which layers, with the reasoning a layout engineer would apply.

Step 1: Read the Board

import sys
sys.path.insert(0, "py_router")
from kicad_parser import parse_kicad_pcb
pcb = parse_kicad_pcb('path/to/file.kicad_pcb')

print(pcb.board_info.copper_layers)                # e.g. ['F.Cu', 'In1.Cu', 'In2.Cu', 'B.Cu']
for layer in pcb.board_info.stackup:               # List[StackupLayer], ordered top to bottom
    print(layer.name, layer.layer_type, layer.thickness, layer.epsilon_r)

# Existing zones - don't silently duplicate them
for zone in pcb.zones:
    print(zone.net_name, zone.layer, 'priority', zone.priority)

Report the layer count up front. On a 2-layer board there are no inner layers to give away: recommend a pour on B.Cu (and/or F.Cu) for GND, note the compromise, and suggest /recommend-stackup if the board's signal content justifies 4 layers.

Step 2: Identify Plane-Worthy Nets

Use pad counts plus the /analyze-power-nets approach (datasheet lookup for supply pins and current estimates) rather than name matching alone:

python3 -X utf8 py_router/list_nets.py path/to/file.kicad_pcb --power
  • GND (or the dominant ground net): always plane-worthy.
  • Power rails: plane-worthy when pad count is high or estimated current is large; a rail feeding a handful of pins is better served by wide traces (--power-nets / --power-nets-widths) - say so instead of forcing a plane.
  • Multiple low-current rails can share one split layer when their regions don't interleave; flag the split seams as return-path hazards for any signals that cross them.

Step 3: Assign Layers with SI Rationale

  • Put GND adjacent to the primary signal layers (return paths for outer-layer routing; on 4-layer boards: signals on F.Cu -> GND on In1.Cu).
  • Pair a power plane against GND where the stackup allows (interplane capacitance; e.g. VCC on In2.Cu against GND on In1.Cu).
  • High-speed content raises the stakes: reference-plane adjacency for the layers carrying fast signals comes first, rail convenience second.
  • Outer layers (F.Cu/B.Cu): pick the flood net by same-layer SMD pad count. An outer pour reaches its own-layer SMD pads by fill contact — zero vias for every such pad (the fanout's pour-direct drop skips the barrel when fill reaches the ball). list_nets.py --power prints per-net (F.Cu n SMD, B.Cu n SMD, TH n) for exactly this decision: between candidate nets for an outer flood, the one with the most SMD pads on that layer saves the most vias and escape congestion. TH-heavy nets gain nothing from layer choice (barrels connect everywhere), so don't let TH counts sway it.
  • Mention existing zones that already cover a recommendation instead of repeating them. Pouring the same net on that layer REPLACES the existing zone with the run's own settings (solid pad connection unless --thermal-relief, the run's clearance and width, a board-sized outline). Say whether to keep it (--skip-existing-zones, Planes tab: Skip existing zones) or replace it. A multi-layer existing zone is replaced only when every one of its layers is in the assignment.

Read the full file on GitHub · 171 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · +2 lines a23b316d73ce
  2. 7d ago Changed · +6 lines c21b3a2c4672
  3. 18d ago Changed · +2 lines 6a3b911f4f6c
  4. 26d ago Changed · +6 lines ea12ff5de296
  5. 2mo ago First seen · 155 lines · 89 tokens per session scan A 9eb88e190763

Subscribe to this mod's changes

recommend-plane-mappings is a skill published in the GitHub repository drandyhaas/KiCadRoutingTools (706 stars, last pushed today), licensed MIT. It adds 89 tokens to every session and 2,518 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

tao-train-visual-changenet

Visual ChangeNet for binary image classification and segmentation in AOI defect detection. Use when training, evaluating, exporting, or running inference for PCB defect detection or visual inspection, comparing image pairs for PASS/NOPASS classification, or producing change-segmentation masks. Trigger phrases include…

NVIDIA-TAO/tao-skill-bank · 92 tokens

cad-skills

Use when doing parametric 3D modeling, 2D drafting, geometric kernel development, BIM/IFC processing, PCB design, or AutoCAD .NET development. Index of 21 skills: FreeCAD, OpenSCAD, OCCT, CadQuery, Blender, KiCad, SolveSpace, QCAD, xBIM, Clipper2, TongWen and more.

znlgis/opengis-skills · 83 tokens

altium-library

Create and verify Altium schematic symbols (.SchLib) and PCB footprints (.PcbLib) from datasheets and 2D drawings, as code. Use whenever a part library must be made, fixed, measured from a drawing, or checked. Triggers: "make a footprint", "create a symbol", "add this part to the library", "SchLib", "PcbLib"…

ScottJeong/altium-claude-skills · 256 tokens

universal-netlist

Query EDA netlists from the shell with the universal-netlist command line: Cadence OrCAD .DSN, Altium .PrjPcb, KiCad .kicadpro and Universal Netlist .netlist.json. Finds designs, searches nets and components, traces connectivity across passives (XNETs), and runs electrical rule checks. Use when reviewing a schematic…

IntelligentElectron/universal-netlist · 101 tokens

pcb-design

Design, modify, review, validate, or export a KiCad schematic or PCB from natural-language hardware requirements. Use for circuit design, component selection, schematic capture, footprint assignment, board layout, routing, ERC/DRC, BOM, Gerbers, and manufacturing handoff through the KiCad MCP tools.

Avinash1286/KiCAD-MCP-Server-THEAVI · 65 tokens

kicad-copilot-mcp

Use when KiCad Copilot MCP tools are available. Entry point for KiCad schematic and PCB workflows.

biosshot/kicad-copilot · 30 tokens