gog
by steipete
Calendar & SchedulingBrief
Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.
Description
What This Skill Does
Command-line interface for Google Workspace services. Covers Gmail, Calendar, Drive, Contacts, Sheets, and Docs through a single tool. Requires one-time OAuth setup with a Google Cloud client credentials file.
Replaces writing separate OAuth integrations for each Google service by exposing all major Workspace APIs through a single CLI with consistent flags.
When to Use It
- Search Gmail for recent emails matching a query
- Send emails from shell scripts or automations
- Pull calendar events for a specific date range
- Read and update Google Sheets cells programmatically
- Export Google Docs content to local text files
Example Workflow
User asks: find emails from the last week and send a summary to a colleague
- 1
Run
gog gmail search 'newer_than:7d' --max 10 --jsonto fetch recent emails - 2
Parse subject lines and senders from the JSON output
- 3
Compose a summary string from the results
- 4
Run
gog gmail send --to colleague@example.com --subject 'Weekly email summary' --body '<summary>'to deliver it
Email sent to colleague with a summary of the past week's inbox activity
Requirements
- Google Cloud project with OAuth 2.0 client credentials (client_secret.json)
- Google account authorized to access the desired Workspace services
Installation
clawhub install steipete/gogRun the CLI command, or paste the prompt into Claude Code, Cursor, Codex or whichever coding agent you use.