main
Kyle Bergstedt Publish 2.0.0 d5d2b58 1d ago
#!/usr/bin/env bash
# Install the KiCad Bridge for macOS user skill. The skill directory name must equal SKILL.md's `name:`
# (kicad-bridge-macos). The bridge RUNTIME is not here: Adom Bridge installs and updates it from this
# page's Releases. The Adom Bridge CLI + core skills arrive through this pkg's dependencies.
set -e
PKG_DIR="$(cd "$(dirname "$0")" && pwd)"
deploy_into() {
  mkdir -p "$1/kicad-bridge-macos"
  cp "$PKG_DIR/SKILL.md" "$1/kicad-bridge-macos/SKILL.md"
  echo "  -> $1/kicad-bridge-macos"
}
echo "Installing KiCad Bridge for macOS skill:"
deploy_into "$HOME/.claude/skills"
[ -d "$HOME/.codex" ] && deploy_into "$HOME/.codex/skills"
echo "Done. The skill drives KiCad on the Mac through the adom-bridge CLI; Adom Bridge installs the bridge on first use."