Get the FREE Ultimate OpenClaw Setup Guide →
b

gcal-pro - Google Calendar

Scanned

@bilalmohamed187-cpu

npx machina-cli add skill @bilalmohamed187-cpu/gcal-pro --openclaw
Files (1)
SKILL.md
5.7 KB

gcal-pro

Manage Google Calendar through natural conversation.

Quick Reference

ActionCommandTier
View todaypython scripts/gcal_core.py todayFree
View tomorrowpython scripts/gcal_core.py tomorrowFree
View weekpython scripts/gcal_core.py weekFree
Search eventspython scripts/gcal_core.py search -q "meeting"Free
List calendarspython scripts/gcal_core.py calendarsFree
Find free timepython scripts/gcal_core.py freeFree
Quick addpython scripts/gcal_core.py quick -q "Lunch Friday noon"Pro
Delete eventpython scripts/gcal_core.py delete --id EVENT_ID -yPro
Morning briefpython scripts/gcal_core.py briefPro

Setup

First-time setup required:

  1. User must create Google Cloud project and OAuth credentials
  2. Save client_secret.json to ~/.config/gcal-pro/
  3. Run authentication:
    python scripts/gcal_auth.py auth
    
  4. Browser opens → user grants calendar access → done

Check auth status:

python scripts/gcal_auth.py status

Tiers

Free Tier

  • View events (today, tomorrow, week, month)
  • Search events
  • List calendars
  • Find free time slots

Pro Tier ($12 one-time)

  • Everything in Free, plus:
  • Create events
  • Quick add (natural language)
  • Update/reschedule events
  • Delete events
  • Morning brief via cron

Usage Patterns

Viewing Schedule

When user asks "What's on my calendar?" or "What do I have today?":

cd /path/to/gcal-pro
python scripts/gcal_core.py today

For specific ranges:

  • "tomorrow" → python scripts/gcal_core.py tomorrow
  • "this week" → python scripts/gcal_core.py week
  • "meetings with Alex" → python scripts/gcal_core.py search -q "Alex"

Creating Events (Pro)

When user says "Add X to my calendar" or "Schedule Y":

Option 1: Quick add (natural language)

python scripts/gcal_core.py quick -q "Lunch with Alex Friday at noon"

Option 2: Structured create (via Python)

from scripts.gcal_core import create_event, parse_datetime

create_event(
    summary="Lunch with Alex",
    start=parse_datetime("Friday noon"),
    location="Cafe Roma",
    confirmed=True  # Set False to show confirmation prompt
)

Modifying Events (Pro)

⚠️ CONFIRMATION REQUIRED for destructive actions!

Before deleting or significantly modifying an event, ALWAYS confirm with the user:

  1. Show event details
  2. Ask "Should I delete/reschedule this?"
  3. Only proceed with confirmed=True or -y flag after user confirms

Delete:

# First, find the event
python scripts/gcal_core.py search -q "dentist"
# Shows event ID

# Then delete (with user confirmation)
python scripts/gcal_core.py delete --id abc123xyz -y

Finding Free Time

When user asks "When am I free?" or "Find time for a 1-hour meeting":

python scripts/gcal_core.py free

Morning Brief (Pro + Cron)

Set up via Clawdbot cron to send daily agenda:

from scripts.gcal_core import generate_morning_brief
print(generate_morning_brief())

Cron setup example:

  • Schedule: 8:00 AM daily
  • Action: Run python scripts/gcal_core.py brief
  • Delivery: Send output to user's messaging channel

Error Handling

ErrorCauseSolution
"client_secret.json not found"Setup incompleteComplete Google Cloud setup
"Token refresh failed"Expired/revokedRun python scripts/gcal_auth.py auth --force
"requires Pro tier"Free user attempting writePrompt upgrade or explain limitation
"Event not found"Invalid event IDSearch for correct event first

Timezone Handling

  • All times are interpreted in user's local timezone (default: America/New_York)
  • When user specifies timezone (e.g., "2 PM EST"), honor it
  • Display times in user's local timezone
  • Store in ISO 8601 format with timezone

Response Formatting

For event lists, use this format:

📅 **Monday, January 27**
  • 9:00 AM — Team standup
  • 12:00 PM — Lunch with Alex 📍 Cafe Roma
  • 3:00 PM — Client call

📅 **Tuesday, January 28**
  • 10:00 AM — Dentist appointment 📍 123 Main St

For confirmations:

✓ Event created: "Lunch with Alex"
  📅 Friday, Jan 31 at 12:00 PM
  📍 Cafe Roma

For morning brief:

☀️ Good morning! Here's your day:
📆 Monday, January 27, 2026

You have 3 events today:
  • 9:00 AM — Team standup
  • 12:00 PM — Lunch with Alex
  • 3:00 PM — Client call

👀 Tomorrow: 2 events

File Locations

~/.config/gcal-pro/
├── client_secret.json   # OAuth app credentials (user provides)
├── token.json           # User's access token (auto-generated)
└── license.json         # Pro license (if purchased)

Integration with Clawdbot

This skill works with:

  • Cron: Schedule morning briefs
  • Memory: Store calendar preferences
  • Messaging: Deliver briefs via Telegram/WhatsApp/etc.

Upgrade Prompt

When a Free user attempts a Pro action, respond:

⚠️ Creating events requires gcal-pro Pro ($12 one-time).

Pro includes: Create, edit, delete events + morning briefs.

👉 Upgrade: [gumroad-link]

For now, I can show you your schedule (free) — want to see today's events?

Source

git clone https://clawhub.ai/bilalmohamed187-cpu/gcal-proView on GitHub

Overview

gcal-pro lets you view and search your Google Calendar, check availability, and manage events through natural language. The Free tier provides read access, while the Pro tier ($12) adds create/edit/delete and a morning briefing.

How This Skill Works

Authenticate with Google Cloud using OAuth and a client_secret.json placed under ~/.config/gcal-pro/. Use the gcal_core.py and gcal_auth.py scripts to view, search, and manage events (e.g., today, tomorrow, week, search, free, quick, delete, brief). Pro features like create, update, delete, and morning briefs extend the core read capabilities. Setup includes running the auth command and optionally scheduling the morning brief via cron.

When to Use It

  • What’s on my calendar today or tomorrow
  • Find free time for meetings or events
  • Search for specific events (e.g., meetings with Alex)
  • Add or schedule events using natural language (quick add)
  • Get a morning briefing with today’s agenda

Quick Start

  1. Step 1: Set up and authenticate by saving client_secret.json to ~/.config/gcal-pro/ and running python scripts/gcal_auth.py auth
  2. Step 2: View or search your calendar using commands like python scripts/gcal_core.py today or python scripts/gcal_core.py search -q "meeting"
  3. Step 3: For Pro actions, use quick add (python scripts/gcal_core.py quick -q "Lunch with Alex Friday at noon"), or delete with python scripts/gcal_core.py delete --id EVENT_ID -y and set up a morning brief

Best Practices

  • Start with Free tier commands (today, tomorrow, week, search, calendars, free) to verify access
  • Always confirm before destructive actions like delete or major rescheduling
  • Use Quick Add for natural-language event creation (Pro feature)
  • Use the provided scripts (gcal_core.py) for predictable results and testing
  • Run the morning brief via cron if you rely on daily scheduling

Example Use Cases

  • What’s on my calendar today?
  • Schedule lunch with Alex Friday at noon
  • Find free time for a 1-hour meeting
  • Delete event with ID abc123xyz after confirmation
  • Morning brief via cron to receive today’s agenda

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers