homebrew-formula-updater

Fetch the latest GitHub release and update a Homebrew formula with new URLs and SHA256 checksums.

3|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/asteroid-belt/skills --skill homebrew-formula-updater
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: homebrew-formula-updater
Source: https://github.com/asteroid-belt/skills/tree/main/skills/homebrew-formula-updater
Command: npx skills add https://github.com/asteroid-belt/skills --skill homebrew-formula-updater

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill automates updating Homebrew formula files with the latest GitHub release information. It updates the version, download URLs, and SHA256 checksums to keep formulas current without manual edits.

Core Features & Use Cases

  • Fetch the latest release tag from a GitHub repository and determine the corresponding formula version.
  • Download platform-specific release assets and compute SHA256 checksums for darwin-amd64, darwin-arm64, linux-amd64, and linux-arm64.
  • Update the formula file with new URLs, version, and checksums; create a backup before applying changes; support a dry-run mode to preview updates.
  • Typical use cases include keeping a Homebrew tap in sync with upstream releases and refreshing checksums after new releases.

Quick Start

Run the update_formula.py script with the GitHub repo and formula file to fetch the latest release and update the formula’s URLs and SHA256 checksums.

Frequently Asked Questions about homebrew-formula-updater

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I update a Homebrew formula with the latest GitHub release version and SHA256 checksums?

To update a Homebrew formula, you can run a script that fetches the latest GitHub release tag and automatically edits the formula with new download URLs and SHA256 checksums. It computes checksums for darwin and linux assets.

Can I preview Homebrew formula updates before applying changes to the file?

Yes, you can preview Homebrew formula updates using a dry-run mode. This allows you to see the proposed version, URL, and SHA256 changes without modifying the actual formula file, ensuring accuracy before committing.

Does this formula update process support both Intel and ARM builds for macOS and Linux?

Yes, the formula update process supports both Intel and ARM builds. It discovers and downloads platform-specific release assets for darwin-amd64, darwin-arm64, linux-amd64, and linux-arm64 to compute their respective SHA256 checksums.

What do I need to automate Homebrew tap updates with GitHub release assets?

You need Python 3.8+ and a script that discovers assets named <repo>-<tag>-<platform>.tar.gz. The script fetches the latest GitHub release, downloads the assets to compute SHA256, and edits the formula accordingly.

How does the Homebrew formula updater handle existing formula files during modification?

The updater creates a backup of the existing formula file before applying any changes. It then overwrites the version, URLs, and SHA256 checksums to ensure your Homebrew tap stays in sync with upstream releases without losing previous configurations.

Why should I automate Homebrew formula updates instead of editing files manually?

Automating Homebrew formula updates eliminates manual edits when refreshing checksums and versions after new releases. It fetches GitHub release tags, calculates SHA256 checksums for multiple platforms, and safely edits the formula with backup support.