instances/xiaodazi/skills/apple-calendar/SKILL.md
Manage Apple Calendar events on macOS using AppleScript. Create, list, search, and delete calendar events.
npx skillsauth add malue-ai/dazee-small apple-calendarInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
通过 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
'
development
Local web search (Tavily/Exa, requires API Key). For quick searches. If no Key configured or deep research needed, use cloud_agent instead.
development
Get current weather and forecasts (no API key required).
tools
Send WhatsApp messages to other people or search/sync WhatsApp history via the wacli CLI (not for normal user chats).
tools
Start voice calls via the Moltbot voice-call plugin.