GC

gcal-api-research

A guide for implementing Google Calendar API features, covering recurring events, timezone logic, and API best practices.

Install

mkdir -p .claude/skills/gcal-api-research && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/4884" && unzip -o skill.zip -d .claude/skills/gcal-api-research && rm skill.zip

Installs to .claude/skills/gcal-api-research

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Expert research tool for Google Calendar API implementations. PROACTIVELY use when (1) reviewing PRs adding calendar features, (2) planning new event/attendee/recurring event functionality, (3) investigating calendar API issues, (4) validating timezone handling or batch operations. Specializes in recurring events, timezone conversions, multi-calendar support, and edge case identification.
391 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Advanced

Key capabilities

  • Validates recurring event logic
  • Checks timezone conversion compliance
  • Reviews multi-calendar integration patterns
  • Identifies API edge cases in batch operations

How it works

Cross-references proposed calendar features against a checklist of known API pitfalls and best practices.

Inputs & outputs

You give it
Calendar API integration feature or PR
You get back
Research-based feedback on implementation risks

When to use gcal-api-research

  • Review calendar API PR
  • Plan new event functionality
  • Validate timezone conversion logic

About this skill

Google Calendar API Research

Quick Start

What are you doing?

  • 📝 Reviewing a PR → Read references/research-checklist.md first
  • 🚀 Planning a feature → Start with Step 1 below, then consult relevant references
  • 🐛 Investigating an issue → Check references/edge-cases.md for known pitfalls
  • Validating an approach → Read references/api-patterns.md for best practices

Then follow the detailed workflow below.

Overview

This skill provides a structured approach to researching Google Calendar API implementations, identifying best practices, and uncovering potential edge cases. Use this skill to ensure implementations leverage Google Calendar APIs appropriately with good defaults while supporting complex use cases.

When to Use This Skill

Use this skill when:

  • Reviewing PRs that add new Google Calendar functionality (e.g., "feat: add respond-to-event tool")
  • Planning new features before implementation begins
  • Investigating issues with existing Google Calendar integrations
  • Validating implementation approaches against Google Calendar API best practices
  • Researching edge cases for specific calendar operations

This skill is particularly valuable for features involving:

  • Recurring event handling
  • Timezone conversions
  • Batch operations across multiple calendars
  • Event conflict detection
  • Attendee management
  • Conference data integration

Research Workflow

Step 1: Understand the Feature

First, identify what the implementation does or plans to do:

  1. For PR Reviews: Read the PR description and examine the code changes
  2. For Feature Planning: Clarify the requirements and desired functionality
  3. For Issues: Understand the reported problem and expected behavior

Key Questions:

  • What Google Calendar API operations are involved?
  • What user scenarios does this support?
  • What are the critical requirements (performance, reliability, edge cases)?

Step 2: Consult Reference Materials

Load relevant reference files based on the feature area. The skill includes three comprehensive references:

references/research-checklist.md

  • Use for structured PR review workflow
  • Covers API method selection, recurring events, timezones, batch operations, multi-calendar support, error handling, response structure, and testing
  • Provides specific "Questions to Ask" for each area
  • Includes "Research Steps" for finding additional information

references/api-patterns.md

  • Use for understanding common implementation patterns
  • Covers event querying, modification patterns, field masks, batch requests, conflict detection, pagination, timezone handling, error handling, and performance optimization
  • Provides code examples and "when to use" guidance
  • Documents authentication and authorization patterns

references/edge-cases.md

  • Use for identifying potential pitfalls and gotchas
  • Comprehensive catalog of recurring event edge cases, all-day event issues, attendee edge cases, conference data pitfalls, permission issues, batch request complications, and more
  • Real-world scenarios and common mistakes
  • Includes "Best Practice" recommendations for each edge case

How to Use References:

# Read the most relevant reference first
Read references/research-checklist.md

# Then read specific sections of other references as needed
Read references/api-patterns.md (focus on relevant sections)
Read references/edge-cases.md (scan for applicable edge cases)

Avoid loading all references into context at once. Load them progressively as needed based on the specific feature area.

Step 3: Research Official Documentation

Use WebFetch to access Google's official Calendar API documentation:

Primary Sources:

  • API Reference: https://developers.google.com/calendar/api/v3/reference
  • Guides: https://developers.google.com/calendar/api/guides/overview
  • Best Practices: Search for specific topics like "google calendar api recurring events"

Research Pattern:

# Fetch official documentation for specific feature
WebFetch(
  url: "https://developers.google.com/calendar/api/v3/reference/events/insert",
  prompt: "What are the parameters and best practices for creating calendar events? Focus on required fields, optional parameters, and any notes about recurring events or timezones."
)

Focus Areas:

  • Required vs optional parameters
  • Field formats and validation rules
  • Return types and error codes
  • Usage quotas and rate limits
  • Deprecation notices

Step 4: Search for Community Issues

Use WebSearch to find real-world issues others have encountered:

Search Patterns:

  1. Stack Overflow Issues:
WebSearch(
  query: "google calendar api recurring event instances site:stackoverflow.com"
)
  1. GitHub Issues:
