KiCadRoutingTools: Skill for Claude Code

.claude/skills/identify-diff-pairs/SKILL.md

identify-diff-pairs is a skill for Claude Code from drandyhaas/KiCadRoutingTools. It costs 64 tokens per session (1,548 once invoked), scanned A, original, MIT.

A KiCad PCB analysis tool that finds differential signal pairs, including pairs whose names do not use common P/N labels. It uses chip datasheets and reports suitable routing settings.

In plain words
What is it for?
Finding USB, HDMI, Ethernet, PCIe, and other differential pairs in KiCad boards. It recommends impedance, spacing, and length-matching settings and produces routediff.py commands.
Why use it?
It helps prevent differential pairs from being missed when checking a circuit board. It also avoids guessing the routing requirements for different interfaces.

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 →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 py_router/list_nets.py path/to/file.kicad_pcb --diff-pairs.

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/identify-diff-pairs/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 identify-diff-pairs

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/drandyhaas/kicadroutingtools/identify-diff-pairs"><img src="https://agentmods.dev/badge/skills/drandyhaas/kicadroutingtools/identify-diff-pairs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,548 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.00064 $0.01548
Opus 5.5 $0.00026 $0.00619
Sonnet 5.5 $0.00013 $0.00310
Haiku 4.5 $0.00006 $0.00155

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

Security

Grade A, and why

identify-diff-pairs 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/identify-diff-pairs/SKILL.md · 94 lines

How it starts

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

Identify Differential Pairs

When this skill is invoked with a KiCad PCB file, find all differential pairs — including ones name-based detection misses — and recommend routing parameters per interface.

Step 1: Baseline Name-Based Detection

python3 py_router/list_nets.py path/to/file.kicad_pcb --diff-pairs

This catches pairs following P/N naming conventions. Record the result as the baseline.

route_diff.py finds pairs with the same name matcher (net_queries.extract_diff_pair_base: _P/_N, P/N, _P0/_N0, +/-, DP/DM/DN, DPLUS/DMINUS, DDR _t/_c) and selects pairs only through it, so this baseline is the set it can route (list_nets also drops a P/N-named pair on a two-terminal crystal, #145). Naming the two nets of a pair whose names fit none of these conventions routes nothing as a pair ("No differential pairs found matching the patterns").

Step 2: Datasheet-Based Detection by Pin Function

For each IC likely to have differential interfaces (footprint/value keywords: FPGA, PHY, SERDES, USB, ETH, HDMI, LVDS, MIPI, SATA, PCIE, DDR, transceiver, redriver):

  1. Check pad metadata first — KiCad symbols often carry it:
import sys
sys.path.insert(0, "py_router")
from kicad_parser import parse_kicad_pcb
pcb = parse_kicad_pcb('path/to/file.kicad_pcb')
fp = pcb.footprints['U3']
for pad in fp.pads:
    print(pad.pad_number, pad.pinfunction, pad.net_name)

Differential pin functions usually pair as ..._P/..._N, TX+/TX-, D+/D-.

  1. Where pinfunction is missing or generic, WebSearch the part's datasheet pinout and map differential pin pairs to pad numbers, then to nets via the pads.

  2. Trace through series passives: if a differential pin connects to a 2-pad R/C/L, follow to the net on the component's other pad — the pair often gets its "real" net name on the far side of AC coupling caps or series resistors.

A pair is confirmed when both nets trace back to a documented differential pin pair. Nets that look paired only by name or topology are suspected — list them separately for the user to confirm.

Read the full file on GitHub · 94 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 · +11 lines c66705f96e22
  2. 18d ago Changed · +2 lines cb4d7040e804
  3. 2mo ago First seen · 81 lines · 64 tokens per session scan A 787ba6b71174

Subscribe to this mod's changes

identify-diff-pairs is a skill published in the GitHub repository drandyhaas/KiCadRoutingTools (706 stars, last pushed today), licensed MIT. It adds 64 tokens to every session and 1,548 once invoked, about $0.0003 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