by adom
Altium molecule path: native STEP export (headless altium_export_step) and the full fabrication bundle (<slug>-fab.zip, export.json), handed with the .PcbDoc to molecule-publish. The wiki's model registry reads the .PcbDoc with the STEP and builds a full molecule: model, footprint and symbol. Includes make_overlay.py for local overlay previews.
← Commit history
install.sh+19−11@@ -1,18 +1,26 @@ #!/bin/bash-# Symlink the skill (and its helper script) into ~/.claude/skills so edits in the module-# dir propagate and a reinstall cannot clobber local work.+# adom-wiki delivers this skill (SKILL.md and reference/) to ~/.claude/skills/altium-export-molecule itself. set -e PKG_DIR="$(cd "$(dirname "$0")" && pwd)" DEST="$HOME/.claude/skills/altium-export-molecule"-mkdir -p "$DEST" -ln -sfn "$PKG_DIR/SKILL.md" "$DEST/SKILL.md"-# molecule-publish 3.0.0 reads the installed exporter's version from here.-ln -sfn "$PKG_DIR/package.json" "$DEST/package.json"-# make_overlay.py composites pads + silkscreen from Gerbers for a local look at a board;-# publishing does not use it, but the skill names it, so it travels with the skill.-[ -f "$PKG_DIR/make_overlay.py" ] && ln -sfn "$PKG_DIR/make_overlay.py" "$DEST/make_overlay.py"-[ -d "$PKG_DIR/reference" ] && ln -sfn "$PKG_DIR/reference" "$DEST/reference"+# Older versions of this install.sh linked files and folders into+# ~/.claude/skills/altium-export-molecule. CLIs before adom-wiki 1.8.34 then copied the skill+# onto itself through those links, emptying the package's own files+# (adom/adom-wiki-cli#79). Remove the leftover links (the links only, never+# what they point at) so the CLI writes real files.+for root in "$HOME/.claude/skills" "$HOME/.codex/skills"; do+ if [ -L "$root/altium-export-molecule" ]; then rm -f "$root/altium-export-molecule"; fi+ for f in SKILL.md package.json make_overlay.py reference; do+ if [ -L "$root/altium-export-molecule/$f" ]; then rm -f "$root/altium-export-molecule/$f"; fi+ done+done -echo "Installed altium-export-molecule (symlinked from $PKG_DIR)"+# Two loose files travel with the skill as real copies (the CLI delivers only+# SKILL.md and its folders): molecule-publish reads the installed exporter's+# version from package.json, and the skill names make_overlay.py.+mkdir -p "$DEST"+cp "$PKG_DIR/package.json" "$DEST/package.json"+[ -f "$PKG_DIR/make_overlay.py" ] && cp "$PKG_DIR/make_overlay.py" "$DEST/make_overlay.py"+echo "Installed altium-export-molecule" echo " overlay helper: $DEST/make_overlay.py (needs: gerbv, python3 pillow, numpy)"
package.json+7−7@@ -1,6 +1,6 @@ { "slug": "altium-export-molecule",- "version": "3.0.0",+ "version": "3.0.1", "type": "skill", "description": "Altium molecule path: native STEP export (headless altium_export_step) and the full fabrication bundle (<slug>-fab.zip, export.json), handed with the .PcbDoc to molecule-publish. The wiki's model registry reads the .PcbDoc with the STEP and builds a full molecule: model, footprint and symbol. Includes make_overlay.py for local overlay previews.", "dependencies": {@@ -36,12 +36,12 @@ "prompt": "Publish this Altium molecule to the wiki" } ],- "hero": { - "type": "billboard", - "headline": "Altium board to wiki molecule", - "subhead": "PcbDoc through KiCad's importer, then the molecule pipeline end to end", - "screenshot": "docs/shot.png" -},+ "hero": {+ "type": "billboard",+ "headline": "Altium board to wiki molecule",+ "subhead": "PcbDoc through KiCad's importer, then the molecule pipeline end to end",+ "screenshot": "docs/shot.png"+ }, "tags": [ "altium", "molecule",
page.json+1−1@@ -1,6 +1,6 @@ { "slug": "altium-export-molecule",- "version": "3.0.0",+ "version": "3.0.1", "type": "skill", "description": "Altium molecule path: native STEP export (headless altium_export_step) and the full fabrication bundle (<slug>-fab.zip, export.json), handed with the .PcbDoc to molecule-publish. The wiki's model registry reads the .PcbDoc with the STEP and builds a full molecule: model, footprint and symbol. Includes make_overlay.py for local overlay previews.", "tags": [
uninstall.sh+3−5@@ -1,5 +1,3 @@-#!/bin/bash-set -e-SKILLS_DIR="$HOME/.claude/skills"-rm -rf "$SKILLS_DIR/altium-export-molecule"-echo "Uninstalled altium-export-molecule"+#!/bin/sh+# Nothing to do: adom-wiki removes the skill it delivered.+exit 0