SkillAtlasSkill 详情

mac-automation

This is the open-source content repository behind

审核状态:已审核Quality 72Security 70

复制安装命令

用 Codex 或 Claude 安装复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它先审查 Skill 页面再帮你安装。

复制前请先查看来源、License 和安全提示。

项目 README

来源文件:README.md

抓取于 2026年9月3日

Skill Store — Marketplace Repository

This is the open-source content repository behind Skill Store. It stores every approved Agent Skill, the records that go with it, and the automated security audits published with each skill.

This repo is a companion to the Skill Store platform, not the place to submit skills. Skills are added through skillstore.io — its review pipeline writes to this repo automatically. Please do not open a pull request here to add a skill; PRs adding skills will be closed. See Contributing a skill below.

Installing a skill

The recommended way to install any skill is the skillstore CLI — one command works for both Claude Code and Codex:

npx skillstore add author/skill-name

For example:

npx skillstore add aiskillstore/code-review

It downloads the skill and drops it into the right skills/ directory for your tool. Claude Code auto-discovers it; for Codex, restart the session.

Prefer to do it by hand, or installing via Claude Web? See the full Installation Guides for every method (CLI, manual, and ZIP upload) and the scope directories (~/.agents/skills/, .claude/skills/, ~/.claude/skills/, .codex/skills/, …).

Contributing a skill

Submit through the platform — not through a pull request:

  1. Go to skillstore.io/submit.
  2. Enter the GitHub repository URL that contains your SKILL.md.
  3. Your submission runs through automated security analysis.
  4. A maintainer reviews and approves it.
  5. On approval, the skill is published here and appears on skillstore.io.

What makes a valid skill

  • SKILL.md — the skill definition (required, per the Agent Skills spec)
  • Supporting files the skill references (optional)
  • LICENSE (recommended)

Security audit

Every submission is scanned automatically before it can be published. The audit flags things like:

  • Dangerous code patterns (eval, exec, raw system commands)
  • File access outside the project scope
  • Network calls to external hosts
  • Obfuscated or minified code
  • Credential / secret handling

Security analysis is report-only: findings inform maintainers and users, but a risk result does not automatically block an otherwise approved skill from being published. See our Security Trust Center for the methodology, limitations, and risk-level definitions.

Live Security Passport example:

Skillstore security

Repository layout

.
├── skills/        # Approved, published skills (one folder each, with SKILL.md)
├── pending/       # Submissions awaiting review
├── packages/
│   ├── cli/       # The `skillstore` CLI (npx skillstore add …)
│   └── skillstore/
├── schemas/       # JSON schemas for skill records
├── scripts/       # Maintenance & scoring scripts
└── .github/workflows/   # Submission, audit, and sync automation

The contents of this repo are maintained by Skill Store's automated pipeline. Manual changes are limited to maintainers.

Links

License

The marketplace catalog is MIT-licensed. Individual skills carry their own licenses — check each skill's LICENSE file.

Agent / MCP / Skill 创作开发与工程商业与运营

中风险

  • 来源需自行核对维护者身份。
  • 包含脚本或命令调用,安装前请复核。
  • 可能需要外部 token、网络权限或第三方服务。
  • 未检测到高风险命令。
  • 扫描发现:1 条。

Codex — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/aiskillstore/marketplace.git
  3. 将 "skills/7sageer/mac-automation" 文件夹复制到 Codex 的 skills 目录中。
  4. 重启 Codex 让新的 skill 生效。

Codex — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Codex 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Codex 让新的 skill 生效。

Claude Code — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/aiskillstore/marketplace.git
  3. 将 "skills/7sageer/mac-automation" 文件夹复制到 Claude Code 的 skills 目录中。
  4. 重启 Claude Code 让新的 skill 生效。

Claude Code — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Claude Code 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Claude Code 让新的 skill 生效。

