KiCadRoutingTools: Skill for Claude Code

.claude/skills/plan-pcb-placement/SKILL.md

plan-pcb-placement is a skill for Claude Code from drandyhaas/KiCadRoutingTools. It costs 209 tokens per session (22,750 once invoked), scanned C, original, MIT.

A planning workflow for arranging parts on a KiCad circuit board before routing copper connections. KiCad is software for designing printed circuit boards, and routing is the step that connects the placed parts with conductive paths.

In plain words
What is it for?
It helps measure an existing placement, detect an unplaced board, keep mechanically fixed parts in place, move searchable parts when needed, and verify that the result can be routed.
Why use it?
It helps determine whether a board needs repositioning and fixes placements that would prevent the board from being connected or built correctly.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions subagents.

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 →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is KCLI=$(python3 py_tools/kicad_cli_path.py).

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/plan-pcb-placement/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 plan-pcb-placement

README.md
[![agentmods](https://agentmods.dev/badge/skills/drandyhaas/kicadroutingtools/plan-pcb-placement/github.svg)](https://agentmods.dev/skills/drandyhaas/kicadroutingtools/plan-pcb-placement)
Your own site
<a href="https://agentmods.dev/skills/drandyhaas/kicadroutingtools/plan-pcb-placement"><img src="https://agentmods.dev/badge/skills/drandyhaas/kicadroutingtools/plan-pcb-placement/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 plan-pcb-placement

Your own site · 80×15
<a href="https://agentmods.dev/skills/drandyhaas/kicadroutingtools/plan-pcb-placement"><img src="https://agentmods.dev/badge/skills/drandyhaas/kicadroutingtools/plan-pcb-placement.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 209 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 22,750 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00209 $0.22750
Opus 5.5 $0.00084 $0.09100
Sonnet 5.5 $0.00042 $0.04550
Haiku 4.5 $0.00021 $0.02275

Measured today against content hash 7114bc30262d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

plan-pcb-placement scanned grade C with 2 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 today.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/grade.py, scripts/make_unplaced.py, scripts/measure.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

4. The datasheet folder deleted (`rm -rf wk/<run>/datasheets`).

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

mangles a PDF, so download it (`curl -sSL -o <folder>/<part>.pdf <url>`)
.claude/skills/plan-pcb-placement/SKILL.md · 1,338 lines

How it starts

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

Plan PCB placement

A human lays a board out by function: the USB connector with its resistors right behind it, the regulator and its caps between the power entry and the loads, the MCU with its crystal on its oscillator pins, the LEDs and the button along an edge. This skill places that way. You decide what belongs together; py_placer/place_simple.py arranges it over several seeds; a fast route of each keeps the best.

Invocation: /plan-pcb-placement <mode> <board.kicad_pcb> [intent.json] [--scattered N] [--clustered N] [--anchored N] [--judge N], where mode is place or full. With no mode, use full. A given intent.json is the intent: use it in place of emitting one (§3.2). --scattered, --clustered, --anchored and --judge are the seeds of each start and how many are judged (§3.6), passed to place_simple as given; its defaults (6, 6, 0, 6) apply when they are not. Anchored seeds (each group started round the point its wiring prefers) are opt-in.

1. The goal, per mode

mode input DONE means better, once DONE
place an unplaced or placed board check_assembly buildable, check_floorplan --intent 0 errors, no pad, graphic or keep-out copper off the outline, mechanical facts met, and a fast route of it with no blocking net fewer vias, then less copper_mm, then fewer segments, on that fast route
full an unplaced or placed board board_score blocking 0, zero unrouted, zero broken, check_complete DONE fewer vias, then less copper_mm, then fewer segments
  • "Better" is lexicographic, never a weighted sum. A lower via count never buys back an open net.
  • Below DONE, open connections outrank vias and copper. Between two boards of equal blocking, the one whose joins_needed (in board_score and quick_score JSON: the joins its open nets still need) is lower is better, whatever its vias or copper: unrouted counts a net as 1 whatever its size, and a board missing a 17-pad rail has fewer vias because the rail is missing. Vias, copper_mm and segments break a tie only after that.
  • In place mode the fast route is your own check. scripts/grade.py --mode place and the verifier grade the placement, not a route; keep the fast-routed board and its score JSON (quick_score) as the evidence for the "no blocking net" condition.
  • The routed board judges a placement, not the objective's cost, crossings or hpwl. Those only rank candidates you have not routed yet.
  • DONE is measured with every spec the board declares. Pass --net-min-widths, --impedance-nets, --length-groups (a FILE) and --min-track-width / --min-via-diameter / --min-via-drill to board_score and check_complete. An ungraded component is UNEXAMINED, not passed. --impedance-nets grades reference-plane continuity: a net that crosses a gap in its reference plane (a track on that plane cuts one) is blocking.
  • Matching the original layout does not count. A human layout is a benchmark to approach, not a pose to match.

Read the full file on GitHub · 1,338 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today Changed · +178 lines 7114bc30262d
  2. 3d ago Changed · +104 lines b8a7b58fafd6
  3. 4d ago Changed · +39 lines d8aeee99f4bf
  4. 5d ago Changed · -720 lines · +94 tokens per session scan A → C 83bd5efb364f
  5. 1mo ago Changed · -1 lines c1c1fbdff536
  6. 1mo ago Changed · +11 lines f358ff34c173
  7. 1mo ago Changed · +43 lines 8cc0826a1f1a
  8. 1mo ago Changed · +1 lines b62e79c14d63
  9. 1mo ago Changed · +72 lines fb5eae28c473
  10. 1mo ago First seen · 1,611 lines · 115 tokens per session scan A 06fcc903c277

Subscribe to this mod's changes

plan-pcb-placement is a skill published in the GitHub repository drandyhaas/KiCadRoutingTools (706 stars, last pushed today), licensed MIT. It adds 209 tokens to every session and 22,750 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). 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