用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/malue-ai/dazee-small --skill apple-calendar命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | apple-calendar |
| description | Manage Apple Calendar events on macOS using AppleScript. Create, list, search, and delete calendar events. |
| metadata | {"xiaodazi":{"dependency_level":"lightweight","os":["darwin"],"backend_type":"local","user_facing":true,"system_auth":"calendar","bins":["osascript"]}} |
通过 AppleScript 管理 macOS 日历应用中的事件。
osascript -e '
tell application "Calendar"
set calNames to {}
repeat with c in calendars
set end of calNames to name of c
end repeat
return calNames
end tell
'
osascript -e '
set today to current date
set hours of today to 0
set minutes of today to 0
set seconds of today to 0
set tomorrow to today + (1 * days)
tell application "Calendar"
set allEvents to {}
repeat with c in calendars
set calEvents to (every event of c whose start date ≥ today and start date < tomorrow)
repeat with e in calEvents
set eventInfo to summary of e & " | " & (start date of e as string) & " - " & (end date of e as string)
set end of allEvents to eventInfo
end repeat
end repeat
return allEvents
end tell
'
# 查看未来 7 天
osascript -e '
set startDate to current date
set hours of startDate to 0
set minutes of startDate to 0
set seconds of startDate to 0
set endDate to startDate + (7 * days)
tell application "Calendar"
set allEvents to {}
repeat with c in calendars
set calEvents to (every event of c whose start date ≥ startDate and start date < endDate)
repeat with e in calEvents
set eventInfo to summary of e & " | " & (start date of e as string)
set end of allEvents to eventInfo
end repeat
end repeat
return allEvents
end tell
'
# 创建一个明天下午 2 点的 1 小时会议
osascript -e '
set eventDate to (current date) + (1 * days)
set hours of eventDate to 14
set minutes of eventDate to 0
set seconds of eventDate to 0
set endDate to eventDate + (1 * hours)
tell application "Calendar"
tell calendar "个人"
make new event with properties {summary:"团队周会", start date:eventDate, end date:endDate, description:"每周团队同步"}
end tell
end tell
'
osascript -e '
tell application "Calendar"
set results to {}
repeat with c in calendars
set found to (every event of c whose summary contains "会议")
repeat with e in found
set end of results to summary of e & " | " & (start date of e as string)
end repeat
end repeat
return results
end tell
'
# 需要先确认后再删除
osascript -e '
tell application "Calendar"
tell calendar "个人"
set targetEvents to (every event whose summary is "要删除的事件名")
repeat with e in targetEvents
delete e
end repeat
end tell
end tell
'