Cursor — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/aiskillstore/marketplace.git
  3. 将 "skills/7sageer/mac-automation" 文件夹复制到 Cursor 的 skills 目录中。
  4. 重启 Cursor 让新的 skill 生效。

Cursor — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Cursor 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Cursor 让新的 skill 生效。

GitHub Copilot — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/aiskillstore/marketplace.git
  3. 将 "skills/7sageer/mac-automation" 文件夹复制到 GitHub Copilot 的 skills 目录中。
  4. 重启 GitHub Copilot 让新的 skill 生效。

GitHub Copilot — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 GitHub Copilot 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 GitHub Copilot 让新的 skill 生效。

Windsurf — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/aiskillstore/marketplace.git
  3. 将 "skills/7sageer/mac-automation" 文件夹复制到 Windsurf 的 skills 目录中。
  4. 重启 Windsurf 让新的 skill 生效。

Windsurf — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Windsurf 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Windsurf 让新的 skill 生效。
查看 SKILL.md 原文
name: mac-automation
description: "This skill should be used when the user requests Mac automation via AppleScript, including: Mail operations, Reminders/Calendar management, Safari control, Finder operations, system controls (volume, brightness, notifications, app launching), third-party apps (development tools, task management, media players), or mentions \"AppleScript\" or \"automate Mac\"."
author: 7Sageer, Claude
version: 0.0.5

Mac Automation via AppleScript

This skill enables control of macOS applications and system functions through AppleScript execution via the osascript command.

Core Principle

Execute AppleScript commands using the Bash tool with osascript:

osascript -e 'AppleScript code here'

For multi-line scripts:

osascript <<'EOF'
tell application "App Name"
    -- commands here
end tell
EOF

Supported Applications & Functions

1. Mail (邮件)

  • Send emails with subject, body, recipients
  • Read unread emails
  • Search emails
  • Create drafts

2. Reminders (提醒事项)

  • Create reminders with due dates
  • List reminders by list
  • Complete/delete reminders
  • Create reminder lists

3. Calendar (日历)

  • Create events with time, location, notes
  • List today's/upcoming events
  • Delete events
  • Create calendars

4. Notification Center (通知中心)

  • Display system notifications
  • Custom title, subtitle, message
  • Sound alerts

5. Safari

  • Open URLs
  • Get current page info
  • Execute JavaScript
  • Manage tabs and windows

6. Finder

  • Open folders
  • Get/set file info
  • Move, copy, delete files
  • Create folders
  • Reveal files

7. System Controls (系统控制)

  • Volume control (mute, set level)
  • Brightness (via external tools)
  • Open applications
  • System info queries
  • Sleep/restart/shutdown (with care)

8. Third-Party Applications

Many third-party apps support AppleScript. Common categories include development tools (iTerm2, VS Code), task management (OmniFocus, Things), media players (Spotify), browsers (Chrome), and communication tools. To check if an app supports AppleScript, open Script Editor to browse its dictionary, or try basic commands like tell application "AppName" to get name.

Execution Guidelines

Security Considerations

  1. Permission Prompts: First-time use of certain apps triggers macOS permission dialogs. Inform user if automation fails due to permissions.

  2. Sensitive Operations: For destructive operations (delete, shutdown), confirm with user before executing.

  3. Privacy-Sensitive Data: When reading emails or calendar events, only display what user explicitly requests.

Error Handling

Common errors and solutions:

  • "Application not found" → Check app name spelling
  • "Not authorized" → Guide user to System Preferences > Privacy & Security
  • "Can't get..." → Resource doesn't exist, handle gracefully

Best Practices

  1. Use exact app names: "Mail", "Reminders", "Calendar", "Safari", "Finder"
  2. Escape special characters: Use \" for quotes in strings
  3. Handle Unicode: AppleScript handles Chinese/Unicode natively
  4. Check app state: Some operations require app to be running

Quick Reference

Notifications

osascript -e 'display notification "消息内容" with title "标题"'

