本文へ移動
cccskills
無料GitHub で公開日本語紹介

brew

macOSやLinuxのHomebrewについて、brewコマンドでの導入・更新から、FormulaやCask、Brewfile、サービス管理、開発者向け操作まで調べられるスキルです。

原文原文の説明を見る

Use when working with Homebrew (`brew`) — the package manager for macOS and Linux. Covers the command structure, formula and cask DSLs, taps, bottles, the Cellar, services, bundle/Brewfile, environment variables, installation internals, and developer commands. Triggers on: "brew", "homebrew", "brew install", "brew uninstall", "brew update", "brew upgrade", "brew search", "brew tap", "brew cask", "brew bottle", "brew services", "brew bundle", "brew cleanup", "brew doctor", "brew audit", "brew livecheck", "brew test-bot", "brew bump-formula-pr", "Brewfile", "HOMEBREW_PREFIX", "HOMEBREW_CELLAR", "HOMEBREW_NO_INSTALL_FROM_API", "HOMEBREW_CASK_OPTS", "HOMEBREW_BOTTLE_DOMAIN", "Formula", "Cask", "Cellar", "Caskroom", "keg", "rack", "tap", "bottle", "superenv", "Formulary", "FormulaInstaller", "shellenv", "restart_service", "keg-only", "brew deps", "brew uses", "brew leaves", "brew outdated", "brew pin", "brew fetch", "brew create", "brew edit", "livecheck", "auto_updates", "depends_on".

carapace-sh/carapace-binスター 2,000(GitHub 2,000 + cccskills 0)

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • Homebrewでソフトを導入・更新したいとき
  • Brewfileで環境を管理したいとき
  • FormulaやCaskを作成・更新したいとき
  • brewのエラーや依存関係を調べたいとき

日本語での紹介

できること

macOSやLinuxのパッケージ管理ツールHomebrewについて、コマンドの使い方から内部の仕組みまで調べられます。Formulaは主にコマンドラインソフト、Caskはアプリなどを扱う定義で、作成や編集に使う記法をそれぞれ確認できます。パッケージの検索・導入・更新・削除、依存関係の調査、不要ファイルの整理や診断、サービスの起動・停止、Brewfileによる環境の記録なども対象です。ボトルと呼ばれるビルド済みパッケージやCellarでの配置、環境変数、開発者向けの監査・テスト・更新コマンドも参照できます。

こんなときに便利

Homebrewの基本操作を知りたい人から、FormulaやCaskを保守する開発者まで使えます。インストールで問題が起きたときや、複数の環境で導入ソフトをそろえたいときにも役立ちます。

使い方の例

  • 「Homebrewでこのパッケージをインストールする方法を教えてください」
  • 「Brewfileで導入済みソフトを管理する方法を説明してください」
  • 「Formulaを更新するための開発者向けコマンドを教えてください」

注意点

FormulaやCaskの記法はRubyをベースにしています。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(13)

  • SKILL.md10.8 KB
  • references/bottle.md5.3 KB
  • references/bundle.md9.1 KB
  • references/cask.md13.0 KB
  • references/cellar.md7.2 KB
  • references/commands.md11.7 KB
  • references/dependency.md3.9 KB
  • references/developer.md13.2 KB
  • references/environment.md11.8 KB
  • references/formula.md11.8 KB
  • references/maintenance.md5.9 KB
  • references/services.md6.9 KB
  • references/taps.md5.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Homebrew (brew) In-Depth Reference

Comprehensive reference for Homebrew — the missing package manager for macOS (and Linux). Covers the full CLI surface, the formula and cask DSLs, the installation pipeline, taps and bottles, services, bundle, environment variables, and developer tooling.

Data Flow

brew install <formula>
  → Formulary loads formula (API JSON or tap .rb file)
    → FormulaInstaller
      → Fetch phase (bottle download or source download)
        → Install phase (pour bottle OR build from source via superenv)
          → Clean phase (remove build-only files)
            → Finish phase (link keg into prefix, run post-install)
              → Tab written (INSTALL_RECEIPT.json)
brew install --cask <cask>
  → CaskLoader loads cask (.rb from tap or API)
    → Cask::Installer
      → Download (curl)
        → Verify (sha256)
          → Extract container (dmg/zip/tar)
            → Stage in Caskroom
              → Preflight → install artifacts → Postflight

Sub-Resources

Load the reference that matches your task. When in doubt, load multiple references.

KeywordsReference
install, uninstall, reinstall, upgrade, update, search, info, list, ls, fetch, formula, cask, formulae, casks, --formula, --cask, --build-from-source, --force-bottle, --HEAD, --dry-run, --ignore-dependencies, --only-dependencies, --cc, --keep-tmp, --overwrite, --adopt, --zap, --require-sha, --binaries, brew command, brew commands, brew help, brew home, --version, --cache, --cellar, --caskroom, --prefix, --repository, --env, shellenv, brew which-formula, brew source, brew docs, global options, --debug, --verbose, --quietreferences/commands.md
formula, Formula class, formula DSL, def install, depends_on, resource, url, sha256, version, head, license, desc, homepage, bottle block, keg_only, conflicts_with, uses_from_macos, option, deprecated_option, patch, livecheck, service do, caveats, post_install, test do, revision, version_scheme, fails_with, std_cmake_args, std_configure_args, std_go_args, std_cargo_args, std_meson_args, std_pip_args, ENV, superenv, on_macos, on_linux, on_arm, on_intel, on_system, prefix, bin, lib, include, share, libexec, opt_prefix, FormulaInstaller, Formulary, formula loading, path loading, API loading, tap loadingreferences/formula.md
cask, Cask, cask DSL, cask stanza, version, sha256, url, app, pkg, installer, binary, manpage, font, zap, uninstall, caveats, auto_updates, conflicts_with, depends_on, container, livecheck, no_autobump, deprecate, disable, language, rename, suite, stage_only, artifact, preflight, postflight, preflight_steps, postflight_steps, generate_completions_from_executable, Cask::DSL, Cask::Installer, CaskLoader, Caskroom, --appdir, --fontdir, --language, --require-sha, cask vs formulareferences/cask.md
tap, untap, tap-info, tap-new, homebrew/core, homebrew/cask, CoreTap, CoreCaskTap, third-party tap, homebrew- prefix, tap directory structure, Formula/, Casks/, cmd/, Aliases/, API mode, git clone mode, brew tap --repair, --custom-remote, tap trust, brew trust, brew untrust, HOMEBREW_NO_INSTALL_FROM_API, formula resolution order, fully qualified namereferences/taps.md
bottle, BottleSpecification, bottle block, bottle tag, pour, relocate, relocation, --build-bottle, brew bottle, --skip-relocation, --force-core-tap, --no-rebuild, --keep-old, --json, --merge, --write, --no-commit, --root-url, ghcr.io, GitHub Container Registry, HOMEBREW_BOTTLE_DOMAIN, bottle naming convention, brew unbottled, --tag, --dependentsreferences/bottle.md
services, brew services, service do, service block, run, run_type, interval, cron, keep_alive, launch_only_once, require_root, environment_variables, working_dir, log_path, error_log_path, restart_delay, sockets, nice, process_type, throttle_interval, macos_legacy_timers, name, launchctl, launchd, systemctl, systemd, LaunchAgents, LaunchDaemons, start, stop, restart, run, kill, cleanup, --all, --file, --json, --keep, --no-wait, --max-wait, sudo, std_service_path_envreferences/services.md
bundle, Brewfile, brew bundle, brew bundle install, brew bundle dump, brew bundle cleanup, brew bundle check, brew bundle exec, brew bundle sh, brew bundle list, brew bundle add, brew bundle remove, brew bundle edit, brew bundle env, brew bundle upgrade, tap entry, brew entry, cask entry, mas entry, vscode entry, go entry, cargo entry, uv entry, flatpak entry, winget entry, krew entry, npm entry, whalebrew entry, cask_args, restart_service, start_service, link, conflicts_with, postinstall, version_file, greedy, trusted, HOMEBREW_BUNDLE_FILE, HOMEBREW_BUNDLE_JOBSreferences/bundle.md
environment variable, HOMEBREW_PREFIX, HOMEBREW_CELLAR, HOMEBREW_REPOSITORY, HOMEBREW_CACHE, HOMEBREW_TEMP, HOMEBREW_NO_INSTALL_FROM_API, HOMEBREW_NO_AUTO_UPDATE, HOMEBREW_AUTO_UPDATE_SECS, HOMEBREW_API_DOMAIN, HOMEBREW_BOTTLE_DOMAIN, HOMEBREW_ARTIFACT_DOMAIN, HOMEBREW_CASK_OPTS, HOMEBREW_NO_ANALYTICS, HOMEBREW_DEBUG, HOMEBREW_DEVELOPER, HOMEBREW_COLOR, HOMEBREW_EDITOR, HOMEBREW_BROWSER, HOMEBREW_GITHUB_API_TOKEN, HOMEBREW_FORCE_BREWED_CURL, HOMEBREW_FORCE_BREWED_GIT, HOMEBREW_SORBET_RUNTIME, HOMEBREW_NO_INSECURE_REDIRECT, HOMEBREW_CLEANUP_MAX_AGE_DAYS, HOMEBREW_DOWNLOAD_CONCURRENCY, HOMEBREW_FORBIDDEN_TAPS, HOMEBREW_FORBIDDEN_FORMULAE, HOMEBREW_ALLOWED_TAPS, brew.env, brew config, brew doctor, configurationreferences/environment.md
cleanup, autoremove, prune, brew cleanup, --prune, --scrub, --prune-prefix, brew autoremove, --dry-run, brew doctor, --list-checks, --audit-debug, brew missing, brew migrate, brew pin, brew unpin, brew outdated, --json, --greedy, --fetch-HEAD, brew leaves, --installed-on-request, --installed-as-dependency, brew tab, brew linkage, --test, --reverse, --cached, INSTALL_RECEIPT, tab metadatareferences/maintenance.md
deps, uses, brew deps, brew uses, --topological, --direct, --tree, --graph, --dot, --annotate, --union, --include-build, --include-optional, --include-test, --include-implicit, --skip-recommended, --installed, --missing, --for-each, --HEAD, --os, --arch, --full-name, recursive dependency graph, reverse dependencyreferences/dependency.md
audit, style, test, tests, test-bot, typecheck, tc, create, edit, cat, extract, livecheck, lc, bump, bump-formula-pr, bump-cask-pr, bump-revision, bump-unversioned-casks, bump-compatibility-version, readall, unpack, irb, ruby, sh, prof, rubocop, vendor-gems, update-python-resources, update-perl-resources, generate-man-completions, generate-zap, tap-new, debugger, gist-logs, developer mode, HOMEBREW_DEVELOPER, Sorbet, RuboCop, --strict, --online, --git, --new, --fixreferences/developer.md
Cellar, keg, rack, keg-only, opt prefix, opt_prefix, prefix, --prefix, --unbrewed, --installed, symlink, link, unlink, brew link, brew unlink, --overwrite, --force, --HEAD, --dry-run, pour, relocation, staged path, Caskroom, directory layout, HOMEBREW_PREFIX, HOMEBREW_CELLARreferences/cellar.md

Quick Guide

Cross-Project References

  • For Ruby language fundamentals (classes, blocks, DSLs, gems, Bundler), consult Ruby's official documentation — brew's formula and cask DSLs are Ruby-based.
  • For Git internals (cloning, remotes, branches, PRs), use the git skill.
  • For carapace completion integration (the brew completer in carapace-bin, specs, actions, macros), see the carapace skill.
  • For launchd and systemd internals (plist format, unit files, service management beyond brew's wrapper), consult Apple's and systemd's official documentation — this skill covers only brew's services abstraction layer.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

bubbletea

無料概要あり

Go製TUIフレームワークBubble Teaの画面構成、入力・非同期処理、テスト、部品の組み合わせ方を調べ、端末アプリの実装や設計に活用できます。

  • Bubble Teaで端末画面を作りたいとき
  • キーやマウス入力を処理したいとき
  • 非同期処理を画面に組み込みたいとき
carapace-sh/carapace-bin2,0002026年10月26日 更新

bun

無料概要あり

BunのCLI、パッケージ管理、テスト、バンドル、実行時APIやシェルの使い方を調べ、JavaScript・TypeScriptの開発作業に活用できます。

  • Bunで依存パッケージを管理したいとき
  • テストやコードのバンドルを実行したいとき
  • Bunでサーバーやファイル処理を実装したいとき
carapace-sh/carapace-bin2,0002026年10月26日 更新

but

無料概要あり

GitButler CLIで仮想ブランチや積み重ねたブランチを管理し、変更の割り当て、コミット編集、競合解決、PR作成までのGit作業を進められます。

  • 作業を仮想ブランチに分けたいとき
  • コミットを修正・統合したいとき
  • 操作履歴を見て変更を取り消したいとき
carapace-sh/carapace-bin2,0002026年10月26日 更新

carapace

無料概要あり

carapaceをCLIに組み込み、シェル補完のYAML仕様や独自アクションを作成し、シェル設定やMCP連携、補完値の説明まで扱うスキルです。

  • CLIにシェル補完を追加したいとき
  • YAMLの補完仕様を作成したいとき
  • 独自の補完アクションを実装したいとき
carapace-sh/carapace-bin2,0002026年10月26日 更新

cargo

無料概要あり

Rustプロジェクトのビルドやテストから、依存関係、ワークスペース、公開設定まで、`cargo`の使い方と設定を調べられるスキルです。

  • Rustプロジェクトの依存関係を設定したいとき
  • featureやworkspaceの仕組みを確認したいとき
  • ビルドやテストのコマンドを調べたいとき
carapace-sh/carapace-bin2,0002026年10月26日 更新

cobra

無料概要あり

Goの`spf13/cobra`でCLIアプリを作る際に、コマンドやフラグ、引数検証、ヘルプ表示、シェル補完を設計する方法を調べられます。Viperとの設定連携も扱います。

  • CLIにコマンドやサブコマンドを追加したいとき
  • フラグや位置引数を検証したいとき
  • ヘルプ表示や実行フックを調整したいとき
carapace-sh/carapace-bin2,0002026年10月26日 更新

carapace-sh のスキルをすべて見る

このスキルの問題を報告する