Selectively load skills from marketplace plugins to reduce context window usage in Claude Code.
Marketplace plugins are all-or-nothing -- install a plugin with 17 skills, and all 17 load into every session's system prompt. If you only use 5, the other 12 waste context tokens.
plugin-filter creates a local wrapper plugin that symlinks only the skills you want from a marketplace plugin. Marketplace updates flow through automatically since symlinks point to the marketplace repo, not a cached copy.
/plugin-filter # List filterable plugins
/plugin-filter example-skills # Select which skills to keep
/plugin-filter example-skills --restore # Undo filtering, restore full plugin
- Reads the marketplace plugin's skills directory
- Presents a numbered list for selection
- Creates a local wrapper plugin with symlinks to selected skills
- Swaps the registry entry so only selected skills load
- Stores filter state for re-filtering or restoring later
Install from marketplace or locally:
# Local install
claude plugin add /path/to/plugin-filter- Claude Code with plugin support
- Marketplace plugins installed via plugin system