kicad
Skill8 starsChanged 13 days agoMITView on GitHub
Design TrailCurrent electronics in KiCad 9 through the `kicad` MCP server (TrailCurrent KiCad Tools) — schematics with hierarchical sheets, ERC and design checks, SPICE simulation, symbol/footprint search, creation, import and audit, PCB layout (update from schematic, outline, stackup, manufacturer design rules, placement, routing, zones), DRC, renders and manufacturing packages. ALL schematic and board edits go through the MCP tools; never hand-edit .kicad_sch / .kicad_pcb / .kicad_sym files. Use whenever a task touches a KiCad project, a part, a footprint, a board, or fab outputs.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- RileyCornelius/Code-Skillstheir own version, first seen Nov 29, 2026
- Lukk17/agent-standardstheir own version, first seen Nov 24, 2026
- joegoldin/agent-skillstheir own version, first seen Nov 19, 2026
- rogue-dev-studio/ai-agents-roguetheir own version, first seen Nov 1, 2026
- jewbetcha/openflighttheir own version, first seen Oct 8, 2026
- jablonkai/skillstheir own version, first seen Oct 1, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- aklofas/kicad-happy★ 1.8ksame name
- jewbetcha/openflight★ 1.2ksame name
- jablonkai/skills★ 2same name
- rogue-dev-studio/ai-agents-rogue★ 2same name
- joegoldin/agent-skills★ 1same name
- Lukk17/agent-standards★ 1same name
- RileyCornelius/Code-Skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- blender-automationSkill
- eezstudioSkill
- freecad-automationSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 1 is distinctive, and 5 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Keep symbols on the 1.27 mm grid (tools snap by default).
- Very specific: line 21
Every write snapshots the file first: file_snapshots(file, "list"/"restore").
- Very specific: line 31
Prefer label_pin (short stub + net label) for anything not adjacent.
- Very specific: line 68
Don't loop parts_search over many parts: check lists with parts_match / lib_check_sourcing (one request) and reuse results.
- Very specific: line 75
Never edit sym-lib-table / fp-lib-table / kicad_common.json — if a library is missing in KiCad, tell the user to run …
- Very specific: line 116
After lib_import_lcsc / lib_import_archive, read remaining_issues and warnings, and lib_render the part.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
KiCad (via the kicad MCP server)
The tools come from TrailCurrent KiCad Tools (TrailCurrent/Utilities/MCPs/kicad).
They work on files and verify every change with KiCad itself (kicad-cli netlist,
ERC, DRC). If a tool is missing or wrong, fix the MCP (with a test in tests/) —
do not fall back to editing S-expressions by hand.
Conventions
- Millimetres and degrees. Schematic Y grows down from the page's top-left. Keep symbols on the 1.27 mm grid (tools snap by default). Use an A4 page's usable area roughly x 20–270, y 20–190.
- Pins:
REF.PIN— number or unique name (U1.3,U1.SDA). PCB pads:REF.PAD. - New symbols return their pins as
number:name@x,y->dx,dy(->is the outward direction a wire should leave in). - Every write snapshots the file first:
file_snapshots(file, "list"/"restore"). - A file open in KiCad is refused unless the edit can go live; ask the user to
close the schematic (or File → Revert after) rather than passing
allow_open.
Schematic loop
project_createorproject_info.- Find parts:
lib_search_symbols→lib_symbol_info(pins, units, filters). Footprints:lib_search_footprints/sch_suggest_footprints. - Build in one
sch_editcall per sheet:add_symbol, then connections. Preferlabel_pin(short stub + net label) for anything not adjacent; useconnectonly for short, obvious wires;powerputs GND/+3V3/… on a pin facing away from it;no_connectevery intentionally unused pin. sch_annotate.- Verify, don't assume:
sch_netlist(KiCad's real connectivity),sch_erc(aim for 0 errors),sch_check(footprints exist, symbol pins match footprint pads, unconnected pins, sheet pin/label parity, required fields), and look atsch_render's PNG.
Hierarchy: sch_add_sheet(name, file, pins=[{name, shape, side}]) creates the
sheet, its pins, the child file and the child's hierarchical labels. In the
child, label_pin(pin, net=<sheet pin name>) moves that hierarchical label onto
the pin. Power symbols (GND, +3V3 …) are global across sheets. Reusing the same
file in another sch_add_sheet makes a second instance; annotate afterwards.
TrailCurrent part conventions
- Boards are assembled by NextPCB, which buys parts by manufacturer part number. Every
BOM part needs
Manufacturer_Name+Manufacturer_Part_Number(exact, orderable MPN). LCSC numbers are no longer used.sch_check(required_fields=["Manufacturer_Part_Number"])before an order;lib_check_sourcingchecks a whole library against NextPCB's catalog. - Prefer parts from the
NextPCB_*libraries (nextpcb_librarieslists them): they are order-ready — exact MPN in NextPCB's catalog, catalog symbol + footprint, pins = pads, KiCad loads them, KiCad DRC clean, fields stamped (NextPCB_Verified). A board built only from them needs no manual part checks before ordering. - New parts, in this order:
parts_search→parts_info→parts_add(order-ready import intoNextPCB_<category>; refused, with the reason, if any check fails). Confirm against the datasheet: catalog data is sometimes partly in Chinese.- Refused because the catalog has no KiCad files: make the part in
TrailCurrentSymbolLibrary(lib_create_symbol/lib_create_footprint, orlib_footprint_wizard_build) andlib_set_fieldsthe catalog's manufacturer + MPN. Thenlib_audit.
- Ordering:
fab_package(project, "nextpcb-standard"); itsorder_check.order_readymust be true (every BOM line has an MPN NextPCB's catalog knows). People use the NextPCB order files button in the PCB editor for the same thing. - The catalog is a free service that blocks busy addresses (error 400010, "please log in").
Don't loop
parts_searchover many parts: check lists withparts_match/lib_check_sourcing(one request) and reuse results. If it is limited, stop and tell the user; the client refuses for an hour by itself. - Prototype passives:
Capacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolder,Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder(still give them an MPN). - Shared parts live in TrailCurrentKiCADLibraries (
TrailCurrentSymbolLibrary,TrailCurrentFootprints, models under${TRAILCURRENT_3DMODEL_DIR}/<category>/). Never edit sym-lib-table / fp-lib-table / kicad_common.json — if a library is missing in KiCad, tell the user to run TrailCurrentKiCADLibraries/install.sh. - People use the NextPCB parts button (schematic and PCB editors) for the same search.
PCB loop
pcb_update_from_schematic(F8 equivalent) — new parts land beside the board.pcb_set_outline,pcb_set_layers(stackup),pcb_apply_fab_profile(pcb_fab_profileslists JLCPCB/PCBWay/NextPCB/OSH Park/AISLER/Eurocircuits).pcb_arrangefor a first placement, thenpcb_placeto refine (connectors at edges, decoupling caps next to their IC pins — usepcb_list_footprints(pads=true)).pcb_add_zone(GND pour), route withpcb_autoroute(Freerouting) orpcb_add_tracks/pcb_route(straight lines — DRC after).pcb_drcuntil errors and unrouted are 0;pcb_render(2d/3d) and look.fab_package(project, profile)→Product/<Name>/EDA/manufacturing/<profile>/(NextPCB profiles write NextPCB's BOM/placement columns and warn about lines without an MPN).
Live: with KiCad open and its API on (Preferences → Plugins → Enable KiCad API),
placement/track tools act in the editor (undoable). live_status lists the
open boards by full path. KiCad 9's API cannot open a board — ask the user to
open it in the PCB editor. File-editing tools on an open board make KiCad save,
then reload (their unsaved hand edits get saved too — say so before doing it).
Undo/redo: live_run_action("common.Interactive.undo").
Nets: write them as in the schematic (A finds the root-sheet net /A); an
unknown net is refused, never created.
Escape hatches: pcb_python, kicad_cli, live_run_action (kicad_actions),
sch_raw.
Known traps
- KiCad silently ignores the whole
.kicad_druif one rule is malformed — runpcb_drcafterpcb_custom_rules. pcb_drcrefills zones first (it saves the board).lib_footprint_mismatchwarnings on stock footprints are not caused by the tools.sim_runneeds ngspice installed; R/C/L simulate from their value, sources needsim_set_model(Simulation_SPICE:VDC/VPULSE/VSINsymbols)..acneedsac=1in a source's params;no_ac_signallists nodes with nothing to show (DC rails).pcb_autoroutepicks the newest Freerouting jar an installed Java can run;kicad_setup(component="freerouting")shows which. Releases from 2.2.0 on need Java 25.- After
lib_import_lcsc/lib_import_archive, readremaining_issuesandwarnings, andlib_renderthe part. EasyEDA pins come in asunspecified; rebuild the symbol with real pin types if ERC matters.
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.

