brew-optimize

Analyze Homebrew installations and generate cleanup commands for unused packages.

3|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/eugener/cc-marketplace --skill brew-optimize
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: brew-optimize
Source: https://github.com/eugener/cc-marketplace/tree/main/plugins/eugenes-tools/skills/brew-optimize
Command: npx skills add https://github.com/eugener/cc-marketplace --skill brew-optimize

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps macOS users maintain a clean and efficient Homebrew installation by identifying and removing unused, outdated, or duplicate packages, and freeing up disk space.

Core Features & Use Cases

  • Comprehensive Audit: Analyzes installed formulae and casks for various optimization opportunities.
  • Actionable Recommendations: Provides clear, copy-pasteable commands for cleanup and updates.
  • Disk Space Savings: Identifies large packages and stale downloads to reclaim disk space.
  • Use Case: Run this skill to ensure your Homebrew packages are up-to-date, remove software you no longer use, and free up gigabytes of disk space.

Quick Start

Run a full Homebrew optimization audit and present the findings.

Frequently Asked Questions about brew-optimize

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I clean up unused Homebrew packages on macOS to free up disk space?▼

To free up disk space by cleaning up unused Homebrew packages, run an audit that identifies orphaned formulae, outdated casks, and duplicate versions. The tool provides actionable, copy-pasteable commands like `brew cleanup` and `brew autoremove` to safely reclaim storage.

What is the best way to find outdated and orphaned Homebrew formulae?▼

The best way to find outdated and orphaned Homebrew formulae is by running parallel checks using `brew outdated` and `brew autoremove --dry-run`. This identifies software needing updates and dependencies no longer required, providing a clear report for system optimization.

Does Homebrew optimization affect my installed casks and formulae differently?▼

Yes, Homebrew optimization affects installed casks and formulae differently by running `brew leaves` for formulae and `brew list --cask` for casks. It detects unused, outdated, and duplicate packages across both, providing specific cleanup commands for each package type.

How do I check macOS Homebrew system health and disk usage?▼

You can check macOS Homebrew system health and disk usage by running `brew doctor` alongside cleanup dry-runs. This analyzes your installation for potential problems, identifies large packages and stale downloads, and reports general system health to ensure efficient package management.

Can I preview Homebrew cleanup actions before removing files?▼

Yes, you can preview Homebrew cleanup actions before removing files by executing `brew cleanup --dry-run` and `brew autoremove --dry-run`. These commands analyze your installation and provide actionable recommendations without actually deleting packages or freeing disk space.