Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

macos-cli

БесплатноБез исполняемых скриптовНе проверен

Control a Mac from the terminal with the `macos` command (Calendar, Reminders, Contacts, Mail, Messages, Notes, Safari, Photos, Music, files, windows…

manuaudioот manuaudio270 установок в других каталогах

Об этом скилле

macos-cli

macos is one signed binary that drives a Mac: macos <area> <action>. It runs on macOS 13 or later on Apple silicon. Install it with brew install manuaudio/tap/macos-cli; the README has the other ways.

Step one: ask what you may do

Run this before any other command. It never shows a prompt.

macos doctor --for-agent

It answers with one JSON object. ready is true only when every privacy area is granted; missing names the areas that are not. Each entry of areas carries state, needed_by (the commands that fail without it) and hint (what a person does to grant it). capabilities is the policy in ~/.config/macos-cli/auth.json: a command whose capability is false is refused with capability_denied.

What you cannot do yourself, ask the person to do:

  • A privacy area (Calendars, Contacts, Full Disk Access, Accessibility, Screen Recording, …) is granted by a person, through macos authorize <area> or System Settings. You cannot click Allow.
  • The policy is widened only by a person at a terminal (macos auth grant <capability>). Run by you, it refuses with person_required and nothing changes. macos auth deny needs no person.
  • macos reminders complete --id ID is a dry run unless --approve matches the APPLE_EVENTKIT_APPROVE_TOKEN the person set in your environment.

The list below has every command with its flags, one line of help and whether it writes; macos commands --json prints it. Run macos help <area> <action> for a command's arguments.

Commands that only read

These change nothing on the Mac. Saving a screenshot or an export to a path you name counts as reading.

  • macos apps info: Show frontmost app info. Flags: --json.
  • macos apps list: List running applications. Flags: --all --json.
  • macos audio info: Show current default input and output devices. Flags: --json.
  • macos audio list: List all audio devices. Flags: --json.
  • macos auth list: Show all capabilities and their current state.
  • macos ax find: Find UI elements matching a name. Flags: --app --json.
  • macos ax read: Dump the UI tree of an app (top 2 levels). Flags: --json.
  • macos bluetooth list: List paired Bluetooth devices. Flags: --json.
  • macos calendar calendars: List all calendars. Flags: --json.
  • macos calendar events: List events in a date range. Flags: --from --to --calendar --calendar-id --timezone --json.
  • macos calendar export: Export events as a rich JSON envelope (events/count/calendars/filter) for ingestion. Flags: --from --to --calendar --calendar-id --since --timezone --json.
  • macos calendar reload: Force Calendar to refresh from iCloud / CalDAV sources. Flags: --json.
  • macos commands: List every command with its flags, one line of help, and whether it writes. Flags: --json.
  • macos contacts export: Export all contacts as rich JSON for ingestion (read-only). Flags: --limit --since --json.
  • macos contacts get: Get a contact by ID. Flags: --json.
  • macos contacts get-note: Read the note field of a contact (works around macOS 13+ entitlement). Flags: --json.
  • macos contacts search: Search contacts by name, phone, or email. Flags: --json --limit.
  • macos daysheets day: One day's events; an empty list on a day with none. Flags: --json.
  • macos daysheets days: The tour's days with their events, oldest first. Flags: --from --to --json.
  • macos defaults list-domains: List all defaults domains. Flags: --json.
  • macos defaults read: Read a defaults domain or key. Flags: --domain --key --json.
  • macos disk info: Show detailed info for a disk or volume. Flags: --json.
  • macos disk list: List all disks and partitions. Flags: --json.
  • macos dock list: List pinned Dock apps. Flags: --json.
  • macos doctor: Report every macOS permission this binary has, and how to get the rest (never prompts). Flags: --for-agent --json.
  • macos file list: List directory contents. Flags: --all --json.
  • macos file read: Print text file contents. Flags: --max-bytes --force.
  • macos file stat: Show file metadata. Flags: --json.
  • macos finder cwd: Get the current folder shown in the front Finder window. Flags: --json.
  • macos finder selected: Get paths of currently selected files in Finder. Flags: --json.
  • macos focus modes: List all configured Focus modes. Flags: --json.
  • macos focus status: Show current Focus mode and DND state. Flags: --json.
  • macos info network: Network interfaces and IP addresses. Flags: --json.
  • macos info power settings: Show power management settings. Flags: --json.
  • macos info system: CPU, RAM, uptime, OS. Flags: --json.
  • macos keychain get: Retrieve a Keychain password. Flags: --service --account --json.
  • macos keychain list: List Keychain service/account metadata (no passwords). Flags: --query --json.
Полный SKILL.md на ClawHub

Установить macos-cli в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл macos-cli?

Control a Mac from the terminal with the `macos` command (Calendar, Reminders, Contacts, Mail, Messages, Notes, Safari, Photos, Music, files, windows, screenshots, OCR, the Accessibility tree and system settings), where every command that returns data prints JSON with --json; run `macos doctor --for-agent` before anything else.

Как установить скилл macos-cli?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл macos-cli запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить macos-cli с