31Carlton7

Mac CLI — Development skill for Claude Code

Development community

An agent-friendly CLI for native macOS apps.

How to install Mac CLI

This entry records only its repository, not the path inside it, so there is no exact command to give. Open 31Carlton7/mac-cli and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Mac CLI does

An agent-friendly CLI for native macOS apps. Calendar, Reminders, Contacts, Mail, Messages, Notes, Music, TV, Finder, Shortcuts and calls from one binary, with --json on every command, stable exit codes and IDs you can trust. MIT.

Alternatives in Development

  • Shortcuts Playground Plugin — Shortcuts Playground: A Claude Code and Codex plugin for building, validating, signing, and remixing macOS/iOS 1.1k ★
  • Pi Reserved Keybindings — Extensions cannot override these shortcuts — they are silently skipped by registerShortcut() 526 ★
  • Music Genre Finder — 🎵 Intelligent music genre search with 5947 genres from RateYourMusic - Claude Code skill for quick lookup, sm 158 ★

README

mac

**[macoscli.sh](https://macoscli.sh)**

An agent-friendly CLI for native macOS apps. Calendar, Reminders, and Contacts run on native frameworks (EventKit, Contacts) for millisecond calls with typed errors and stable IDs; Mail, Messages, Notes, Music, TV, Shortcuts, Finder, and the iWork apps (Keynote, Pages, Numbers) use AppleScript (and read-only Mail and Messages databases), since Apple ships no public APIs for them.

Built for AI agents (Claude Code, etc.) and the humans who drive them: every command has `--json`, stable exit codes, and `--help` with examples.

Install

make install        # builds release binary, installs to /usr/local/bin/mac

Requires macOS 14+ and Xcode command line tools.

First run

macOS will prompt once per capability (Calendar, Reminders, Contacts) the first time you use it. Check status anytime:

mac doctor

Mail, Messages, Notes, Music, TV, Shortcuts, Finder, Keynote, Pages, and Numbers additionally need Automation consent (prompted on first use) and, for reading Messages history and Mail's Envelope Index, Full Disk Access for your terminal app — `mac doctor` reports all of it with fix steps.

Usage

mac calendar list --from today --to +7d
mac calendar add "Dentist" --at "tomorrow 2pm" --duration 1h
mac reminders add "Buy milk" --list Groceries --due "tomorrow 9am"
mac reminders complete 
mac contacts find "Sarah"
mac mail accounts
mac mail unread --limit 10
mac mail search "invoice"
mac mail search "from:github.com is:unread newer:2d"
mac mail index build
mac mail search 'body:"tracking number" newer:30d'
mac mail index status
mac mail list --mailbox Sent --limit 5
mac mail mailboxes --account Work
mac mail read 
mac mail archive   --dry-run
mac mail flag 
mac mail move  --to Projects --dry-run
mac mail open abc123@example.com
mac mail senders --by domain --unread --limit 10
mac mail contacts ann
mac mail wait 'from:github.com subject:"verification code"' --timeout 2m -