#!/bin/sh
# Remove the linked adom-bridge-macos skills from ~/.claude/skills. Does NOT
# touch the Bridge app itself (drag Adom Bridge.app to Trash for that).
set -eu
HERE=$(cd "$(dirname "$0")" && pwd)
DEST="$HOME/.claude/skills"
n=0
for d in "$HERE"/skills/*/; do
    name=$(basename "$d")
    [ -e "$DEST/$name" ] && rm -rf "$DEST/$name" && n=$((n+1))
done
echo "adom-bridge-macos: removed $n skill(s) from $DEST"