toolchains/universal/infrastructure/homebrew-formula-maintenance/SKILL.md
Homebrew formula maintenance workflows for Python CLIs and taps, including version bumps, SHA/resource updates, testing, audits, and releases.
npx skillsauth add bobmatnyc/claude-mpm-skills homebrew-formula-maintenanceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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).
url and sha256 in the formula.resource stanzas if the formula uses virtualenv_install_with_resources.brew install --build-from-source + brew test + brew audit --strict.homebrew-claude-mpm/scripts/update_formula.sh <version>
homebrew-claude-mpm/scripts/generate_resources.py
resource blocks from PyPI.homebrew-claude-mpm/scripts/test_formula.sh
mcp-vector-search/scripts/update_homebrew_formula.py
--dry-run, --version, --tap-repo-path and HOMEBREW_TAP_TOKEN.curl -s https://pypi.org/pypi/<package>/<version>/json.url and sha256 in Formula/<name>.rb.If the formula uses Language::Python::Virtualenv and virtualenv_install_with_resources:
resource stanzas after dependency changes.generate_resources.py or equivalent; review output before pasting.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>.rb
CHANGELOG.md if the tap repo tracks releases.include Language::Python::Virtualenvvirtualenv_install_with_resourcesresource blocks to pin dependenciestest do uses CLI commands like --version and subcommandspip install -v buildpathbin.install_symlink for CLI entrypointtest do uses --version and --helpYour GitHub Actions workflow for Homebrew updates follows this flow:
workflow_run after CI succeeds.scripts/update_homebrew_formula.py.HOMEBREW_TAP_TOKEN (and optional HOMEBREW_TAP_REPO).[email protected] dependency is present.[email protected] dependency and virtualenv_install_with_resources usage.toolchains/universal/infrastructure/github-actionstoolchains/universal/infrastructure/dockerdevelopment
Axum (Rust) web framework patterns for production APIs: routers/extractors, state, middleware, error handling, tracing, graceful shutdown, and testing
development
Optimize web performance using Core Web Vitals, modern patterns (View Transitions, Speculation Rules), and framework-specific techniques
development
Best practices for documenting APIs and code interfaces, eliminating redundant documentation guidance per agent.
development
Comprehensive API design patterns covering REST, GraphQL, gRPC, versioning, authentication, and modern API best practices