Adrian Miller

Google Calendar

AI 智能体v0.1.0
作者:Adrian Miller更新于 2026-05-17google-calendar@clawhub_adrianmiller99/google-calendar
任务自动化工具调用#Calendar

据 AlphaMoat 统计,截至 2026-10,Google Calendar 累计下载 23,108 次、获 12 个星标,按累计下载量在本次参与排名的 10,914 个 AI 技能中排名第 1,230 位,在「AI 智能体」分类(1,632 个)中排名第 182 位。

列表默认按累计下载量排序,也可按星标排序;详情页排名按累计下载量计算。

累计下载
2.3万
星标
12
全站下载量排名
#1,230
全站前 12% · 「AI 智能体」前 12%
平台累计下载星标评论
ClawHub ↗1.8万12-
SkillHub ↗2.3万11—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

列出、添加、更新与删除日历事件,支持标题、起止时间、地点与参与人字段,所有命令把 JSON 打到标准输出。凭证走 Google OAuth:先建云端项目与桌面应用凭据,换取 refresh token 后存进 openclaw secret。依赖若干 Python 鉴权包,源文说明无需图形界面,可跑在无头服务器上。日历新增/更新/删除命令会直接改动实际事件。运行前检查参数;除非明确需要修改,否则优先只读。OAuth 使用最小范围,令牌存入 OpenClaw secrets 或操作系统凭据库,不要明文保存。

资料发布于 2026-10-27

可以用来做什么

  • 查未来一周的日程并整理成清单
  • 给会议建事件并邀请参与人

什么时候用

  • 需要脚本化读写日历时
  • 排期要跟其他自动化串起来时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

列出下周的所有日程
周四下午建一个带地点的评审会

月度数据趋势

累计下载2.3万
1.6万2.0万2.4万2026-05 · 累计下载 1.7万2026-06 · 累计下载 1.7万2026-07 · 累计下载 1.8万2026-08 · 累计下载 1.8万2026-09 · 累计下载 1.8万2026-10 · 累计下载 2.3万26-0526-0926-10
星标12
1112122026-05 · 星标 112026-06 · 星标 112026-07 · 星标 122026-08 · 星标 122026-09 · 星标 122026-10 · 星标 1226-0526-0926-10

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。 该技能有同名的其他版本,调整前的数据归属当前下载量最大的这一个。

月份累计下载环比星标
2026-102.3万—12
2026-091.8万—12
2026-081.8万+1.2%12
2026-071.8万+1.9%12
2026-061.7万+3.1%11
2026-051.7万—11

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.0 KB · ClawHub v0.1.0
---
name: google-calendar
description: Interact with Google Calendar via the Google Calendar API – list upcoming events, create new events, update or delete them. Use this skill when you need programmatic access to your calendar from OpenClaw.
---

# Google Calendar Skill

## Overview
This skill provides a thin wrapper around the Google Calendar REST API. It lets you:
- **list** upcoming events (optionally filtered by time range or query)
展开全部(共 64 行)
- **add** a new event with title, start/end time, description, location, and attendees
- **update** an existing event by its ID
- **delete** an event by its ID

The skill is implemented in Python (`scripts/google_calendar.py`). It expects the following environment variables to be set (you can store them securely with `openclaw secret set`):
```
GOOGLE_CLIENT_ID=…
GOOGLE_CLIENT_SECRET=…
GOOGLE_REFRESH_TOKEN=…   # obtained after OAuth consent
GOOGLE_CALENDAR_ID=primary   # or the ID of a specific calendar
```
The first time you run the skill you may need to perform an OAuth flow to obtain a refresh token – see the **Setup** section below.

## Commands
```
google-calendar list [--from <ISO> --to <ISO> --max <N>]
google-calendar add   --title <title> [--start <ISO> --end <ISO>]
                     [--desc <description> --location <loc> --attendees <email1,email2>]
google-calendar update --event-id <id> [--title <title> ... other fields]
google-calendar delete --event-id <id>
```
All commands return a JSON payload printed to stdout. Errors are printed to stderr and cause a non‑zero exit code.

## Setup
1. **Create a Google Cloud project** and enable the *Google Calendar API*.
2. **Create OAuth credentials** (type *Desktop app*). Note the `client_id` and `client_secret`.
3. Run the helper script to obtain a refresh token:
   ```bash
   GOOGLE_CLIENT_ID=… GOOGLE_CLIENT_SECRET=… python3 -m google_calendar.auth
   ```
   It will open a browser (or print a URL you can open elsewhere) and ask you to grant access. After you approve, copy the `refresh_token` it prints.
4. Store the credentials securely:
   ```bash
   openclaw secret set GOOGLE_CLIENT_ID <value>
   openclaw secret set GOOGLE_CLIENT_SECRET <value>
   openclaw secret set GOOGLE_REFRESH_TOKEN <value>
   openclaw secret set GOOGLE_CALENDAR_ID primary   # optional
   ```
5. Install the required Python packages (once):
   ```bash
   pip install --user google-auth google-auth-oauthlib google-api-python-client
   ```

## How it works (brief)
The script loads the credentials from the environment, refreshes the access token using the refresh token, builds a `service = build('calendar', 'v3', credentials=creds)`, and then calls the appropriate API method.

## References
- Google Calendar API reference: https://developers.google.com/calendar/api/v3/reference
- OAuth 2.0 for installed apps: https://developers.google.com/identity/protocols/oauth2/native-app

---

**Note:** This skill does not require a GUI; it works entirely via HTTP calls, so it is suitable for headless servers.

「AI 智能体」分类下的热门技能

数据月份:2026-10 · 下载/星标数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。