360 Secure SkillHub
360 安全技能中心

Calendar Local

通过 OpenClaw 宿主机上的本地包装脚本调用已配置的 Google 日历账户,按今天、本周或指定天数获取事件,并以简洁的自然语言分组汇总;运行时需提供密钥环密码,脚本失败时给出对应说明。

jgf78
jgf78
热度 48.95
最近更新 2026-05-11 17:38:25
分类:效率依赖:代码执行 / 第三方 API应用场景:日程安排 / 摘要总结 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add calendar-local
Metadata
name
calendar-local
description
Read Google Calendar from the local host using the configured gog wrapper. Use when the user asks for their agenda, calendar events, today's schedule, this week's events, upcoming appointments, or calendar summaries on this OpenClaw host. Applies to direct chats including Telegram when the runtime has access to /home/ubuntu/.openclaw/workspace/.openclaw/calendar.sh and GOG_KEYRING_PASSWORD is present in the service environment.

Calendar Local

Use the local wrapper instead of generic calendar advice.

Commands

Run the wrapper with an explicit timeframe:

/home/ubuntu/.openclaw/workspace/.openclaw/calendar.sh today
/home/ubuntu/.openclaw/workspace/.openclaw/calendar.sh week
/home/ubuntu/.openclaw/workspace/.openclaw/calendar.sh days 7

The wrapper already targets the correct Google account and gog binary. It requires GOG_KEYRING_PASSWORD in the runtime environment.

Workflow

  1. Run the wrapper with the matching timeframe.
  2. If the user asked for today, use today.
  3. If the user asked for this week, use week.
  4. If the user asked for the next few days, use days N.
  5. Summarize results in natural language.
  6. If no events match, say so plainly.
  7. Do not tell the user to configure OAuth again unless the wrapper fails.

Failure handling

If the wrapper fails:

  • If output mentions GOG_KEYRING_PASSWORD is not set, explain that the OpenClaw service is missing the keyring password in its environment.
  • If output mentions keyring unlock/auth errors, explain that the local Google token/keyring is unavailable or locked.
  • Only then fall back to setup guidance.

Output style

  • Be concise.
  • Prefer grouped agenda summaries.
  • Separate all-day items, timed events, and birthdays/tasks when useful.