macos-brew-manager

macOS Brew manager: used to manage target packages or Casks when issuing Homebrew commands. When performing search, info, install, or uninstall operations, the name of the target package or Cask must be provided.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "macos-brew-manager" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-a87be7f362107a1e3545303c33529aa8b77f368c9a5b1ea0aeb1d017b7c318c5. Verify the upstream source and version against https://skillhub.cn/skills/user_3db3197f/macos-brew-manager before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

macOS Brew manager: used to manage target packages or Casks when issuing Homebrew commands. When performing search, info, install, or uninstall operations, the name of the target package or Cask must be provided.

0 Downloads

Introduction source: third_party · user_3db3197f · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: macos_brew_manager
description: "用于在 macOS 系统上通过 Homebrew (brew) 管理软件包。支持搜索、查询信息、安装、卸载和列出已安装的包。只能在确定用户使用的是 macOS 且需要管理本地软件时调用。"
parameters:
  type: object
  properties:
    action:
      type: string
      description: "需要执行的 brew 动作"
      enum:
        - search
        - info
        - install
        - uninstall
        - list_installed
        - update_brew
    package_name:
      type: string
      description: "目标软件包或 Cask 的名称(执行 search, info, install, uninstall 时必填)"
  required:
    - action

技能执行指南 (macOS Homebrew Manager)

大模型在调用此技能时,必须严格遵守以下执行规则、安全守则和结果处理方式。

1. 核心安全守则 (Critical Safety Rules)

  • 严禁越权操作:严禁执行任何带有 sudo 的命令。Homebrew 本身不推荐、也不需要 sudo 权限运行。
  • 确认操作系统:在调用此工具前,必须通过上下文确认用户的系统是 macOS。如果是 Linux 或 Windows,请拒绝使用此技能。
  • 限制安装源:只允许安装来自 Homebrew 官方源(Core 和 Cask)的软件。严禁执行添加未知第三方 Tap (brew tap <unknown>) 的操作,除非用户明确要求。
  • 确认后执行 (仅限写操作):
    • 对于 search、info、list_installed 等只读操作,可以直接执行。
    • 对于 install、uninstall、update_brew 等写操作/系统变更操作,在执行前必须向用户确认(例如:“我将为您安装 wget,这需要执行 brew install wget。请问是否确认?”)。

2. 动作分支执行逻辑 (Execution Logic)

根据用户提取的 action 参数,后台脚本应执行对应的底层命令行操作:

  • search:
    • 底层命令: brew search <package_name>
    • 场景: 用户询问“brew 上有没有某个软件”或不确定具体包名时。
  • info:
    • 底层命令: brew info <package_name> 或 brew info --cask <package_name>
    • 场景: 用户想了解某个软件的当前版本、依赖关系或官方网站时。
  • install:
    • 底层命令: brew install <package_name>
    • 场景: 用户明确请求安装某个终端工具或 GUI 软件(GUI 软件通常会自动识别为 Cask 安装)。
  • uninstall:
    • 底层命令: brew uninstall <package_name>
    • 场景: 用户要求卸载某个已通过 brew 安装的软件。
  • list_installed:
    • 底层命令: brew list
    • 场景: 用户想查看自己电脑上通过 brew 安装了哪些软件。
  • update_brew:
    • 底层命令: brew update
    • 场景: 用户要求更新 Homebrew 本身和本地的包索引。

3. 结果处理与回复标准 (Output Interpretation)

接口返回数据后,模型需要将其转化为人类友好的语言回复用户:

  • 当搜索无结果时:不要编造软件名。礼貌告知用户未找到,并建议用户检查拼写,或者提示该软件可能需要通过官网手动下载(如某些未收录的商业软件)。
  • 当安装成功时:告知用户安装已完成。如果是 CLI 工具,可以顺便给出一个该工具的简单使用示例(例如安装了 tldr,回复:“安装成功!您现在可以尝试在终端输入 tldr tar 来查看它的常用命令”)。
  • 当遇到冲突/报错时:
    • 如果提示“Already installed”,告知用户该软件已存在,可提示使用 brew upgrade <package_name> 更新。
    • 如果提示“Xcode Command Line Tools missing”,向用户解释需要先在终端运行 xcode-select --install。

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 面向 macOS 用户,提供 Homebrew 软件包管理能力,属于明确场景的通用工具
  • 支持搜索、查询信息、安装、卸载和列出已安装的包,功能完整
Trigger Precision95/100

Highlights

  • description 明确说明参数 package_name 为必填项,且限定在 macOS 系统下使用
  • 触发词精准完整,覆盖多种变体,边界清晰
Structure and Standards90/100

Highlights

  • 文档结构清晰,包含核心安全守则、动作分支执行逻辑、结果处理与回复标准
  • frontmatter 完整,单文件未超过 500 行
Execution Reliability90/100

Highlights

  • 工具来源明确(Homebrew 官方源),参数正确
  • 覆盖主要异常(如已安装、Xcode 工具缺失等),不可逆操作有确认机制
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 35, 48
  • Administrator or elevated privileges

    Elevate only when necessary. Keep protection and certificate validation enabled and avoid broad system access.

    Mentioned in main document · lines 30

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.