Skip to main content

Usage

Description

The remove command uninstalls skills from agents. It removes:
  • The canonical skill directory (.agents/skills/skill-name)
  • Symlinks from agent directories
  • Entries from the skill lock file (for global installs)
If no skill names are provided, an interactive selection menu is shown.

Arguments

string[]
Optional skill name(s) to remove. Supports multiple skills separated by spaces.Examples:
  • frontend-design
  • skill-creator web-design
If omitted, shows an interactive multi-select menu.

Options

boolean
Remove from global scope (~/.agents/skills/) instead of project scope (./.agents/skills/).Default: false (removes from project)
string[]
Remove from specific agents only. Accepts multiple agent names or '*' for all agents.Examples:
  • -a claude-code -a cursor
  • --agent '*' (all agents)
By default, removes from all known agents to clean up any ghost symlinks.
string[]
Specify which skills to remove. Accepts multiple skill names or '*' for all skills.Examples:
  • -s frontend-design -s web-design
  • --skill '*' (all skills)
This is useful when combined with --agent to remove specific skills from specific agents.
boolean
Skip confirmation prompts. Automatically confirms removal.Default: false
Use with caution - skills will be removed immediately without confirmation.
boolean
Shorthand for --skill '*' --agent '*' -y. Removes all skills from all agents without prompts.Default: false
This will remove ALL installed skills immediately!

Examples

Interactive Selection

When run without skill names, the CLI shows an interactive multi-select menu:
1

Scan for Skills

The CLI scans for installed skills in:
  • Canonical directory (.agents/skills/ or ~/.agents/skills/)
  • All agent-specific directories
2

Select Skills

Use arrow keys and space bar to select skills:
  • Up/Down: Navigate
  • Space: Toggle selection
  • Enter: Confirm
  • Esc: Cancel
3

Confirm Removal

Review selected skills and confirm:

Removal Process

The removal process handles:
  1. Agent-specific removals: Removes skill from each specified agent’s directory
  2. Canonical removal: Removes the canonical copy (only if no other agents are using it)
  3. Lock file updates: Updates ~/.agents/.skill-lock.json for global installs
  4. Symlink cleanup: Handles both symlinks and copied files

Safety Features

Selective Removal

When removing from specific agents with --agent, the canonical copy is only removed if no other installed agents are using it.

Ghost Cleanup

Automatically cleans up ghost symlinks from agents that may no longer be installed.

Output Example

Failed Removals

If any skills fail to remove, details are shown:

Understanding Scope

Project Scope (Default)

Removes skills from the current project:
  • Canonical directory: ./.agents/skills/
  • Agent directories: ./<agent>/skills/
  • Does NOT affect global skills

Global Scope

Removes skills from your home directory:
  • Canonical directory: ~/.agents/skills/
  • Agent directories: ~/<agent>/skills/
  • Updates global lock file: ~/.agents/.skill-lock.json
  • Does NOT affect project skills

Help

View detailed help for the remove command:
Outputs:

Aliases

The following aliases are available:
  • skills rmskills remove
  • skills rskills remove

Exit Codes