This guide explains how to make skill available via Homebrew.
For the simplest setup, you can use the existing repository as a tap:
# Build release binaries
./scripts/build-release.sh
# Create GitHub release
gh release create v0.1.0 \
--title "v0.1.0" \
--notes "Initial release of skill CLI" \
release/v0.1.0/*.tar.gzAfter creating the release, update Formula/skill.rb with the SHA256 values printed by the build script.
git add Formula/skill.rb
git commit -m "Add Homebrew formula"
git push origin main# Install directly from your tap
brew install DockYard/skill/skill
# Or tap it first, then install
brew tap DockYard/skill
brew install skillWhen you put a Formula/ directory in your repository, Homebrew can use it as a tap directly:
DockYard/skill/
Formula/
skill.rb ← Homebrew formula
src/ ← Source code
scripts/ ← Build scripts
...
Users reference it as: DockYard/skill/skill
DockYard/skill= the tap (your repository)skill= the formula name
The formula (Formula/skill.rb):
- Detects the user's platform (macOS/Linux, ARM64/x86_64)
- Downloads the appropriate pre-built binary from your GitHub release
- Verifies the checksum matches
- Installs the binary to the Homebrew bin directory
Once set up, users have several options:
# Method 1: Direct install
brew install DockYard/skill/skill
# Method 2: Tap first, then install
brew tap DockYard/skill
brew install skill
# Method 3: Shell script (no Homebrew required)
curl -fsSL https://raw.githubusercontent.com/DockYard/skill/main/scripts/install.sh | shIf you prefer to separate the formula from the main repository:
Create a new repository: DockYard/homebrew-skill
Copy Formula/skill.rb to the root of homebrew-skill:
DockYard/homebrew-skill/
skill.rb ← Formula at root
README.md
brew tap DockYard/skill
brew install skillBefore releasing, test the formula locally:
# Test installation
brew install --build-from-source Formula/skill.rb
# Or with a local tap
brew tap DockYard/skill /path/to/your/skill/repo
brew install skill
# Test the audit
brew audit --strict Formula/skill.rb
# Test uninstall
brew uninstall skillFor each new release:
- Update version in
scripts/build-release.sh - Run
./scripts/build-release.sh - Create GitHub release with binaries
- Update
Formula/skill.rb:- Update
version - Update all SHA256 checksums
- Update download URLs if version changed
- Update
- Commit and push
Users can then update with:
brew update
brew upgrade skill✅ Simple - No separate repository to maintain ✅ Integrated - Formula lives with your code ✅ Standard - Follows Homebrew conventions ✅ Flexible - Users can still build from source if desired
- Run
./scripts/build-release.shto create binaries - Create a GitHub release with those binaries
- Update
Formula/skill.rbwith the checksums - Commit and push
- Tell users to
brew install DockYard/skill/skill