Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Mac Apps

ASecurity

Drive specific Mac apps through AppleScript, JXA, Shortcuts, or their own data files - Mail, Messages, Notes, Safari, Calendar, Reminders, Finder, Music, Terminal. Use when the user asks to do something in a named Mac app, especially an Apple one.

7 stars
0 votes
0 copies
0 views
Added 9/22/2026
ai-agentsjavascriptgojavabashsqldatabase

Works with

terminalmcp

Security Analysis

A100/100

Scanned 9/22/2026

Install to Claude Code

$npx -y skills add calebnewtonusc/Chewbacca --skill mac-apps --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mac Apps?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Mac Apps
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/calebnewtonusc-mac-apps/badge)](https://www.skillsdirectory.com/skills/calebnewtonusc-mac-apps)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: mac-apps
description: Drive specific Mac apps through AppleScript, JXA, Shortcuts, or their own data files - Mail, Messages, Notes, Safari, Calendar, Reminders, Finder, Music, Terminal. Use when the user asks to do something in a named Mac app, especially an Apple one.
requires: [chewie]
---

# Driving named apps

Apple's own apps are well scripted. Reaching for the UI on one of these is doing it the
hard way.

## Is it scriptable?

```bash
sdef /System/Applications/Mail.app | head -60
sdef /Applications/Foo.app | grep -i "<command"
```

Nothing useful back means the app has no dictionary and you go to layer 3.

## The ones that work well

```bash
# Safari
chewie run 'tell application "Safari" to get URL of front document'
chewie run 'tell application "Safari" to open location "https://example.com"'
chewie run 'tell application "Safari" to do JavaScript "document.title" in front document'
# ^ needs Develop > Allow JavaScript from Apple Events, off by default

# Mail
chewie run 'tell application "Mail" to get subject of messages 1 thru 5 of inbox'

# Notes
chewie run 'tell application "Notes" to get body of note 1'

# Messages
chewie run 'tell application "Messages" to send "hi" to buddy "+13104296285"'
# ^ outbound. Confirm with the user first.

# Calendar / Reminders / Music / Finder all have dictionaries too
chewie run 'tell application "Music" to play'
chewie run 'tell application "Finder" to get name of every item of desktop'
```

JXA when you want real data structures back:

```bash
chewie run --js 'JSON.stringify(Application("Notes").notes().slice(0,5).map(n => n.name()))'
```

## Reading is usually faster from the file

For history and search, skip the app entirely.

```bash
sqlite3 "file:$HOME/Library/Messages/chat.db?mode=ro" \
  "SELECT datetime(date/1000000000 + 978307200,'unixepoch','localtime'), text
   FROM message ORDER BY date DESC LIMIT 20"
```

Two things bite: the Apple epoch is 2001, not 1970, and on Ventura and later `text` is
often NULL because bodies moved to `attributedBody` as a hex-encoded blob. See
`docs/05-DATA-LAYER.md`.

Other stores: Safari `~/Library/Safari/History.db`, Photos
`~/Pictures/Photos Library.photoslibrary/database/Photos.sqlite`, Calendar
`~/Library/Calendars/Calendar.sqlitedb`. All need Full Disk Access. All read-only.

## Shortcuts

```bash
shortcuts list
shortcuts run "Daily Digest"
echo "text" | shortcuts run "Process Text"
```

Reaches things AppleScript no longer does. **Pre-warm required:** a shortcut touching
a protected resource prompts on first run, and nothing can answer that prompt headless.
Have the user run it once by hand, answer Always Allow, confirm it runs clean from the
terminal, then call it.

## MCP servers for Apple apps

Installed by `install.sh`: `macos-automator-mcp` gives you AppleScript and JXA as MCP
tools with a callable script knowledge base. Worth adding when the task needs them:

- `supermemoryai/apple-mcp`: Notes, Contacts, Mail, Messages, Reminders, Calendar, Maps
- `carterlasalle/mac_messages_mcp`: iMessage with the `attributedBody` decode handled
- `achiya-automation/safari-mcp`: 97 Safari tools, keeps the user's logins

## Electron apps have none of this

Slack, Discord, Notion, Spotify, VS Code, Figma. No dictionary, no useful data file.
Go to layer 3, and remember they need `chewie see --force-ax` first.

## Failure signatures

| Error | Fix |
|-------|-----|
| -600 "Application isn't running" | `open -a "App"` first, then poll |
| -1743 "Not authorized" | TCC denied. `tccutil reset AppleEvents`, retry in the foreground |
| -1712 timeout | `with timeout of 300 seconds`. Also check for a modal blocking the app |
| -1728 "Can't get..." | The object does not exist. Check the dictionary, not the permissions |

Attribution

calebnewtonusccalebnewtonusc
View sourceMore from calebnewtonusc →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1066601 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

686011 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

651 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →