← 返回 Skills 市场
thesethrose

Homebrew Package Manager

作者 Seth Rose · GitHub ↗ · v1.0.1
cross-platform ✓ 安全检测通过
3815
总下载
1
收藏
28
当前安装
2
版本数
在 OpenClaw 中安装
/install homebrew
功能描述
Homebrew package manager for macOS. Search, install, manage, and troubleshoot packages and casks.
使用说明 (SKILL.md)

Homebrew Package Manager

Complete Homebrew command reference and usage guide for installing, managing, and troubleshooting macOS packages.

When to Use

  • Installing packages or applications (brew install X)
  • Searching for available packages (brew search X)
  • Updating and upgrading existing packages
  • Checking package information and dependencies
  • Troubleshooting installation issues
  • Managing installed packages

Command Reference

Package Search & Information

brew search TEXT|/REGEX/

Usage: Find packages by name or regex pattern When to use: When user asks to find or search for a package Examples:

brew search python
brew search /^node/

brew info [FORMULA|CASK...]

Usage: Display detailed information about one or more packages When to use: Before installing to see dependencies, options, and details Examples:

brew info python
brew info chrome google-chrome

Installation & Upgrades

brew install FORMULA|CASK...

Usage: Install one or more packages or applications When to use: When user says "install X" or "use brew to install X" Notes:

  • FORMULA = command-line tools (installed to /usr/local/bin)
  • CASK = GUI applications (installed to /Applications)
  • Can install multiple at once: brew install git python nodejs Examples:
brew install python
brew install google-chrome  # installs as cask
brew install git python nodejs

brew update

Usage: Fetch the newest version of Homebrew and all formulae When to use: When brew seems outdated or before major operations Notes: Doesn't upgrade packages, just updates the package list Examples:

brew update

brew upgrade [FORMULA|CASK...]

Usage: Upgrade installed packages or specific packages When to use: When user wants to update to newer versions Notes:

  • Without args: upgrades all outdated packages
  • With args: upgrades only specified packages Examples:
brew upgrade              # upgrade all outdated packages
brew upgrade python       # upgrade just python
brew upgrade python git   # upgrade multiple

Package Management

brew uninstall FORMULA|CASK...

Usage: Remove installed packages When to use: When user wants to remove/delete a package Notes: Can uninstall multiple at once Examples:

brew uninstall python
brew uninstall google-chrome

brew list [FORMULA|CASK...]

Usage: List installed packages or files from specific packages When to use: When user wants to see what's installed or what files a package contains Examples:

brew list                 # show all installed packages
brew list python          # show files installed by python

Configuration & Troubleshooting

brew config

Usage: Display Homebrew configuration and environment info When to use: Debugging installation issues or checking system setup Shows:

  • Installation path
  • Xcode location
  • Git version
  • CPU architecture Examples:
brew config

brew doctor

Usage: Check for potential problems with Homebrew installation When to use: When experiencing installation issues or errors Returns: Warnings and suggestions for fixing issues Examples:

brew doctor

brew install --verbose --debug FORMULA|CASK

Usage: Install with verbose output and debug information When to use: When standard install fails and you need detailed error messages Examples:

brew install --verbose --debug python

Advanced Usage

brew create URL [--no-fetch]

Usage: Create a new formula from source code When to use: Creating custom packages (advanced users) Options:

  • --no-fetch = don't download source immediately Examples:
brew create https://example.com/package.tar.gz

brew edit [FORMULA|CASK...]

Usage: Edit formula or cask definition When to use: Customizing package installation (advanced users) Examples:

brew edit python

brew commands

Usage: Show all available brew commands When to use: Learning about additional brew features Examples:

brew commands

brew help [COMMAND]

Usage: Get help for specific command When to use: Need detailed help for a specific command Examples:

brew help install
brew help upgrade

Quick Reference

Task Command
Search for package brew search TEXT
Get package info brew info FORMULA
Install package brew install FORMULA
Install app brew install CASK
Update package list brew update
Upgrade all packages brew upgrade
Upgrade specific package brew upgrade FORMULA
Remove package brew uninstall FORMULA
List installed brew list
Check config brew config
Troubleshoot brew doctor

Common Workflows

Installing a New Package

  1. Search: brew search python
  2. Get info: brew info [email protected]
  3. Install: brew install [email protected]

Troubleshooting Installation

  1. Check config: brew config
  2. Run doctor: brew doctor
  3. Retry with debug: brew install --verbose --debug FORMULA

Maintaining Homebrew

  1. Update: brew update
  2. Check what's outdated: brew upgrade (shows what would upgrade)
  3. Upgrade all: brew upgrade

Key Concepts

FORMULA: Command-line tools and libraries (e.g., python, git, node) CASK: GUI applications (e.g., google-chrome, vscode, slack) TAP: Third-party formula repositories (e.g., brew tap homebrew/cask-versions)

Notes

  • All brew commands require Homebrew to be installed
  • Xcode Command Line Tools are required for building from source
  • Some packages may prompt for sudo password
  • Different packages have different installation times
  • Package names are case-insensitive but shown lowercase by convention

Resources

安全使用建议
This skill is an instruction-only Homebrew reference and appears internally consistent. Before installing/using it, confirm that: (1) you trust the agent to run local brew commands (install/uninstall/upgrade can change your system), (2) the environment where the agent runs actually has the 'brew' binary and appropriate permissions, and (3) you will review or approve any package operations the agent proposes (avoid letting an agent autonomously install untrusted packages). If you want stricter control, keep the skill user-invocable only or disable autonomous invocation for agents that shouldn't modify your system.
功能分析
Type: OpenClaw Skill Name: homebrew Version: 1.0.1 The skill bundle provides a comprehensive guide for using the Homebrew package manager. All instructions in SKILL.md describe standard Homebrew commands and their legitimate usage, such as searching, installing, upgrading, and troubleshooting packages. There is no evidence of prompt injection against the agent, data exfiltration, malicious execution, persistence mechanisms, or obfuscation. While Homebrew is a powerful tool that could be misused, the skill itself does not contain any instructions or intent for harmful behavior; it merely documents the tool's functionality.
能力评估
Purpose & Capability
Name and description match the runtime instructions: the skill is purely a Homebrew command reference and requires the 'brew' binary. No unrelated credentials, binaries, or config paths are requested.
Instruction Scope
SKILL.md only instructs the agent to run standard brew commands (search, info, install, update, upgrade, doctor, etc.). It does not direct the agent to read unrelated files, access external endpoints, or exfiltrate environment variables.
Install Mechanism
There is no install spec and no code files — the skill is instruction-only, so nothing is downloaded or written to disk by the skill itself.
Credentials
The skill requests no environment variables or credentials. The single declared runtime dependency (the 'brew' binary) is appropriate for a Homebrew helper.
Persistence & Privilege
always is false and model invocation is allowed by default. This is expected for a user-invocable helper. The skill does not request persistent system-wide changes to other skills or configurations.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install homebrew
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /homebrew 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Removed redundant tool wrappers - documentation-only skill for direct terminal usage
v1.0.0
Initial release: Comprehensive Homebrew command documentation with tools for searching, installing, upgrading, and managing packages
元数据
Slug homebrew
版本 1.0.1
许可证
累计安装 29
当前安装数 28
历史版本数 2
常见问题

Homebrew Package Manager 是什么?

Homebrew package manager for macOS. Search, install, manage, and troubleshoot packages and casks. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 3815 次。

如何安装 Homebrew Package Manager?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install homebrew」即可一键安装,无需额外配置。

Homebrew Package Manager 是免费的吗?

是的,Homebrew Package Manager 完全免费(开源免费),可自由下载、安装和使用。

Homebrew Package Manager 支持哪些平台?

Homebrew Package Manager 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Homebrew Package Manager?

由 Seth Rose(@thesethrose)开发并维护,当前版本 v1.0.1。

💬 留言讨论