skill
molecule-publish
Public Made by Adomby adom
Publish molecules AND generic boards to the Adom wiki - one publisher, two shapes: OCCT conversion (molecule mode with stats gates, or plain for boards), component packaging, adom-wiki publish, APM re
Write the dependency tree (component deps) into package.json — merge-safe
Part of #1.
APM lists a board/molecule's components from package.json.dependencies (its board_deps reads them and expands one hop, so deps can live directly on the page — no separate library page needed). Molecule/board pages currently have no deps, so APM shows an empty component list.
Requirements
- Map the design's schematic/BOM parts → wiki component slugs (MPN → slug). Reuse the mapping logic in
adom/adom-project-manager→skills/publish-board/kicad_board_bundle.py(note its Value-fallback caveat: value-named symbols likeR_4.3K_0402are NOT real component slugs — resolve the real MPN). - Write them (owner-qualified, e.g.
adom/<slug>) intodependencies. - Merge, never overwrite — preserve the existing
componentblock,hero,tags,model_3d_path, version. Bump version, re-publish (the dep GRAPH comes frompkg publish, notrepo push). - Verify each component page exists; publish/flag any missing ones.
Acceptance
- Opening the board/molecule in APM lists its components, resolved from the deps.
- The molecule's
component/hero/model_3d_pathare intact after the dep write.