帮助用户在 macOS 上安装软件,自动处理 Homebrew 依赖。Use when user wants to install, 安装, 下载软件, 装一个, 帮我装, 我想安装, 如何安装 apps on macOS.
/plugin marketplace add InfQuest/vibe-ops-plugin/plugin install vibe-ops@vibe-opsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
帮助没有编程经验的用户在 macOS 上轻松安装软件。
首先友好地确认用户想要安装什么软件。如果用户没有明确说明,询问他们:
运行以下命令检查:
which brew
重要:在安装前,用简单易懂的语言向用户解释:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
安装脚本会先解释将要执行的操作,然后暂停等待用户确认后再继续。
安装后配置(针对 Apple Silicon Mac):
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
向用户解释:
将以下配置添加到 shell 配置文件:
cat >> ~/.zprofile << 'EOF'
# Homebrew 中科大镜像源
export HOMEBREW_API_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles/api"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles"
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git"
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git"
EOF
然后使配置生效:
source ~/.zprofile
帮用户搜索正确的软件包名称:
brew search <软件名>
向用户解释搜索结果,帮助他们选择正确的包:
根据软件类型使用正确的命令:
图形界面应用(Cask):
brew install --cask <软件名>
命令行工具(Formula):
brew install <软件名>
安装完成后,帮助用户验证:
which <工具名> 或 <工具名> --version如果安装失败:
brew update 更新 Homebrewbrew doctor 诊断问题如果需要密码:
| 软件 | 安装命令 |
|---|---|
| Chrome | brew install --cask google-chrome |
| VS Code | brew install --cask visual-studio-code |
brew install --cask wechat | |
brew install --cask qq | |
| Notion | brew install --cask notion |
| Slack | brew install --cask slack |
| Zoom | brew install --cask zoom |
| VLC | brew install --cask vlc |
| Rectangle | brew install --cask rectangle |
| 1Password | brew install --cask 1password |
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.