jesse0830/jiayang/apple-calendar
Claude Code and agent skill by jesse0830/jiayang
- community
Checking that the SKILL.md file is still in the repository.
Add Apple Calendar events via osascript on macOS.
Install
npx vskill@latest install jesse0830/jiayang/apple-calendarSKILL.md
The same SKILL.md was published earlier as jesse0830/jiayang/apple-calendar.
Apple Calendar 日程管理(osascript)
当用户说"加个日程 / 加个日历 / 本周五下午三点面试 / 安排个会议"时使用。日程(Calendar event)≠ 提醒事项(Reminder)——提醒用 apple-reminders 技能(remindctl),日程用本技能(Calendar + osascript)。
前提
- macOS + 日历 App。系统是中文的,日历名是中文(工作、个人、飞行计划 等)。
- 查日历列表:
osascript -e 'tell application "Calendar" to get name of every calendar'
添加日程(标准做法)
- 用
current date+ 逐字段 set 构造日期,不要用date "2026年8月7日 15:00:00"这种本地化字符串解析(系统区域设置不同会解析失败)。 - 结束时间 = 开始 + 时长(
startDate + (1 * hours)= 1 小时)。 - 职场日程放"工作"日历;不确定时先查日历列表再选。
关键坑:& 字符串拼接会触发终端工具误判
osascript 里字符串拼接用 &(如 summary of ev & linefeed & ...),但 Hermes 的 terminal 工具会把命令里的 & 误判为后台运行标志而拒绝执行(报 "Foreground command uses '&' backgrounding")。
解决:把 AppleScript 写到 .scpt 文件再执行:
添加/修改事件本身(make new event、set 日期)不含 & 时可直接 heredoc 执行;凡是含 & 的读取/拼接脚本一律走 .scpt 文件。
验证
添加后查回事件确认:
输出应显示正确的 标题/开始/结束 时间。
用户习惯
- 用户(杨嘉阳,软件工厂厂长)常用场景:面试安排、会议日程。
- 加完后主动问要不要"提前提醒"(提前提醒属于提醒事项,用 remindctl/
--alarm或另设)和"补地点(会议室)"。
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinghermes-skills/.archive/apple-calendar/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jesse0830/jiayang/apple-calendar)