← Commit history

install.sh: explicitly deploy each bundled sub-skill (lint)

John Lauer ·d2862135ac ·4mo ago ·parent e9a4447
2 files changed +18−15
install.sh+14−12
@@ -1,16 +1,18 @@ #!/usr/bin/env bash-# Install the Adom UI Design System and all the UI skills bundled in this repo.+# Install the Adom UI Design System and every UI skill bundled in this repo. set -e DEST="$HOME/.claude/skills"-# main design-system skill (root SKILL.md)-mkdir -p "$DEST/adom-ui-design"; cp SKILL.md "$DEST/adom-ui-design/SKILL.md"-n=1-# bundled sub-skills, one folder each under skills/-for d in skills/*/; do-  name="$(basename "$d")"-  mkdir -p "$DEST/$name"-  cp "$d/SKILL.md" "$DEST/$name/SKILL.md"-  n=$((n+1))-done-echo "OK: Installed the Adom UI Design System plus $((n-1)) bundled UI skills to $DEST/."+install_skill() { mkdir -p "$DEST/$1"; cp "$2" "$DEST/$1/SKILL.md"; }++# main design-system skill+install_skill adom-ui-design   SKILL.md+# bundled sub-skills (one skill file each)+install_skill tooltips         skills/tooltips/SKILL.md+install_skill floating-windows skills/floating-windows/SKILL.md+install_skill toasts           skills/toasts/SKILL.md+install_skill responsive-ui    skills/responsive-ui/SKILL.md+install_skill app-shell        skills/app-shell/SKILL.md+install_skill ai-driven-apps   skills/ai-driven-apps/SKILL.md++echo "OK: Installed the Adom UI Design System plus 6 bundled UI skills to $DEST/." echo "Hint: Ask Claude 'what are the Adom color tokens', 'great tooltips', or 'make my app a joy to use'."
uninstall.sh+4−3
@@ -1,6 +1,7 @@ #!/usr/bin/env bash set -e DEST="$HOME/.claude/skills"-rm -rf "$DEST/adom-ui-design"-for d in skills/*/; do rm -rf "$DEST/$(basename "$d")"; done-echo "OK: Removed the Adom UI Design System and its bundled UI skills."+for n in adom-ui-design tooltips floating-windows toasts responsive-ui app-shell ai-driven-apps; do+  rm -rf "$DEST/$n"+done+echo "OK: Removed the Adom UI Design System and its 6 bundled UI skills."