Macos tools

From sonichi/sutando · View interactive version

Macos tools is an AI agent skill from the GitHub repository sonichi/sutando. macOS native integrations: screen capture, calendar, reminders, contacts, email (Mail.app), Spotlight search. Use when the user asks about their screen, schedule, to-do list, contacts, or wants to send email on macOS.

How to use this skill

Skill file

macOS Tools

Native macOS integrations via AppleScript. No API keys needed — works on any Mac.

Calendar, Reminders and Contacts need the owner's consent. Driving those apps raises a macOS

permission prompt on the owner's screen. The order: (1) the Superpower Station connector

(composio_find → composio_exec); (2) if it is not connected, the owner's own tools when they

are in the tool list (mcp__claude_ai_Google_Calendar__*); (3) otherwise ask the owner. Run the

scripts below with --owner-asked only when the owner asked for the local app in this

conversation — without it they refuse (exit 2). A macOS denial (exit 3) is final and stored in

<workspace>/state/<app>-automation-denied: say so, never retry or re-prompt. The native-pim-guard

hook denies raw osascript/open -a commands against these apps for the same reason.

The owner can allow the local apps for this host once, in their own terminal (never run it yourself

— the hook denies it to you):

python3 "$SKILL_DIR/scripts/native_pim_consent.py" grant     # writes state/native-pim-consent, clears stored denials
python3 "$SKILL_DIR/scripts/native_pim_consent.py" status    # marker, env var, per-app denial
python3 "$SKILL_DIR/scripts/native_pim_consent.py" revoke

--owner-asked and SUTANDO_ALLOW_NATIVE_PIM=1 are strings you write: they stop you acting on your

own initiative, they do not prove who asked (see hooks/README.md, native-pim-guard). Where the

session says whose task is running (state/bindings/active-execution.json), the scripts refuse every

form of consent on a non-owner task (exit 2, "not the owner's"). The consent record itself —

state/native-pim-consent and the *-automation-denied markers — is the owner's: never write, copy,

delete or touch it, and never import native_pim_consent to call grant(); the hook denies all of

those, and status is how you read the state.

When to Use

Tools

Screen Capture

bash "$SKILL_DIR/scripts/screen-capture.sh"

Returns path to PNG screenshot. Use the Read tool on the path to view it.

Calendar

Prefer the Superpower Station connector (composio_find / composio_exec); when the owner's calendar

app isn't connected, follow the connect-apps skill instead of falling back here. macOS Calendar is

only for an owner who asked for the local app, and an empty result from it is not an answer

(the owner's real calendar may live in Google): say you couldn't read their calendar.

python3 "$SKILL_DIR/scripts/calendar-reader.py" 7 --owner-asked          # next 7 days, JSON
python3 "$SKILL_DIR/scripts/calendar-reader.py" 1 text --owner-asked     # today, plain text

It exits 1 on an error. A timeout usually means a macOS prompt asking to let the app control Calendar is

still waiting on the owner's screen: relay the message (click Allow, or System Settings → Privacy &

Security → Automation) and stop until they answer; do not loop on retries.

Reminders

python3 "$SKILL_DIR/scripts/reminders.py" list --owner-asked              # all incomplete
python3 "$SKILL_DIR/scripts/reminders.py" add "Call Bob" --owner-asked     # add reminder
python3 "$SKILL_DIR/scripts/reminders.py" add "Fix bug" "2026-03-17" --owner-asked  # with due date
python3 "$SKILL_DIR/scripts/reminders.py" complete "Call Bob" --owner-asked # mark done

Contacts

python3 "$SKILL_DIR/scripts/contacts.py" search "Bob" --owner-asked       # find by name

Returns name, emails, phones. Use before sending email to resolve names to addresses.

Email (Apple Mail)

python3 "$SKILL_DIR/scripts/email-sender.py" "to@example.com" "Subject" "Body"
python3 "$SKILL_DIR/scripts/email-sender.py" "to@example.com" "Subject" "Body" --draft

Sends via Mail.app. Use --draft to create without sending. Always confirm with user before sending.

Spotlight File Search

mdfind "quarterly report"                    # search by content or filename
mdfind -name "resume.pdf"                    # search by filename only

Requirements

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.