PythonClaw google_workspace
install
source · Clone the upstream repo
git clone https://github.com/ericwang915/PythonClaw
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ericwang915/PythonClaw "$T" && mkdir -p ~/.claude/skills && cp -r "$T/pythonclaw/templates/skills/google/workspace" ~/.claude/skills/ericwang915-pythonclaw-google-workspace && rm -rf "$T"
manifest:
pythonclaw/templates/skills/google/workspace/SKILL.mdsource content
Google Workspace (gog CLI)
Powered by gog — a Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.
When to Use
- Search Gmail, send email, read or manage messages
- List or create calendar events
- Search, list, or download Drive files
- Read or edit Google Sheets (get, append, update, clear)
- Export or read Google Docs content
- List or search Contacts
When NOT to Use
- Google Cloud Platform APIs (compute, storage, etc.)
- Firebase or other non-Workspace services
- Tasks that don't involve Gmail, Calendar, Drive, Sheets, Docs, or Contacts
- In-place editing of Google Docs (gog supports read/export only)
Setup
-
Install gog:
brew install steipete/tap/gogcli -
Create OAuth credentials at Google Cloud Console (Desktop App), download
.client_secret.json -
Authenticate:
gog auth credentials /path/to/client_secret.json gog auth add you@gmail.com --services gmail,calendar,drive,contacts,sheets,docs -
Optionally set
to skipGOG_ACCOUNT=you@gmail.com
on each call.--account
Usage/Commands
Gmail
| Action | Command |
|---|---|
| Search mail | |
| Send email | |
| Read message | |
| Mark as read | |
| List labels | |
Calendar
| Action | Command |
|---|---|
| List events | |
| Create event | |
Drive
| Action | Command |
|---|---|
| Search files | |
| List files | |
| Download | |
Google Sheets
| Action | Command |
|---|---|
| Get data | |
| Metadata | |
| Append rows | |
| Update cells | |
| Clear range | |
Google Docs
| Action | Command |
|---|---|
| Read content | |
| Export | |
| Copy | |
Contacts
| Action | Command |
|---|---|
| List contacts | |
| Search | |
Notes
- Always confirm before sending emails or creating calendar events
- For automation, use
and--json
flags--no-input - Set
env var to skipGOG_ACCOUNT
on every command--account - Use
to check configured accountsgog auth list