google-calendar
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGoogle Calendar Skill
Google Calendar Skill
This skill allows the AI to manage the user's Google Calendar.
该Skill允许AI管理用户的Google Calendar。
Features
功能特性
- List: See upcoming events to avoid conflicts.
- Create: Schedule new events (meetings, reminders).
- 列出:查看即将到来的日程事件,避免时间冲突。
- 创建:安排新的日程事件(会议、提醒事项)。
Prerequisites
前置条件
- Google Cloud Project with Google Calendar API enabled.
- OAuth 2.0 Credentials () in
credentials.json.~/.calendar_credentials/
- 已启用Google Calendar API的Google Cloud Project。
- 将OAuth 2.0 Credentials()放置在
credentials.json目录下。~/.calendar_credentials/
Setup
配置步骤
-
Recommended (gcloud ADC):bash
gcloud auth application-default login --scopes https://www.googleapis.com/auth/calendar.events,https://www.googleapis.com/auth/cloud-platformThen verify:bashuv run skills/google-calendar/scripts/google_calendar.py verify -
Alternative (credentials.json):
- Place in
credentials.json.~/.calendar_credentials/ - Run
uv run skills/google-calendar/scripts/google_calendar.py setup
- Place
-
推荐方式(gcloud ADC):bash
gcloud auth application-default login --scopes https://www.googleapis.com/auth/calendar.events,https://www.googleapis.com/auth/cloud-platform然后验证:bashuv run skills/google-calendar/scripts/google_calendar.py verify -
替代方式(credentials.json):
- 将放置在
credentials.json目录下。~/.calendar_credentials/ - 运行
uv run skills/google-calendar/scripts/google_calendar.py setup
- 将
Usage
使用方法
1. List Upcoming Events
1. 列出即将到来的日程事件
bash
uv run skills/google-calendar/scripts/google_calendar.py list --limit 5bash
uv run skills/google-calendar/scripts/google_calendar.py list --limit 52. Create Event
2. 创建日程事件
bash
undefinedbash
undefinedSchedule a Council Meeting
安排一场绝地委员会会议
uv run skills/google-calendar/scripts/google_calendar.py create
--summary "Jedi Council Meeting"
--start "2026-05-04T10:00:00"
--end "2026-05-04T11:00:00"
--description "Discussing the prophecy."
--summary "Jedi Council Meeting"
--start "2026-05-04T10:00:00"
--end "2026-05-04T11:00:00"
--description "Discussing the prophecy."
undefineduv run skills/google-calendar/scripts/google_calendar.py create
--summary "Jedi Council Meeting"
--start "2026-05-04T10:00:00"
--end "2026-05-04T11:00:00"
--description "Discussing the prophecy."
--summary "Jedi Council Meeting"
--start "2026-05-04T10:00:00"
--end "2026-05-04T11:00:00"
--description "Discussing the prophecy."
undefinedJSON Output
JSON输出
json
[
{
"summary": "Podrace",
"start": { "dateTime": "2026-05-04T14:00:00Z" },
"end": { "dateTime": "2026-05-04T16:00:00Z" }
}
]json
[
{
"summary": "Podrace",
"start": { "dateTime": "2026-05-04T14:00:00Z" },
"end": { "dateTime": "2026-05-04T16:00:00Z" }
}
]