calendar-crab
Google Calendar CLI — list, create, move, and delete events. Zero dependencies, just Node.js + Google OAuth.
- License 许可
- MIT
- 最近更新
- 2026-06-10
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- calendar-crab
- description
- Google Calendar CLI — list, create, move, and delete events. Zero dependencies, just Node.js + Google OAuth.
03 SKILL.md 正文
Calendar Crab
Google Calendar management via a single Node.js script. No npm install needed.
Prerequisites
- Node.js 18+
- Google Cloud project with Calendar API enabled
- OAuth credentials + refresh token saved to
~/.openclaw/secrets/(see Setup below)
Commands
List upcoming events
node calendar-crab.js list --days=7 --max=20
Create an event
node calendar-crab.js create \
--title="Team Sync" \
--date=2026-03-20 \
--time=10:00 \
--duration=30 \
--location="Zoom" \
--attendees="alice@co.com,bob@co.com" \
--description="Weekly sync" \
--tz="America/Los_Angeles"
Move an event
# By date + time
node calendar-crab.js move --date=2026-03-20 --from=10:00 --to=14:00
# By event ID
node calendar-crab.js move --id="EVENT_ID" --to="2026-03-20T14:00:00-07:00"
Delete an event
node calendar-crab.js delete --id="EVENT_ID"
node calendar-crab.js delete --date=2026-03-20 --time=10:00
Configuration
| Env var | Default | Description |
|---|---|---|
CALENDAR_CRAB_SECRETS |
~/.openclaw/secrets |
Directory containing OAuth + token JSON files |
CALENDAR_CRAB_TZ |
System local | Default timezone for events |
CALENDAR_CRAB_CALENDAR |
primary |
Google Calendar ID |
Timezone can also be set per-command with --tz=America/Los_Angeles.
Execution rules
- Always
listfirst to verify the target event exists and is unique. moveanddeleteauto-notify all attendees (sendUpdates=all).- On failure, the raw Google API error is returned for debugging.
Setup
- Go to Google Cloud Console and create a project.
- Enable the Google Calendar API.
- Create OAuth 2.0 credentials (Desktop app type).
- Save the credentials as
~/.openclaw/secrets/google-calendar-oauth.json:{ "client_id": "YOUR_CLIENT_ID", "client_secret": "YOUR_CLIENT_SECRET" } - Obtain a refresh token via the OAuth flow and save as
~/.openclaw/secrets/google-calendar-token.json:
The script auto-refreshes the access token using the refresh token.{ "refresh_token": "YOUR_REFRESH_TOKEN", "access_token": "", "expires_in": 0, "obtained_at": "" }
04 同仓库更多 Skills
youtube-content
YouTube transcripts to summaries, threads, blogs.
xurl
X/Twitter via xurl CLI: post, search, DM, media, v2 API.
touchdesigner-mcp
Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.
test-driven-development
TDD: enforce RED-GREEN-REFACTOR, tests before code.
teams-meeting-pipeline
Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.
systematic-debugging
4-phase root cause debugging: understand bugs before fixing.