wired-subcircuit-design
Skill169 starsChanged 18 days agoMITView on GitHub
Build a genuinely wired, showcase-grade KiCad schematic with KiCad MCP Pro — wired sub-circuit islands plus a tidy label bus — instead of the correct-but-plain by-name-label output of auto layout.
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 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.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when an agent must produce a schematic that *looks* like a person drew it — wired functional blocks, conventional power, a …
- Very specific: line 68
Plan: all coordinates from get_pin_positions.
- Very specific: line 70
Guard with ERC: Run run_erc. Fix every violation before judging looks — a blank/oddly-passing ERC means KiCad isn't reading your symbols …
- Very specific: line 89
Prefer the label bus over routed nets wires (unsafe_routed_wires=True can short by crossing geometry — avoid it).
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill 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.
Files
Wired Sub-circuit Design Skill
Use this skill when an agent must produce a schematic that looks like a person
drew it — wired functional blocks, conventional power, a clean breakout bus — not
just an electrically valid netlist. It is the deliberate, higher-effort path that
sch_build_circuit(auto_layout=True, nets=...) cannot reach.
Specific to oaslananka/kicad-mcp-pro. Keep in sync with
docs/tools-reference.generated.md. Worked reference:
examples/gallery/esp32-c3-wroom-02-breakout.
Why auto layout is not enough
sch_build_circuit with nets uses a collision-safe terminal strategy: every
pin endpoint gets a stub plus a same-named global label / power symbol, so nets
connect by name and can never short by crossing geometry. That is correct and
ERC-clean, but it reads as a machine netlist: every decoupling cap floats between
its own +3V3 and GND labels instead of being wired. Showcase quality needs
explicit placement and wires. The cosmetic score never measures this — judge the
render, not the number.
The one rule that avoids a blank sheet
Build the whole sheet in a single sch_build_circuit pass with explicit
symbols (with coordinates), wires, labels and power_symbols — and no
nets, no auto_layout. Do not assemble a schematic from scratch with
repeated sch_add_symbol calls: a freshly seeded sheet has no root UUID that the
reader round-trips, so each incremental add stamps a different instance path and
KiCad renders a blank sheet even though the file parses. One pass writes one
consistent root UUID, so every symbol lands on the root sheet.
Compute exact pin coordinates up front with get_pin_positions(lib, sym, x, y,
rot) (pure geometry — no placement needed), then wire pin-tip to pin-tip.
Design pattern
- Anchor the main part (MCU / module) in the center.
- Wire the sub-circuit islands. Decoupling, reset, boot-strap, status LED, regulators — draw each as a real wired block ending in power symbols. This is what separates a showcase from auto output; do not let these become floating labelled pins.
- Label bus for the breakout. Route general IO to a header with matched local
labels. Generate the part-side and header-side labels from one source list
so the two label sets are identical by construction — this eliminates the whole
isolated_pin_label/label_danglingclass, not just the ones you happen to see. - Conventional power.
+3V3up,GNDdown; put exactly onePWR_FLAGon each supply net so ERC sees the rails driven. - Place each sub-circuit in its own x-column below the anchor, and keep
decoupling clear of the anchor's stub fan — most first-pass ERC errors
(
multiple_net_names) come from a power symbol landing on a neighbouring label. - Fill the title block with
sch_set_title_block_info.
Attach labels correctly
A net label must sit on a wire endpoint. When tapping a sub-circuit node, add a
short stub wire and place the label at the stub's free end — a label floating
beside a wire raises label_dangling.
The loop
- Plan all coordinates from
get_pin_positions; assemble the four lists. - Build in one
sch_build_circuitpass. - Guard with ERC. Run
run_erc. Fix every violation before judging looks — a blank/oddly-passing ERC means KiCad isn't reading your symbols (see the root UUID rule). - See. Render with
sch_render_png(orkicad-cli sch export svg) and judge against the rubric below. The render is ground truth. - Refine placement for overlaps and composition; rebuild. Stop when ERC is clean and nothing overlaps — do not chase the cosmetic score past that.
Rubric — what "wired showcase" looks like
- Functional blocks are wired, not floating labelled pins.
- Power symbols are conventional; one
PWR_FLAGper supply. - The breakout bus is tidy and every label is matched (no isolated labels).
- Orthogonal wiring, on-grid, no diagonal runs, no overlapping graphics.
- Complete title block; content composed rather than crammed in one corner.
Guardrails
- Wired ≠ correct-by-magic. Finish with
run_erc; a showcase must also be clean. - Prefer the label bus over routed
netswires (unsafe_routed_wires=Truecan short by crossing geometry — avoid it). - One curated example is worth more than a bulk auto-generated gallery; expect per-example effort.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- integrations/AGENTS.mdAGENTS.md
- packages/AGENTS.mdAGENTS.md
- src-tauri/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- docs/llms.txtllms.txt
- drc-checkSkill
- fabrication-outputSkill
- kicad-design-reviewSkill
- pcb-designSkill
- schematic-reviewSkill
- visual-excellenceSkill
- wired-subcircuit-designSkill
- code-reviewSkill
- drc-checkSkill
- fabrication-outputSkill
- kicad-design-reviewSkill
- pcb-designSkill
- schematic-reviewSkill
- visual-excellenceSkill
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
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.

