by barrett-land
Install ADOM'S OWN machine pin/contact library into the user's EDA — KiCad, Altium Designer, OR Fusion 360. Fetches the six machine components from the wiki, converts them with adom-lbr into 'Adom Machine Symbols' + 'Adom Machine Footprints' (one combined .lbr for Fusion), and pushes them into the chosen EDA over adom-desktop. Asks which EDA first. Supersedes adom-altium-library-importer (its Altium path is folded in). Not a general component-adder.
← Commit history
install.sh+25−4@@ -1,8 +1,29 @@ #!/bin/bash # install.sh for adom-library-importer (skill).-# Runs from the extracted module directory (~/project/adom_modules/adom-library-importer/).+# Runs from the extracted module directory (~/project/adom_modules/<owner>/adom-library-importer/).+#+# Self-contained on purpose: adompkg is retired and is absent on current containers,+# so this script must not shell out to it. Until adom-wiki-cli ships universal skill+# delivery (adom/adom-wiki-cli#22), this script is the only thing that places the skill. set -euo pipefail-source "$(adompkg sh-helpers)" -# Skill install: symlink skills/adom-library-importer/ into ~/.claude/skills/adom-library-importer/.-adompkg-link-skill adom-library-importer+SKILL="adom-library-importer"+SRC="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/skills/${SKILL}"+DEST="${HOME}/.claude/skills/${SKILL}"++if [ ! -d "$SRC" ]; then+ echo "[${SKILL}] expected skills/${SKILL}/ in the package, but it is missing." >&2+ exit 1+fi++mkdir -p "${HOME}/.claude/skills"++# Forward-compatible: once the CLI delivers skills itself, DEST is a real directory+# owned by the CLI. Never clobber it -- just confirm and exit clean.+if [ -e "$DEST" ] && [ ! -L "$DEST" ]; then+ echo "[${SKILL}] already delivered at ${DEST}; leaving it in place."+ exit 0+fi++ln -sfn "$SRC" "$DEST"+echo "[${SKILL}] linked ${DEST} -> ${SRC}"
page.json+1−1@@ -1,6 +1,6 @@ { "slug": "adom-library-importer",- "version": "1.0.3",+ "version": "1.0.4", "type": "skill", "description": "Install ADOM'S OWN machine pin/contact library into the user's EDA — KiCad, Altium Designer, OR Fusion 360. Fetches the six machine components from the wiki, converts them with adom-lbr into 'Adom Machine Symbols' + 'Adom Machine Footprints' (one combined .lbr for Fusion), and pushes them into the chosen EDA over adom-desktop. Asks which EDA first. Supersedes adom-altium-library-importer (its Altium path is folded in). Not a general component-adder.", "tags": [
uninstall.sh+13−3@@ -1,7 +1,17 @@ #!/bin/bash # uninstall.sh for adom-library-importer (skill).+# Removes only the symlink this package's install.sh created. set -euo pipefail -# Remove only the symlink at ~/.claude/skills/adom-library-importer/.-rm -rf "${HOME}/.claude/skills/adom-library-importer"-echo "Uninstalled skill adom-library-importer"+SKILL="adom-library-importer"+DEST="${HOME}/.claude/skills/${SKILL}"++if [ -L "$DEST" ]; then+ rm -f "$DEST"+ echo "[${SKILL}] removed ${DEST}"+elif [ -d "$DEST" ]; then+ # A real directory here was delivered by the CLI, which owns its own removal.+ echo "[${SKILL}] ${DEST} is CLI-delivered, not our symlink; leaving it."+else+ echo "[${SKILL}] nothing to remove."+fi