claude-superskills
18 Universal AI Skills for Claude Code, GitHub Copilot & 6 more platforms. Meta/orchestration, planning, research, and content — the focused core of the Superskills family.
Safety scan
A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.
Check it deeper on your machine
It has changed since its scan on 11 Nov 2026.
As a Claude Code plugin, install it and then ask Claude Code:
/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/ericgandrade/claude-superskills with scanskillsafety
Or from a terminal, clone it and run it:
git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/ericgandrade/claude-superskills'
It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.
Badge for your README
Markdown
[](/listings/ericgandrade--claude-superskills)HTML
<a href="/listings/ericgandrade--claude-superskills"><img src="/api/listings/ericgandrade--claude-superskills/badge.svg" alt="findsafeskills safety rating" /></a>Install
Install instructions from the README
As written by the repo's author. findsafeskills has not verified these steps.
These steps run a script from the network that findsafeskills does not scan.
**One-liner (recommended):**
curl -fsSL https://raw.githubusercontent.com/ericgandrade/claude-superskills/main/scripts/install.sh | bash
**Or use NPX (zero-install):**
npx claude-superskills
The installer always uses **global installation** (`~/.<platform>/skills`), compares installed skill versions with the current installer version, shows differences, and recommends updates/new installs automatically.
**Other methods:**
# npm global npm install -g claude-superskills # With bundles npx claude-superskills --bundle essential -y
**Local install (no npm/npx required):**
If you have cloned the repository and want to install skills directly, without any internet download or Node.js:
git clone https://github.com/ericgandrade/claude-superskills cd claude-superskills # Interactive — choose which platforms to install to ./scripts/local-install.sh # Auto-install to all detected platforms ./scripts/local-install.sh -y # Silent auto-install (CI / scripted environments) ./scripts/local-install.sh -y -q
The script reads directly from `skills/`, detects your installed platforms, and copies everything into the right directories. No Node.js, no npm, no internet.
See [Installation Guide](docs/INSTALLATION.md) for all methods and troubleshooting.
**Uninstall:**
curl -fsSL https://raw.githubusercontent.com/ericgandrade/claude-superskills/main/scripts/uninstall.sh | bash
What was scanned
The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.
.claude-plugin/marketplace.json · Manifest · 48 lines
View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)
- {
- "name": "claude-superskills",
- "owner": {
- "name": "Eric Andrade",
- "email": "egandrade@gmail.com"
- },
- "metadata": {
- "description": "18 universal AI skills for Claude Code — planning, orchestration, product strategy, career workflows, research, content processing, UI/UX design, Obsidian knowledge management, document conversion, and Avanade-branded web generation"
- },
- "plugins": [
- {
- "name": "claude-superskills",
- "source": {
- "source": "github",
- "repo": "ericgandrade/claude-superskills"
- },
- "description": "18 universal AI skills for Claude Code — planning, orchestration, product strategy, career workflows, research, content processing, UI/UX design, Obsidian knowledge management, document conversion, and Avanade-branded web generation",
- "author": {
- "name": "Eric Andrade"
- },
- "homepage": "https://github.com/ericgandrade/claude-superskills",
- "repository": "https://github.com/ericgandrade/claude-superskills",
- "license": "MIT",
- "keywords": [
- "skills",
- "ai",
- "automation",
- "research",
- "planning",
- "orchestration",
- "content",
- "strategy",
- "prompt-engineering",
- "ui-ux",
- "design"
- ],
- "category": "productivity",
- "tags": [
- "skills",
- "research",
- "planning",
- "content",
- "orchestration",
- "design"
- ]
- }
- ]
- }
README.md · README · 439 lines · 2 findings marked
View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)
- # 🤖 Claude Superskills v2.0.8
- Scale AI-assisted engineering with a reusable skill platform that turns ad-hoc prompting into standardized, high-impact workflows. Install once and deliver consistent planning, research, orchestration, and content automation across your entire multi-tool AI stack.
- 
- 
- 
- 
- ## 🚀 Quick Install
- **One-liner (recommended):**
- ```bash
- curl -fsSL https://raw.githubusercontent.com/ericgandrade/claude-superskills/main/scripts/install.sh | bash
- Note: Pipes a downloaded script directly into a shell (curl | sh / wget | bash)
- Line 14 on GitHub
- ```
- **Or use NPX (zero-install):**
- ```bash
- npx claude-superskills
- ```
- The installer always uses **global installation** (`~/.<platform>/skills`), compares installed skill versions with the current installer version, shows differences, and recommends updates/new installs automatically.
- **Other methods:**
- ```bash
- # npm global
- npm install -g claude-superskills
- # With bundles
- npx claude-superskills --bundle essential -y
- ```
- **Local install (no npm/npx required):**
- If you have cloned the repository and want to install skills directly, without any internet download or Node.js:
- ```bash
- git clone https://github.com/ericgandrade/claude-superskills
- cd claude-superskills
- # Interactive — choose which platforms to install to
- ./scripts/local-install.sh
- # Auto-install to all detected platforms
- ./scripts/local-install.sh -y
- # Silent auto-install (CI / scripted environments)
- ./scripts/local-install.sh -y -q
- ```
- The script reads directly from `skills/`, detects your installed platforms, and copies everything into the right directories. No Node.js, no npm, no internet.
- See [Installation Guide](docs/INSTALLATION.md) for all methods and troubleshooting.
- **Uninstall:**
- ```bash
- curl -fsSL https://raw.githubusercontent.com/ericgandrade/claude-superskills/main/scripts/uninstall.sh | bash
- Note: Pipes a downloaded script directly into a shell (curl | sh / wget | bash)
- Line 56 on GitHub
- ```
- ## 🔌 Claude Code Plugin (Native)
- Use claude-superskills as a native Claude Code plugin — no npm, no Node.js required.
- Requires **Claude Code v1.0.33+** (`claude --version` to check).
- ---
- ### Option A — Claude Code CLI (Terminal)
- > ⚠️ **Important:** While the universal installer (`npx claude-superskills`) works perfectly to copy skills into `~/.claude/skills/`, using the native Claude Code Plugin system (described below) is the **recommended and most suitable installation method** for Claude Code users.
- **Method 1: Interactive UI (Inside a running `claude` session) — Recommended**
- Start a Claude Code session:
- ```bash
- claude
- ```
- Then run these slash commands inside the session:
- ```text
- # 1. Add the marketplace
- /plugin marketplace add ericgandrade/claude-superskills
- # 2. Install the plugin
- /plugin install claude-superskills@claude-superskills
- ```
- Alternatively, open the plugin manager with `/plugin` → navigate to the **Discover** tab → search for "claude-superskills" → press **Enter** → choose your preferred scope.
- **Method 2: Shell command (Outside a session)**
- > 🐛 **Known Bug:** The `claude plugin install` shell command is currently **failing** due to an upstream issue in Claude Code. We strongly recommend using the interactive in-session method above. If you prefer a CLI approach, the universal installer (`npx claude-superskills`) is completely reliable and stable. Tracked at: [anthropics/claude-code#29722](https://github.com/anthropics/claude-code/issues/29722).
- ```bash
- # Attempt to add marketplace + install in one flow (Currently unstable)
- claude plugin install claude-superskills@claude-superskills
- ```
- Choose your scope with `--scope`:
- ```bash
- claude plugin install claude-superskills@claude-superskills --scope user # all your projects (default)
- claude plugin install claude-superskills@claude-superskills --scope project # team-shared via .claude/settings.json
- claude plugin install claude-superskills@claude-superskills --scope local # this project only, gitignored
- ```
- **Method 3: Local test (no install needed)**
- ```bash
- git clone https://github.com/ericgandrade/claude-superskills
- claude --plugin-dir ./claude-superskills
- ```
- ---
- ### Option B — Claude.ai Web (claude.ai)
- Plugin installation on claude.ai requires the plugin to be listed in the **official Anthropic marketplace**. Submission is pending. Once approved, you will be able to install directly from:
- > **Settings → Extensions → Browse Plugins** on [claude.ai](https://claude.ai)
- To be notified when the plugin is available on claude.ai, watch this repository.
- ---
- ### Option C — Claude Desktop Cowork (Custom Plugin Upload)
- If you use Claude Desktop with Cowork, the safest path is to generate a plugin zip locally and upload it manually in Cowork. This path does not depend on the `claude plugin install` shell flow.
- Generate the package with the installer:
- ```bash
- npx claude-superskills package-cowork
- ```
- Or let the interactive installer detect Cowork and offer it as a packaging target:
- ```bash
- npx claude-superskills
- ```
- The installer will generate a zip like:
- ```text
- ~/.claude-superskills/plugin-output/claude-superskills-v2.0.3.zip
- ```
- Then update Cowork manually:
- 1. Open Claude Desktop.
- 2. Switch to `Cowork`.
- 3. Open `Customize`.
- 4. Find the existing `claude-superskills` plugin.
- 5. Remove the previous version first.
- 6. Upload the new zip generated by the installer.
- 7. Confirm the new version appears in Cowork.
- Important:
- - The historical `claude plugin install` bug affects the GitHub/CLI install flow, not the Cowork custom zip upload flow.
- - Cowork is treated as `package + manual upload`, not as an auto-installed `~/.claude/skills/` target.
- - Current support level: validated on macOS; Windows and Linux detection are implemented as best-effort heuristics and should be treated as not yet fully validated in real Cowork environments.
- ---
- ### Once installed — all 18 skills under the `claude-superskills:` namespace
- ```
- /claude-superskills:skill-creator
- /claude-superskills:prompt-engineer
- /claude-superskills:brainstorming
- /claude-superskills:writing-plans
- /claude-superskills:executing-plans
- /claude-superskills:grill-me
- /claude-superskills:mckinsey-strategist
- /claude-superskills:deep-research
- /claude-superskills:us-program-research
- /claude-superskills:webpage-reader
- /claude-superskills:senior-solution-architect
- /claude-superskills:agent-skill-discovery
- /claude-superskills:agent-skill-orchestrator
- /claude-superskills:youtube-summarizer
- /claude-superskills:audio-transcriber
- /claude-superskills:pptx-translator
- /claude-superskills:document-converter
- /claude-superskills:storytelling-expert
- ```
- > **npm install still works** for GitHub Copilot, Cursor IDE, Gemini CLI, and 5 other platforms. The plugin format is Claude Code-specific.
- ## ✨ Features
- - **18 Universal Skills** - Work on all platforms
- - **Zero-Config Install** - Run once, works everywhere
- - **Curated Bundles** - Install exactly what you need
- - **Smart Search** - Find skills by keyword
- - **8 Platform Support** - GitHub Copilot, Claude Code, Codex, OpenCode, Gemini, Antigravity, Cursor, AdaL
- - **Discovery & Orchestration** - Find and plan with available resources
- - **Command Shortcuts** - `i`, `ls`, `up`, `rm`, `doc`
- - **Short Flags** - `-a`, `-y`, `-q`
- ## 📦 Available Skills
- ### 🔍 Discovery & Orchestration
- | Skill | Version | Purpose |
- |-------|---------|---------|
- | **agent-skill-discovery** | v2.1.0 | Scan installed resources and current repository resources (agents, skills, MCPs) |
- | **agent-skill-orchestrator** | v2.1.0 | Intelligent task planning with automatic prompt optimization and resource matching |
- ### 🛠️ Development & Automation
- | Skill | Version | Purpose |
- |-------|---------|---------|
- | **skill-creator** | v2.1.0 | Automate skill creation with guided workflow |
- | **prompt-engineer** | v2.0.0 | Optimize prompts using 11 frameworks (RTF, RISEN, Chain of Thought, etc.) |
- ### 🧭 Planning & Execution
- | Skill | Version | Purpose |
- |-------|---------|---------|
- | **brainstorming** | v2.0.0 | Mandatory pre-implementation design clarification workflow |
- | **writing-plans** | v2.0.0 | Build detailed, actionable implementation plans before coding |
- | **executing-plans** | v2.0.0 | Execute plans in batches with checkpoints and review gates |
- | **grill-me** | v1.0.0 | Relentless Socratic interview to stress-test any plan or design |
- | **mckinsey-strategist** | v2.1.0 | Senior strategy consulting with SWOT, VRIO, 7S and First Principles analysis |
- ### 🏛️ Software Architecture
- | Skill | Version | Purpose |
- |-------|---------|---------|
- | **senior-solution-architect** | v2.1.0 | Unified authority for C4 modeling, ADRs, and system reviews |
- ### 🔬 Research & Analysis
- | Skill | Version | Purpose |
- |-------|---------|---------|
- | **deep-research** | v2.2.0 | Dense multi-step research workflow with sub-question decomposition, parallel agents, frontier-model recommendation, evidence ledger, citations, and confidence/gap analysis |
- | **us-program-research** | v2.0.0 | Structured US academic program research, ranking, and application action-plan generation |
- | **webpage-reader** | v1.0.0 | Extract clean Markdown from any URL using the Defuddle CLI. Supports metadata-only mode, batch URLs, and saving output to file |
- ### 📝 Content Processing
- | Skill | Version | Purpose |
- |-------|---------|---------|
- | **youtube-summarizer** | v2.1.0 | Extract YouTube transcripts and generate comprehensive summaries |
- | **audio-transcriber** | v2.1.0 | Transform audio recordings into professional Markdown documentation |
- | **pptx-translator** | v2.8.0 | Translate PowerPoint presentations between languages with batched parallel translation, group shape support, and per-slide self-validation |
- | **document-converter** | v1.0.0 | Convert Office documents to PDF, perform PDF operations (merge, split, rotate, encrypt, OCR) using local free tools — LibreOffice, ghostscript, pdftk, tesseract, imagemagick |
- | **storytelling-expert** | v2.0.0 | Transform ideas into engaging narratives using 8 elite storytelling frameworks |
- ## 🎯 Curated Bundles
- ```bash
- # Essential Skills (recommended for beginners)
- npx claude-superskills --bundle essential -y
- # Content Creation (video & audio)
- npx claude-superskills --bundle content -y
- # Planning & Execution
- npx claude-superskills --bundle planning -y
- # Research & Analysis
- npx claude-superskills --bundle research -y
- # Discovery & Orchestration
- npx claude-superskills --bundle orchestration -y
- # All Skills (complete collection)
- npx claude-superskills --bundle all -y
- ```
- See [Bundles Guide](docs/bundles/bundles.md) for details.
- ## 🔍 Search Skills
- ```bash
- npx claude-superskills --search "prompt"
- npx claude-superskills --search "video"
- ```
- ## 🚀 Quick Start Examples
- ### Discovery & Planning Workflow
- ```bash
- # 1. Discover what's available
- claude # or: gh copilot, gemini, opencode, codex
- > "What do I have installed?"
- # Output: Lists installed and current-repository plugins, skills, MCPs
- # 2. Get intelligent execution plan
- > "Plan how to build a REST API with authentication"
- # Output: Detailed strategy using best available resources with confidence scores
- ```
- ### Other Use Cases
- ```bash
- # Create a new skill
- gh copilot -p "create a skill for PDF processing"
- # Optimize a prompt
- claude -p "improve this prompt: create REST API"
- # Process content
- gh copilot -p "transcribe this audio file: meeting.mp3"
- # Orchestrate complex tasks
- gemini -p "design a solution for processing meeting notes and creating Jira tickets"
- ```
- ## 💻 Supported Platforms
- - **GitHub Copilot CLI** - Terminal AI assistant (`~/.copilot/skills/`)
- - **Claude Code** - Anthropic's Claude in development (`~/.claude/skills/`)
- - **OpenAI Codex** - GPT-powered coding assistant (`~/.codex/skills/`)
- - **OpenCode** - Open source AI coding assistant (`~/.agent/skills/`)
- - **Gemini CLI** - Google's Gemini in terminal (`~/.gemini/skills/`)
- - **Antigravity** - AI coding assistant (`~/.gemini/antigravity/skills/`)
- - **Cursor IDE** - AI-powered code editor (`~/.cursor/skills/`)
- - **AdaL CLI** - AI development assistant (`~/.adal/skills/`)
- **Note on Codex:** The installer uses `~/.codex/skills/` for Codex CLI + App, with cleanup support for legacy `~/.agents/skills/`.
- ## ⌨️ Compatibility & Invocation
- These skills follow the universal `SKILL.md` format and work with any AI coding assistant that supports agentic skills.
- | Tool | Type | Invocation Example | Path |
- |------|------|--------------------|------|
- | **Claude Code** | CLI | `/skill-name help me...` | `~/.claude/skills/` |
- | **Gemini CLI** | CLI | `Use skill-name to...` | `~/.gemini/skills/` |
- | **Codex CLI** | CLI | `Use skill-name to...` | `~/.codex/skills/` |
- | **Antigravity** | IDE | *(Agent Mode)* `Use skill...` | `~/.gemini/antigravity/skills/` |
- | **Cursor** | IDE | `@skill-name` in Chat | `~/.cursor/skills/` |
- | **Copilot** | Ext | *(Paste skill content manually)* | N/A |
- | **OpenCode** | CLI | `opencode run @skill-name` | `~/.agent/skills/` |
- | **AdaL CLI** | CLI | *(Auto)* Skills load on-demand | `~/.adal/skills/` |
- > **Tip:** OpenCode uses `~/.agent/skills/`; Antigravity uses `~/.gemini/antigravity/skills/`.
- ## 📚 Documentation
- - **[Getting Started](docs/guides/getting-started.md)** - First-time user guide
- - **[Skill Anatomy](docs/guides/skill-anatomy.md)** - How skills work
- - **[Bundles Guide](docs/bundles/bundles.md)** - Curated collections
- - **[Quality Standards](docs/guides/quality-standards.md)** - Best practices
- - **[Full Catalog](CATALOG.md)** - Complete skill listing
- ## ⚡ CLI Commands & Shortcuts
- | Command | Shortcut | Purpose |
- |---------|----------|---------|
- | `install` | `i` | Install skills |
- | `list` | `ls` | List installed skills |
- | `status` | `st` | Show global install status + version differences |
- | `update` | `up` | Smart update (outdated + missing skills) |
- | `uninstall` | `rm` | Remove skills |
- | `doctor` | `doc` | Check installation |
- ```bash
- npx claude-superskills i -a -y -q # Install all, skip prompts, quiet mode
- npx claude-superskills status # Show global status + skill version differences
- npx claude-superskills up -y # Update outdated + install missing skills
- npx claude-superskills ls -q # List with minimal output
- npx claude-superskills --list-bundles # Show available bundles
- ```
- ## 📋 System Requirements
- - Node.js 14+ (for installer)
- - One or more supported platforms installed
- - Python 3.8+ (for some skills with dependencies)
- ## 🤝 Contributing
- We welcome contributions! Check [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines.
- - Create new skills using the [skill-creator](https://github.com/ericgandrade/claude-superskills) skill
- - Follow [Quality Standards](docs/guides/quality-standards.md)
- - Report issues and suggestions
- ## 🔒 Privacy
- claude-superskills does not collect, store, transmit, or share any user data.
- - **No external servers** — the plugin has no backend, no telemetry, and no network requests of its own
- - **No API keys required** — all skills run entirely within Claude Code using Claude's native tools (WebSearch, WebFetch, Bash, Read/Write)
- - **No logging** — nothing is recorded outside of your local Claude Code session
- - **Open source** — all skill logic is fully auditable at [github.com/ericgandrade/claude-superskills](https://github.com/ericgandrade/claude-superskills)
- Any web searches or document fetches performed by skills use Claude Code's built-in tools, subject to Anthropic's own privacy policy.
- ## 📄 License
- MIT - See [LICENSE](./LICENSE) for details.
- ## 🔗 Quick Links
- - 📚 [Full Catalog](CATALOG.md) - All skills with metadata
- - 🛠️ [Skills Development Guide](docs/references/skills-development.md) - Create custom skills
- - 📝 [Changelog](CHANGELOG.md) - Release history
- - 🐛 [Issues](https://github.com/ericgandrade/claude-superskills/issues) - Report problems
- - 💬 [Discussions](https://github.com/ericgandrade/claude-superskills/discussions) - Share ideas
- ---
- **Built with ❤️ by [Eric Andrade](https://github.com/ericgandrade)**
- *Version 2.0.8 | May 2026*
- ## 🎁 Get Started
- Choose a bundle that fits your workflow:
- - **[Essential](docs/bundles/bundles.md#-essential-bundle)** - skill-creator, prompt-engineer, agent-skill-discovery, agent-skill-orchestrator
- - **[Planning](docs/bundles/bundles.md#-planning--execution-bundle)** - brainstorming, writing-plans, executing-plans, grill-me, mckinsey-strategist, agent-skill-orchestrator
- - **[Research](docs/bundles/bundles.md#-research--analysis-bundle)** - deep-research, us-program-research, agent-skill-discovery, prompt-engineer
- - **[Content](docs/bundles/bundles.md#-content-creation-bundle)** - youtube-summarizer, audio-transcriber, pptx-translator, document-converter, storytelling-expert
- - **[Orchestration](docs/bundles/bundles.md#-orchestration-bundle)** - agent-skill-discovery, agent-skill-orchestrator
- - **[All](docs/bundles/bundles.md#-all-skills-bundle)** - Complete 18-skill toolkit
- See [detailed comparison](docs/bundles/bundles.md#-bundle-comparison).
- ## 🛠️ Advanced Usage
- - **[Skill Anatomy](docs/guides/skill-anatomy.md)** - How to build skills
- - **[Skills Development](docs/references/skills-development.md)** - Advanced creation
- - **[Changelog](CHANGELOG.md)** - Version history
- ## Part of the Superskills Family
- | Package | Skills | Focus | Install |
- |---------|--------|-------|---------|
- | **claude-superskills** | 18 | Core: orchestration, planning, research & content | `npx claude-superskills` |
- | [obsidian-superskills](https://github.com/ericgandrade/obsidian-superskills) | 6 | Obsidian knowledge management | `npx obsidian-superskills` |
- | [career-superskills](https://github.com/ericgandrade/career-superskills) | 20 | Job search & career development | `npx career-superskills` |
- | [product-superskills](https://github.com/ericgandrade/product-superskills) | 8 | Product management & GTM strategy | `npx product-superskills` |
- | [design-superskills](https://github.com/ericgandrade/design-superskills) | 9 | UI/UX design, brand & diagrams | `npx design-superskills` |
- | [avanade-superskills](https://github.com/ericgandrade/avanade-superskills) | 3 | Avanade-branded content (private) | `git clone git@github.com:ericgandrade/avanade-superskills.git` |
- ---
- **Getting Started? Check [Quick Start](docs/guides/getting-started.md) or run `npx claude-superskills` now!**
scripts/install.sh · Bundled script · 581 lines · 6 findings marked
- #!/usr/bin/env bash
- #
- # CLI AI Skills Installer
- # https://github.com/ericgandrade/claude-superskills
- #
- # Usage:
- # curl -fsSL https://raw.githubusercontent.com/ericgandrade/claude-superskills/main/scripts/install.sh | bash
- Note: Pipes a downloaded script directly into a shell (curl | sh / wget | bash)
- Line 7 on GitHub
- # wget -qO- https://raw.githubusercontent.com/ericgandrade/claude-superskills/main/scripts/install.sh | bash
- Note: Pipes a downloaded script directly into a shell (curl | sh / wget | bash)
- Line 8 on GitHub
- #
- # Options:
- # --yes, -y Skip all confirmations
- # --skip-node-check Skip Node.js version verification
- # --verbose Show detailed output
- # --help, -h Show this help message
- # --version, -v Show installer version
- set -euo pipefail
- # Installer version
- INSTALLER_VERSION="1.0.0"
- # Configuration
- MIN_NODE_VERSION="16.0.0"
- PACKAGE_NAME="claude-superskills"
- REPO_URL="https://github.com/ericgandrade/claude-superskills"
- # Flags
- SKIP_CONFIRMATION=false
- SKIP_NODE_CHECK=false
- VERBOSE=false
- # Colors
- if [[ -t 1 ]]; then
- GREEN='\033[0;32m'
- RED='\033[0;31m'
- YELLOW='\033[1;33m'
- BLUE='\033[0;34m'
- CYAN='\033[0;36m'
- BOLD='\033[1m'
- NC='\033[0m'
- else
- GREEN=''
- RED=''
- YELLOW=''
- BLUE=''
- CYAN=''
- BOLD=''
- NC=''
- fi
- # Cleanup on exit
- cleanup() {
- local exit_code=$?
- if [[ $exit_code -ne 0 ]]; then
- print_error "Installation failed with exit code $exit_code"
- fi
- }
- trap cleanup EXIT INT TERM
- # Print functions
- print_success() {
- echo -e "${GREEN}✓${NC} $1"
- }
- print_error() {
- echo -e "${RED}✗${NC} $1" >&2
- }
- print_info() {
- echo -e "${BLUE}ℹ${NC} $1"
- }
- print_warning() {
- echo -e "${YELLOW}⚠${NC} $1"
- }
- print_step() {
- echo -e "\n${BOLD}${CYAN}▸${NC} $1"
- }
- verbose() {
- if [[ "$VERBOSE" == "true" ]]; then
- echo -e "${CYAN}[DEBUG]${NC} $1"
- fi
- }
- # Show help
- show_help() {
- cat << EOF
- ${BOLD}CLI AI Skills Installer${NC} v${INSTALLER_VERSION}
- ${BOLD}USAGE:${NC}
- curl -fsSL https://raw.githubusercontent.com/ericgandrade/claude-superskills/main/scripts/install.sh | bash
- Note: Pipes a downloaded script directly into a shell (curl | sh / wget | bash)
- Line 93 on GitHub
- wget -qO- https://raw.githubusercontent.com/ericgandrade/claude-superskills/main/scripts/install.sh | bash
- Note: Pipes a downloaded script directly into a shell (curl | sh / wget | bash)
- Line 94 on GitHub
- ${BOLD}OPTIONS:${NC}
- -y, --yes Skip all confirmations (non-interactive mode)
- --skip-node-check Skip Node.js version verification
- --verbose Show detailed output
- -h, --help Show this help message
- -v, --version Show installer version
- ${BOLD}EXAMPLES:${NC}
- # Interactive install
- curl -fsSL https://raw.githubusercontent.com/ericgandrade/claude-superskills/main/scripts/install.sh | bash
- Note: Pipes a downloaded script directly into a shell (curl | sh / wget | bash)
- Line 105 on GitHub
- # Non-interactive (CI/CD)
- curl -fsSL https://raw.githubusercontent.com/ericgandrade/claude-superskills/main/scripts/install.sh | bash -s -- --yes
- Note: Pipes a downloaded script directly into a shell (curl | sh / wget | bash)
- Line 108 on GitHub
- ${BOLD}REQUIREMENTS:${NC}
- - Node.js >= ${MIN_NODE_VERSION}
- - npm (comes with Node.js)
- - macOS, Linux, or WSL
- ${BOLD}MORE INFO:${NC}
- ${REPO_URL}
- EOF
- }
- # Parse arguments
- parse_args() {
- while [[ $# -gt 0 ]]; do
- case $1 in
- -y|--yes)
- SKIP_CONFIRMATION=true
- shift
- ;;
- --skip-node-check)
- SKIP_NODE_CHECK=true
- shift
- ;;
- --verbose)
- VERBOSE=true
- shift
- ;;
- -h|--help)
- show_help
- exit 0
- ;;
- -v|--version)
- echo "CLI AI Skills Installer v${INSTALLER_VERSION}"
- exit 0
- ;;
- *)
- print_error "Unknown option: $1"
- echo "Use --help for usage information"
- exit 1
- ;;
- esac
- done
- }
- # Detect operating system
- detect_os() {
- verbose "Detecting operating system..."
- local os=""
- case "$(uname -s)" in
- Darwin*)
- os="macos"
- verbose "Detected: macOS"
- ;;
- Linux*)
- if grep -qi microsoft /proc/version 2>/dev/null; then
- os="wsl"
- verbose "Detected: WSL (Windows Subsystem for Linux)"
- else
- os="linux"
- verbose "Detected: Linux"
- fi
- ;;
- CYGWIN*|MINGW*|MSYS*)
- os="windows"
- verbose "Detected: Windows (Git Bash/MSYS)"
- ;;
- *)
- os="unsupported"
- verbose "Detected: Unknown/Unsupported OS"
- ;;
- esac
- echo "$os"
- }
- # Version comparison (semver)
- version_compare() {
- local version1=$1
- local version2=$2
- # Remove 'v' prefix if present
- version1=${version1#v}
- version2=${version2#v}
- # Split versions into arrays
- IFS='.' read -ra ver1 <<< "$version1"
- IFS='.' read -ra ver2 <<< "$version2"
- # Compare major.minor.patch
- for i in 0 1 2; do
- local v1=${ver1[$i]:-0}
- local v2=${ver2[$i]:-0}
- if (( v1 > v2 )); then
- return 0 # version1 > version2
- elif (( v1 < v2 )); then
- return 1 # version1 < version2
- fi
- done
- return 0 # versions are equal
- }
- # Check if Node.js is installed and meets minimum version
- check_node_installed() {
- verbose "Checking Node.js installation..."
- if ! command -v node &> /dev/null; then
- verbose "Node.js not found in PATH"
- return 1
- fi
- local node_version
- node_version=$(node --version 2>/dev/null || echo "v0.0.0")
- verbose "Found Node.js $node_version"
- if version_compare "$node_version" "$MIN_NODE_VERSION"; then
- verbose "Node.js version is sufficient (>= $MIN_NODE_VERSION)"
- return 0
- else
- verbose "Node.js version is too old (< $MIN_NODE_VERSION)"
- return 1
- fi
- }
- # Offer to install Node.js via nvm
- install_with_nvm() {
- print_step "Node.js Installation Required"
- echo "Node.js >= ${MIN_NODE_VERSION} is required but not found."
- echo ""
- if command -v nvm &> /dev/null; then
- print_info "nvm is already installed"
- echo ""
- echo "You can install Node.js with:"
- echo " ${CYAN}nvm install --lts${NC}"
- echo " ${CYAN}nvm use --lts${NC}"
- echo ""
- if [[ "$SKIP_CONFIRMATION" == "false" ]]; then
- read -p "Would you like to install Node.js now? [y/N] " -n 1 -r
- echo
- if [[ $REPLY =~ ^[Yy]$ ]]; then
- nvm install --lts
- nvm use --lts
- print_success "Node.js installed successfully"
- return 0
- fi
- fi
- else
- print_warning "nvm (Node Version Manager) is not installed"
- echo ""
- echo "To install Node.js, you can:"
- echo ""
- echo "1. Install nvm (recommended):"
- echo " ${CYAN}curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash${NC}"
- echo " Then run: ${CYAN}nvm install --lts${NC}"
- echo ""
- echo "2. Download from nodejs.org:"
- echo " ${CYAN}https://nodejs.org/${NC}"
- echo ""
- echo "3. Use a package manager:"
- echo " macOS: ${CYAN}brew install node${NC}"
- echo " Ubuntu: ${CYAN}sudo apt install nodejs npm${NC}"
- echo ""
- fi
- print_error "Please install Node.js and run this script again"
- exit 1
- }
- # Detect installed AI tools
- detect_ai_tools() {
- verbose "Detecting AI CLI tools..."
- local tools=()
- # GitHub Copilot CLI
- if command -v gh &> /dev/null && gh copilot --version &> /dev/null; then
- local gh_version=$(gh copilot --version 2>/dev/null | head -1 || echo "unknown")
- tools+=("copilot:installed:$gh_version")
- verbose "Found: GitHub Copilot CLI ($gh_version)"
- else
- tools+=("copilot:not_installed:-")
- verbose "Not found: GitHub Copilot CLI"
- fi
- # Claude Code
- if [[ -d "$HOME/.claude" ]]; then
- tools+=("claude:installed:unknown")
- verbose "Found: Claude Code (directory exists)"
- else
- tools+=("claude:not_installed:-")
- verbose "Not found: Claude Code"
- fi
- # Codex
- if [[ -d "$HOME/.codex" ]]; then
- tools+=("codex:installed:unknown")
- verbose "Found: Codex (directory exists)"
- else
- tools+=("codex:not_installed:-")
- verbose "Not found: Codex"
- fi
- # OpenCode
- if command -v opencode &> /dev/null; then
- local oc_version=$(opencode --version 2>/dev/null || echo "unknown")
- tools+=("opencode:installed:$oc_version")
- verbose "Found: OpenCode ($oc_version)"
- else
- tools+=("opencode:not_installed:-")
- verbose "Not found: OpenCode"
- fi
- # Gemini CLI
- if command -v gemini &> /dev/null; then
- local gem_version=$(gemini --version 2>/dev/null || echo "unknown")
- tools+=("gemini:installed:$gem_version")
- verbose "Found: Gemini CLI ($gem_version)"
- else
- tools+=("gemini:not_installed:-")
- verbose "Not found: Gemini CLI"
- fi
- # Antigravity
- if command -v antigravity &> /dev/null || command -v agy &> /dev/null \
- || [[ -d "$HOME/.gemini/antigravity/skills" ]]; then
- tools+=("antigravity:installed:unknown")
- verbose "Found: Antigravity"
- else
- tools+=("antigravity:not_installed:-")
- verbose "Not found: Antigravity"
- fi
- # Cursor IDE
- if command -v cursor &> /dev/null || [[ -d "/Applications/Cursor.app" ]] \
- || [[ -d "$HOME/.cursor/skills" ]]; then
- tools+=("cursor:installed:unknown")
- verbose "Found: Cursor IDE"
- else
- tools+=("cursor:not_installed:-")
- verbose "Not found: Cursor IDE"
- fi
- # AdaL CLI
- if command -v adal &> /dev/null || [[ -d "$HOME/.adal/skills" ]]; then
- tools+=("adal:installed:unknown")
- verbose "Found: AdaL CLI"
- else
- tools+=("adal:not_installed:-")
- verbose "Not found: AdaL CLI"
- fi
- # Return as newline-delimited
- printf "%s\n" "${tools[@]}"
- }
- # Display tools table
- display_tools_table() {
- local tools=("$@")
- echo ""
- echo "┌────────────────────────────────────────────────────────┐"
- echo "│ AI CLI Tools Detection │"
- echo "├────────────────────────┬────────┬──────────────────────┤"
- echo "│ Tool │ Status │ Version │"
- echo "├────────────────────────┼────────┼──────────────────────┤"
- for tool_info in "${tools[@]}"; do
- IFS=':' read -r name status version <<< "$tool_info"
- local display_name=""
- case "$name" in
- copilot) display_name="GitHub Copilot CLI" ;;
- claude) display_name="Claude Code" ;;
- codex) display_name="Codex" ;;
- opencode) display_name="OpenCode" ;;
- gemini) display_name="Gemini CLI" ;;
- antigravity) display_name="Antigravity" ;;
- cursor) display_name="Cursor IDE" ;;
- adal) display_name="AdaL CLI" ;;
- esac
- local status_icon=""
- if [[ "$status" == "installed" ]]; then
- status_icon="${GREEN}✓${NC}"
- else
- status_icon="${RED}✗${NC}"
- fi
- printf "│ %-22s │ %-6s │ %-20s │\n" "$display_name" "$status_icon" "$version"
- done
- echo "└────────────────────────┴────────┴──────────────────────┘"
- echo ""
- }
- # Install claude-superskills
- install_cli_ai_skills() {
- print_step "Installing ${PACKAGE_NAME}..."
- verbose "Running: npm install -g ${PACKAGE_NAME}"
- if [[ "$VERBOSE" == "true" ]]; then
- npm install -g "${PACKAGE_NAME}"
- else
- npm install -g "${PACKAGE_NAME}" > /dev/null 2>&1
- fi
- if [[ $? -eq 0 ]]; then
- print_success "${PACKAGE_NAME} installed successfully"
- return 0
- else
- print_error "Failed to install ${PACKAGE_NAME}"
- return 1
- fi
- }
- # Verify installation
- verify_installation() {
- verbose "Verifying installation..."
- if command -v claude-superskills &> /dev/null; then
- local installed_version=$(claude-superskills --version 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1 || echo "unknown")
- verbose "Installed version: $installed_version"
- print_success "Installation verified (v${installed_version})"
- return 0
- else
- print_error "Installation verification failed"
- return 1
- fi
- }
- # Show post-install instructions
- show_post_install() {
- local tools=("$@")
- echo ""
- echo "╔════════════════════════════════════════════════════════════════╗"
- echo "║ ${GREEN}✓${NC} ${BOLD}CLI AI Skills Installed Successfully!${NC} ║"
- echo "╚════════════════════════════════════════════════════════════════╝"
- echo ""
- print_step "Next Steps"
- echo ""
- echo "1. Run the installer:"
- echo " ${CYAN}claude-superskills${NC}"
- echo ""
- echo "2. Or use npx (no install needed):"
- echo " ${CYAN}npx claude-superskills${NC}"
- echo ""
- # Count installed tools
- local installed_count=0
- for tool_info in "${tools[@]}"; do
- IFS=':' read -r name status version <<< "$tool_info"
- if [[ "$status" == "installed" ]]; then
- ((installed_count++))
- fi
- done
- if [[ $installed_count -gt 0 ]]; then
- print_info "Detected ${installed_count}/8 AI CLI tools on your system"
- echo " Skills will be installed for detected platforms"
- else
- print_warning "No AI CLI tools detected"
- echo " Install GitHub Copilot CLI, Claude Code, or others first"
- fi
- echo ""
- print_step "Documentation"
- echo " ${REPO_URL}"
- echo ""
- # Offer to run installer
- if [[ "$SKIP_CONFIRMATION" == "false" ]]; then
- echo ""
- read -p "Would you like to run the installer now? [y/N] " -n 1 -r
- echo
- if [[ $REPLY =~ ^[Yy]$ ]]; then
- echo ""
- exec claude-superskills
- fi
- fi
- }
- # Main installation flow
- main() {
- parse_args "$@"
- # Show banner
- echo ""
- echo "╔════════════════════════════════════════════════════════════════╗"
- echo "║ ${BOLD}CLI AI Skills Installer${NC} ║"
- echo "║ Universal skill library for AI CLI tools ║"
- echo "╚════════════════════════════════════════════════════════════════╝"
- echo ""
- # Detect OS
- print_step "Detecting Operating System"
- local os
- os=$(detect_os)
- case "$os" in
- macos)
- print_success "macOS detected"
- ;;
- linux)
- print_success "Linux detected"
- ;;
- wsl)
- print_success "WSL (Windows Subsystem for Linux) detected"
- ;;
- windows)
- print_error "Pure Windows is not supported"
- echo ""
- echo "Please use:"
- echo " • WSL (Windows Subsystem for Linux)"
- echo " • Git Bash (install via: npm install -g claude-superskills)"
- echo " • Or: npx claude-superskills"
- exit 1
- ;;
- *)
- print_error "Unsupported operating system"
- exit 1
- ;;
- esac
- # Check Node.js
- if [[ "$SKIP_NODE_CHECK" == "false" ]]; then
- print_step "Checking Node.js"
- if check_node_installed; then
- local node_version=$(node --version)
- print_success "Node.js ${node_version} installed"
- else
- install_with_nvm
- fi
- else
- print_warning "Skipping Node.js check (--skip-node-check)"
- fi
- # Detect AI tools
- print_step "Detecting AI CLI Tools"
- local tools_array=()
- while IFS= read -r line; do
- tools_array+=("$line")
- done < <(detect_ai_tools)
- display_tools_table "${tools_array[@]}"
- # Install package
- if ! install_cli_ai_skills; then
- exit 1
- fi
- # Verify installation
- if ! verify_installation; then
- exit 1
- fi
- # Show post-install
- show_post_install "${tools_array[@]}"
- }
- # Run main if executed directly (not sourced)
- if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
- main "$@"
- fi
scripts/uninstall.sh · Bundled script · 447 lines · 3 findings marked
- #!/usr/bin/env bash
- #
- # CLI AI Skills Uninstaller
- # https://github.com/ericgandrade/claude-superskills
- #
- # Usage:
- # bash uninstall.sh
- # curl -fsSL https://raw.githubusercontent.com/ericgandrade/claude-superskills/main/scripts/uninstall.sh | bash
- Note: Pipes a downloaded script directly into a shell (curl | sh / wget | bash)
- Line 8 on GitHub
- #
- # Options:
- # --yes, -y Skip all confirmations
- # --purge Remove all data including configurations
- # --dry-run Show what would be removed without removing
- # --help, -h Show this help message
- set -euo pipefail
- # Uninstaller version
- UNINSTALLER_VERSION="1.0.0"
- # Configuration
- PACKAGE_NAME="claude-superskills"
- # Flags
- SKIP_CONFIRMATION=false
- PURGE=false
- DRY_RUN=false
- # Colors
- if [[ -t 1 ]]; then
- GREEN='\033[0;32m'
- RED='\033[0;31m'
- YELLOW='\033[1;33m'
- BLUE='\033[0;34m'
- CYAN='\033[0;36m'
- BOLD='\033[1m'
- NC='\033[0m'
- else
- GREEN=''
- RED=''
- YELLOW=''
- BLUE=''
- CYAN=''
- BOLD=''
- NC=''
- fi
- # Print functions
- print_success() {
- echo -e "${GREEN}✓${NC} $1"
- }
- print_error() {
- echo -e "${RED}✗${NC} $1" >&2
- }
- print_info() {
- echo -e "${BLUE}ℹ${NC} $1"
- }
- print_warning() {
- echo -e "${YELLOW}⚠${NC} $1"
- }
- print_step() {
- echo -e "\n${BOLD}${CYAN}▸${NC} $1"
- }
- print_dry_run() {
- echo -e "${YELLOW}[DRY RUN]${NC} $1"
- }
- # Show help
- show_help() {
- cat << EOF
- ${BOLD}CLI AI Skills Uninstaller${NC} v${UNINSTALLER_VERSION}
- ${BOLD}USAGE:${NC}
- bash uninstall.sh [OPTIONS]
- curl -fsSL https://raw.githubusercontent.com/ericgandrade/claude-superskills/main/scripts/uninstall.sh | bash
- Note: Pipes a downloaded script directly into a shell (curl | sh / wget | bash)
- Line 80 on GitHub
- ${BOLD}OPTIONS:${NC}
- -y, --yes Skip all confirmations
- --purge Remove all data including configurations
- --dry-run Show what would be removed without removing
- -h, --help Show this help message
- ${BOLD}EXAMPLES:${NC}
- # Interactive uninstall
- bash uninstall.sh
- # Non-interactive
- bash uninstall.sh --yes
- # See what would be removed
- bash uninstall.sh --dry-run
- # Complete removal including configs
- bash uninstall.sh --yes --purge
- ${BOLD}WHAT GETS REMOVED:${NC}
- • npm global package (claude-superskills)
- • Installed skills in ~/.github/skills/
- • Installed skills in ~/.claude/skills/
- • Installed skills in ~/.codex/skills/
- • Installed skills in ~/.agent/skills/
- • Installed skills in ~/.gemini/skills/
- • Installed skills in ~/.gemini/antigravity/skills/
- • Installed skills in ~/.cursor/skills/
- • Installed skills in ~/.adal/skills/
- • (with --purge) Empty platform directories
- EOF
- }
- # Parse arguments
- parse_args() {
- while [[ $# -gt 0 ]]; do
- case $1 in
- -y|--yes)
- SKIP_CONFIRMATION=true
- shift
- ;;
- --purge)
- PURGE=true
- shift
- ;;
- --dry-run)
- DRY_RUN=true
- shift
- ;;
- -h|--help)
- show_help
- exit 0
- ;;
- *)
- print_error "Unknown option: $1"
- echo "Use --help for usage information"
- exit 1
- ;;
- esac
- done
- }
- # Check if package is installed
- check_package_installed() {
- if npm list -g "${PACKAGE_NAME}" &> /dev/null; then
- return 0
- else
- return 1
- fi
- }
- # Find installed skills in platform directories
- find_installed_skills() {
- local platform_dirs=(
- "$HOME/.github/skills"
- "$HOME/.claude/skills"
- "$HOME/.codex/skills"
- "$HOME/.agent/skills"
- "$HOME/.gemini/skills"
- "$HOME/.gemini/antigravity/skills"
- "$HOME/.cursor/skills"
- "$HOME/.adal/skills"
- )
- local found_skills=()
- for dir in "${platform_dirs[@]}"; do
- if [[ -d "$dir" ]]; then
- while IFS= read -r -d '' skill_dir; do
- local skill_name=$(basename "$skill_dir")
- local platform=$(basename "$(dirname "$dir")")
- found_skills+=("$platform:$skill_name:$skill_dir")
- done < <(find "$dir" -mindepth 1 -maxdepth 1 -type d -print0 2>/dev/null || true)
- fi
- done
- printf "%s\n" "${found_skills[@]}"
- }
- # Display what will be removed
- display_removal_plan() {
- local package_installed=$1
- shift
- local skills=("$@")
- echo ""
- echo "╔════════════════════════════════════════════════════════════════╗"
- echo "║ Uninstallation Plan ║"
- echo "╚════════════════════════════════════════════════════════════════╝"
- echo ""
- if [[ "$package_installed" == "true" ]]; then
- print_warning "Will remove npm package: ${PACKAGE_NAME}"
- else
- print_info "Package ${PACKAGE_NAME} not installed globally"
- fi
- echo ""
- if [[ ${#skills[@]} -gt 0 ]]; then
- print_warning "Will remove ${#skills[@]} installed skill(s):"
- echo ""
- # Group by platform
- declare -A platforms
- for skill_info in "${skills[@]}"; do
- IFS=':' read -r platform skill_name skill_path <<< "$skill_info"
- platforms[$platform]+=" • $skill_name\n"
- done
- for platform in "${!platforms[@]}"; do
- echo -e "${BOLD}${platform}:${NC}"
- echo -e "${platforms[$platform]}"
- done
- else
- print_info "No skills found in platform directories"
- fi
- if [[ "$PURGE" == "true" ]]; then
- echo ""
- print_warning "Will remove empty platform directories (--purge)"
- fi
- }
- # Confirm removal
- confirm_removal() {
- if [[ "$SKIP_CONFIRMATION" == "true" ]]; then
- return 0
- fi
- echo ""
- read -p "Do you want to proceed with uninstallation? [y/N] " -n 1 -r
- echo
- if [[ $REPLY =~ ^[Yy]$ ]]; then
- return 0
- else
- print_info "Uninstallation cancelled"
- exit 0
- fi
- }
- # Remove npm package
- remove_npm_package() {
- print_step "Removing npm package"
- if [[ "$DRY_RUN" == "true" ]]; then
- print_dry_run "Would run: npm uninstall -g ${PACKAGE_NAME}"
- return 0
- fi
- if npm uninstall -g "${PACKAGE_NAME}" > /dev/null 2>&1; then
- print_success "Package removed successfully"
- return 0
- else
- print_error "Failed to remove package"
- return 1
- fi
- }
- # Remove installed skills
- remove_skills() {
- local skills=("$@")
- if [[ ${#skills[@]} -eq 0 ]]; then
- return 0
- fi
- print_step "Removing installed skills"
- local removed_count=0
- local failed_count=0
- for skill_info in "${skills[@]}"; do
- IFS=':' read -r platform skill_name skill_path <<< "$skill_info"
- if [[ "$DRY_RUN" == "true" ]]; then
- print_dry_run "Would remove: $skill_path"
- continue
- fi
- if [[ -L "$skill_path" ]]; then
- # It's a symlink
- if rm "$skill_path" 2>/dev/null; then
- ((removed_count++))
- else
- print_error "Failed to remove symlink: $skill_path"
- ((failed_count++))
- fi
- elif [[ -d "$skill_path" ]]; then
- # It's a directory
- if rm -rf "$skill_path" 2>/dev/null; then
- ((removed_count++))
- else
- print_error "Failed to remove directory: $skill_path"
- ((failed_count++))
- fi
- fi
- done
- if [[ "$DRY_RUN" == "false" ]]; then
- if [[ $removed_count -gt 0 ]]; then
- print_success "Removed $removed_count skill(s)"
- fi
- if [[ $failed_count -gt 0 ]]; then
- print_warning "$failed_count skill(s) failed to remove"
- fi
- fi
- }
- # Cleanup empty platform directories
- cleanup_empty_dirs() {
- if [[ "$PURGE" == "false" ]]; then
- return 0
- fi
- print_step "Cleaning up empty directories"
- local platform_dirs=(
- "$HOME/.github/skills"
- "$HOME/.claude/skills"
- "$HOME/.codex/skills"
- "$HOME/.agent/skills"
- "$HOME/.gemini/skills"
- "$HOME/.gemini/antigravity/skills"
- "$HOME/.cursor/skills"
- "$HOME/.adal/skills"
- )
- for dir in "${platform_dirs[@]}"; do
- if [[ -d "$dir" ]] && [[ -z "$(ls -A "$dir" 2>/dev/null)" ]]; then
- if [[ "$DRY_RUN" == "true" ]]; then
- print_dry_run "Would remove empty directory: $dir"
- else
- if rmdir "$dir" 2>/dev/null; then
- print_success "Removed empty directory: $dir"
- fi
- fi
- fi
- done
- }
- # Show completion message
- show_completion() {
- echo ""
- if [[ "$DRY_RUN" == "true" ]]; then
- echo "╔════════════════════════════════════════════════════════════════╗"
- echo "║ ${BLUE}Dry Run Complete${NC} ║"
- echo "╚════════════════════════════════════════════════════════════════╝"
- echo ""
- print_info "No changes were made"
- print_info "Run without --dry-run to actually uninstall"
- else
- echo "╔════════════════════════════════════════════════════════════════╗"
- echo "║ ${GREEN}✓${NC} ${BOLD}Uninstallation Complete${NC} ║"
- echo "╚════════════════════════════════════════════════════════════════╝"
- echo ""
- print_success "CLI AI Skills has been uninstalled"
- echo ""
- print_info "To reinstall, run:"
- echo " ${CYAN}npx claude-superskills${NC}"
- echo " or"
- echo " ${CYAN}curl -fsSL https://raw.githubusercontent.com/ericgandrade/claude-superskills/main/scripts/install.sh | bash${NC}"
- Note: Pipes a downloaded script directly into a shell (curl | sh / wget | bash)
- Line 367 on GitHub
- fi
- echo ""
- }
- # Main uninstallation flow
- main() {
- parse_args "$@"
- # Show banner
- echo ""
- echo "╔════════════════════════════════════════════════════════════════╗"
- echo "║ ${BOLD}CLI AI Skills Uninstaller${NC} ║"
- echo "╚════════════════════════════════════════════════════════════════╝"
- echo ""
- if [[ "$DRY_RUN" == "true" ]]; then
- print_warning "DRY RUN MODE - No changes will be made"
- fi
- # Check if package is installed
- print_step "Checking installation"
- local package_installed="false"
- if check_package_installed; then
- package_installed="true"
- local installed_version=$(npm list -g "${PACKAGE_NAME}" 2>/dev/null | grep "${PACKAGE_NAME}" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1 || echo "unknown")
- print_info "Found: ${PACKAGE_NAME}@${installed_version}"
- else
- print_info "Package not installed globally"
- fi
- # Find installed skills
- print_step "Scanning for installed skills"
- local skills_array=()
- while IFS= read -r line; do
- if [[ -n "$line" ]]; then
- skills_array+=("$line")
- fi
- done < <(find_installed_skills)
- if [[ ${#skills_array[@]} -gt 0 ]]; then
- print_info "Found ${#skills_array[@]} installed skill(s)"
- else
- print_info "No skills found"
- fi
- # Check if there's anything to remove
- if [[ "$package_installed" == "false" ]] && [[ ${#skills_array[@]} -eq 0 ]]; then
- echo ""
- print_info "Nothing to uninstall"
- exit 0
- fi
- # Display removal plan
- display_removal_plan "$package_installed" "${skills_array[@]}"
- # Confirm removal
- if [[ "$DRY_RUN" == "false" ]]; then
- confirm_removal
- fi
- # Remove npm package
- if [[ "$package_installed" == "true" ]]; then
- remove_npm_package
- fi
- # Remove skills
- remove_skills "${skills_array[@]}"
- # Cleanup empty directories
- cleanup_empty_dirs
- # Show completion
- show_completion
- }
- # Run main if executed directly (not sourced)
- if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
- main "$@"
- fi
Ratings and comments
Sign in to rate this skill.
Sign inFree to use. If it’s helped, pass it on.