This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / skills / install.sh
732 B 28 lines
1#!/usr/bin/env bash 2set -euo pipefail 3 4SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" 5CLAUDE_SKILLS_DIR="${HOME}/.claude/skills" 6 7install_skill() { 8 local skill_name="$1" 9 local skill_dir="${SCRIPT_DIR}/${skill_name}" 10 11 if [[ ! -f "${skill_dir}/SKILL.md" ]]; then 12 echo "Error: ${skill_name}/SKILL.md not found" >&2 13 return 1 14 fi 15 16 mkdir -p "${CLAUDE_SKILLS_DIR}/${skill_name}" 17 ln -sf "${skill_dir}/SKILL.md" "${CLAUDE_SKILLS_DIR}/${skill_name}/SKILL.md" 18 echo "Installed ${skill_name}" 19} 20 21if [[ $# -gt 0 ]]; then 22 install_skill "$1" 23else 24 for skill_dir in "${SCRIPT_DIR}"/*/; do 25 skill_name="$(basename "${skill_dir}")" 26 [[ -f "${skill_dir}/SKILL.md" ]] && install_skill "${skill_name}" 27 done 28fi