← Commit history

publish-board: components must be keyed by MPN (slug+title), never by value/properties

barrett-land ·e3686ba5da ·3mo ago ·parent 6717805
1 file changed +7−1
skills/publish-board/SKILL.md+7−1
@@ -19,7 +19,13 @@ schematic, KiCad-colored PCB), backed by a component **library**. - **Library page** — `type: component`, tag `["library"]`, title   `"<Board Name> Library"`, slug `<board-slug>-library`. `dependencies` = every   component on the board. Ships the board's `.kicad_sym` + `.pretty`.-- **Component pages** — the existing per-component pages, matched by MPN → slug.+- **Component pages** — the existing per-component pages, **keyed by MPN**: slug =+  the normalized MPN, title leads with the MPN. **Never publish or depend on a+  component keyed by its value/properties** (e.g. slug `cap-2u2-0402-6v3`, title+  "2.2uF 0402") — value names collide (many parts are "2.2uF 0402"), don't resolve+  MPN→slug, and break dedup + the dependency graph. If a board references a+  value-named component page, re-slug it to the MPN (or point the dep at the real+  MPN page) rather than depending on the value-named one.  The Manager reads the board's one dependency (the library), then lists the library's dependencies (the components). `board_deps` expands any dependency that