Open Application

osascript -e 'tell application "AppName" to activate'

Volume Control

# Get volume
osascript -e 'output volume of (get volume settings)'
# Set volume (0-100)
osascript -e 'set volume output volume 50'
# Mute
osascript -e 'set volume output muted true'

System Commands

# Get clipboard
osascript -e 'the clipboard'
# Set clipboard
osascript -e 'set the clipboard to "text"'

Additional Resources

Reference Files

For detailed AppleScript patterns by application, consult:

  • references/mail-applescript.md - Email operations: send, read, search, drafts
  • references/reminders-applescript.md - Reminder operations: create, list, complete
  • references/calendar-applescript.md - Calendar operations: events, calendars
  • references/safari-applescript.md - Safari operations: URLs, tabs, JavaScript
  • references/finder-applescript.md - Finder operations: files, folders
  • references/system-applescript.md - System controls: volume, apps, clipboard

Example Files

Working examples in examples/:

  • daily-briefing.applescript - Get today's calendar and unread emails
  • quick-note.applescript - Create reminder from clipboard

Utility Scripts

Scripts in scripts/:

  • run-applescript.sh - Wrapper for safe AppleScript execution

Workflow Patterns

Pattern 1: Information Retrieval

  1. Execute AppleScript to query data
  2. Parse output
  3. Present formatted results to user

Pattern 2: Action Execution

  1. Confirm action with user if destructive
  2. Execute AppleScript
  3. Verify success
  4. Report result

Pattern 3: Multi-App Automation

  1. Chain multiple AppleScript calls
  2. Pass data between calls using shell variables
  3. Handle errors at each step

Common User Requests

User RequestAction
"发送邮件给xxx"Use Mail to create and send
"提醒我明天..."Create Reminder with due date
"添加日历事件"Create Calendar event
"打开xxx网站"Safari open URL
"调低音量"Set volume lower
"显示通知"Display notification
"打开文件夹"Finder reveal

Troubleshooting

If AppleScript fails:

  1. Check app is installed
  2. Verify permissions in System Preferences
  3. Ensure app name is exact
  4. Try running app manually first
  5. Check for syntax errors in script

For permission issues, guide user to: System Preferences > Privacy & Security > Automation

Self-Improvement Protocol

When an AppleScript execution fails or produces unexpected results, follow this protocol to improve the skill's reference documentation:

1. Error Analysis

  • Identify the root cause of the failure
  • Determine if it's a code issue, permission issue, or conceptual misunderstanding
  • Check if the error is reproducible

2. Reference File Review

  • Locate the relevant reference file in references/ directory
  • Review existing examples for similar patterns
  • Identify if the error stems from incorrect or incomplete examples

3. Documentation Update

When you identify a fixable issue in the reference documentation:

For incorrect examples:

  • Update the example code with the correct implementation
  • Add inline comments explaining the fix
  • Test the corrected code to verify it works

For missing edge cases:

  • Add a new example demonstrating the correct approach
  • Include explanatory comments about why this approach is needed

For common pitfalls:

  • Add a "Common Pitfalls" or "Important Notes" section
  • Document the error message users might encounter
  • Explain the correct solution

4. Update Guidelines

Use the Edit tool to modify reference files:

Edit tool on: references/{app}-applescript.md
- Fix incorrect code examples
- Add warning notes for known issues
- Include error messages and solutions

5. Documentation Standards

When updating reference files, maintain:

  • Clear, working code examples
  • Inline comments for complex logic
  • Error messages and their solutions
  • Date-stamped notes for significant fixes

6. Version Tracking

After significant improvements:

  • Update the version number in SKILL.md frontmatter
  • Consider documenting major fixes in a changelog

This protocol ensures the skill continuously improves based on real-world usage and errors encountered.

发现问题?提交给管理员复核

评分:

评论 (0)

暂无评论,成为第一个评论者吧!