Skip to content
Back to skills

Homebrew

ASecurity

Install, manage, and troubleshoot macOS packages using Homebrew. Use

  • 8 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 20, 2026
developmentpythonbashnoderefactoringgit

Works with

  • cli

Security analysis

A100/100

Scanned September 20, 2026

npx -y skills add tstapler/dotfiles --skill homebrew --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Homebrew?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Homebrew
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tstapler-homebrew/badge)](https://www.skillsdirectory.com/skills/tstapler-homebrew)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: homebrew
description: Install, manage, and troubleshoot macOS packages using Homebrew. Use
  when a required tool is missing, needs updating, or when managing taps, casks, or
  formula versions.
---

# Homebrew Package Management

Use Homebrew for all macOS software installation and management.

## When to Use

**Use this skill for:**
- Installing missing CLI tools or applications
- Updating or upgrading packages
- Managing taps (third-party formula sources)
- Troubleshooting formula conflicts or version issues
- Checking what's installed

**Don't use for:**
- Python packages → use `uv` or `pip`
- Node packages → use `npm` / `pnpm`
- Language-specific package managers in general

## Installing a Missing Tool

When a tool is not found, follow this workflow:

### 1. Check if Already Installed

```bash
brew list --formula | grep <tool>
which <tool>
```

### 2. Search for the Formula

```bash
brew search <tool>
```

If not found via `brew search`, use **WebSearch** to find the correct formula name or tap:

```
Search: "install <tool> homebrew" OR "brew tap <tool>"
```

### 3. Install

```bash
# Standard formula
brew install <formula>

# Cask (GUI apps)
brew install --cask <cask>

# From a tap
brew tap <org>/<repo>
brew install <org>/<repo>/<formula>
```

### 4. Verify Installation

```bash
which <tool>
<tool> --version
```

## Common Operations

| Task | Command |
|------|---------|
| Install package | `brew install <formula>` |
| Install GUI app | `brew install --cask <app>` |
| Update Homebrew | `brew update` |
| Upgrade all packages | `brew upgrade` |
| Upgrade one package | `brew upgrade <formula>` |
| Uninstall | `brew uninstall <formula>` |
| List installed | `brew list` |
| Search | `brew search <term>` |
| Info/version | `brew info <formula>` |
| Fix issues | `brew doctor` |
| Add tap | `brew tap <org>/<repo>` |

## Key Formulas for This Workflow

| Tool | Formula | Purpose |
|------|---------|---------|
| ast-grep | `brew install ast-grep` | Semantic code search |
| grit | `brew install gritql` | AST-based refactoring |
| gh | `brew install gh` | GitHub CLI |
| jj | `brew install jj` | Jujutsu VCS |
| uv | `brew install uv` | Python package manager |

## Troubleshooting

**Formula not found:**
```bash
brew update && brew search <term>
# If still not found, use WebSearch to find the tap
```

**Permission errors:**
```bash
brew doctor  # Diagnose issues
```

**Version conflicts:**
```bash
brew info <formula>  # Shows available versions
brew install <formula>@<version>  # Install specific version
brew link --overwrite <formula>  # Force link
```

**Outdated Homebrew:**
```bash
brew update && brew upgrade
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…