brew-lifecycle
БесплатноБез исполняемых скриптовНе проверенManage OS-managed Homebrew packages. Use when adding/removing default brew packages, moving tools between RPM and brew, or auditing image-vs-brew placement.
от projectbluefin★ 34 звезды на GitHubОб этом скилле
brew-lifecycle — Homebrew Package Lifecycle for Bluefin
How to add, remove, and manage system-default Homebrew packages across the Bluefin factory. Covers the brew-preinstall service, the preinstall.d pattern, and the rules for what can and cannot move to brew.
When to Use
- Adding or removing a package from
preinstall.d/system-cli.Brewfile - Moving a self-contained CLI tool off the RPM image and into brew
- Adding or removing a tap (
trusted: truerequirements, Brewfile syntax) - Pinning architecture-specific checksums for a Linux cask
- Debugging a failed or skipped
brew-preinstall.service - Deciding whether a new tool belongs on the image or in a Brewfile
- Auditing image diet (removing dead-weight packages from bluefin/lts/dakota)
When NOT to Use
- Installing system-level packages (udev rules, kernel modules, daemons, firmware): those stay on the image as RPMs regardless
rpm-ostree installis never the answer — see placement-rules.md- Adding user-installed (opt-in) packages: those go in the opt-in Brewfiles (
cli.Brewfile,cncf.Brewfile, etc.), notpreinstall.d/
Adding and removing packages — the exact steps
Add a package
- Add a
brew "<name>"line tosystem_files/shared/usr/share/ublue-os/homebrew/preinstall.d/system-cli.Brewfile - Open a PR. No version bumping, no manual trigger.
- On next login after the OS update, every user gets the package installed.
Remove a package
- Remove the
brew "<name>"line from the Brewfile. - Open a PR.
- On next successful login sync after the OS update, packages recorded in
the previous managed state get uninstalled. Packages outside that state
are unaffected. On a hash-changing reconciliation, the service snapshots
installed formulae and casks before
brew bundle: declarations already present and absent from prior managed state remain user-owned, while new declarations installed by the bundle become managed. Existing managed entries remain authoritative across later reconciliations.
Bluefinctl is no longer provisioned by common. Removing its dedicated Brewfile
uses this existing lifecycle to uninstall state-tracked copies; no separate
cleanup script is needed. Native ujust recipes must not delegate to bctl,
even if an untracked copy remains installed.
Add or remove a cask
Use cask "<name>" in a managed Brewfile. The service installs casks through
the existing brew bundle pass, tracks them separately in the state file, and
uses brew uninstall --cask when a managed cask is removed.
The repository validator and lifecycle parser accept indentation and either Ruby quote style:
cask "chairlift"
cask 'chairlift'
Legacy state files without a casks key require no migration.
ChairLift managed cask
ChairLift is a managed cask installed for every user through
system_files/shared/usr/share/ublue-os/homebrew/preinstall.d/chairlift.Brewfile:
tap "projectbluefin/tap", trusted: true
cask "projectbluefin/tap/chairlift"
The tap line requires trusted: true; Homebrew 6 blocks untrusted taps.
Third-party formulae and casks in opt-in Brewfiles (taps we do not control)
need item-level trust instead, for example
brew "carvel-dev/carvel/ytt", trusted: true; leave their tap lines
untrusted. just check-brewfiles fails any fully qualified non-homebrew/*
entry that lacks either form of trust in the same Brewfile. The
cask must remain pinned upstream in projectbluefin/tap rather than being
replaced with a local mutable download in common.
Bluefin owns /usr/share/chairlift/config.yml, shipped from
system_files/shared/usr/share/chairlift/config.yml. /etc/chairlift/config.yml
is administrator-owned override state and must not be overwritten by image
content or lifecycle code.
ChairLift fails closed on schema drift: an unknown page, group, or field key in
config.yml disables the whole application. Keep policy that has no upstream
key in YAML comments, and verify with python3 tests/check-chairlift-config.
The schema validator pin must follow the release in the projectbluefin/tap cask.
The cask cannot install root-owned files, so common ships ChairLift's system
files for every image that consumes it: the common Containerfile downloads
the release archive for the build's TARGETARCH with the release's
checksums.txt, verifies that file's Sigstore bundle with cosign verify-blob
(signer: ChairLift's release.yml workflow for exactly that tag), checks the
archive against its checksums.txt line with sha256sum -c, and installs
/usr/bin/chairlift-helper (0755), its PolicyKit policy
/usr/share/polkit-1/actions/io.projectbluefin.chairlift.ublue.policy, and the
three io.projectbluefin.chairlift.{livery,updates,firstrun}.gschema.xml
schemas under /usr/share/glib-2.0/schemas/ (0644). Downstream images need no
ChairLift pin of their own; the composed image must run
`glib-compile-schemas /usr/share/gl
Установить brew-lifecycle в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл brew-lifecycle?
Manage OS-managed Homebrew packages. Use when adding/removing default brew packages, moving tools between RPM and brew, or auditing image-vs-brew placement.
Как установить скилл brew-lifecycle?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл brew-lifecycle запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic