homebrew
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSkill: homebrew
Skill: Homebrew
When to Use
使用场景
Use this skill when the user asks to:
- Install software, a tool, an app, or a package on macOS
- Install a programming language, database, or dev tool (e.g. node, python, redis, postgres, go, rust)
- Install a GUI/desktop application via (e.g. Chrome, Slack, Docker, VS Code)
brew install --cask - Search for available packages or check if something is installable via Homebrew
- List installed packages or check what's currently on the system
- Update Homebrew or upgrade installed packages
- Uninstall / remove a package
- Diagnose or fix Homebrew issues ()
brew doctor - Tap a new Homebrew repository
- Check info or version of an installed package
当用户提出以下需求时,可使用此技能:
- 在macOS上安装软件、工具、应用程序或软件包
- 安装编程语言、数据库或开发工具(如node、python、redis、postgres、go、rust)
- 通过安装GUI/桌面应用(如Chrome、Slack、Docker、VS Code)
brew install --cask - 搜索可通过Homebrew安装的软件包,或检查某软件是否可通过Homebrew安装
- 列出已安装的软件包,或检查系统当前已安装的内容
- 更新Homebrew本身,或升级已安装的软件包
- 卸载/移除软件包
- 诊断或修复Homebrew问题()
brew doctor - 接入新的Homebrew仓库
- 查看已安装软件包的信息或版本
Prerequisites
前提条件
- macOS only — Homebrew is a macOS package manager (also works on Linux but this skill targets Mac)
- Homebrew must be installed. If not, install it first:
bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- 仅支持macOS —— Homebrew是macOS软件包管理器(也可在Linux上使用,但本技能面向Mac用户)
- 必须已安装Homebrew。若未安装,请先执行以下命令:
bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Available Tool
可用工具
The tool is registered as a core tool. Use it directly:
brew| Action | Tool Input | Description |
|---|---|---|
| | Install one or more formulae |
| | Install GUI apps via cask |
| | Remove installed packages |
| | Search for available packages |
| | Get detailed info about a package |
| | List all installed formulae |
| | List all installed cask apps |
| | Update Homebrew itself |
| | Upgrade all outdated packages |
| | Upgrade specific packages |
| | Diagnose Homebrew issues |
| | Add a third-party repo |
| | Show packages with updates available |
brew| 操作(Action) | 工具输入(Tool Input) | 描述(Description) |
|---|---|---|
| | 安装一个或多个formulae软件包 |
| | 通过cask安装GUI应用 |
| | 移除已安装的软件包 |
| | 搜索可用的软件包 |
| | 获取软件包的详细信息 |
| | 列出所有已安装的formulae软件包 |
| | 列出所有已安装的cask应用 |
| | 更新Homebrew本身 |
| | 升级所有过时的软件包 |
| | 升级指定的软件包 |
| | 诊断Homebrew问题 |
| | 添加第三方仓库 |
| | 显示有可用更新的软件包 |
Procedure
操作步骤
- Check Homebrew is available: The tool will automatically verify Homebrew is installed before running any action. If not found, it will return instructions to install it.
brew - Determine what to install: Extract the package name(s) from the user's request. If unclear, use to clarify.
ask_user - Choose formulae vs cask: CLI tools use , GUI apps (Chrome, Slack, Docker Desktop, etc.) use
install.install_cask - Execute: Call the tool with the appropriate action and parameters.
brew - Report results: Confirm what was installed/updated/removed with version info where available.
- 检查Homebrew是否可用:工具会在执行任何操作前自动验证Homebrew是否已安装。若未找到,将返回安装说明。
brew - 确定要安装的内容:从用户请求中提取软件包名称。若信息不明确,使用向用户确认。
ask_user - 选择formulae或cask:CLI工具使用,GUI应用(如Chrome、Slack、Docker Desktop等)使用
install。install_cask - 执行操作:调用工具并传入对应的操作和参数。
brew - 报告结果:确认已安装/更新/移除的内容,若有版本信息也一并提供。
Common Package Examples
常见软件包示例
CLI Tools & Languages (formulae)
CLI工具与编程语言(formulae)
| Request | Package Name |
|---|---|
| "install node" | |
| "install Python" | |
| "install PHP" | |
| "install Go" | |
| "install Rust" | |
| "install Redis" | |
| "install PostgreSQL" | |
| "install MySQL" | |
| "install Git" | |
| "install FFmpeg" | |
| "install wget" | |
| "install jq" | |
| "install ripgrep" | |
| "install Docker CLI" | |
| 用户请求 | 软件包名称 |
|---|---|
| "安装node" | |
| "安装Python" | |
| "安装PHP" | |
| "安装Go" | |
| "安装Rust" | |
| "安装Redis" | |
| "安装PostgreSQL" | |
| "安装MySQL" | |
| "安装Git" | |
| "安装FFmpeg" | |
| "安装wget" | |
| "安装jq" | |
| "安装ripgrep" | |
| "安装Docker CLI" | |
GUI Apps (casks)
GUI应用(casks)
| Request | Cask Name |
|---|---|
| "install Chrome" | |
| "install VS Code" | |
| "install Slack" | |
| "install Docker Desktop" | |
| "install Spotify" | |
| "install Figma" | |
| "install iTerm" | |
| "install Rectangle" | |
| "install 1Password" | |
| "install Cursor" | |
| 用户请求 | Cask名称 |
|---|---|
| "安装Chrome" | |
| "安装VS Code" | |
| "安装Slack" | |
| "安装Docker Desktop" | |
| "安装Spotify" | |
| "安装Figma" | |
| "安装iTerm" | |
| "安装Rectangle" | |
| "安装1Password" | |
| "安装Cursor" | |
Example
示例
Example requests that trigger this skill:
install node and redis on my mac
I need ffmpeg installed
install google chrome
what packages do I have installed?
search for a markdown editor
update all my brew packages
is postgres installed?
install docker desktop触发此技能的示例请求:
在我的mac上安装node和redis
我需要安装ffmpeg
安装谷歌浏览器
我已经安装了哪些软件包?
搜索一款markdown编辑器
更新我所有的brew软件包
postgres已经安装了吗?
安装docker桌面版