#!/usr/bin/env bash # Installs Copilot CLI skills from this repo into ~/.claude/skills/ # Run this after a fresh clone to restore all skills. set -euo pipefail SKILLS_DIR="$(cd "$(dirname "$0")" && pwd)" TARGET_DIR="$HOME/.claude/skills" for skill_dir in "$SKILLS_DIR"/*/; do skill_name="$(basename "$skill_dir")" target="$TARGET_DIR/$skill_name" echo "Installing skill: $skill_name → $target" mkdir -p "$target" cp -r "$skill_dir"* "$target/" done echo "Done. Skills installed to $TARGET_DIR"