Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
What This Skill Does
gog is a CLI tool for interacting with Google Workspace services from the terminal. It covers Gmail, Calendar, Drive, Contacts, Sheets, and Docs via OAuth authentication. Requires a one-time credential setup using a Google OAuth client secret.
Provides a single unified CLI across six Google Workspace services, enabling scripting and automation without writing OAuth code from scratch.
When to use it
- Search and send Gmail messages from the terminal
- Query Google Calendar events by date range
- Search and retrieve files from Google Drive
- Read and update Google Sheets data in scripts
- Export Google Docs to plain text for processing
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: find emails from the last 3 days and append a summary row to a tracking sheet
- 1Run `gog gmail search 'newer_than:3d' --max 20 --json` to retrieve recent emails
- 2Parse subject and sender fields from the JSON output
- 3Format the data as a values array
- 4Run `gog sheets append <sheetId> "Log!A:C" --values-json '[...]' --insert INSERT_ROWS` to append the row
New rows added to the Google Sheet with email metadata from the last 3 days
Requirements
Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.