Read schedules, check availability, and create or update Google Calendar events when the user asks to work with their calendar.
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-google-calendar-0c604e69db6d ,按照其中的说明把「google-calendar」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Prefer an already connected Calendar tool. Installing this skill does not connect an account. Direct API access needs Calendar API enabled and the user's own OAuth client. For a user-authorized read-only setup:
gcloud auth application-default login --client-id-file=/path/to/client.json --scopes=https://www.googleapis.com/auth/calendar.events.readonly
This replaces existing Application Default Credentials; explain that effect
before changing auth. Request only scopes needed for the task, not Gmail access.
Use calendar.events for authorized event edits or a free/busy scope when only
availability is needed. Keep tokens in the credential flow, never in chat.
GET https://www.googleapis.com/calendar/v3/calendars/primary/events
with RFC3339 timeMin/timeMax, singleEvents=true, orderBy=startTime;
URL-encode values and follow nextPageToken as needed.Do not invite people, move events, or delete a series on your own initiative.
References: Google OAuth setup, Calendar scopes.