#!/usr/bin/env bash
# Removes the bundled skills from BOTH agent skill homes (Claude + Codex).
LEGACY="adom-browser-extension"   # renamed to adom-native-browser (2026-08); remove the stale copy
SKILLS="adom-native-browser driving-the-extension native-browser-safety installing-the-extension uninstalling-the-extension native-browser-recording driving-the-extension-demo driving-the-desktop driving-sites reading-google-messages"
for HOME_DIR in "${HOME}/.claude/skills" "${HOME}/.codex/skills"; do
  for old in $LEGACY; do
    [ -d "$HOME_DIR/$old" ] && rm -rf "$HOME_DIR/$old" && echo "removed legacy skill $old from $HOME_DIR"
  done
  for name in $SKILLS; do
    rm -rf "$HOME_DIR/$name" && echo "removed $name from $HOME_DIR"
  done
done
