Claude-skill-registry homebrew-publish
Publish CLIs/TUIs to Homebrew via a personal tap. Use when asked to create or manage a Homebrew tap repo, generate or update formulae, compute sha256, test installs, or ship new releases for Go, Rust, Node/TypeScript, Python, or prebuilt binaries.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/homebrew-publish" ~/.claude/skills/majiayu000-claude-skill-registry-homebrew-publish && rm -rf "$T"
manifest:
skills/data/homebrew-publish/SKILL.mdsource content
Homebrew Publish
Overview
Create or update a Homebrew tap and formulae so users can install a project's CLI/TUI with
brew install OWNER/tap/<formula>.
Workflow
1) Gather inputs
- Confirm GitHub owner, tap name, and whether the tap repo already exists.
- Collect project repo URL, release tag/version, and the source tarball URL or prebuilt asset URL(s).
- Identify build system and language (Go, Rust, Node/TypeScript, Python, or other).
- Define binary name and a minimal
command.test do - Confirm target platforms/architectures and whether bottles are desired.
2) Ensure tap repo exists (skip if already set)
- Create a tap repo using the short form
when possible.OWNER/tap - Run:
(orbrew tap-new OWNER/homebrew-tap
)homebrew-<tapname>gh repo create OWNER/homebrew-tap --push --public --source "$(brew --repository OWNER/homebrew-tap)"
3) Create the formula skeleton
- Prefer stable source tarballs from release tags.
- Run:
brew create <url-to-tarball> --tap OWNER/homebrew-tap --set-name <formula>
4) Implement the formula
- Edit
and wire build/install/test.Formula/<formula>.rb - Pick a language template from references:
references/formula-go.mdreferences/formula-rust.mdreferences/formula-node.mdreferences/formula-python.mdreferences/formula-prebuilt.md
- Ensure
,desc
,homepage
,url
, andsha256
are correct.license
5) Compute sha256
- Use
for local files.shasum -a 256 <file> - For remote URLs, run
.curl -L <url> | shasum -a 256
6) Test locally
- Run
.brew install --build-from-source OWNER/tap/<formula> - Run
.brew test OWNER/tap/<formula> - Optionally run
.brew audit --strict --online OWNER/tap/<formula>
7) Commit and push
- Commit in the tap repo and push to GitHub.
8) Update for new releases
- Update
andurl
(andsha256
if needed).version - Re-run tests, commit, and push.
Notes
- Prefer source builds unless a prebuilt binary is required.
- If bottles are enabled, keep the default workflows created by
and follow their publish instructions.brew tap-new