agentleFS
RileyCorneliusRileyCornelius/Code-Skills/kicad-library-managment/SKILL.md

kicad-library-managment

Skill0 starsChanged 7 months agoMITView on GitHub

KiCad symbols, footprints, and 3D models. Use when verifying a part against its datasheet, importing a vendor zip or loose .kicad_sym / .kicad_mod / STEP, repairing a broken or mislinked chain, editing pins or pads, normalizing Manufacturer / MPN / LCSC / Datasheet / Details fields, auditing a project library, or copying a part between libraries.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read both datasheet views of a pinout.

    line 38
  2. Distinctive:

    Blocking conflict: When the LCSC number, MPN, manufacturer, datasheet, and package name different components, that part is blocked.

    line 50
  3. Very specific:

    Read sym-lib-table and fp-lib-table for the nicknames and paths actually in play.

    line 54
  4. Distinctive:

    Every library edit lands on parts already placed.

    line 61
  5. Distinctive:

    Every run ends in a report, clean runs included.

    line 76
  6. Distinctive:

    Verification, audit, or import: Use the full structure. Write it to a file when the user names a path.

    line 80

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

KiCad library parts

A part is a chain, and every link has to name one component:

supplier record -> symbol -> footprint -> 3D model -> placed instances

Equal pin and pad counts prove nothing. Compare the pin set against the pad set number by number, and both against the datasheet's pin table.

Mode

Pick the narrowest one that satisfies the request.

ModeReference
Verify one part against its datasheetVERIFY.md
Audit a project or personal libraryVERIFY.md, POLICY.md
Import a vendor package or loose assetIMPORT.md, then verify
Repair a broken or mislinked chainIMPORT.md
Edit symbol pins or footprint padsVERIFY.md
Normalize metadata and DetailsPOLICY.md
Copy a part between librariesIMPORT.md

Complete verification is the default. A quick check happens when the user asks for one by name. Label it as a quick check in the report so nobody reads it as the complete one.

A review request leaves every file exactly as found.

Ground truth

The manufacturer PDF decides every electrical and mechanical fact. The KiCad library is the thing under test. Confirming a pinout against the .kicad_sym, the analyzer output, or the placed symbol is circular, because a wrong library symbol agrees with itself at every link in the chain.

Read both datasheet views of a pinout. The pin table carries names, directions, and DC characteristics. The pin assignment figure carries the physical map, the pin 1 corner, and the pad groupings. Either one alone leaves a hole.

Source order:

  1. Manufacturer datasheet. Pinout, pin directions, package dimensions, recommended land pattern. Look in the project's datasheets/ folder and sibling project folders first, then the kicad-happy:datasheets extraction cache, then download through kicad-happy:digikey, kicad-happy:element14, or kicad-happy:mouser. Fetch the manufacturer PDF directly when none of those has it.
  2. LCSC or JLCPCB record. The LCSC code and the exact Manufacturer string, through kicad-happy:lcsc or kicad-happy:jlcpcb.
  3. Manufacturer product page. Ordering codes, SKU variants, lifecycle.
  4. Project conventions. Library layout, naming, and field style already in use.
  5. Vendor import files. Untrusted. They set a starting point and earn nothing.

For a library-wide audit, kicad-happy:kicad's schematic analyzer gives the placed-part inventory, pin-to-net map, and metadata coverage in one pass.

Blocking conflict. When the LCSC number, MPN, manufacturer, datasheet, and package name different components, that part is blocked. Report the conflict with the evidence each source gave, and leave the part as found. Independent parts carry on.

Scope

  • Read sym-lib-table and fp-lib-table for the nicknames and paths actually in play. Layout differs per project.
  • Installed KiCad standard libraries stay read-only. Customize by copying the part into the project or personal library first.
  • Library files are the edit target: .kicad_sym, .pretty/*.kicad_mod, .3dshapes/*. Schematic and PCB files stay read-only, per Fallout.
  • A file you wrote has to still load in KiCad and hold exactly the pin set, pad set, and field values you intended. Read it back and confirm that before calling the work done.

Fallout

Every library edit lands on parts already placed. Work out what it costs, name it exactly, and offer to patch it. Placed schematic and PCB files change only when the user says so.

EditFallout to name
Pin length, position, or angle changedWhich placed pins the wires no longer reach, in sheet coordinates, and which no-connect flags now sit short of their pin
Pins added, removed, or renumberedWhich nets the schematic loses, and which pads the board loses
Pin electrical type changedWhich ERC classes clear and which appear
Pad size, shape, or position changedPad-to-pad gap at the real pitch against the board's min_clearance, and whether routing on the placed footprint is affected
Symbol, footprint, or model renamedEvery placed lib_id or footprint reference that breaks
Metadata field renamed or its visibility changedEvery placed instance still carrying the old field

Close by naming the KiCad sync the user still owes. Update Symbols from Library covers schematic changes, Update Footprints from Library covers board changes, and an edit that touched copper or pin types needs a DRC or ERC re-run.

Report

Every run ends in a report, clean runs included. Scale it to the work.

Targeted fix. A field, a model path, one pad. Report in chat: what changed, its fallout, and what went unchecked.

Verification, audit, or import. Use the full structure. Write it to a file when the user names a path.

# <part or project> library-part report

## Verdict            one sentence: usable, or blocked on what
## Datasheet used     document title, revision, and the pages each fact came from
## Changes            exact fields, pins, pads, files, or "none, review only"
## Findings           severity | part | finding | evidence | action
## Verified           checks that passed, with the measured value beside the datasheet value
## Limits             sources unavailable, checks skipped, what a file review cannot prove
SeverityMeaning
BlockerIdentity, mapping, or chain unresolved. The part is unusable.
HighAssembles wrong, or produces a wrong BOM.
MediumMetadata, model, or drawing-layer defect.
LowPresentation only, no electrical or mechanical effect.

Findings cite the page or figure they came from. A file review never proves the hardware works, so say that under Limits.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.