/cleanup:brew-cleanupfrom cleanup
Reclaims Homebrew disk space by removing old formula/cask versions, pruning the download cache, and uninstalling orphaned dependencies. Shows a dry-run estimate first, then runs the user-chosen scope after approval.
Ships in cleanup. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Reclaim Homebrew disk space, then report what was freed.
Operates in report → confirm → execute order. The scope is chosen through an interactive question, not flags. After approval, run the cleanup autonomously.
command -v brew >/dev/null 2>&1
If brew is not installed, stop and say so. Otherwise note the cache location: brew --cache.
Gather what each scope would do, without changing anything:
brew autoremove -n # orphaned dependencies that would be uninstalled
brew cleanup -n # old versions + stale cache; prints "This operation would free approximately N"
Report the orphan list from autoremove -n and the freed-space estimate from cleanup -n. Record baseline sizes of every location these scopes touch — not just the cache. brew cleanup removes old versions from the Cellar/Caskroom, and brew autoremove uninstalls formulae from the Cellar with little or no cache impact, so a cache-only measurement under-reports (and reads as 0 for autoremove). Capture all three:
du -sh "$(brew --cache)" "$(brew --cellar)" "$(brew --prefix)/Caskroom" 2>/dev/null
Explain each scope, then ask the user (interactive, multi-select) which to run:
brew cleanup: deletes superseded versions of installed formulae/casks and cache older than the default retention. Safe; nothing currently installed is removed.brew autoremove: uninstalls formulae that were pulled in only as dependencies and are no longer required by anything. Review the dry-run list — a formula you use directly but never brew installed explicitly would be removed (re-install with brew install <name> if needed).brew cleanup --prune=all: also removes the latest cached downloads, not just stale ones. Frees more; the next brew install/upgrade re-downloads.Run the selected actions. If autoremove is selected, run it first, so the freshly-orphaned versions are then swept by the cleanup pass:
brew autoremove
For the cleanup pass, use the full-scrub variant if the user selected it, otherwise the standard one — selecting both the standard cleanup and the full scrub collapses to a single --prune=all run:
brew cleanup # standard: old versions + stale cache
brew cleanup --prune=all # full scrub: also removes the latest cached downloads
Re-measure the same locations recorded in Step 2 — cache, Cellar, and Caskroom — and report the space reclaimed from the before/after delta, not the cache alone (old-version removal and autoremove free Cellar/Caskroom space with little or no cache impact). Prefer any explicit freed-space figure brew prints. List the formulae uninstalled by autoremove (if run) and what was kept.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
6 skills in this plugin
/cleanup-allRun the full local cleanup pipeline — stale git worktrees, dead personal forks, Docker prune, Go caches, and Homebrew — in one pass, each stage report → confirm → execute, then a combined reclaimed-space summary. TRIGGER when the user wants a broad disk cleanup ("free up disk space", "почисти всё", "run the cleanup pipeline"). DO NOT trigger when the user clearly wants only one specific cleaner — invoke that skill instead./docker-pruneReclaim Docker disk by pruning unused images, containers, networks, build cache, optionally volumes, and the build cache of non-default buildx builders; on VM-backed daemons (Colima/Lima) also offers a guest fstrim so the host-side sparse disk image actually shrinks. Shows reclaimable size first, then prunes the user-chosen scope after approval. TRIGGER when the user wants to free Docker space ("docker prune", "почисти docker", "reclaim image cache"). DO NOT trigger for removing specific named containers/images./go-cacheReclaim Go disk by clearing the build, test, fuzz, and module caches. Measures each cache first, then cleans the user-chosen scope after approval. TRIGGER when the user wants to free Go cache space ("clean go cache", "почисти go кеши", "reclaim GOMODCACHE"). DO NOT trigger for cleaning a specific module or running go mod tidy./stale-forksFind personal forks that no longer carry value — their unique commits are already merged upstream, or they hold no unique commits at all — and remove the local clone after approval. Optionally delete the GitHub fork too. TRIGGER when the user wants to clean up dead forks ("remove merged forks", "почисти бесполезные форки", "which forks can I drop"). DO NOT trigger for non-fork repositories or for forks with open PRs / unmerged work./worktree-sweepFind and remove stale git worktrees across one or many repositories. Classifies each extra worktree as clean / dirty / locked, measures reclaimable space, then removes the safe ones after approval. TRIGGER when the user wants to clean up, prune, or audit git worktrees ("remove old worktrees", "почисти worktree", "what worktrees can I delete"). DO NOT trigger for deleting whole repositories or non-worktree directories.npx claudepluginhub lexfrei/ccc --plugin cleanupOther plugins' skills for the same job