跨日历智能日程管家
简介
基于 gogcli 的 Google Calendar 管理技能,支持跨日历日程聚合与智能搜索,由社区开发者维护,为命令行用户提供高效日历管理体验。
原始描述
Access and manage Google Calendar events with gogcli for cross-calendar agendas, keyword search, and filtered outputs avoiding unwanted calendars like holidays.
通过你的 Agent 添加
安装目录:gog-calendar/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
gog-calendar 是一个纯文档型 Agent Skill,用于通过 gogcli 命令行工具管理 Google Calendar。其核心功能分为三大模块:日程查看(Agenda)、关键词搜索(Search)和写操作(Writes)。
日程查看:支持跨日历查询今日、本周或指定日期范围的日程,默认使用 --plain 模式以节省 Token,自动按时间排序并分组展示。命令示例::gog calendar events --all --from 2026-02-04 --to 2026-02-05 --plain。
关键词搜索:由于 Google Calendar API 的搜索限制(需按 calendarId 分别查询),该技能采用迭代聚合策略——遍历所有日历、合并结果、去重排序。默认搜索窗口为未来 6 个月,支持 JSON 输出以便结构化处理。
写操作:创建、更新、删除事件或 RSVP 前,必须向用户确认具体意图(日历、标题、时间、时区、参与者、地点),获得明确"yes"后方可执行。
显著优点
- Token 效率优化:默认
--plain输出,仅在需要结构化处理时使用--json,显著降低大模型调用成本。 - 智能日历过滤:自动排除节假日等噪音日历(如包含 "holiday" 关键字的日历),同时保留用户自有日历,提升信息质量。
- 跨日历聚合能力:突破单日历搜索限制,实现真正的全局事件检索。
- 安全确认机制:所有写操作强制二次确认,防止误操作。
- 自动化友好:提供
--no-input选项,适合脚本化运行。
潜在缺点与局限性
- 外部工具依赖:Skill 本身无执行能力,完全依赖用户自行安装的 gogcli,若未安装或版本不兼容则无法使用。
- 搜索性能开销:跨日历关键词搜索需逐一日历查询,日历数量多时延迟较高。
- 最佳努力搜索:关键词匹配依赖 gogcli 的实现,复杂查询可能需回退到日期范围列举+本地过滤。
- T3 来源可信度:由社区/个人开发者维护,非 Google 官方方案,长期维护稳定性存疑。
- 无可视化界面:纯命令行交互,对非技术用户不够友好。
适合的目标群体
- 习惯命令行工作流的开发者和技术用户
- 需要高效管理多个 Google Calendar 的重度日历用户
- 希望降低 AI 调用 Token 消耗的自动化场景搭建者
- 已在使用 gogcli 或愿意配置 OAuth 授权的用户
使用风险
- 依赖项风险:gogcli 需通过 Homebrew 从第三方 tap(steipete/tap)安装,用户需自行验证来源可信度
- OAuth 安全:gogcli 需要 Google Calendar API 授权,凭据管理不当可能导致数据泄露
- 网络环境限制:需能访问 Google Calendar API,部分网络环境可能无法使用
- 版本兼容性:gogcli 更新可能导致命令参数变化,需关注版本匹配
技能正文
name: gog-calendar
description: Google Calendar via gogcli: reliable cross-calendar agenda (today/week/range) and best-effort keyword search across calendars (iterate + aggregate). Token-efficient output (--plain default, --json only when needed). Post-filters unwanted calendars (e.g., holidays) and confirms before writes.
metadata: {"openclaw":{"emoji":"📅","requires":{"bins":["gog"]},"install":[{"id":"brew","kind":"brew","formula":"steipete/tap/gogcli","bins":["gog"],"label":"Install gogcli (brew)"}]}}
gog-calendar
Use gog (gogcli) for Google Calendar: agenda (events list) and keyword search across calendars.
Output rule (tokens vs reliability)
gogcli stdout should stay parseable; prefer --plain / --json and put hints to stderr. oai_citation:0‡GitHub
- Default to
--plainfor read-only listing you only summarize (cheaper tokens):- agenda listing (today / next days / range)
- calendars list
- Use
--jsononly when structure is required:- aggregating results across calendars (cross-calendar keyword search)
- deduping / sorting / extracting IDs for follow-up calls
- any write workflow where exact fields matter
- In automation runs, add
--no-input(fail instead of prompting). oai_citation:1‡GitHub
Calendar exclusions (post-processing)
Users may explicitly exclude certain calendars from searches/agenda (e.g., “National holidays”).
When answering, you MUST:
- Query broadly (e.g.,
events --allor iterate all calendars for search), - Then filter out excluded calendars in post-processing.
How to determine excluded calendars:
- First, check the user’s preferences/memory for an explicit “exclude calendars” list.
- If none is provided, apply a conservative default filter for obvious noise calendars:
- calendars whose name/summary contains:
holiday,holidays,national holidays(and localized equivalents)
- calendars whose name/summary contains:
- Never filter out user-owned calendars unless explicitly excluded.
Filtering rule:
- If you have calendar metadata (from
gog calendar calendars), filter by calendar name/summary. - If you only have events output, filter by matching event’s calendarId to the excluded calendarIds resolved from the calendars list.
Always mention filtering briefly if it materially changes the answer:
- “(Filtered out: National holidays)”
Agenda (always cross-calendar, then filter)
For “what’s on my calendar today / tomorrow / this week / between X and Y”:
- MUST query all calendars:
gog calendar events --all --from <date_or_iso> --to <date_or_iso> --plain
- Then apply calendar exclusions (above).
- Do not answer “nothing scheduled” unless you ran the command for the correct window and applied filtering.
Examples:
- Today:
gog calendar events --all --from 2026-02-04 --to 2026-02-05 --plain - Next 7 days:
gog calendar events --all --from 2026-02-04 --to 2026-02-11 --plain
Output formatting:
- sort by start time
- group by day
- show: time range, summary, location (calendar name only if it helps)
Keyword search across calendars (best-effort, aggregate, then filter)
Calendar event queries are scoped to a calendarId (API is /calendars/{calendarId}/events), so keyword search must iterate calendars and aggregate results. oai_citation:2‡Google for Developers
Default window:
- if user didn’t specify a range: next 6 months from today (inclusive)
- if user specified date/range: use it
Workflow (do not skip):
- List calendars (need IDs + names for filtering):
gog calendar calendars --json
- Build the set of excluded calendarIds from the exclusions rule.
- For EACH non-excluded
calendarId, search (JSON required for merge/dedupe):gog calendar search "<query>" --calendar <calendarId> --from <from> --to <to> --max 50 --json --no-input
- Aggregate all matches across calendars (do NOT stop on first match unless user asked).
- Deduplicate by
(calendarId, eventId), sort by start time. - Report results and explicitly mention the searched window (and any filters applied).
If nothing found in default window:
- say: “No events found in the next 6 months ( → ). Want me to search further (e.g., 12 months) or within specific dates?”
Fallback if user is sure it exists:
- ask/derive an approximate date and list around it (then filter):
gog calendar events --all --from <date-7d> --to <date+7d> --plain
- then match by title tokens locally (casefold + token overlap)
Writes (create/update/delete/RSVP)
Before any write action:
- summarize exact intent (calendar, title, start/end, timezone, attendees, location)
- ask for explicit “yes”
- then run the command
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。