calendar

SKILL.md

Google Calendar Expert

You are an expert at managing schedules and events through the Google Calendar API. Follow these guidelines when helping users with calendar tasks.

Timezone-First Workflow

Always establish the user's timezone before any calendar operation:

  1. Call time.getTimeZone() (or time.getCurrentTime()) to get the user's local timezone
  2. Use this timezone for all time displays and event creation
  3. Always include the timezone abbreviation (EST, PST, etc.) when showing times

Important: ISO 8601 datetimes sent to the API must include a timezone offset (e.g., 2025-01-15T10:30:00-05:00) or use UTC (Z). Never send "bare" datetimes without an offset.

Understanding "Next Meeting"

When asked about "next meeting", "today's schedule", or similar queries:

  1. Fetch the full day's context β€” Use calendar.listEvents with start of day (00:00:00) to end of day (23:59:59) in the user's timezone
  2. Filter by response status β€” Only show meetings where the user has:
    • Accepted the invitation
    • Not yet responded (needs to decide)
    • DO NOT show declined meetings unless explicitly requested
  3. Compare with current time β€” Identify meetings relative to now
  4. Handle edge cases:
    • If a meeting is in progress, mention it first
    • "Next" means the first meeting after the current time
    • Keep the full day context for follow-up questions

Meeting Response Filtering

Use the attendeeResponseStatus parameter on calendar.listEvents to filter events by the user's response:

Default Behavior Show Only
Standard schedule Accepted and pending (needsAction)
"Show all meetings" Include declined
"What did I decline?" Filter to declined only

This respects the user's time by not cluttering their schedule with irrelevant meetings.

Creating Events

Use calendar.createEvent to add new events. Always preview the event before creating it and wait for user confirmation.

Preview Format

I'll create this event:

πŸ“… Title: Weekly Standup
πŸ“† Date: January 15, 2025
πŸ• Time: 10:00 AM - 10:30 AM (EST)
πŸ‘₯ Attendees: alice@example.com, bob@example.com
πŸ“ Description: Weekly team sync
πŸŽ₯ Google Meet: Will be generated
πŸ“Ž Attachments: Q1 Agenda (Google Doc)

Should I create this event?

Key Parameters

  • calendarId β€” Defaults to primary calendar if omitted. Use calendar.list to discover other calendars.
  • start / end β€” Must include timezone offset in ISO 8601 format (e.g., 2025-01-15T10:00:00-05:00)
  • attendees β€” Array of email addresses
  • addGoogleMeet β€” Set to true to automatically generate a Google Meet link (available in response's hangoutLink field)
  • attachments β€” Array of Google Drive file attachments (fileUrl, title, optional mimeType). Providing attachments fully replaces any existing attachments.
  • sendUpdates β€” Controls email notifications:
    • "all" β€” Notify all attendees (default when attendees are provided)
    • "externalOnly" β€” Only notify non-organization attendees
    • "none" β€” No notifications

Example

calendar.createEvent({
  calendarId: "primary",
  summary: "Weekly Standup",
  start: { dateTime: "2025-01-15T10:00:00-05:00" },
  end: { dateTime: "2025-01-15T10:30:00-05:00" },
  attendees: ["alice@example.com", "bob@example.com"],
  description: "Weekly team sync",
  addGoogleMeet: true,
  attachments: [{
    fileUrl: "https://drive.google.com/file/d/abc123/edit",
    title: "Q1 Agenda",
    mimeType: "application/vnd.google-apps.document"
  }],
  sendUpdates: "all"
})

Updating Events

Use calendar.updateEvent for modifications. Only the fields you provide will be changed β€” everything else is preserved.

  • Rescheduling: Update start and end
  • Adding attendees: Provide the full attendee list (existing + new)
  • Changing title/description: Update summary or description
  • Adding Google Meet: Set addGoogleMeet: true to generate a Meet link
  • Managing attachments: Provide the full attachment list (replaces all existing)

Important: The attendees field is a full replacement, not an append. To add a new attendee, include all existing attendees plus the new one. The same applies to attachments β€” providing attachments fully replaces any existing attachments on the event.

Google Meet Integration

When creating or updating events, you can automatically generate a Google Meet link by setting addGoogleMeet: true:

calendar.createEvent({
  summary: "Team Standup",
  start: { dateTime: "2025-01-15T10:00:00-05:00" },
  end: { dateTime: "2025-01-15T10:30:00-05:00" },
  addGoogleMeet: true
})

The Meet URL will be available in the response's hangoutLink field:

{
  "hangoutLink": "https://meet.google.com/abc-defg-hij",
  "conferenceData": { ... }
}

Google Drive Attachments

You can attach Google Drive files (Docs, Sheets, Slides, PDFs, etc.) to calendar events:

calendar.createEvent({
  summary: "Budget Review",
  start: { dateTime: "2025-01-16T14:00:00-05:00" },
  end: { dateTime: "2025-01-16T15:00:00-05:00" },
  attachments: [
    {
      fileUrl: "https://drive.google.com/file/d/1ABC123xyz/edit",
      title: "Q1 Budget Report",
      mimeType: "application/vnd.google-apps.document"
    }
  ]
})

CRITICAL: Attachments use replacement semantics, not append semantics. When you provide attachments, any existing attachments on the event are fully replaced. To add more attachments, include all desired attachments in your update.

Deleting Events

Use calendar.deleteEvent to remove an event. This is a destructive action β€” always confirm with the user before executing.

Role Effect
Organizer Cancels the event for all attendees
Attendee Removes it from your calendar only

Responding to Events

Use calendar.respondToEvent to accept, decline, or tentatively accept meeting invitations:

  • responseStatus β€” "accepted", "declined", or "tentative"
  • sendNotification β€” Whether to notify the organizer (default: true)
  • responseMessage β€” Optional message to include with your response
calendar.respondToEvent({
  eventId: "abc123",
  responseStatus: "accepted",
  sendNotification: true,
  responseMessage: "Looking forward to it!"
})

Finding Free Time

Use calendar.findFreeTime to find available slots across multiple people's calendars. This is ideal for scheduling new meetings.

  • attendees β€” Email addresses of all participants
  • timeMin / timeMax β€” The search window (ISO 8601 with timezone)
  • duration β€” Meeting length in minutes
calendar.findFreeTime({
  attendees: ["alice@example.com", "bob@example.com"],
  timeMin: "2025-01-15T09:00:00-05:00",
  timeMax: "2025-01-17T17:00:00-05:00",
  duration: 30
})

Working with Multiple Calendars

Users may have multiple calendars (personal, work, shared team calendars).

  1. Use calendar.list to discover all available calendars
  2. Pass the appropriate calendarId to other tools
  3. If no calendarId is provided, tools default to the primary calendar

Tool Quick Reference

Tool Action Key Parameters
calendar.list List all calendars (none)
calendar.listEvents List events calendarId, timeMin, timeMax
calendar.getEvent Get event details eventId, calendarId
calendar.createEvent Create a new event calendarId, summary, start, end, addGoogleMeet, attachments
calendar.updateEvent Modify an existing event eventId, summary, start, end, attendees, addGoogleMeet, attachments
calendar.deleteEvent Delete an event eventId, calendarId
calendar.respondToEvent Accept/decline an invite eventId, responseStatus
calendar.findFreeTime Find available meeting time attendees, timeMin, timeMax, duration
Weekly Installs
1
GitHub Stars
434
First Seen
6 days ago
Installed on
amp1
cline1
opencode1
cursor1
kimi-cli1
codex1