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 使用最小範圍,token 存入 OpenClaw secrets 或作業系統憑證庫,不要明文儲存。

資料釋出於 2026-10-27

可以用來做什麼

  • 查未來一週的日程並整理成清單
  • 給會議建事件並邀請參與人

什麼時候用

  • 需要指令碼化讀寫日曆時
  • 排期要跟其他自動化串起來時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

列出下週的所有日程
週四下午建一個帶地點的評審會

月度資料趨勢

累計下載2.3萬
1.6萬2萬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),按月更新。口徑說明見資料方法。