google-calendar
Skill0 starsChanged 2 months agoMITView on GitHub
Google Calendar API integration with managed OAuth. Manage calendars and events with full CRUD operations. Use this skill when users want to read, create, update, or delete calendars and events in Google Calendar. For local iCalendar (.ics) files on disk, use standard file reading tools instead. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).
- Pipes a download into a shell
- Reads credentials
- Installs packages
- Sends data out
23 other projects use a version of this.
Adopted by
Most recently taken up by
- codewhale-hq/codewhale-plugin-marketplacetheir own version, first seen Nov 8, 2026
- Geruyang/skillstheir own version, first seen Oct 15, 2026
- runxhq/runxtheir own version, first seen Oct 13, 2026
- andreasskyt/claude-skillstheir own version, first seen Oct 11, 2026
- chriswestt/claude-skillstheir own version, first seen Oct 9, 2026
- jholhewres/devclaw-skillstheir own version, first seen Oct 9, 2026
Used with
Projects with it also use google-chat, google-gmail and 6 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
antoniolgSkillgoogle-chat
Read Google Chat spaces/threads via the Chat API, create/refresh OAuth tokens, parse Gmail Chat URLs, and list spaces. Use when asked to look up or verify messages in Google Chat or when you need API access to Chat from the CLI.
Also in 3 projects that use this
leolionartSkillgoogle-gmail
Operate Gmail via the Google Workspace CLI (gws) — send emails, reply with threading, triage inbox, and stream new messages as NDJSON. Use when users ask to send/forward/reply emails, check inbox summary, or automate email workflows.
Also in 3 projects that use this
refly-aiSkillgmail
Integrate with Gmail for email management and automation. Use when you need to: (1) send and compose emails with attachments, (2) read and search emails by criteria, (3) manage drafts and email labels, or (4) reply to email threads and conversations.
Also in 10 projects that use this
OpenAISkillgoogle-drive
Use connected Google Drive as the single entrypoint for Drive, Docs, Sheets, and Slides work. Use when the user wants to find, fetch, organize, share, export, copy, or delete Drive files, or summarize and edit Google Docs, Google Sheets, and Google Slides through one unified Google Drive plugin.
Also in 6 projects that use this
refly-aiSkillasana
Integrate with Asana for task management. Use when you need to: (1) create and manage Asana tasks, (2) organize project work, or (3) automate team task tracking workflows.
Also in 3 projects that use this
OpenAISkilllinear
Manage issues, projects & team workflows in Linear. Use when the user wants to read, create or updates tickets in Linear.
Also in 5 projects that use this
Other versions23 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 23
- Lilac-Labs/gini-agent★ 1.9ksame name
- Open-Curiosity/gini-agent★ 1.9ksame name
- vellum-ai/vellum-assistant★ 1.5ksame name
- gemini-cli-extensions/workspace★ 646same name
- sanjay3290/ai-skills★ 452same name
- greatSumini/cc-system★ 438same name
- refly-ai/refly-skills★ 204same name
- runxhq/runx★ 97same name
- marswaveai/skills★ 82same name
- ShaunTsai/skill-google-calendar★ 22same name
13 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- google-docsSkill
- google-sheetsSkill
- google-slidesSkill
- google-tasksSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 12 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 20 edited versions we read keep these.
12
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 82
After installation, verify with:
- Distinctive: line 226
If you have multiple Google Calendar connections, specify which one to use:
- Distinctive: line 250
If you have multiple connections, always specify the connection to ensure requests go to the intended account.
- Distinctive: line 255
All write operations require explicit user approval: Before executing any create, update, or delete call, confirm the target resource and …
- Distinctive: line 341
Delete all events from a primary calendar.
- Distinctive: line 355
Add a calendar to the user's calendar list (does not create a new calendar).
- Distinctive: line 374
Remove a calendar from the user's calendar list (does not delete the calendar itself).
- Distinctive: line 515
Import an event from ICS/VCAL data.
- Distinctive: line 544
Read-only listing of events from one or all calendars.
- Distinctive: line 679
Read Google Calendar user settings.
- Distinctive: line 874
Check your auth state:
- Distinctive: line 880
Verify the API key is valid by listing connections:
- Very specific: line 888
Check that the MATON_API_KEY environment variable is set:
- Very specific: line 907
Ensure your URL path starts with google-calendar.
“Common” is measured: kept by at least 6 in 10 of the 20 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Google Calendar
Access the Google Calendar API with managed OAuth authentication. Manage calendars, events, agenda views, ACLs, colors, free/busy queries, and settings.
Quick Start
CLI:
maton google-calendar calendar listmaton google-calendar event list -c primary --time-min 2026-07-22T00:00:00Z --time-max 2026-07-23T00:00:00ZPython:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/google-calendar/calendar/v3/users/me/calendarList')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOFBase URL
https://api.maton.ai/google-calendar/{native-api-path}Maton proxies requests to calendar.googleapis.com and automatically injects your OAuth token.
CLI Installation (optional — agent decides)
Maton CLI is optional. Agent can decide whether to install it based on the environment.
macOS / Linux
curl -fsSL https://maton.ai/install.sh | bashWindows
irm https://maton.ai/install.ps1 | iexnpm (cross-platform)
npm install -g @maton/cliHomebrew (macOS)
brew install maton-ai/cli/matonAfter installation, verify with:
maton --versionAuthentication
CLI:
maton login # Opens browser for API key
maton login --interactive # Skip browser, paste API key directly
maton whoami # Show current auth stateManual:
- Sign in or create an account at maton.ai
- Go to maton.ai/settings
- Copy your API key
- Set your API key as
MATON_API_KEY:
export MATON_API_KEY="YOUR_API_KEY"Connection Management
Manage your Google Calendar OAuth connections at https://api.maton.ai.
List Connections
CLI:
maton connection list google-calendar --status ACTIVEmaton api -X GET /connections -f app=google-calendar -f status=ACTIVEPython:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections?app=google-calendar&status=ACTIVE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOFCreate Connection
CLI:
maton connection create google-calendarmaton api /connections -f app=google-calendarPython:
python <<'EOF'
import urllib.request, os, json
data = json.dumps({'app': 'google-calendar'}).encode()
req = urllib.request.Request('https://api.maton.ai/connections', data=data, method='POST')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Content-Type', 'application/json')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOFGet Connection
CLI:
maton connection get {connection_id} # alias: maton connection viewmaton api /connections/{connection_id}Python:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections/{connection_id}')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOFResponse:
{
"connection": {
"connection_id": "{connection_id}",
"status": "ACTIVE",
"creation_time": "2026-02-07T02:35:51.002199Z",
"last_updated_time": "2026-02-07T05:32:30.369186Z",
"url": "https://connect.maton.ai/?session_token=...",
"app": "google-calendar",
"metadata": {}
}
}Open the returned url in a browser to complete OAuth authorization.
Delete Connection
CLI:
maton connection delete {connection_id}maton api -X DELETE /connections/{connection_id}Python:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections/{connection_id}', method='DELETE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOFSpecifying Connection
If you have multiple Google Calendar connections, specify which one to use:
CLI:
maton google-calendar calendar list --connection {connection_id}maton api /google-calendar/calendar/v3/users/me/calendarList --connection {connection_id}Python:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/google-calendar/calendar/v3/users/me/calendarList')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Maton-Connection', '{connection_id}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOFIf you have multiple connections, always specify the connection to ensure requests go to the intended account.
Security & Permissions
- Access is scoped to calendars and events with full CRUD operations within the connected Google Calendar account.
- All write operations require explicit user approval. Before executing any create, update, or delete call, confirm the target resource and intended effect with the user.
API Reference
Calendar
List All Calendars
GET /google-calendar/calendar/v3/users/me/calendarListQuery Parameters:
maxResults- Maximum entries to returnpageToken- Token for paginationshowDeleted- Include deleted calendarsshowHidden- Include hidden calendars
Example:
maton google-calendar calendar listGet Calendar
GET /google-calendar/calendar/v3/calendars/{calendarId}Example:
maton google-calendar calendar get primaryCreate Calendar
POST /google-calendar/calendar/v3/calendars
Content-Type: application/json
{
"summary": "Project X",
"timeZone": "America/Los_Angeles"
}Example:
maton google-calendar calendar create --summary 'Project X' --timezone America/Los_AngelesUpdate Calendar (PATCH)
PATCH /google-calendar/calendar/v3/calendars/{calendarId}
Content-Type: application/json
{
"summary": "Updated Title",
"timeZone": "Asia/Shanghai"
}Example:
maton google-calendar calendar update primary --summary 'Updated Title' --timezone Asia/ShanghaiDelete Calendar
DELETE /google-calendar/calendar/v3/calendars/{calendarId}Example:
maton google-calendar calendar delete {calendarId}Clear Calendar
Delete all events from a primary calendar.
POST /google-calendar/calendar/v3/calendars/{calendarId}/clearExample:
maton google-calendar calendar clear primarySubscribe to Calendar
Add a calendar to the user's calendar list (does not create a new calendar).
POST /google-calendar/calendar/v3/users/me/calendarList
Content-Type: application/json
{
"id": "en.usa#holiday@group.v.calendar.google.com"
}Example:
maton google-calendar calendar subscribe en.usa#holiday@group.v.calendar.google.comUnsubscribe from Calendar
Remove a calendar from the user's calendar list (does not delete the calendar itself).
DELETE /google-calendar/calendar/v3/users/me/calendarList/{calendarId}Example:
maton google-calendar calendar unsubscribe en.usa#holiday@group.v.calendar.google.comEvent
List Events
GET /google-calendar/calendar/v3/calendars/{calendarId}/eventsQuery Parameters:
maxResults- Max events per page (1-2500)pageToken- Pagination tokenshowDeleted- Include deleted eventsshowHiddenInvitations- Include hidden invitationssingleEvents- Expand recurring events into instances (default: true)orderBy-startTimeorupdatedq- Free text search across event fieldstimeMin- Lower bound (RFC 3339)timeMax- Upper bound (RFC 3339)updatedMin- Filter to events updated after this timestamptimeZone- IANA timezone for response times
Example:
maton google-calendar event list -c primary
maton google-calendar event list -c primary --time-min 2026-07-22T00:00:00Z --time-max 2026-07-23T00:00:00Z
maton google-calendar event list -c primary --query 'standup' --paginateGet Event
GET /google-calendar/calendar/v3/calendars/{calendarId}/events/{eventId}Example:
maton google-calendar event get {eventId} -c primaryCreate Event
Required: --summary, --start (RFC 3339), --end (RFC 3339)
Optional: --description, --location, --attendee (repeatable), --meet (Google Meet), --send-updates (all|externalOnly|none), -c (calendar ID, default "primary")
POST /google-calendar/calendar/v3/calendars/{calendarId}/events
Content-Type: application/json
{
"summary": "Standup",
"start": {"dateTime": "2026-07-22T09:00:00Z"},
"end": {"dateTime": "2026-07-22T09:30:00Z"},
"attendees": [{"email": "alice@example.com"}],
"location": "Room 301"
}Example:
maton google-calendar event create --summary 'Standup' --start 2026-07-22T09:00:00Z --end 2026-07-22T09:30:00Z
maton google-calendar event create --summary 'Review' --start 2026-07-22T10:00:00Z --end 2026-07-22T11:00:00Z --attendee alice@example.com --attendee bob@example.com
maton google-calendar event create --summary 'Demo' --start 2026-07-22T14:00:00Z --end 2026-07-22T15:00:00Z --meetUpdate Event (PATCH - partial update)
PATCH /google-calendar/calendar/v3/calendars/{calendarId}/events/{eventId}
Content-Type: application/json
{
"summary": "New Title"
}Example:
maton google-calendar event update {eventId} -c primary --summary 'New title'Delete Event
DELETE /google-calendar/calendar/v3/calendars/{calendarId}/events/{eventId}Example:
maton google-calendar event delete {eventId} -c primaryMove Event
Move an event to another calendar.
POST /google-calendar/calendar/v3/calendars/{calendarId}/events/{eventId}/move?destination={destinationCalendarId}Example:
maton google-calendar event move {eventId} -c primary --destination {otherCalendarId}Quick Add Event
Natural language event creation.
POST /google-calendar/calendar/v3/calendars/{calendarId}/events/quickAdd?text={text}Example:
maton google-calendar event quick-add --text 'Lunch with Alice tomorrow at noon'Import Event
Import an event from ICS/VCAL data.
POST /google-calendar/calendar/v3/calendars/{calendarId}/events/import
Content-Type: application/json
{
"summary": "Imported Event",
"start": {"dateTime": "2026-07-22T09:00:00Z"},
"end": {"dateTime": "2026-07-22T10:00:00Z"}
}List Recurring Event Instances
GET /google-calendar/calendar/v3/calendars/{calendarId}/events/{eventId}/instancesExample:
maton google-calendar event instances {eventId} -c primaryAgenda
Read-only listing of events from one or all calendars. Defaults to the next 1 day window.
CLI flags: --today, --tomorrow, --week, --days <int>, --calendar <string>, --timezone <string>, --json, --paginate
Example:
maton google-calendar agenda
maton google-calendar agenda --today
maton google-calendar agenda --week
maton google-calendar agenda --days 3 --timezone America/New_York
maton google-calendar agenda --calendar 'Work' --jsonACL
List ACL Rules
GET /google-calendar/calendar/v3/calendars/{calendarId}/aclExample:
maton google-calendar acl list -c primaryGet ACL
GET /google-calendar/calendar/v3/calendars/{calendarId}/acl/{ruleId}Example:
maton google-calendar acl get {ruleId} -c primaryCreate ACL
POST /google-calendar/calendar/v3/calendars/{calendarId}/acl
Content-Type: application/json
{
"role": "reader",
"scope": {
"type": "user",
"value": "alice@example.com"
}
}Flags: --role (reader|writer|owner|freeBusyReader), --scope (scope value)
Example:
maton google-calendar acl create -c primary --role reader --scope alice@example.comUpdate ACL
PATCH /google-calendar/calendar/v3/calendars/{calendarId}/acl/{ruleId}Example:
maton google-calendar acl update {ruleId} -c primary --role writerDelete ACL
DELETE /google-calendar/calendar/v3/calendars/{calendarId}/acl/{ruleId}Example:
maton google-calendar acl delete {ruleId} -c primaryColors
Get available calendar and event color palettes.
GET /google-calendar/calendar/v3/colorsExample:
maton google-calendar colors getFreebusy
Query busy time periods across calendars.
POST /google-calendar/calendar/v3/freeBusy
Content-Type: application/json
{
"timeMin": "2026-07-22T00:00:00Z",
"timeMax": "2026-07-23T00:00:00Z",
"items": [{"id": "primary"}]
}Flags: --time-min (RFC 3339), --time-max (RFC 3339), --calendar (repeatable)
Example:
maton google-calendar freebusy --time-min 2026-07-22T00:00:00Z --time-max 2026-07-23T00:00:00Z --calendar primary
maton google-calendar freebusy --time-min 2026-07-22T00:00:00Z --time-max 2026-07-23T00:00:00Z --calendar primary --calendar work@example.comSettings
Read Google Calendar user settings.
List Settings
GET /google-calendar/calendar/v3/users/me/settingsExample:
maton google-calendar settings listGet Setting
GET /google-calendar/calendar/v3/users/me/settings/{setting}Example:
maton google-calendar settings get timezone
maton google-calendar settings get localeCommon settings: timezone, locale, weekStartDay, format24HourTime, defaultReminders, defaultEventLength.
Pagination
Google Calendar uses token-based pagination. The CLI automatically paginates with --paginate.
Example:
maton google-calendar event list -c primary --paginateFor raw API, pass nextPageToken as pageToken to get the next page.
Event Resource Fields
| Field | Type | Description |
kind | string | Always "calendar#event" (output only) |
id | string | Event identifier |
etag | string | ETag of the resource |
status | string | "confirmed", "tentative", or "cancelled" |
htmlLink | string | Link to event in Google Calendar UI (output only) |
created | string | Creation time (RFC 3339, output only) |
updated | string | Last modification time (RFC 3339, output only) |
summary | string | Event title |
description | string | Event description |
location | string | Event location |
colorId | string | Color ID from the color palette |
creator | object | Creator info (email, displayName, self) |
organizer | object | Organizer info |
start | object | Start time (dateTime + timeZone, or date for all-day) |
end | object | End time |
endTimeUnspecified | boolean | Whether end time is unspecified |
recurrence | array | RRULE, EXRULE, RDATE, EXDATE lines |
recurringEventId | string | ID of the parent recurring event |
originalStartTime | object | Original start time of the instance |
attendees | array | List of attendees (email, responseStatus, optional, etc.) |
attendeesOmitted | boolean | Whether attendees may be omitted |
hangoutLink | string | Google Meet link (output only) |
conferenceData | object | Conference data (Meet, Hangouts, etc.) |
iCalUID | string | iCalendar UID |
sequence | integer | Sequence number |
reminders | object | Reminder overrides (useDefault, overrides) |
source | object | Source (url, title) |
attachments | array | File attachments |
eventType | string | "default", "outOfOffice", "focusTime", "workingLocation" |
privateCopy | boolean | Whether it's a private copy |
guestsCanModify | boolean | Whether guests can modify |
guestsCanSeeOtherGuests | boolean | Whether guests can see other guests |
guestsCanInviteOthers | boolean | Whether guests can invite others |
transparency | string | "opaque" or "transparent" |
visibility | string | "default", "public", "private", "confidential" |
anyoneCanAddSelf | boolean | Whether anyone can add themselves |
locked | boolean | Whether the event is locked |
outOfOfficeProperties | object | Out-of-office properties |
Code Examples
CLI
# List all calendars
maton google-calendar calendar list
# Filter with jq — e.g., extract calendar summaries
maton google-calendar calendar list --json --jq '.items[].summary'
# List today's events
maton google-calendar agenda --today
# Create an event with attendees and Google Meet
maton google-calendar event create --summary 'Sprint Review' \
--start 2026-07-22T15:00:00Z --end 2026-07-22T16:00:00Z \
--attendee alice@example.com --attendee bob@example.com --meet
# Quick add with natural language
maton google-calendar event quick-add --text 'Coffee with Sarah next Monday at 10am'
# Check free/busy
maton google-calendar freebusy --time-min 2026-07-22T00:00:00Z --time-max 2026-07-23T00:00:00Z --calendar primary
# Get calendar colors
maton google-calendar colors getJavaScript
// List all calendars
const response = await fetch(
'https://api.maton.ai/google-calendar/calendar/v3/users/me/calendarList',
{
headers: {
'Authorization': `Bearer ${process.env.MATON_API_KEY}`
}
}
);
// Create a new event
const createResponse = await fetch(
`https://api.maton.ai/google-calendar/calendar/v3/calendars/primary/events`,
{
method: 'POST',
headers: {
'Authorization': `Bearer ${process.env.MATON_API_KEY}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
summary: 'Team Standup',
start: { dateTime: '2026-07-22T09:00:00Z' },
end: { dateTime: '2026-07-22T09:30:00Z' },
attendees: [{ email: 'alice@example.com' }]
})
}
);Python
import os
import requests
# List all calendars
response = requests.get(
'https://api.maton.ai/google-calendar/calendar/v3/users/me/calendarList',
headers={'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}'}
)
# Create a new event
create_response = requests.post(
'https://api.maton.ai/google-calendar/calendar/v3/calendars/primary/events',
headers={'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}'},
json={
'summary': 'Team Standup',
'start': {'dateTime': '2026-07-22T09:00:00Z'},
'end': {'dateTime': '2026-07-22T09:30:00Z'},
'attendees': [{'email': 'alice@example.com'}]
}
)Notes
- Calendar IDs are opaque strings;
primaryis the alias for the user's default calendar - Event IDs are opaque strings (base64-encoded)
- Timestamps use RFC 3339 format:
2026-07-22T09:00:00Zor2026-07-22T09:00:00+08:00 - IMPORTANT: When using curl commands, use
curl -gwhen URLs contain brackets to disable glob parsing - IMPORTANT: When piping curl output to
jqor other commands, environment variables like$MATON_API_KEYmay not expand correctly in some shell environments. You may get "Invalid API key" errors when piping.
Error Handling
| Status | Meaning |
| 400 | Missing Google Calendar connection |
| 401 | Invalid or missing Maton API key |
| 404 | Calendar, event, or ACL rule not found |
| 409 | Conflict (e.g., trying to create a duplicate) |
| 429 | Rate limited |
| 4xx/5xx | Passthrough error from Google Calendar API |
Troubleshooting: API Key Issues
CLI:
- Check your auth state:
maton whoami- Verify the API key is valid by listing connections:
maton connection listManual:
- Check that the
MATON_API_KEYenvironment variable is set:
echo $MATON_API_KEY- Verify the API key is valid by listing connections:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOFTroubleshooting: Invalid App Name
- Ensure your URL path starts with
google-calendar. For example:
- Correct:
https://api.maton.ai/google-calendar/calendar/v3/users/me/calendarList - Incorrect:
https://api.maton.ai/calendar/v3/users/me/calendarList
Resources
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

