#!/bin/sh
# Consumer install for the adom-bridge-macos skill package: link each bundled
# skill into ~/.claude/skills so a container or local agent learns the macOS
# Bridge verb surface. The Bridge APP itself installs via this page's
# install.sh one-liner or the dmg, not via this package.
set -eu
HERE=$(cd "$(dirname "$0")" && pwd)
DEST="$HOME/.claude/skills"
mkdir -p "$DEST"
n=0
for d in "$HERE"/skills/*/; do
    name=$(basename "$d")
    ln -sfn "$d" "$DEST/$name" 2>/dev/null || { rm -rf "$DEST/$name"; cp -R "$d" "$DEST/$name"; }
    n=$((n+1))
done
echo "adom-bridge-macos: linked $n skill(s) into $DEST"