BA-CalderonMorales

homebrew

@BA-CalderonMorales/homebrew
BA-CalderonMorales
114
17 forks
Updated 1/18/2026
View on GitHub

Skill: Homebrew Distribution: **Name**: homebrew

Installation

$skills install @BA-CalderonMorales/homebrew
Claude Code
Cursor
Copilot
Codex
Antigravity

Details

Path.github/skills/homebrew/SKILL.md
Branchmain
Scoped Name@BA-CalderonMorales/homebrew

Usage

After installing, this skill will be available to your AI coding assistant.

Verify installation:

skills list

Skill Instructions

Skill: Homebrew Distribution

Name: homebrew Description: Homebrew formula management and macOS/Linux distribution Trigger: "Homebrew release", brew installation, macOS/Linux distribution


Formula Location

homebrew/Formula/terminal-jarvis.rb

Key Components

  • Version must match Cargo.toml, package.json
  • URL points to GitHub release archive
  • SHA256 matches archive checksum
  • Install script copies binary to bin/

Release Archive Generation

# Generate platform-specific archives
./scripts/utils/generate-homebrew-release.sh --stage

# Output:
# homebrew/release/terminal-jarvis-mac.tar.gz
# homebrew/release/terminal-jarvis-linux.tar.gz

Complete Homebrew Release Workflow

# 1. Standard deployment (includes version updates, CHANGELOG, Formula)
./scripts/cicd/local-ci.sh && ./scripts/cicd/local-cd.sh

# 2. Generate release archives
./scripts/utils/generate-homebrew-release.sh --stage

# 3. Commit archives
git add homebrew/release/
git commit -m "feat: Homebrew release archives vX.X.X"
git push

# 4. Create GitHub release with archives
gh release create vX.X.X \
  homebrew/release/terminal-jarvis-mac.tar.gz \
  homebrew/release/terminal-jarvis-linux.tar.gz \
  --title "Release vX.X.X" \
  --notes "Release notes from CHANGELOG.md" \
  --latest

# 5. Verify archive accessibility
curl -I https://github.com/BA-CalderonMorales/terminal-jarvis/releases/download/vX.X.X/terminal-jarvis-mac.tar.gz

# 6. Test installation
brew uninstall terminal-jarvis
brew install terminal-jarvis
terminal-jarvis --version  # Should show vX.X.X

Common Pitfalls

IssueCauseFix
SHA256 mismatchFormula SHA doesn't match archiveRegenerate archive or update Formula SHA
Archive namingIncorrect filename patternUse generate-homebrew-release.sh script
Formula syntax errorRuby syntax mistakesRun brew install --dry-run to validate
Binary permissionsBinary not executableEnsure chmod +x in install script
Cross-platform issuemacOS/Linux binary differencesTest on both platforms
Formula after releaseCommitted Formula changes too lateAlways commit Formula BEFORE gh release

Critical Rule

Formula BEFORE Release - Always commit Homebrew Formula BEFORE creating GitHub release