Usage
Description
Theremove 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)
Arguments
Optional skill name(s) to remove. Supports multiple skills separated by spaces.Examples:
frontend-designskill-creator web-design
Options
Remove from global scope (
~/.agents/skills/) instead of project scope (./.agents/skills/).Default: false (removes from project)Remove from specific agents only. Accepts multiple agent names or
'*' for all agents.Examples:-a claude-code -a cursor--agent '*'(all agents)
Specify which skills to remove. Accepts multiple skill names or
'*' for all skills.Examples:-s frontend-design -s web-design--skill '*'(all skills)
--agent to remove specific skills from specific agents.Skip confirmation prompts. Automatically confirms removal.Default:
falseShorthand for
--skill '*' --agent '*' -y. Removes all skills from all agents without prompts.Default: falseExamples
Interactive Selection
When run without skill names, the CLI shows an interactive multi-select menu:Scan for Skills
The CLI scans for installed skills in:
- Canonical directory (
.agents/skills/or~/.agents/skills/) - All agent-specific directories
Select Skills
Use arrow keys and space bar to select skills:
- Up/Down: Navigate
- Space: Toggle selection
- Enter: Confirm
- Esc: Cancel
Removal Process
The removal process handles:- Agent-specific removals: Removes skill from each specified agent’s directory
- Canonical removal: Removes the canonical copy (only if no other agents are using it)
- Lock file updates: Updates
~/.agents/.skill-lock.jsonfor global installs - 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:Aliases
The following aliases are available:skills rm→skills removeskills r→skills remove
Exit Codes
| Code | Description |
|---|---|
0 | All skills removed successfully |
1 | Invalid agent names provided |
Related Commands
skills add- Install new skillsskills list- List installed skillsskills update- Update skills to latest versions