Use gog (gogcli) for Google Calendar: agenda (events list) and keyword search across calendars.
gogcli stdout should stay parseable; prefer --plain / --json and put hints to stderr. oai_citation:0‡GitHub
--plain for read-only listing you only summarize (cheaper tokens):
--json only when structure is required:
--no-input (fail instead of prompting). oai_citation:1‡GitHubUsers may explicitly exclude certain calendars from searches/agenda (e.g., “National holidays”).
When answering, you MUST:
1) Query broadly (e.g., events --all or iterate all calendars for search),
2) Then filter out excluded calendars in post-processing.
How to determine excluded calendars:
holiday, holidays, national holidays (and localized equivalents)Filtering rule:
gog calendar calendars), filter by calendar name/summary.Always mention filtering briefly if it materially changes the answer:
For “what’s on my calendar today / tomorrow / this week / between X and Y”:
gog calendar events --all --from <date_or_iso> --to <date_or_iso> --plainExamples:
gog calendar events --all --from 2026-02-04 --to 2026-02-05 --plaingog calendar events --all --from 2026-02-04 --to 2026-02-11 --plainOutput formatting:
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:
Workflow (do not skip): 1) List calendars (need IDs + names for filtering):
gog calendar calendars --json
2) Build the set of excluded calendarIds from the exclusions rule.
3) 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
4) Aggregate all matches across calendars (do NOT stop on first match unless user asked).
5) Deduplicate by (calendarId, eventId), sort by start time.
6) Report results and explicitly mention the searched window (and any filters applied).If nothing found in default window:
Fallback if user is sure it exists:
gog calendar events --all --from <date-7d> --to <date+7d> --plain這個技能的最新版本可以在7w4.net小蔥技能站找到。
Before any write action:
這個 Skill 質量不錯,文件寫得清楚明白。它的優點是:查詢邏輯完善,會自動過濾掉節假日等不關心的日曆,搜尋不到時會主動提供建議,而且修改日曆前會再次確認避免誤操作。不足是部分邊界情況(如時區問題)沒有說明,首次使用需要額外安裝工具可能稍麻煩。總體來說,這是一個考慮周全、使用體驗良好的日曆管理 Skill。