#!/usr/bin/env bash
# StarHOT Skill installer. Usage: bash install.sh [--target agents|claude]
set -euo pipefail
target="agents"
while [ $# -gt 0 ]; do case "$1" in --target) target="$2"; shift 2;; *) shift;; esac; done
case "$target" in
  agents) dir="$HOME/.agents/skills/starhot";;
  claude) dir="$HOME/.claude/skills/starhot";;
  *) echo "unknown target: $target" >&2; exit 1;;
esac
mkdir -p "$dir"
curl -fsSL "https://www.starhot.space/starhot-skill/SKILL.md" -o "$dir/SKILL.md.tmp"
mv "$dir/SKILL.md.tmp" "$dir/SKILL.md"
echo "Installed StarHOT Skill to $dir — start a new session to use it."
