install-plugins.sh 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. #!/usr/bin/env bash
  2. # ============================================================
  3. # Claude Code — Plugin installer
  4. # Run this after a fresh clone to reinstall all plugins
  5. # ============================================================
  6. set -euo pipefail
  7. echo "=== Claude Code Plugin Installer ==="
  8. echo ""
  9. # ---- Marketplace officielle (already registered by default) ----
  10. echo ">> Installing official Anthropic plugins..."
  11. claude plugin install security-guidance@claude-plugins-official
  12. claude plugin install frontend-design@claude-plugins-official
  13. claude plugin install skill-creator@claude-plugins-official
  14. claude plugin install pr-review-toolkit@claude-plugins-official
  15. # ---- Superpowers ----
  16. echo ""
  17. echo ">> Installing Superpowers..."
  18. claude plugin marketplace add obra/superpowers-marketplace 2>/dev/null || true
  19. claude plugin install superpowers@superpowers-marketplace
  20. # ---- UI/UX Pro Max ----
  21. echo ""
  22. echo ">> Installing UI/UX Pro Max..."
  23. claude plugin marketplace add nextlevelbuilder/ui-ux-pro-max-skill 2>/dev/null || true
  24. claude plugin install ui-ux-pro-max@ui-ux-pro-max-skill
  25. # ---- GSD ----
  26. echo ""
  27. echo ">> Installing GSD (get-shit-done)..."
  28. npx get-shit-done-cc --claude --global --auto
  29. # ---- GStack ----
  30. echo ""
  31. echo ">> Installing GStack (Garry Tan)..."
  32. if [ ! -d "$HOME/.claude/skills/gstack" ]; then
  33. git clone --single-branch --depth 1 \
  34. https://github.com/garrytan/gstack.git \
  35. "$HOME/.claude/skills/gstack"
  36. fi
  37. cd "$HOME/.claude/skills/gstack" && ./setup
  38. cd -
  39. # ---- RTK ----
  40. echo ""
  41. echo ">> Installing RTK (token compression)..."
  42. if ! command -v rtk &>/dev/null; then
  43. cargo install --git https://github.com/rtk-ai/rtk
  44. fi
  45. rtk init -g --auto-patch
  46. # ---- Context7 MCP ----
  47. echo ""
  48. echo ">> Context7 MCP — manual step required:"
  49. echo " Get a free API key at https://context7.com"
  50. echo " Then run:"
  51. echo " claude mcp add --scope user context7 -- npx -y @upstash/context7-mcp --api-key YOUR_KEY"
  52. # ---- Joey Barbier plugins ----
  53. echo ""
  54. echo ">> Installing Joey Barbier plugins..."
  55. claude plugin marketplace add joey-barbier/ClaudeCode-Plugin 2>/dev/null || true
  56. claude plugin install review@joey-barbier-plugins 2>/dev/null || \
  57. echo " Warning: verify plugin name at github.com/joey-barbier/ClaudeCode-Plugin"
  58. claude plugin install memory@joey-barbier-plugins 2>/dev/null || \
  59. echo " Warning: verify plugin name at github.com/joey-barbier/ClaudeCode-Plugin"
  60. echo ""
  61. echo "=== Done! Restart Claude Code to activate all plugins. ==="
  62. echo ""
  63. echo "Plugins installed (marketplace-managed, not committed to git):"
  64. echo " - security-guidance (Anthropic official)"
  65. echo " - frontend-design (Anthropic official)"
  66. echo " - skill-creator (Anthropic official)"
  67. echo " - pr-review-toolkit (Anthropic official)"
  68. echo " - superpowers (obra/superpowers)"
  69. echo " - ui-ux-pro-max (nextlevelbuilder)"
  70. echo " - gsd (glittercowboy)"
  71. echo " - rtk (rtk-ai, system binary + hook)"
  72. echo ""
  73. echo "Skills committed to git (available without reinstall):"
  74. echo " ~/.claude/skills/gstack (garrytan)"