WebSearch(
  query: "google calendar api timezone handling issues site:github.com"
)
  1. General Problem Reports:
WebSearch(
  query: "google calendar api [specific operation] problems edge cases"
)

Look For:

  • Common error messages and their solutions
  • Unexpected behaviors reported by developers
  • Workarounds for API limitations
  • Performance issues and optimization strategies

Example Searches:

  • "google calendar api batch request partial failure"
  • "google calendar api recurring event exception orphaned"
  • "google calendar api all-day event timezone conversion"
  • "google calendar api attendee response status not updating"

Step 5: Validate Implementation

Synthesize findings to validate the implementation:

For PR Reviews:

  1. API Method Selection: Is the correct API method being used? (See research-checklist.md → API Method Selection)
  2. Edge Cases: Are known edge cases handled? (See edge-cases.md for relevant category)
  3. Best Practices: Does implementation follow recommended patterns? (See api-patterns.md for relevant pattern)
  4. Error Handling: Are errors handled appropriately?
  5. Testing: Can the feature be tested reliably?

For Feature Planning:

  1. Feasibility: Does the Google Calendar API support the desired functionality?
  2. Approach: What's the best API method/pattern for this use case?
  3. Complexity: What edge cases need to be considered?
  4. Defaults: What are good defaults that still allow advanced usage?

For Issue Investigation:

  1. Known Issue: Is this a documented edge case? (Check edge-cases.md)
  2. API Behavior: Is the API behaving as documented? (Check official docs)
  3. Pattern Problem: Is there a better implementation pattern? (Check api-patterns.md)
  4. Community Solutions: Have others solved this? (Check WebSearch results)

Step 6: Provide Actionable Findings

BE EXTREMELY CONCISE. Senior engineers with limited time.

MAX 500 words. Focus on critical issues only.

For PR Reviews:

**Approach:** [correct API method? yes/no]
**Critical Edge Cases:** [3-5 max, file:line refs]
**Fixes:** [specific changes needed, file:line]
**Tests:** [3-5 specific test cases needed]

For Feature Planning:

**API Method:** [which method + why]
**Critical Edges:** [3-5 pitfalls to handle]
**Complexity:** [low/med/high + 1 reason]

DO NOT:

  • Write long explanations
  • Create documentation files
  • Explain Google Calendar basics
  • Provide code examples (unless critical fix)
  • List obvious edge cases

Critical Focus Areas

Recurring Events

Recurring events are the most complex aspect of Google Calendar API. Always check:

  • Instance ID format: Must be {recurringEventId}_{instanceTime} with time in UTC
  • Modification scope: thisEventOnly, thisAndFollowing, all
  • Exceptions: Instances with recurringEventId field have limitations
  • Timezone changes: Can cause unexpected shifts in recurring patterns

Primary Reference: edge-cases.md → "Recurring Events Edge Cases"

Timezone Handling

Timezone issues are common and subtle. Always verify:

  • Explicit specification: Are timezones specified explicitly rather than relying on defaults?
  • All-day vs timed: All-day events use date, timed events use dateTime + timeZone
  • Conversions: Is conversion between all-day and timed events handled correctly?
  • Calendar timezone: Is calendar's default timezone being retrieved when needed?

Primary Reference: api-patterns.md → "Timezone Handling Patterns" and edge-cases.md → "All-Day Event Edge Cases"

Batch Operations

Batch operations improve performance but have special handling requirements. Check:

  • Batch size limits: Max 50 requests per batch
  • Partial failures: Each request can succeed/fail independently
  • Error handling: Must check status of each response individually
  • When to batch: Independent operations benefit from batching

Primary Reference: api-patterns.md → "Batch Request Patterns" and edge-cases.md → "Batch Request Edge Cases"

Multi-Calendar Support

Operations across multiple calendars require special consideration:

  • Calendar access: Different calendars may have different permissions
  • Aggregation: Results from multiple calendars need proper merging
  • Performance: Consider using batch requests or freebusy queries
  • Calendar discovery: calendarList.list() vs direct calendar access

Primary Reference: research-checklist.md → "Multi-Calendar Operations" and edge-cases.md → "Multi-Calendar Edge Cases"

Research Tips

Effective Web Searches

Be Specific:

  • ❌ "google calendar api issues"
  • ✅ "google calendar api recurring event instance ID format"

Use Site Filters:

  • site:stackoverflow.com - For Q&A and troubleshooting
  • site:github.com - For library-specific issues and code examples
  • site:developers.google.com - For official documentation only

Search for Errors:

  • Include error codes: "google calendar api 409 conflict"
  • Include error messages: "google calendar api 'invalid event id'"

Find Recent Issues:

  • Add ye

Content truncated.

When not to use it

  • Simple calendar read operations without logic
  • Projects not using the Google Calendar API

Limitations

  • Does not fix code automatically; requires human implementation
  • Depends on maintenance of reference research files

How it compares

Provides structured research and validation rather than generic code review.

Compared to similar skills

gcal-api-research side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
gcal-api-research (this skill)18moNo flagsAdvanced
ena-database27moReviewAdvanced
research-agent17moReviewIntermediate
research-external17moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry