Loading...
Loading...
Compare original and translation side by side
$SKILL_DIR/scripts/calendar.shcurrent date + N * days$SKILL_DIR/scripts/calendar.shcurrent date + N * days"$SKILL_DIR/scripts/calendar.sh" list-calendars"$SKILL_DIR/scripts/calendar.sh" list-calendarsecho '<json>' | "$SKILL_DIR/scripts/calendar.sh" create-event| Field | Required | Default | Description |
|---|---|---|---|
| yes | - | Event title |
| no | first calendar | Calendar name (from list-calendars) |
| no | "" | Event notes |
| no | 0 | Days from today (0=today, 1=tomorrow, 7=next week) |
| no | - | Absolute date |
| no | 9 | Start hour (0-23) |
| no | 0 | Start minute (0-59) |
| no | 30 | Duration |
| no | 0 | Alert N minutes before (0=no alarm) |
| no | false | All-day event |
| no | - | iCal RRULE string. See references/recurrence.md |
echo '<json>' | "$SKILL_DIR/scripts/calendar.sh" create-event| 字段 | 必填 | 默认值 | 描述 |
|---|---|---|---|
| 是 | - | 事件标题 |
| 否 | 首个日历 | 日历名称(来自list-calendars返回结果) |
| 否 | "" | 事件备注 |
| 否 | 0 | 距离今日的天数(0=今日,1=明日,7=下周同日) |
| 否 | - | 绝对日期 |
| 否 | 9 | 开始小时(0-23) |
| 否 | 0 | 开始分钟(0-59) |
| 否 | 30 | 事件持续时长 |
| 否 | 0 | 事件前N分钟提醒(0=无提醒) |
| 否 | false | 全天事件 |
| 否 | - | iCal RRULE字符串。参考references/recurrence.md |
| User says | JSON |
|---|---|
| "tomorrow at 2pm" | |
| "in 3 days" | |
| "next Monday at 10am" | Calculate offset_days from today to next Monday, |
| "February 25 at 3:30pm" | |
| "every weekday at 9am" | |
| "remind me 1 hour before" | |
| "all day event on March 1" | |
dateundefined| 用户表述 | 对应JSON字段 |
|---|---|
| “明天下午2点” | |
| “3天后” | |
| “下周一上午10点” | 计算今日到下周一的offset_days, |
| “2月25日下午3点30分” | |
| “每个工作日上午9点” | |
| “提前1小时提醒我” | |
| “3月1日的全天事件” | |
dateundefinedundefinedundefined"$SKILL_DIR/scripts/calendar.sh" list-calendarsecho '{"calendar":"Personnel","summary":"Call dentist","offset_days":2,"hour":9,"duration_minutes":15,"alarm_minutes":30}' | "$SKILL_DIR/scripts/calendar.sh" create-eventecho '{"calendar":"Work","summary":"Team sync","hour":14,"duration_minutes":60,"recurrence":"FREQ=WEEKLY;BYDAY=TU","alarm_minutes":10}' | "$SKILL_DIR/scripts/calendar.sh" create-eventecho '{"calendar":"Personnel","summary":"Vacances","iso_date":"2026-07-15","all_day":true}' | "$SKILL_DIR/scripts/calendar.sh" create-eventundefined"$SKILL_DIR/scripts/calendar.sh" list-calendarsecho '{"calendar":"Personnel","summary":"Call dentist","offset_days":2,"hour":9,"duration_minutes":15,"alarm_minutes":30}' | "$SKILL_DIR/scripts/calendar.sh" create-eventecho '{"calendar":"Work","summary":"Team sync","hour":14,"duration_minutes":60,"recurrence":"FREQ=WEEKLY;BYDAY=TU","alarm_minutes":10}' | "$SKILL_DIR/scripts/calendar.sh" create-eventecho '{"calendar":"Personnel","summary":"Vacances","iso_date":"2026-07-15","all_day":true}' | "$SKILL_DIR/scripts/calendar.sh" create-eventundefinedThen:
```bash
echo "{\"calendar\":\"Personnel\",\"summary\":\"Doctor appointment\",\"offset_days\":$offset,\"hour\":15,\"minute\":30,\"duration_minutes\":60,\"alarm_minutes\":60}" | "$SKILL_DIR/scripts/calendar.sh" create-eventecho '{"calendar":"Work","summary":"Daily standup","hour":9,"duration_minutes":15,"recurrence":"FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR;COUNT=20"}' | "$SKILL_DIR/scripts/calendar.sh" create-eventecho '{"calendar":"Work","summary":"1-on-1 Manager","hour":11,"duration_minutes":30,"recurrence":"FREQ=WEEKLY;INTERVAL=2;BYDAY=FR","alarm_minutes":5}' | "$SKILL_DIR/scripts/calendar.sh" create-event然后执行:
```bash
echo "{\"calendar\":\"Personnel\",\"summary\":\"Doctor appointment\",\"offset_days\":$offset,\"hour\":15,\"minute\":30,\"duration_minutes\":60,\"alarm_minutes\":60}" | "$SKILL_DIR/scripts/calendar.sh" create-eventecho '{"calendar":"Work","summary":"Daily standup","hour":9,"duration_minutes":15,"recurrence":"FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR;COUNT=20"}' | "$SKILL_DIR/scripts/calendar.sh" create-eventecho '{"calendar":"Work","summary":"1-on-1 Manager","hour":11,"duration_minutes":30,"recurrence":"FREQ=WEEKLY;INTERVAL=2;BYDAY=FR","alarm_minutes":5}' | "$SKILL_DIR/scripts/calendar.sh" create-event[read-only]offset_daysiso_date[read-only]logs/calendar.log[read-only]offset_daysiso_date[read-only]logs/calendar.log