
Homebrew Formula Maintenance
- 237 installs
- 63 repo stars
- Updated July 18, 2026
- bobmatnyc/claude-mpm-skills
Authoring, testing, and updating Homebrew formulae so CLI tools install reliably on macOS with correct dependencies, versioning, binaries, and tap publication workflows.
About
Helps Claude maintain Homebrew formulae for CLI tools: writing Ruby formula files, pinning versions, updating SHA256 checksums, declaring dependencies, running brew test and audit, managing bottles, and publishing taps so macOS users install releases reliably.
- Homebrew formula structure
- Version bumps and checksums
- Dependency and bottle handling
- brew test and audit workflows
- Tap publishing and CI integration
Homebrew Formula Maintenance by the numbers
- 237 all-time installs (skills.sh)
- Ranked #190 of 550 CLI & Terminal skills by installs in the Skillselion catalog
- Data as of Aug 1, 2026 (Skillselion catalog sync)
npx skills add https://github.com/bobmatnyc/claude-mpm-skills --skill homebrew-formula-maintenanceAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 237 |
|---|---|
| repo stars | ★ 63 |
| Last updated | July 18, 2026 |
| Repository | bobmatnyc/claude-mpm-skills ↗ |
What it does
Authoring, testing, and updating Homebrew formulae so CLI tools install reliably on macOS with correct dependencies, versioning, binaries, and tap publication workflows.
Files
Homebrew Formula Maintenance
Overview
Use this workflow to keep Homebrew formulas in sync with PyPI releases for Python CLIs. The pattern in your taps is: update version + sha, refresh resource blocks when needed, run brew install/test/audit, then push the tap update (manually or via CI).
Quick Start (manual bump)
1. Verify the PyPI release exists and grab the sdist URL + SHA256. 2. Update the url and sha256 in the formula. 3. Refresh resource stanzas if the formula uses virtualenv_install_with_resources. 4. Test: brew install --build-from-source + brew test + brew audit --strict. 5. Update changelog/tag and push the tap repo.
Local Scripts You Already Use
homebrew-claude-mpm/scripts/update_formula.sh <version>- Verifies PyPI, updates url/sha, regenerates resources, optional brew test/audit.
homebrew-claude-mpm/scripts/generate_resources.py- Emits Python dependency
resourceblocks from PyPI. homebrew-claude-mpm/scripts/test_formula.sh- End-to-end brew install/test/audit/style.
mcp-vector-search/scripts/update_homebrew_formula.py- End-to-end tap update with
--dry-run,--version,--tap-repo-pathandHOMEBREW_TAP_TOKEN.
Standard Workflow
1. Confirm PyPI Release
- Check the sdist is available and capture URL/SHA.
- Typical command:
curl -s https://pypi.org/pypi/<package>/<version>/json.
2. Update Formula URL + SHA
- Replace
urlandsha256inFormula/<name>.rb. - Keep the formula version implicit via the sdist URL (your taps do this).
3. Refresh Resources (Python Virtualenv Formula)
If the formula uses Language::Python::Virtualenv and virtualenv_install_with_resources:
- Regenerate
resourcestanzas after dependency changes. - Use
generate_resources.pyor equivalent; review output before pasting.
4. Test and Audit
Run these in the tap repo:
brew install --build-from-source ./Formula/<name>.rb
brew test <name>
brew audit --strict ./Formula/<name>.rb
brew style ./Formula/<name>.rb5. Commit and Push
- Update
CHANGELOG.mdif the tap repo tracks releases. - Commit, tag, and push as required by the tap workflow.
Formula Patterns (From Your Taps)
Full Virtualenv Formula (claude-mpm)
include Language::Python::Virtualenvvirtualenv_install_with_resources- Large
resourceblocks to pin dependencies test douses CLI commands like--versionand subcommands
Minimal Venv Formula (mcp-vector-search)
- Create venv explicitly and
pip install -v buildpath bin.install_symlinkfor CLI entrypoint- Minimal
test douses--versionand--help
CI Automation Pattern
Your GitHub Actions workflow for Homebrew updates follows this flow:
- Trigger on tag or
workflow_runafter CI succeeds. - Run
scripts/update_homebrew_formula.py. - Require
HOMEBREW_TAP_TOKEN(and optionalHOMEBREW_TAP_REPO). - On failure, open an issue with manual update steps.
Troubleshooting
- PyPI release missing: verify tag push and publish step completed.
- SHA mismatch: re-fetch sdist SHA from PyPI JSON.
- brew audit failures: confirm dependency resource blocks match the sdist and
python@x.ydependency is present. - Install failures: verify
python@x.ydependency andvirtualenv_install_with_resourcesusage.
Related Skills
toolchains/universal/infrastructure/github-actionstoolchains/universal/infrastructure/docker
{
"name": "homebrew-formula-maintenance",
"version": "1.0.0",
"category": "toolchain",
"toolchain": "universal",
"framework": "homebrew-formula-maintenance",
"tags": [
"homebrew",
"formula",
"brew",
"pypi",
"release",
"ci"
],
"entry_point_tokens": 135,
"full_tokens": 1077,
"related_skills": [
"../github-actions",
"../docker"
],
"author": "Claude MPM Team",
"license": "MIT",
"updated": "2025-12-31",
"source_path": "toolchains/universal/infrastructure/homebrew-formula-maintenance/SKILL.md",
"repository": "https://github.com/bobmatnyc/claude-mpm-skills"
}