#!/usr/bin/env bash
# Install the adom-wiki-hero-image skill (+ its bundled brand assets and render tooling)
# into the user's Claude skills dir. Self-contained: no gallia dependency.
set -euo pipefail

SRC_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
DEST="${HOME}/.claude/skills/adom-wiki-hero-image"

mkdir -p "$DEST"
# copy the whole skill dir: SKILL.md + assets/ (fonts, wordmark) + render.js + hero.html
cp -R "${SRC_DIR}/skills/adom-wiki-hero-image/." "$DEST/"

echo "Installed adom-wiki-hero-image -> $DEST"
echo "Bundled: $(ls "$DEST/assets/fonts" | wc -l) font(s), adom-white.svg, render.js, hero.html"
