applescript-skill
Agent skill for macOS automation via AppleScript — control browsers, files, mail, messages, media, and system settings. Compatible with any AI agent.
Install / Use
npx skills add haoyiyin/applescript-skillInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
AutomationSupported Platforms
Tags
Our assessment of applescript-skill
applescript-skill scores 76/100 on our quality scale, 2591st of 2,863 Automation skills we index.
Its SKILL.md is 6.7 KB long, well organised into 26 sections with 12 code examples: a thorough specification that gives an agent plenty to work with.
It has 2 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 4 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
- Our last check on 2026-10-19 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 90/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
applescript-skill compared with similar skills
All 4 of these similar skills score higher than applescript-skill; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| applescript-skill (this skill)by haoyiyin | 76 | 2 | 4mo ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 109.2k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 97.9k | today | MCP Server |
| rufloby ruvnet | 100 | 81.0k | today | MCP Server |
| algorithmic-artby anthropics | 100 | 177.9k | 44d ago | SKILL.md |
Frequently asked questions
- How do I install applescript-skill?
- Run
npx skills add haoyiyin/applescript-skill. The install tabs above show the steps for each supported agent. - Which AI agents does applescript-skill work with?
- It is written for Claude Code, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is applescript-skill safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 90/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is applescript-skill still maintained?
- The repository was last updated about 4 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
Skill content
View source on GitHubAppleScript Automation Agent Skill
🤖 An agent skill for macOS automation via AppleScript — enables AI agents to control macOS applications through natural language commands or direct script execution.
Agent-compatible — Supports the Agent Skills specification. Works with any AI agent framework (Claude Code, OpenClaw, Hermes, Codex, Cursor, or standalone).
✨ Features
- 🌐 Browser Automation — Control Chrome, Safari, Firefox (navigate, execute JS, extract data)
- 📁 File Management — Finder operations (create, move, copy, delete, organize files)
- 💬 Communication — Mail & Messages (iMessage) automation
- ⚙️ System Control — Volume, brightness, notifications, clipboard, power management
- 💻 Terminal Automation — Run commands, manage windows/tabs, capture output
- 🎵 Media Control — Music (iTunes), Calendar, Contacts, Reminders
🚀 Quick Start
Prerequisites
- macOS 10.15 or later
- Accessibility permissions enabled (System Settings → Privacy & Security → Accessibility)
Installation
🤖 Via AI Agent (Recommended)
Tell any AI coding agent:
"Install the AppleScript automation skill from
haoyiyin/applescript-skill"
Your agent will clone, configure, and set up the skill automatically. Works with Pi, Claude Code, Cursor, Codex, Copilot, and any agent supporting the Agent Skills specification.
🛠️ Manual Installation
# Clone the repository
git clone https://github.com/haoyiyin/applescript-skill.git
cd applescript-skill
Usage Examples
With AI Agents:
"Open Chrome and visit GitHub"
"Organize all PDFs on my desktop"
"Send iMessage to John saying 'Meeting at 3pm'"
"Set volume to 50%"
"Run ls -la in Terminal"
Direct AppleScript:
osascript -e 'tell application "Google Chrome" to set URL of active tab of first window to "https://github.com"'
From Python:
import subprocess
def run_applescript(script):
result = subprocess.run(['osascript', '-e', script], capture_output=True, text=True)
return result.stdout
run_applescript('tell application "Finder" to return name of every item of desktop')
From Node.js:
const { execSync } = require('child_process');
function runAppleScript(script) {
return execSync(`osascript -e '${script}'`, { encoding: 'utf8' });
}
console.log(runAppleScript('tell application "Finder" to return count of every item of desktop'));
📁 Structure
applescript-skill/
├── SKILL.md # Agent skill definition (OpenClaw format)
├── README.md # English documentation (this file)
├── README.zh.md # Chinese documentation
├── LICENSE # MIT License
├── references/ # Ready-to-use script templates
│ ├── chrome.applescript # Browser automation
│ ├── finder.applescript # File management
│ ├── mail.applescript # Email automation
│ ├── messages.applescript # iMessage automation
│ ├── system.applescript # System control
│ └── terminal.applescript # Terminal automation
└── scripts/ # Custom automation scripts
📖 Documentation
Supported Applications
| Category | Applications | |----------|-------------| | Browsers | Chrome, Safari, Firefox | | File System | Finder | | Communication | Mail, Messages (iMessage) | | System | Volume, Brightness, Notifications, Clipboard | | Development | Terminal, VS Code | | Media | Music (iTunes), QuickTime | | Productivity | Calendar, Contacts, Reminders, Notes |
Example Workflows
1. Browser Automation
tell application "Google Chrome"
tell active tab of first window
set URL to "https://github.com/trending"
delay 2
return title
end tell
end tell
2. File Organization
tell application "Finder"
set desktopFiles to every item of desktop whose name ends with ".pdf"
repeat with file in desktopFiles
move file to folder "Documents" of home folder
end repeat
end tell
3. Send Message
tell application "Messages"
set theBuddy to buddy "contact@example.com" of (service 1 whose service type is iMessage)
send "Hello! Are you free?" to theBuddy
end tell
4. System Control
-- Set volume to 50%
set volume output volume 50
-- Copy to clipboard
set the clipboard to "Hello, World!"
-- Display notification
display notification "Task completed!" with title "Automation"
🔧 Configuration
Enable Accessibility Permissions
- Open System Settings → Privacy & Security → Accessibility
- Click the + button
- Add these applications:
Google Chrome(or your browser)TerminalMessagesMail- Your AI agent application (if applicable)
Grant Automation Permissions
- Open System Settings → Privacy & Security → Automation
- Enable permissions for:
System EventsFinderMessagesMail
🛡️ Security Considerations
- AppleScript can control your entire Mac — only run scripts from trusted sources
- Review scripts before execution, especially those that:
- Delete or move files
- Send messages or emails
- Execute terminal commands
- Access sensitive data
- Scripts run locally — no data is sent to external servers unless explicitly coded
🤝 Integration with AI Agents
This skill follows the Agent Skills specification. Once installed (see Installation above), any compliant agent can execute AppleScript automation directly.
Usage in Prompts
Use the AppleScript skill to open Chrome and navigate to GitHub.
Send iMessage to John saying "Meeting at 3pm".
Set volume to 50%.
Custom Tool Integration
For custom agent frameworks, implement AppleScript execution as a tool:
def execute_applescript_file(path):
result = subprocess.run(['osascript', path], capture_output=True, text=True)
return {'output': result.stdout, 'error': result.stderr}
📄 License
MIT License — See LICENSE file for details.
🔗 Resources
Built with ❤️ for the AI agent community
Related Skills
Agent-Reach
109.2kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Scrapling
97.9k🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
ruflo
81.0k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
