brew-manager

Add, remove, or update packages in a Brewfile with correct types and alphabetical order.

12|3|Updated Jun 5, 2017
One-click install
npx skills add https://github.com/ruchernchong/dotfiles --skill brew-manager
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: brew-manager
Source: https://github.com/ruchernchong/dotfiles/tree/main/.claude/skills/brew-manager
Command: npx skills add https://github.com/ruchernchong/dotfiles --skill brew-manager

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually editing the Brewfile can lead to syntax errors, incorrect package types (brew vs. cask), or inconsistent formatting, making package management cumbersome and error-prone. This Skill streamlines the process, ensuring a clean and functional Brewfile.

Core Features & Use Cases

  • Add Packages: Verifies package existence, determines the correct type (brew, cask, tap, mas, vscode), and adds it to the appropriate section in alphabetical order within your Brewfile.
  • Remove Packages: Safely locates and removes package entries from the Brewfile with user confirmation, preventing accidental deletions or orphaned entries.
  • Organize & Update: Maintains a clean, grouped, and alphabetically sorted Brewfile structure, making it easy to read and manage.
  • Use Case: You want to install a new command-line tool like ripgrep and a GUI application like visual-studio-code. Use this Skill to add brew "ripgrep" and cask "visual-studio-code" to your Brewfile correctly, ensuring proper formatting and placement without manual intervention.

Quick Start

Add 'ripgrep' and 'visual-studio-code' to my Brewfile.

Frequently Asked Questions about brew-manager

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

FAQPage Schema
How do I add packages to my Brewfile without manual editing errors?

Add packages to your Brewfile by specifying the package name; the Skill verifies existence with brew search, determines the correct type (brew, cask, tap, mas, or vscode), and inserts it in the proper section in alphabetical order while preserving comments and syntax.

How do I know if a package should be a brew, cask, or tap in my Brewfile?

The Skill automatically identifies the correct package type by searching Homebrew's registry. Command-line tools install as brews, GUI applications as casks, package repositories as taps, Mac App Store apps as mas entries, and development extensions as vscode entries.

Can I remove packages from my Brewfile safely?

Yes. The Skill locates and removes package entries from your Brewfile with user confirmation, preventing accidental deletions and ensuring no orphaned or malformed entries remain.

How do I keep my Brewfile organized and consistently formatted?

The Skill maintains alphabetical order within each section, preserves grouped structure, and applies consistent syntax across taps, brews, casks, mas, and vscode extensions, making your Brewfile readable and manageable.

What happens to comments and existing structure when I modify my Brewfile?

All existing comments and the grouped structure of your Brewfile are preserved during add, remove, or update operations, ensuring your manual annotations and organization remain intact.