#!/bin/sh
# adom-hardware-component-publish — install the skill (+ its runnable scripts) for this user.
set -e
# Adom convention: SYMLINK install targets back into the module dir, so edits propagate and
# reinstalls don't clobber.
DEST="$HOME/.claude/skills/adom-hardware-component-publish"
mkdir -p "$DEST"
ln -sfn "$PWD/SKILL.md" "$DEST/SKILL.md"
# the worked scripts the skill references (bake_board_glb, board maps, viewer template,
# preview harness, seek-verify example) — linked so §5c/§6 commands work as written
ln -sfn "$PWD/scripts" "$DEST/scripts"
echo "installed: adom-hardware-component-publish -> $DEST"
echo "entry point: SKILL.md (the publish lifecycle); scripts/ holds the runnable pieces"
