MacPilot : Control macOS using CLI
/install macpilot
MacPilot Skills
Agent skills for MacPilot — a CLI tool for macOS automation via Accessibility APIs.
These skills teach AI coding agents (Claude Code, Cursor, Codex, etc.) how to use MacPilot to automate macOS tasks: clicking buttons, typing text, managing windows, handling file dialogs, taking screenshots, and more.
Install
npx skills add adhikjoshi/macpilot-skills
This uses the skills CLI to install skills into your agent of choice.
Available Skills
| Skill | Description |
|---|---|
| macpilot-automation | Core macOS automation — mouse, keyboard, apps, menus, clipboard (with history & search), notifications, shell, system controls |
| macpilot-ui-inspector | Inspect and interact with UI elements via accessibility APIs — find, click, read, and modify controls |
| macpilot-dialog-handler | Handle native file dialogs (Open, Save, Print) — navigate folders, select files, dismiss alerts, wait-for & click-primary |
| macpilot-screenshot-ocr | Capture screenshots, OCR click (find & click text on screen), screen recording with pause/resume |
| macpilot-window-manager | Manage windows — list, move, resize, snap, fullscreen, Spaces, save/restore layouts |
Prerequisites
- MacPilot installed — Build from source or download from releases
- Accessibility permission — Grant MacPilot.app access in System Settings > Privacy & Security > Accessibility
- Screen Recording permission (for screenshot/OCR skills) — Grant in System Settings > Privacy & Security > Screen Recording
Quick Start
# Install MacPilot skills into Claude Code
npx skills add adhikjoshi/macpilot-skills
# Now ask Claude Code to automate macOS:
# "Open Safari and navigate to example.com"
# "Take a screenshot of the Finder window"
# "Snap VS Code to the left half and Terminal to the right"
# "Save this file to my Desktop"
Manual Install
If you prefer not to use npx skills, copy any SKILL.md file to your agent's skills directory:
# Claude Code (project scope)
mkdir -p .claude/skills/macpilot-automation
cp skills/macpilot-automation/SKILL.md .claude/skills/macpilot-automation/
# Claude Code (global scope)
mkdir -p ~/.claude/skills/macpilot-automation
cp skills/macpilot-automation/SKILL.md ~/.claude/skills/macpilot-automation/
License
MIT
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install macpilot - 安装完成后,直接呼叫该 Skill 的名称或使用
/macpilot触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
MacPilot : Control macOS using CLI 是什么?
Control macOS via CLI using MacPilot for automating UI actions, managing windows, handling file dialogs, capturing screenshots, and system tasks. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 384 次。
如何安装 MacPilot : Control macOS using CLI?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install macpilot」即可一键安装,无需额外配置。
MacPilot : Control macOS using CLI 是免费的吗?
是的,MacPilot : Control macOS using CLI 完全免费(开源免费),可自由下载、安装和使用。
MacPilot : Control macOS using CLI 支持哪些平台?
MacPilot : Control macOS using CLI 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 MacPilot : Control macOS using CLI?
由 Adhik Joshi(@adhikjoshi)开发并维护,当前版本 v0.7.0。