From cache-cleanup
Clean up old cached plugin versions to free disk space. Use when the user says "clean cache", "cleanup plugins", "prune old versions", "free disk space", "plugin cache", "clear old plugins", or asks about plugin cache size.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cache-cleanup:cache-cleanupThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Remove old cached plugin versions from `~/.claude/plugins/cache/`. Claude Code
Remove old cached plugin versions from ~/.claude/plugins/cache/. Claude Code
keeps every version it has ever downloaded — this skill prunes all but the
latest version of each plugin.
Scan (dry-run): Always run the script in dry-run mode first:
node "${CLAUDE_SKILL_DIR}/../../scripts/cleanup.js" --dry-run
Report: Show the user the output — which old versions would be removed and how much space would be freed. If no old versions are found, tell the user the cache is already clean and stop.
Confirm: Use the AskUserQuestion tool with a yes/no question to ask
the user if they want to proceed with deletion. Do NOT delete without
explicit confirmation via this tool.
Delete: Only after the user confirms, run:
node "${CLAUDE_SKILL_DIR}/../../scripts/cleanup.js" --delete
Report results: Show the user what was deleted and total space freed.
npx claudepluginhub seangsisg/claude-depot --plugin cache-cleanupClears cached copies of Claude Code plugins from ~/.claude/plugins/cache/, requiring reinstall from registry. Fixes unexpected behavior, corruption, frees disk space, or enables clean reinstalls.
Scans Claude Code config (skills, memory, hooks, permissions, MCP servers, caches) for stale or redundant items and walks the user through confirm-each-deletion cleanup.
Analyzes Claude Code environment for token waste in skills, plugins, memory files, and CLAUDE.md; proposes and performs safe cleanups with user approval. Invoke via /claude-slim for token optimization.