返回顶部
m

macos-calendarmacOS日历管理

Create, list, and manage macOS Calendar events via AppleScript. Use when the user asks to add a reminder, schedule an event, create a calendar entry, set a deadline, or anything involving Apple Calendar on macOS. Triggers on requests like "remind me in 3 days", "add to my calendar", "schedule a meeting next Monday at 2pm", "create a recurring weekly event". macOS only.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.2.0
安全检测
已通过
6,718
下载量
免费
免费
4
收藏
概述
安装方式
版本历史

macos-calendar

macOS Calendar

Manage Apple Calendar events via $SKILL_DIR/scripts/calendar.sh. All date handling uses relative math (current date + N * days) to avoid locale issues (FR/EN/DE date formats).

Quick start

List calendars

Always list calendars first to find the correct calendar name:

CODEBLOCK0

Create an event

CODEBLOCK1

JSON fields:

FieldRequiredDefaultDescription
INLINECODE2yes-Event title
INLINECODE3
no | first calendar | Calendar name (from list-calendars) |
| description | no | "" | Event notes |
| offset_days | no | 0 | Days from today (0=today, 1=tomorrow, 7=next week) |
| iso_date | no | - | Absolute date YYYY-MM-DD (overrides offset_days) |
| hour | no | 9 | Start hour (0-23) |
| minute | no | 0 | Start minute (0-59) |
| duration_minutes | no | 30 | Duration |
| alarm_minutes | no | 0 | Alert N minutes before (0=no alarm) |
| all_day | no | false | All-day event |
| recurrence | no | - | iCal RRULE string. See references/recurrence.md |

Interpreting natural language

Map user requests to JSON fields:

User saysJSON
"tomorrow at 2pm"INLINECODE14
"in 3 days"
offset_days: 3 |
| "next Monday at 10am" | Calculate offset_days from today to next Monday, hour: 10 |
| "February 25 at 3:30pm" | iso_date: "2026-02-25", hour: 15, minute: 30 |
| "every weekday at 9am" | hour: 9, recurrence: "FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR" |
| "remind me 1 hour before" | alarm_minutes: 60 |
| "all day event on March 1" | iso_date: "2026-03-01", all_day: true |

For "next Monday", "next Friday" etc: compute the day offset using the current date. Use date command if needed:

CODEBLOCK2

Example prompts

These are real user prompts and the commands you should run:

"Remind me to call the dentist in 2 days"

"$SKILL_DIR/scripts/calendar.sh" list-calendars

Then:
CODEBLOCK4

"Schedule a team sync every Tuesday at 2pm with a 10-min reminder"
CODEBLOCK5

"Block July 15 as a vacation day"
CODEBLOCK6

"I have a doctor appointment next Thursday at 3:30pm, remind me 1 hour before"

# First compute offset_days to next Thursday (4=Thursday)
target=4; today=$(date +%u); offset=$(( (target - today + 7) % 7 )); [ "$offset" -eq 0 ] && offset=7

Then:
CODEBLOCK8

"Set up a daily standup at 9am on weekdays for the next 4 weeks"
CODEBLOCK9

"Add a biweekly 1-on-1 with my manager on Fridays at 11am"
CODEBLOCK10

Critical rules

  1. 1. Always list calendars first if the user hasn't specified one — calendars marked [read-only] cannot be used for event creation
  2. Never use hardcoded date strings in AppleScript — always use offset_days or INLINECODE24
  3. Confirm the calendar name with the user if multiple personal calendars exist
  4. Never target a [read-only] calendar — the script will reject it with an error
  5. For recurring events, consult references/recurrence.md for RRULE syntax
  6. Pass JSON via stdin — never as a CLI argument (avoids leaking data in process list)
  7. All fields are validated by the script (type coercion, range checks, format validation) — invalid input is rejected with an error message
  8. All actions are logged to logs/calendar.log with timestamp, command, calendar, and summary

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 macos-calendar-1776420070 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 macos-calendar-1776420070 技能

通过命令行安装

skillhub install macos-calendar-1776420070

下载

⬇ 下载 macos-calendar v1.2.0(免费)

文件大小: 6.49 KB | 发布时间: 2026-4-17 20:17

v1.2.0 最新 2026-4-17 20:17
- Added detailed usage instructions and examples to the documentation (SKILL.md).
- Clarified JSON fields for event creation, listing all supported options and their defaults.
- Provided best practices for parsing natural language and mapping to calendar actions.
- Introduced critical rules for reliability, including always listing calendars first and strict input validation.
- Explained handling of recurring events and alarm settings.
- Improved sample commands for a wide range of scheduling scenarios.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部