install-plugins.sh 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576
  1. #!/usr/bin/env bash
  2. # ============================================================
  3. # Claude Code — Plugin installer
  4. # Run this after a fresh clone to reinstall all plugins
  5. # and their prerequisites on a new machine.
  6. #
  7. # Supports: Linux (apt/dnf/pacman), macOS (brew)
  8. # ============================================================
  9. set -euo pipefail
  10. RED='\033[0;31m'; GREEN='\033[0;32m'; YELLOW='\033[1;33m'; BLUE='\033[0;34m'; NC='\033[0m'
  11. ok() { echo -e "${GREEN}✓${NC} $1"; }
  12. warn() { echo -e "${YELLOW}⚠${NC} $1"; }
  13. info() { echo -e "${BLUE}→${NC} $1"; }
  14. err() { echo -e "${RED}✗${NC} $1"; }
  15. REPO="$(cd "$(dirname "$0")" && pwd)"
  16. # Log to file for post-mortem debugging (terminal output unchanged)
  17. LOG_FILE="$REPO/install-$(date +%Y%m%d-%H%M%S).log"
  18. if touch "$LOG_FILE" 2>/dev/null; then
  19. exec > >(tee -a "$LOG_FILE") 2>&1
  20. info "Logging to $LOG_FILE"
  21. else
  22. warn "Cannot write log to $REPO — continuing without log file"
  23. fi
  24. # Load shared detection library
  25. # shellcheck source=lib/detect-plugins.sh
  26. source "$REPO/lib/detect-plugins.sh"
  27. # Read pinned version from plugins.lock.json
  28. # Usage: pinned_version "rtk" → prints version string or "latest"
  29. pinned_version() {
  30. local key="$1"
  31. if [ -f "$REPO/plugins.lock.json" ] && command -v python3 &>/dev/null; then
  32. python3 -c "
  33. import json, sys
  34. with open('$REPO/plugins.lock.json') as f:
  35. d = json.load(f)
  36. v = d.get('$key', {}).get('version', 'latest')
  37. print(v)
  38. " 2>/dev/null || echo "latest"
  39. else
  40. echo "latest"
  41. fi
  42. }
  43. # ============================================================
  44. # DETECT OS
  45. # ============================================================
  46. OS="unknown"
  47. if [[ "$OSTYPE" == "darwin"* ]]; then
  48. OS="macos"
  49. elif command -v apt-get &>/dev/null; then
  50. OS="linux-apt"
  51. elif command -v dnf &>/dev/null; then
  52. OS="linux-dnf"
  53. elif command -v pacman &>/dev/null; then
  54. OS="linux-pacman"
  55. fi
  56. echo ""
  57. echo "╔══════════════════════════════════════════════════════════╗"
  58. echo "║ Claude Code — Plugin & Tool Installer ║"
  59. echo "╚══════════════════════════════════════════════════════════╝"
  60. echo ""
  61. info "OS: $OS | Repo: $REPO"
  62. echo ""
  63. # ============================================================
  64. # STEP 1 — PREREQUISITES
  65. # ============================================================
  66. echo "── Step 1: Prerequisites ───────────────────────────────────"
  67. echo ""
  68. # --- git ---
  69. if command -v git &>/dev/null; then
  70. ok "git $(git --version | awk '{print $3}')"
  71. else
  72. info "Installing git..."
  73. case $OS in
  74. macos) brew install git ;;
  75. linux-apt) sudo apt-get install -y git ;;
  76. linux-dnf) sudo dnf install -y git ;;
  77. linux-pacman) sudo pacman -S --noconfirm git ;;
  78. *) err "Cannot auto-install git on $OS — install manually"; exit 1 ;;
  79. esac
  80. ok "git installed"
  81. fi
  82. # --- Node.js (>=18) ---
  83. NODE_OK=false
  84. if command -v node &>/dev/null; then
  85. NODE_VER=$(node --version | sed 's/v//' | cut -d. -f1)
  86. if [ "$NODE_VER" -ge 22 ]; then
  87. ok "Node.js $(node --version)"; NODE_OK=true
  88. else
  89. warn "Node.js $(node --version) is too old (need >=22 — GSD v2 requires it)"
  90. fi
  91. fi
  92. if [ "$NODE_OK" = false ]; then
  93. info "Installing Node.js 22 LTS..."
  94. case $OS in
  95. macos)
  96. brew install node@22
  97. export PATH="/opt/homebrew/opt/node@22/bin:$PATH"
  98. ;;
  99. linux-apt)
  100. curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
  101. sudo apt-get install -y nodejs
  102. ;;
  103. linux-dnf)
  104. curl -fsSL https://rpm.nodesource.com/setup_22.x | sudo bash -
  105. sudo dnf install -y nodejs
  106. ;;
  107. linux-pacman)
  108. sudo pacman -S --noconfirm nodejs npm
  109. ;;
  110. *) warn "Cannot auto-install Node.js on $OS — install from https://nodejs.org" ;;
  111. esac
  112. if command -v node &>/dev/null; then
  113. ok "Node.js $(node --version)"
  114. else
  115. err "Node.js install failed"
  116. fi
  117. fi
  118. # --- Rust + Cargo (for RTK) ---
  119. if command -v cargo &>/dev/null; then
  120. ok "Rust/Cargo $(cargo --version | awk '{print $2}')"
  121. else
  122. info "Installing Rust (rustup)..."
  123. curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path
  124. source "$HOME/.cargo/env"
  125. ok "Rust installed: $(cargo --version)"
  126. fi
  127. # --- Python 3 ---
  128. if command -v python3 &>/dev/null; then
  129. ok "Python $(python3 --version)"
  130. else
  131. info "Installing Python 3..."
  132. case $OS in
  133. macos) brew install python3 ;;
  134. linux-apt) sudo apt-get install -y python3 ;;
  135. linux-dnf) sudo dnf install -y python3 ;;
  136. linux-pacman) sudo pacman -S --noconfirm python ;;
  137. *) warn "Cannot auto-install Python on $OS" ;;
  138. esac
  139. fi
  140. # --- pipx (for Graphifyy) ---
  141. if command -v pipx &>/dev/null; then
  142. ok "pipx $(pipx --version 2>/dev/null)"
  143. else
  144. info "Installing pipx..."
  145. case $OS in
  146. macos) brew install pipx ;;
  147. linux-apt) sudo apt-get install -y pipx ;;
  148. linux-dnf) sudo dnf install -y pipx ;;
  149. linux-pacman) sudo pacman -S --noconfirm python-pipx ;;
  150. *) warn "Cannot auto-install pipx on $OS" ;;
  151. esac
  152. pipx ensurepath 2>/dev/null || true
  153. fi
  154. # --- shellcheck ---
  155. if command -v shellcheck &>/dev/null; then
  156. ok "shellcheck $(shellcheck --version 2>/dev/null | grep '^version:' | awk '{print $2}')"
  157. else
  158. info "Installing shellcheck..."
  159. case $OS in
  160. macos) brew install shellcheck ;;
  161. linux-apt) sudo apt-get install -y shellcheck ;;
  162. linux-dnf) sudo dnf install -y shellcheck ;;
  163. linux-pacman) sudo pacman -S --noconfirm shellcheck ;;
  164. *)
  165. # Binary fallback for systems without package manager access
  166. ARCH=$(uname -m)
  167. if curl -sL "https://github.com/koalaman/shellcheck/releases/download/v0.10.0/shellcheck-v0.10.0.linux.${ARCH}.tar.xz" | tar -xJ --strip-components=1 -C "$HOME/.local/bin" "shellcheck-v0.10.0/shellcheck" 2>/dev/null; then
  168. chmod +x "$HOME/.local/bin/shellcheck"
  169. ok "shellcheck installed (binary fallback)"
  170. else
  171. warn "Cannot auto-install shellcheck on $OS"
  172. fi
  173. ;;
  174. esac
  175. if command -v shellcheck &>/dev/null; then
  176. ok "shellcheck installed"
  177. else
  178. warn "shellcheck install failed"
  179. fi
  180. fi
  181. # --- Claude Code CLI ---
  182. if command -v claude &>/dev/null; then
  183. ok "Claude Code $(claude --version 2>/dev/null | head -1)"
  184. else
  185. err "Claude Code not installed. Install from https://code.claude.com then re-run."
  186. exit 1
  187. fi
  188. echo ""
  189. # ============================================================
  190. # STEP 2 — GSTACK SUBMODULE
  191. # ============================================================
  192. echo "── Step 2: GStack submodule ─────────────────────────────────"
  193. echo ""
  194. # Note: GStack is managed as a git submodule in this repo.
  195. # It lives at skills-external/gstack/ and is symlinked to ~/.claude/skills/gstack/
  196. # by link.sh. Never clone it separately — use the submodule.
  197. #
  198. # First-time setup:
  199. # git submodule update --init --recursive
  200. # Update to latest:
  201. # git submodule update --remote skills-external/gstack
  202. # cd skills-external/gstack && ./setup
  203. # git add skills-external/gstack && git commit -m "chore: update gstack"
  204. GSTACK_DIR="$REPO/skills-external/gstack"
  205. if [ ! -d "$GSTACK_DIR/.git" ] && [ ! -f "$GSTACK_DIR/.git" ]; then
  206. info "Initializing GStack submodule..."
  207. cd "$REPO"
  208. git submodule update --init --recursive
  209. cd - > /dev/null
  210. fi
  211. if [ -d "$GSTACK_DIR" ]; then
  212. # --- bun (required by GStack ./setup) ---
  213. if ! command -v bun &>/dev/null; then
  214. info "Installing bun (required by GStack)..."
  215. BUN_VERSION="1.3.10"
  216. tmpfile=$(mktemp)
  217. curl -fsSL "https://bun.sh/install" -o "$tmpfile"
  218. BUN_VERSION="$BUN_VERSION" bash "$tmpfile" && rm -f "$tmpfile"
  219. export PATH="$HOME/.bun/bin:$PATH"
  220. if command -v bun &>/dev/null; then
  221. ok "bun $(bun --version)"
  222. else
  223. err "bun install failed"
  224. fi
  225. else
  226. ok "bun $(bun --version)"
  227. fi
  228. info "Running GStack setup..."
  229. if [ -x "$GSTACK_DIR/setup" ]; then
  230. if (cd "$GSTACK_DIR" && ./setup); then
  231. : # setup succeeded
  232. else
  233. warn "GStack ./setup failed — check output above"
  234. fi
  235. else
  236. warn "GStack ./setup not found or not executable — skipping"
  237. fi
  238. # Symlinks are handled by link.sh — verify it was run
  239. if [ -L "$HOME/.claude/skills/gstack" ]; then
  240. ok "GStack ready (submodule initialized, symlink OK)"
  241. else
  242. warn "GStack submodule ready but not symlinked — run: bash link.sh"
  243. fi
  244. else
  245. warn "GStack submodule directory not found after init — check .gitmodules"
  246. fi
  247. echo ""
  248. # ============================================================
  249. # STEP 3 — RTK
  250. # ============================================================
  251. echo "── Step 3: RTK — Rust Token Killer ─────────────────────────"
  252. echo ""
  253. if command -v rtk &>/dev/null; then
  254. ok "rtk already installed ($(rtk --version 2>/dev/null | head -1))"
  255. else
  256. RTK_VER=$(pinned_version "rtk")
  257. if [ "$RTK_VER" != "latest" ]; then
  258. info "Installing RTK $RTK_VER (pinned in plugins.lock.json)..."
  259. cargo install --git https://github.com/rtk-ai/rtk --tag "$RTK_VER"
  260. else
  261. info "Installing RTK (latest — consider pinning in plugins.lock.json)..."
  262. cargo install --git https://github.com/rtk-ai/rtk
  263. fi
  264. fi
  265. # Only init if not already configured (avoids overwriting custom RTK config)
  266. if ! grep -q "rtk" "$HOME/.claude/settings.json" 2>/dev/null; then
  267. info "Configuring RTK PreToolUse hook (global)..."
  268. rtk init -g --auto-patch
  269. ok "RTK configured"
  270. else
  271. ok "RTK hook already present in settings.json — skipping init"
  272. fi
  273. echo ""
  274. # ============================================================
  275. # STEP 4 — GSD v2
  276. # ============================================================
  277. # GSD v2 (gsd-pi) is a standalone CLI built on the Pi SDK.
  278. # It is NOT a Claude Code plugin — it runs as an external process ('gsd' command).
  279. # Usage: run 'gsd' in your terminal from a project directory.
  280. # Slash commands (/gsd auto, /gsd status, etc.) are internal to a GSD session.
  281. echo "── Step 4: GSD v2 — gsd-pi ─────────────────────────────────"
  282. echo ""
  283. if command -v gsd &>/dev/null; then
  284. ok "gsd already installed ($(gsd --version 2>/dev/null | head -1 || echo 'installed'))"
  285. else
  286. GSD_VER=$(pinned_version "gsd")
  287. if [ "$GSD_VER" != "latest" ]; then
  288. info "Installing gsd-pi@${GSD_VER} (pinned in plugins.lock.json)..."
  289. npm install -g "gsd-pi@${GSD_VER}"
  290. else
  291. info "Installing gsd-pi@latest (consider pinning in plugins.lock.json)..."
  292. npm install -g gsd-pi
  293. fi
  294. if command -v gsd &>/dev/null; then
  295. ok "GSD v2 installed ($(gsd --version 2>/dev/null | head -1))"
  296. else
  297. err "GSD v2 install failed — check npm output above"
  298. fi
  299. fi
  300. echo ""
  301. # ============================================================
  302. # STEP 5 — MARKETPLACE PLUGINS (user scope, explicit)
  303. # ============================================================
  304. # All claude plugin install commands use --scope user to ensure
  305. # they install to ~/.claude/plugins/ regardless of working directory.
  306. echo "── Step 5: Marketplace plugins (scope: user) ────────────────"
  307. echo ""
  308. install_plugin() {
  309. local name="$1"
  310. local source="$2"
  311. if claude plugin list 2>/dev/null | grep -qi "$name"; then
  312. ok "$name (already installed)"
  313. return
  314. fi
  315. info "Installing $name..."
  316. if claude plugin install --scope user "$name@$source" 2>/dev/null; then
  317. ok "$name"
  318. else
  319. err "$name — FAILED (run manually: claude plugin install --scope user $name@$source)"
  320. fi
  321. }
  322. # Anthropic bundled plugins (from anthropics/claude-code repo)
  323. # These are NOT in claude-plugins-official — they require the claude-code marketplace
  324. info "Adding Anthropic bundled plugins marketplace..."
  325. claude plugin marketplace add anthropics/claude-code 2>/dev/null || true
  326. info "Adding Anthropic skills marketplace..."
  327. claude plugin marketplace add anthropics/skills 2>/dev/null || true
  328. install_plugin "security-guidance" "claude-code-plugins"
  329. # skill-creator is in "example-skills" plugin from anthropics/skills marketplace
  330. # (not in claude-code marketplace — it's a separate repo)
  331. install_plugin "example-skills" "anthropic-agent-skills"
  332. install_plugin "pr-review-toolkit" "claude-code-plugins"
  333. install_plugin "plugin-dev" "claude-code-plugins"
  334. echo ""
  335. # Superpowers (always on)
  336. info "Adding Superpowers marketplace..."
  337. claude plugin marketplace add obra/superpowers-marketplace 2>/dev/null || true
  338. install_plugin "superpowers" "superpowers-marketplace"
  339. echo ""
  340. # UI/UX Pro Max (toggle)
  341. info "Adding UI/UX Pro Max marketplace..."
  342. claude plugin marketplace add nextlevelbuilder/ui-ux-pro-max-skill 2>/dev/null || true
  343. install_plugin "ui-ux-pro-max" "ui-ux-pro-max-skill"
  344. echo ""
  345. # ============================================================
  346. # STEP 6 — CONTEXT7 CLI (ctx7)
  347. # ============================================================
  348. echo "── Step 6: Context7 CLI ─────────────────────────────────────"
  349. echo ""
  350. if command -v ctx7 &>/dev/null; then
  351. ok "ctx7 already installed ($(ctx7 --version 2>/dev/null | head -1 || echo 'installed'))"
  352. else
  353. CTX7_VER=$(pinned_version "ctx7")
  354. if [ "$CTX7_VER" != "latest" ]; then
  355. info "Installing ctx7@${CTX7_VER} (pinned in plugins.lock.json)..."
  356. npm install -g "ctx7@${CTX7_VER}"
  357. else
  358. info "Installing ctx7@latest (consider pinning in plugins.lock.json)..."
  359. npm install -g ctx7
  360. fi
  361. if command -v ctx7 &>/dev/null; then
  362. ok "ctx7 installed ($(ctx7 --version 2>/dev/null | head -1))"
  363. else
  364. err "ctx7 install failed — run manually: npm install -g ctx7"
  365. fi
  366. fi
  367. # Suggest setup for Claude Code integration (optional — ctx7 also works standalone)
  368. if command -v ctx7 &>/dev/null; then
  369. info "Run 'ctx7 setup --claude' to configure Context7 for Claude Code"
  370. info "Or use ctx7 standalone: ctx7 docs /vercel/next.js \"middleware\""
  371. info "Free higher rate limits: ctx7 login (OAuth) or --api-key from context7.com/dashboard"
  372. fi
  373. # ============================================================
  374. # STEP 7 — GRAPHIFYY (codebase knowledge graph)
  375. # ============================================================
  376. echo "── Step 7: Graphifyy — Knowledge Graph ──────────────────────"
  377. echo ""
  378. if command -v graphify &>/dev/null; then
  379. ok "graphify already installed"
  380. else
  381. info "Installing graphifyy via pipx..."
  382. if pipx install graphifyy 2>/dev/null; then
  383. ok "graphifyy installed"
  384. else
  385. err "graphifyy install failed — run manually: pipx install graphifyy"
  386. fi
  387. fi
  388. if command -v graphify &>/dev/null; then
  389. info "Running graphify install (dependencies)..."
  390. graphify install 2>/dev/null || warn "graphify install failed — run manually"
  391. info "Configuring Claude Code integration..."
  392. graphify claude install 2>/dev/null || warn "graphify claude install failed — run manually"
  393. ok "Graphifyy configured for Claude Code"
  394. fi
  395. echo ""
  396. # ============================================================
  397. # STEP 8 — EMIL DESIGN ENG (UI polish / animation skill)
  398. # ============================================================
  399. echo "── Step 8: Emil Design Engineering ─────────────────────────"
  400. echo ""
  401. EMIL_DIR="$REPO/skills-external/emil-design-eng"
  402. EMIL_URL="https://raw.githubusercontent.com/emilkowalski/skill/main/skills/emil-design-eng/SKILL.md"
  403. mkdir -p "$EMIL_DIR"
  404. if [ -f "$EMIL_DIR/SKILL.md" ]; then
  405. ok "emil-design-eng already downloaded"
  406. else
  407. info "Downloading SKILL.md from emilkowalski/skill..."
  408. if curl -fsSL "$EMIL_URL" -o "$EMIL_DIR/SKILL.md"; then
  409. ok "emil-design-eng installed"
  410. else
  411. err "emil-design-eng download failed — try: curl -fsSL $EMIL_URL -o $EMIL_DIR/SKILL.md"
  412. fi
  413. fi
  414. # Symlink handled by link.sh
  415. if [ -L "$HOME/.claude/skills/emil-design-eng" ]; then
  416. ok "emil-design-eng symlink OK"
  417. else
  418. info "Symlinking — will be created by link.sh"
  419. fi
  420. echo ""
  421. # ============================================================
  422. # STEP 8.5 — EXTERNAL SKILLS (npx skills add …)
  423. # ============================================================
  424. # Cross-agent skills distributed via the `skills` npm package
  425. # (vercel-labs/skills). Installed into ~/.agents/skills/ and
  426. # symlinked into $REPO/skills/ by link.sh using absolute paths.
  427. echo "── Step 8.5: External skills via npx ──────────────────────"
  428. echo ""
  429. NPX_SKILLS=(
  430. "alchaincyf/darwin-skill"
  431. "alchaincyf/find-skills"
  432. )
  433. if ! command -v npx &>/dev/null; then
  434. warn "npx not available — skipping external skills"
  435. else
  436. for _src in "${NPX_SKILLS[@]}"; do
  437. _name="${_src##*/}"
  438. _dst="$HOME/.agents/skills/$_name"
  439. if [ -d "$_dst" ]; then
  440. ok "$_name already installed ($_dst)"
  441. continue
  442. fi
  443. info "Installing $_name via: npx -y skills add $_src"
  444. if npx -y skills add "$_src" 2>/dev/null; then
  445. if [ -d "$_dst" ]; then
  446. ok "$_name installed"
  447. else
  448. warn "$_name installed but not at expected path $_dst"
  449. fi
  450. else
  451. err "$_name install failed — run manually: npx -y skills add $_src"
  452. fi
  453. done
  454. fi
  455. echo ""
  456. # ============================================================
  457. # STEP 9 — SHELL CONFIG (alias + env vars)
  458. # ============================================================
  459. echo "── Step 9: Claude Code shell config (alias + env vars) ─────"
  460. echo ""
  461. # Detect shell profile
  462. SHELL_PROFILE=""
  463. if [ -n "${ZSH_VERSION:-}" ] || [ "$(basename "$SHELL" 2>/dev/null)" = "zsh" ]; then
  464. SHELL_PROFILE="$HOME/.zshrc"
  465. elif [ -n "${BASH_VERSION:-}" ] || [ "$(basename "$SHELL" 2>/dev/null)" = "bash" ]; then
  466. SHELL_PROFILE="$HOME/.bashrc"
  467. fi
  468. # Fallback to .profile (works with sh, dash, etc.)
  469. [ -z "$SHELL_PROFILE" ] && SHELL_PROFILE="$HOME/.profile"
  470. CLAUDE_LINES=(
  471. "alias claude='claude --effort max'"
  472. 'export CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING=1'
  473. )
  474. # Clean up old CLAUDE_EFFORT env var if present (replaced by alias)
  475. if grep -qF 'export CLAUDE_EFFORT=max' "$SHELL_PROFILE" 2>/dev/null; then
  476. sed -i '/export CLAUDE_EFFORT=max/d' "$SHELL_PROFILE"
  477. # Also remove orphaned comment lines left by previous installs
  478. sed -i '/^# Claude Code — added by install-plugins.sh$/{ N; /^\n$/d; }' "$SHELL_PROFILE"
  479. info "Removed old CLAUDE_EFFORT=max from $SHELL_PROFILE (replaced by alias)"
  480. fi
  481. ADDED=0
  482. for line in "${CLAUDE_LINES[@]}"; do
  483. if grep -qF "$line" "$SHELL_PROFILE" 2>/dev/null; then
  484. ok "$line (already in $SHELL_PROFILE)"
  485. else
  486. {
  487. echo ""
  488. echo "# Claude Code — added by install-plugins.sh"
  489. echo "$line"
  490. } >> "$SHELL_PROFILE"
  491. ok "$line → $SHELL_PROFILE"
  492. ADDED=1
  493. fi
  494. done
  495. if [ "$ADDED" -eq 1 ]; then
  496. info "Restart your shell or run: source $SHELL_PROFILE"
  497. fi
  498. echo ""
  499. # ============================================================
  500. # SUMMARY
  501. # ============================================================
  502. echo ""
  503. echo "╔══════════════════════════════════════════════════════════╗"
  504. echo "║ Install Summary ║"
  505. echo "╚══════════════════════════════════════════════════════════╝"
  506. echo ""
  507. echo " ALWAYS ON (installed at user scope):"
  508. echo " ✅ security-guidance — PreToolUse security hook (0 tokens) [claude-code-plugins]"
  509. echo " ✅ rtk — token compression hook (0 tokens)"
  510. echo " ✅ superpowers — brainstorm/plan/implement/debug workflow"
  511. echo ""
  512. echo " TOGGLE (installed but start OFF — /plugin-check recommends when needed):"
  513. echo " 🔄 gstack — ~/.claude/skills/gstack/ (→ submodule)"
  514. echo " 🔄 gsd v2 — standalone CLI 'gsd' (gsd-pi, not a Claude Code plugin)"
  515. echo " 🔄 plugin-dev — create plugins/skills (~100 tokens) [claude-code-plugins]"
  516. echo " 🔄 pr-review-toolkit — /pr-review-toolkit:review-pr (~300 tokens) [claude-code-plugins]"
  517. echo " 🔄 ui-ux-pro-max — user scope (~400 tokens)"
  518. echo " 🔄 context7 CLI — ctx7 (npm global, standalone or MCP setup)"
  519. echo " 🔄 graphifyy — codebase knowledge graph (pipx, PreToolUse hook)"
  520. echo " 🔄 emil-design-eng — UI polish, animations, component craft (curl → symlink)"
  521. echo " 🔄 darwin-skill — autonomous skill optimizer (npx skills, ~/.agents/skills/)"
  522. echo " 🔄 find-skills — skill discovery helper (npx skills, ~/.agents/skills/)"
  523. echo ""
  524. echo " All plugins installed at: user scope (~/.claude/plugins/)"
  525. echo " GStack skills symlinked individually into ~/.claude/skills/ (→ submodule)"
  526. echo " Emil Design Eng at: ~/.claude/skills/emil-design-eng/ (symlink → skills-external)"
  527. echo " npx skills at: ~/.agents/skills/ (symlinked into ~/.claude/skills/)"
  528. echo ""
  529. echo " → Restart Claude Code — plugins load automatically"
  530. echo ""