静默管理macOS日历的命令行神器
简介
macOS命令行日历管理工具,基于EventKit原生API,无UI弹窗,支持iCloud/本地/CalDAV日历创建、查询、批量事件管理
原始描述
Manage macOS Calendar events from the command line using EventKit. Use when creating, listing, or viewing calendar events on macOS without AppleScript dialog...
通过你的 Agent 添加
安装目录:calmly/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: calmly
description: Manage macOS Calendar events from the command line using EventKit. Use when creating, listing, or viewing calendar events on macOS without AppleScript dialogs or UI prompts. Supports all-day events, multi-day events, and timed events. Works with iCloud, local, and CalDAV calendars.
metadata:
openclaw:
emoji: "📅"
os: ["darwin"]
requires:
bins: ["calmly"]
install:
- id: brew
kind: brew
formula: halbotley/tap/calmly
bins: ["calmly"]
label: "Install calmly (brew)"
calmly
A calm CLI for macOS Calendar. Manage iCloud and local calendars without dialogs, prompts, or UI interruptions.
Why calmly?
- AppleScript hangs — Calendar scripting often freezes waiting for permissions
- ICS imports pop dialogs — Can't automate without user interaction
- icalBuddy is read-only — Can't create events
calmly uses EventKit directly, so it works silently.
Installation
brew tap halbotley/tap
brew install calmly
brew tap halbotley/tap
brew install calmly
First run prompts for Calendar access (System Settings → Privacy → Calendars). One-time only.
Commands
List calendars
calmly list
View upcoming events
calmly events Work # Next 30 days
calmly events Family 14 # Next 14 days
Create all-day event
calmly add Work "Day Off" 2025-03-15
Create multi-day event
calmly add Family "Vacation" 2025-07-01 2025-07-14
Create timed event
calmly addtimed Work "Meeting" 2025-03-15 09:00 10:30
calmly addtimed Kids "Swim Practice" 2025-02-03 07:00 08:30
Batch Event Creation
calmly events Work # Next 30 days
calmly events Family 14 # Next 14 days
calmly add Work "Day Off" 2025-03-15
Create multi-day event
calmly add Family "Vacation" 2025-07-01 2025-07-14
Create timed event
calmly addtimed Work "Meeting" 2025-03-15 09:00 10:30
calmly addtimed Kids "Swim Practice" 2025-02-03 07:00 08:30
Batch Event Creation
calmly add Family "Vacation" 2025-07-01 2025-07-14
calmly addtimed Work "Meeting" 2025-03-15 09:00 10:30
calmly addtimed Kids "Swim Practice" 2025-02-03 07:00 08:30
Batch Event Creation
For recurring events, loop in bash:
# Morning practice every Tuesday/Thursday for 6 weeks
for d in 2025-02-04 2025-02-06 2025-02-11 2025-02-13; do
calmly addtimed Kids "🏊 AM Practice" "$d" 07:00 08:30
done
Date Verification
Before creating events, verify day/date alignment:
for d in 3 4 5 6 7; do date -j -f "%Y-%m-%d" "2025-02-0$d" "+%A %B %d"; done
Notes
- Dates use
YYYY-MM-DD format
- Times use 24-hour
HH:MM format
- Calendar names are case-insensitive
- Events sync to iCloud automatically
- No delete command yet — delete via Calendar app or iCloud web
YYYY-MM-DD formatHH:MM format正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。