Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

brewbrew 搜索

Agent Skill

brew 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

10,512

周安装

438

GitHub Stars

1

下载量

3,504
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:brew(brew 搜索)
来源仓库:https://github.com/weichengwu/brew
安装命令:
openclaw skills install brew
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install brew

简介

brew 用于在 macOS 上端到端管理 Homebrew,包括检测安装状态、查询公式与 cask、更新包数据等。

  • 适用于需要自动化管理软件包、获取最新元数据或批量安装公式的开发环境管理场景。
  • 通过 clawhub 安装后,结合原始 README 了解具体命令与参数使用方式。
  • 安装前建议确认是否触发系统命令执行,以及是否需要网络访问或写入系统目录的权限。
  • brew 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
brew
description
Manage Homebrew end-to-end on macOS, including detecting whether Homebrew is installed, understanding formula vs cask, updating metadata and packages, installing/uninstalling software, searching/listing package state, cleanup/autoremove, diagnostics, and Brewfile workflows. Use when users ask to update brew, install or remove apps/tools with brew, check outdated packages, fix brew errors, export/sync package setup, or verify Homebrew environment health.

Homebrew

Overview

Use this skill to run Homebrew operations safely and consistently on macOS. Start by checking whether Homebrew exists, then perform package lifecycle tasks (update/install/uninstall/verify) based on user intent.

Quick Start Workflow

  1. Confirm platform compatibility (Homebrew tasks here are for macOS).
  2. Detect whether Homebrew is installed.
  3. If missing, report clearly and ask whether to install Homebrew first.
  4. If present, execute the requested brew operation.
  5. Verify the result and report concise next steps.

Detect Homebrew Installation (Required First Step)

Run in this order:

command -v brew
brew --version

Interpretation:

  • command -v brew returns a path (for example /opt/homebrew/bin/brew or /usr/local/bin/brew) → Homebrew installed.
  • Command not found or non-zero exit → Homebrew not installed.

If not installed, reply with:

  • “Homebrew is not installed on this Mac.”
  • Ask whether to proceed with installation.
  • If user agrees, run Homebrew’s official installer:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Core Concepts (From Homebrew Manpage)

  • formula: package definition built from source or bottle (brew install <formula>).
  • cask: prebuilt app/binary package (brew install --cask <cask>).
  • Prefer formula for developer tools and cask for desktop apps.

Common Operations

Update Homebrew

Use when user says “更新 brew / update brew / upgrade brew itself”.

brew update
brew --version

Optional follow-up for packages (ask or infer from request):

brew upgrade
brew cleanup

Install Packages

  1. Determine install type:

- CLI/tool/library: formula (brew install <name>) - App: cask (brew install --cask <name>)

  1. Install.
  2. Verify installation (brew list --versions <name> or open app checks for casks).

Examples:

brew install wget
brew install --cask iterm2

Uninstall Packages

  1. Confirm target package name.
  2. Uninstall with correct type.
  3. Verify removal.

Examples:

brew uninstall wget
brew uninstall --cask iterm2

Status and Discovery

Use when user asks “what do I have / what can I install / what is outdated”.

brew search <keyword>
brew list
brew list --cask
brew info <name>
brew outdated

Cleanup and Dependency Maintenance

Use after large upgrades/uninstalls or when disk cleanup is requested.

brew cleanup
brew autoremove --dry-run
brew autoremove

Run --dry-run first when safety matters.

Brewfile (Environment Sync / Backup)

Use when user wants to export or reproduce package setup.

brew bundle dump --file Brewfile
brew bundle check --file Brewfile
brew bundle install --file Brewfile

Intent → Command Mapping (Fast Routing)

Use this table to convert natural-language requests into reliable brew commands.

  • “更新 brew 本身 / 更新索引” → brew update
  • “升级已安装的软件” → brew upgrade (optionally brew upgrade --cask when user focuses on apps)
  • “清理缓存和旧版本” → brew cleanup
  • “安装命令行工具 xxx” → brew install <xxx>
  • “安装桌面应用 xxx” → brew install --cask <xxx>
  • “卸载命令行工具 xxx” → brew uninstall <xxx>
  • “卸载桌面应用 xxx” → brew uninstall --cask <xxx>
  • “查找有没有 xxx” → brew search <xxx>
  • “看看装了什么” → brew list / brew list --cask
  • “查看 xxx 详情” → brew info <xxx>
  • “看哪些过期了” → brew outdated
  • “导出当前环境” → brew bundle dump --file Brewfile
  • “按 Brewfile 同步环境” → brew bundle install --file Brewfile

Failure Handling Playbook

When commands fail, capture the key error and apply the minimal safe fix path.

  1. Run diagnostics:
brew doctor
brew config
  1. If package not found:
brew update
brew search <name>
  1. If download/network errors: retry once after brew update; report mirror/network suspicion.
  2. If permission/path conflicts: report exact path/conflict line and ask before destructive fixes.
  3. If cask already installed or link conflicts: prefer explicit overwrite/reinstall only with user confirmation.

Helpful Diagnostic Commands

Use these when user asks for status, troubleshooting, or package discovery.

brew doctor
brew config
brew search <keyword>
brew list
brew list --cask
brew outdated
brew info <name>

Response Style

  • Report exactly what was run and what changed.
  • For failed installs/uninstalls, include the key error line and a concrete retry/fix step.
  • Keep output concise; avoid dumping full logs unless user asks.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

92.45%
按下载量换算3,239

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills