# Formula Maintenance

> Homebrew tap formula maintenance for xberg-io CLIs — source-build vs binary-only formula types, the version-bump checklist (url/version/sha256/bottles/root_url), and building bottles with scripts/build-bottles.sh. Load when editing a .rb formula, cutting a release bump, or updating bottle hashes.

- Skill: `xberg-io/formula-maintenance` (Agent Skill)
- Install (CLI): `npx skillmds@latest add xberg-io/formula-maintenance`
- Raw SKILL.md: https://api.skillmd.com/api/skills/xberg-io/formula-maintenance/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: xberg-io (https://skillmd.com/u/xberg-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/xberg-io/formula-maintenance

---


# Formula Maintenance

## Formula Types

**Source-build** (Rust/CMake, compile on install):

- `xberg.rb`, `alef.rb`, `crawlberg.rb` — build from tarball via `cargo install`

**Binary-only** (pre-built platform-specific artifacts):

- `xberg-ffi.rb`, `libhtml-to-markdown.rb` — install pre-compiled `.dylib`/`.so`/`.a` + headers

## Version Bump Checklist

1. Update `url` and `version` fields
2. Update `sha256` for source tarball or per-platform binary tarballs
3. For bottles: run `scripts/build-bottles.sh`, update bottle `sha256` values from output
4. Verify `root_url` points to correct GitHub release tag

## `scripts/build-bottles.sh`

- Canonical script for building bottles on current platform
- Runs `brew install --build-bottle` then `brew bottle`
- Must be run on each target platform separately
- Output includes sha256 hashes to paste into formula's `bottle do` block

