/gws:gws-calendar <list|get|links|calendars|create> [flags]from gws
Queries and manages Google Calendar events via the gws CLI — lists events, finds meetings, extracts Meet/Zoom links, creates events, and lists calendars. Handles authentication preflight automatically.
Ships in gws. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Query and manage Google Calendar events through the gws CLI. All
operations use the currently active gws account
(~/.config/gws-accounts/.active — managed by the gws-account skill).
# Codex: this path resolves under Claude Code; substitute the directory containing this plugin.
PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT}"
bash "$PLUGIN_ROOT/scripts/auth-preflight.sh"
Trust this over a hand-rolled gws auth status check. gws prints
Using keyring backend: keyring to stderr on every call, so the older
gws auth status 2>&1 | python3 -c '...json.load...' form always hit a parse
error and reported NOT AUTHENTICATED for perfectly good accounts. The script
also distinguishes "no account selected" from "no credentials" — different
problems with different fixes.
Parse the user's request and run the matching script. All scripts live in
plugins/gws/scripts/calendar-*.sh. Default human-readable output; pass
--json for programmatic output.
# Codex: this path resolves under Claude Code; substitute the directory containing this plugin.
PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT}"
bash "$PLUGIN_ROOT/scripts/calendar-list-events.sh" \
[--calendar=ID] [--query=TEXT] \
[--from=SPEC] [--to=SPEC] [--max=N] [--tz=IANA] [--json]
Date specs: today | tomorrow | yesterday | YYYY-MM-DD | +Nd | -Nd | +Nw.
Defaults: --calendar=primary, --from=today, --to=today,
--max=250. Always uses singleEvents=true&orderBy=startTime.
Examples:
--from=tomorrow --to=tomorrow--from=today --to=+7d--query="coaching"By id:
# Codex: this path resolves under Claude Code; substitute the directory containing this plugin.
PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT}"
bash "$PLUGIN_ROOT/scripts/calendar-get-event.sh" <event-id> \
[--calendar=ID] [--json] [--tz=IANA]
By fuzzy title match within a window (default: today through +7 days):
# Codex: this path resolves under Claude Code; substitute the directory containing this plugin.
PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT}"
bash "$PLUGIN_ROOT/scripts/calendar-get-event.sh" \
--match "title fragment" [--from=SPEC] [--to=SPEC] [--json]
Surfaces the specific instance of a recurring event, not the series id.
When the user asks "what's the link for X" or "get the meet/zoom link":
# Codex: this path resolves under Claude Code; substitute the directory containing this plugin.
PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT}"
# Today's links
bash "$PLUGIN_ROOT/scripts/calendar-links.sh"
# Links for matching events in a window
bash "$PLUGIN_ROOT/scripts/calendar-links.sh" \
--match "coaching" [--from=today --to=+3d]
# Links for a single event by id
bash "$PLUGIN_ROOT/scripts/calendar-links.sh" <event-id>
Detects:
hangoutLinklocation and description (includes passcode if present)conferenceData.entryPointsIf an event has no conference link, the output says so explicitly — never silently omit.
# Codex: this path resolves under Claude Code; substitute the directory containing this plugin.
PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT}"
bash "$PLUGIN_ROOT/scripts/calendar-list-calendars.sh" \
[--writable] [--json]
Marks the primary calendar with ★. Use --writable to filter to
calendars the active account can write to (owner/writer roles).
Before writing to a shared or group calendar, check the role directly instead of listing everything:
# Codex: this path resolves under Claude Code; substitute the directory containing this plugin.
PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT}"
bash "$PLUGIN_ROOT/scripts/calendar-list-calendars.sh" \
--id "<calendarId>" [--json]
Prints [accessRole] Summary (writable | READ-ONLY). Exits 1 with an
explanation when the calendar isn't in the account's calendar list — usually
"shared with a different account", not "doesn't exist".
Timed event:
# Codex: this path resolves under Claude Code; substitute the directory containing this plugin.
PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT}"
bash "$PLUGIN_ROOT/scripts/calendar-create-event.sh" \
--title "Title" --start "2026-05-08T14:00" --end "2026-05-08T15:00" \
[--calendar=ID] [--description=TEXT] [--location=TEXT] \
[[email protected],[email protected]] [--meet] [--tz=America/New_York] [--json]
All-day event — pass date-only --start (no --all-day flag needed,
though it exists for explicitness):
# Single day
... --title "Offsite" --start 2026-09-28
# Multi-day, inclusive last day (the human way)
... --title "Conference" --start 2026-09-28 --through 2026-09-30
# Multi-day, exclusive end (what the API itself takes)
... --title "Conference" --start 2026-09-28 --end 2026-10-01
All-day and timed bounds cannot be mixed — Google rejects a date start with
a dateTime end, and the script refuses it up front rather than letting the
API return an opaque 400. --tz is ignored for all-day events (they carry no
timezone by design). Google's end is exclusive; --through exists so you
don't have to remember that.
--meet auto-generates a Google Meet link. When --attendees is set, the
event is sent with sendUpdates=all. Confirm with the user before running
this — event creation is a write operation.
The scripts cover the common cases; gws reaches the whole API. For anything
they don't model — recurrence (RRULE), reminder overrides, extended
properties, guest permissions, transparency/visibility — build the body
yourself and call the CLI directly:
gws calendar events insert \
--params '{"calendarId":"<id>"}' \
--json '{"summary":"...","start":{"date":"2026-09-28"},"end":{"date":"2026-09-29"},
"recurrence":["RRULE:FREQ=WEEKLY;COUNT=4"]}'
gws calendar --help and gws calendar events --help list every subcommand.
Expect malformed bodies to come back as a bare
{"code":400,"message":"Bad Request","reason":"badRequest"} with no field
detail. Nothing surfaces more: GOOGLE_WORKSPACE_CLI_LOG=gws=trace and
GOOGLE_WORKSPACE_CLI_LOG_FILE both log the same reduced object, so re-read
your body shape rather than hunting for a better message. (Whether Google sent
richer detail that gws dropped is untested — a raw-token comparison against the
REST endpoint would settle it.)
For "what are my coaching links today?":
9:00 AM EDT (Thu May 7) — Nathalie <> Justin : Coaching (2 attendees)
https://meet.google.com/ppb-uhmk-vos
11:00 AM EDT (Thu May 7) — Co-Coaching Session - Justin, Diana, Sam, Tonya (4 attendees)
https://meet.google.com/htd-vett-kfd
12:00 PM EDT (Thu May 7) — PQ Growth Collective (15 attendees)
https://us06web.zoom.us/j/81182789025?pwd=... passcode: ... (zoom)
Declined events are flagged inline with [DECLINED] rather than hidden,
so the user can decide whether to attend.
auth-preflight.sh names which one it is: no .active file with other
authed accounts present means select one (account-switch.sh <label>),
not re-run OAuth. It also warns when calls are silently going to the
default config because nothing is selected — the usual cause of "I created
that event on the wrong account."<series>_<UTC-stamp>), not the series. Use that instance id with
calendar-get-event.sh.[DECLINED], never silently filtered.
If the user explicitly wants to skip declined events, parse the
--json output and filter on the declined field.(no conference link)
so it's obvious why a link wasn't returned.events.get returns a deleted event
with status: "cancelled" rather than a 404, so a get after a delete looks
like the delete failed. Output flags these [CANCELLED] (cancelled: true
in --json). To confirm a deletion, check that flag — not the absence of
output. A second delete on the same id returns 410 deleted, which is also
confirmation, not an error to fix.gws calendar events delete writes a stray download.html. The API
answers with 204 No Content; gws treats the empty body as a download and
saves it into the current working directory, reporting
{"saved_file": "download.html", "status": "success"}. The delete itself
works. Remove the file afterward, or cd somewhere disposable first.account-common.sh::resolve_active_config
and exported as GOOGLE_WORKSPACE_CLI_CONFIG_DIR so gws picks it up.singleEvents=true and orderBy=startTime for
predictable, instance-level output.--tz.calendar-format.py::extract_links
and is shared across list-events, get-event, and links for
consistent detection.What SKILL.md sets; muted values are Claude Code's defaults
Use whenever the user asks about their Google Calendar — listing events, looking up a single meeting, extracting Meet/Zoom links, listing accessible calendars, or creating an event. Respects the active gws account set by the gws-account skill. Also 'list events tomorrow', 'find my next meeting with X', 'what's the zoom link for my coaching session'. Use instead of constructing raw `gws calendar events list` invocations.
Three short reads, in order
7 skills in this plugin
/gws-accountCheck, add, list, or switch the active Google account. The only way to manage gws accounts — the CLI has no `account` subcommand./gmail-draft-from-markdownTurn a local markdown file into a Gmail draft via gws — converts to HTML, attaches local files, threads onto an existing message as a reply, never sends, returns the Gmail drafts URL for review./gmail-readSearch and read Gmail via gws — 'find the email about X', 'search my inbox for', read a message's full body as plain text.Other plugins' skills for the same job
npx claudepluginhub jtsternberg/claude-plugins --plugin gws