#!/usr/bin/env bash
# Install the Adom UI Design System and every UI skill bundled in this repo.
set -e
cd "$(dirname "$0")"   # relative cp paths below; the update hook may invoke from another cwd
DEST="$HOME/.claude/skills"
install_skill() { mkdir -p "$DEST/$1"; cp "$2" "$DEST/$1/SKILL.md"; }

# main design-system skill
install_skill adom-ui-design   SKILL.md
# bundled sub-skills (one skill file each)
install_skill tooltips         skills/tooltips/SKILL.md
install_skill floating-windows skills/floating-windows/SKILL.md
install_skill toasts           skills/toasts/SKILL.md
install_skill responsive-ui    skills/responsive-ui/SKILL.md
install_skill app-shell        skills/app-shell/SKILL.md
install_skill ai-driven-apps   skills/ai-driven-apps/SKILL.md

echo "OK: Installed the Adom UI Design System plus 6 bundled skills to $DEST/."
echo "Hint: Ask Claude 'what are the Adom color tokens', 'great tooltips', or 'make my app a joy to use'."
