#!/bin/bash
# setup-claude-skills.sh
# Symlinks relevant OpenClaw skills to ~/.claude/skills/ (global Claude Code access)
# Run once on new machines or to re-sync.

SKILLS_DIR="/home/aria/.openclaw/workspace/skills"
CLAUDE_SKILLS="$HOME/.claude/skills"

mkdir -p "$CLAUDE_SKILLS"

GLOBAL_SKILLS=(
  "superdesign:frontend-design"
  "frontend-design-excellence:frontend-design-excellence"
  "taste-protocol:taste-protocol"
  "web-app-builder:web-app-builder"
  "firebase:firebase"
  "symph-pay:symph-pay"
  "posthog:posthog"
  "ui-ux-pro-max:ui-ux-pro-max"
  "humanizer:humanizer"
  "graphic-design:graphic-design"
  "figma:figma"
)

for entry in "${GLOBAL_SKILLS[@]}"; do
  src="${entry%%:*}"
  dest="${entry##*:}"
  if [ -d "$SKILLS_DIR/$src" ]; then
    ln -sfn "$SKILLS_DIR/$src" "$CLAUDE_SKILLS/$dest"
    echo "✅ $src → ~/.claude/skills/$dest"
  else
    echo "⚠️  Not found: $SKILLS_DIR/$src"
  fi
done

echo ""
echo "Done! $(ls "$CLAUDE_SKILLS" | wc -l) skills linked to $CLAUDE_SKILLS"
