Loading...
Loading...
Personal assistant for Google Workspace using gog CLI. Search Gmail, manage Calendar, organize Drive, update Sheets, track Tasks, and lookup Contacts. Use when triaging email, scheduling meetings, finding availability, searching documents, managing tasks, or any Google service interaction from the terminal.
npx skill4agent add ckorhonen/claude-skills googlegoggog# Check installation
gog version
# Check authentication status
gog auth status
# Verify account access
gog people me
# Add a new account if needed
gog auth add your@email.com --services=all# Search unread emails
gog gmail search "is:unread" --max=20
# Search from specific sender
gog gmail search "from:boss@company.com newer_than:7d"
# Send an email
gog gmail send --to="recipient@example.com" --subject="Subject" --body="Message body"
# Reply to a thread
gog gmail send --reply-to-message-id=MESSAGE_ID --body="Reply text"
# Get message details
gog gmail get MESSAGE_ID# View today's events
gog calendar events --today
# View this week
gog calendar events --week
# Create an event with Google Meet
gog calendar create primary \
--summary="Team Sync" \
--from="2026-01-15T14:00:00-08:00" \
--to="2026-01-15T15:00:00-08:00" \
--attendees="person1@example.com,person2@example.com" \
--with-meet
# Check availability
gog calendar freebusy "person1@example.com,person2@example.com" \
--from="2026-01-15T09:00:00Z" --to="2026-01-15T17:00:00Z"
# Find scheduling conflicts
gog calendar conflicts --week# List files in root
gog drive ls
# Search for documents
gog drive search "quarterly report"
# Download a file
gog drive download FILE_ID
# Upload a file
gog drive upload /path/to/file.pdf --parent=FOLDER_ID
# Get shareable URL
gog drive url FILE_ID# List task lists
gog tasks lists list
# View tasks in default list
gog tasks list @default
# Add a task
gog tasks add @default --title="Review report" --due="2026-01-15"
# Mark task complete
gog tasks done @default TASK_ID# Read a range
gog sheets get SPREADSHEET_ID "Sheet1!A1:D10"
# Update values
gog sheets update SPREADSHEET_ID "Sheet1!A1" "Value1" "Value2"
# Append a row
gog sheets append SPREADSHEET_ID "Sheet1!A:D" "Col1" "Col2" "Col3" "Col4"| Operator | Example | Description |
|---|---|---|
| | Emails from sender |
| | Emails sent to recipient |
| | CC'd recipient |
| | BCC'd recipient |
| Operator | Example | Description |
|---|---|---|
| | Unread messages |
| | Read messages |
| | Starred messages |
| | Marked important |
| | Snoozed messages |
| | Has specific label |
| | In inbox |
| | In sent folder |
| | In drafts |
| | In trash |
| | In spam |
| | All mail including spam/trash |
| Operator | Example | Description |
|---|---|---|
| | Subject contains word |
| | Exact phrase match |
| | Has any attachment |
| | Attachment filename/type |
| | Specific filename |
| Operator | Example | Description |
|---|---|---|
| | Within last N days |
| | Older than N years |
| | After specific date |
| | Before specific date |
dmy| Operator | Example | Description |
|---|---|---|
| | Larger than size |
| | Smaller than size |
KM| Operator | Example | Description |
|---|---|---|
| | Primary inbox |
| | Social category |
| | Promotions |
| | Updates |
| | Forums |
| Operator | Example | Description |
|---|---|---|
| | Both conditions |
| | Either condition |
| | Exclude condition |
| | Grouping |
| | OR shorthand |
# Unread from VIPs this week
gog gmail search "is:unread from:(boss@company.com OR ceo@company.com) newer_than:7d"
# Large attachments
gog gmail search "has:attachment larger:10M"
# Urgent subjects excluding promotions
gog gmail search "subject:(urgent OR asap OR EOD) -category:promotions is:unread"
# Contracts from legal team
gog gmail search "from:legal@company.com subject:contract has:attachment filename:pdf"
# All messages in a thread (use thread ID from search results)
gog gmail thread get THREAD_ID| Operator | Example | Description |
|---|---|---|
| | Filename contains |
| | Content search |
| | File type |
| Operator | Example | Description |
|---|---|---|
| | Modified after |
| | Modified before |
| | Created after |
| | Viewed after |
| Operator | Example | Description |
|---|---|---|
| | Owned by user |
| | User can edit |
| | User can view |
| | Shared with you |
| Operator | Example | Description |
|---|---|---|
| | Starred files |
| | Not in trash |
| | In specific folder |
| Type | MIME Type |
|---|---|
| Google Doc | |
| Google Sheet | |
| Google Slides | |
| Google Form | |
| Folder | |
| |
| Word | |
| Excel | |
andornot# Recent docs mentioning Q4
gog drive search "fullText contains 'Q4' and modifiedTime > '2026-01-01'"
# All spreadsheets shared with me
gog drive search "sharedWithMe and mimeType = 'application/vnd.google-apps.spreadsheet'"
# PDFs I own
gog drive search "'me' in owners and mimeType = 'application/pdf'"
# Files modified this week
gog drive search "modifiedTime > '2026-01-03'"
# Documents in specific folder
gog drive ls --parent=FOLDER_ID
# Starred presentations
gog drive search "starred and mimeType = 'application/vnd.google-apps.presentation'"# 1. Check unread counts by label
gog gmail labels list --json | jq '.[] | select(.messagesUnread > 0) | {name, unread: .messagesUnread}'
# 2. Review unread from priority senders
gog gmail search "is:unread from:(boss@company.com OR vip@client.com)" --max=20
# 3. Check for urgent subjects
gog gmail search "is:unread subject:(urgent OR asap OR EOD OR \"action required\")" --max=10
# 4. Review threads needing response (excludes noise)
gog gmail search "is:unread in:inbox -category:updates -category:promotions -category:social" --max=30
# 5. Check for emails with attachments requiring action
gog gmail search "is:unread has:attachment newer_than:2d" --max=15# 1. Find availability for attendees
gog calendar freebusy "person1@company.com,person2@company.com" \
--from="2026-01-15T09:00:00-08:00" \
--to="2026-01-15T17:00:00-08:00"
# 2. Check your own conflicts
gog calendar conflicts --days=7
# 3. Create the meeting
gog calendar create primary \
--summary="Project Kickoff" \
--from="2026-01-15T14:00:00-08:00" \
--to="2026-01-15T15:00:00-08:00" \
--attendees="person1@company.com,person2@company.com" \
--description="Agenda:\n1. Project overview\n2. Timeline review\n3. Action items" \
--location="Conference Room A" \
--with-meet \
--reminder="popup:15m"
# 4. Send follow-up email with details
gog gmail send \
--to="person1@company.com,person2@company.com" \
--subject="Meeting Scheduled: Project Kickoff - Jan 15 at 2pm" \
--body="Hi team,
I've scheduled our project kickoff meeting for Wednesday, January 15th at 2:00 PM.
Location: Conference Room A (Google Meet link in calendar invite)
Agenda:
1. Project overview
2. Timeline review
3. Action items
Please let me know if you have any conflicts.
Best regards"# 1. View the week ahead
gog calendar events --week
# 2. Check all calendars for the week
gog calendar events --week --all
# 3. Find and resolve conflicts
gog calendar conflicts --week
# 4. Check team availability (for group)
gog calendar team engineering@company.com --week
# 5. Block focus time
gog calendar focus-time \
--from="2026-01-16T09:00:00-08:00" \
--to="2026-01-16T12:00:00-08:00"
# 6. Set out of office (if needed)
gog calendar out-of-office \
--from="2026-01-20" \
--to="2026-01-21" \
--summary="Out of office - personal day"
# 7. Set working location
gog calendar working-location \
--from="2026-01-17" \
--to="2026-01-17" \
--type="home"# Find all docs from a project
gog drive search "fullText contains 'Project Alpha'"
# List recent docs you created
gog drive search "'me' in owners and modifiedTime > '2026-01-01'" --max=50
# Find docs shared by specific person
gog drive search "'colleague@company.com' in writers"
# Find presentation decks
gog drive search "mimeType = 'application/vnd.google-apps.presentation' and modifiedTime > '2025-10-01'"
# Download a doc as PDF
gog docs export DOC_ID --format=pdf --output="./report.pdf"
# Read doc contents (plain text for quick review)
gog docs cat DOC_ID
# Export spreadsheet as Excel
gog sheets export SPREADSHEET_ID --format=xlsx --output="./data.xlsx"
# Get shareable link
gog drive url FILE_ID
gog drive share FILE_ID --role=reader --type=anyone# 1. List all task lists
gog tasks lists list
# 2. View all tasks in default list
gog tasks list @default
# 3. View tasks due today
gog tasks list @default --due-max="$(date -u +%Y-%m-%dT23:59:59Z)"
# 4. Add a new task with due date
gog tasks add @default \
--title="Review Q4 financials" \
--due="2026-01-15" \
--notes="Check revenue projections and expense reports"
# 5. Complete a task
gog tasks done @default TASK_ID
# 6. Reopen a completed task
gog tasks undo @default TASK_ID
# 7. Delete a task
gog tasks delete @default TASK_ID
# 8. Clear all completed tasks
gog tasks clear @default# Search for a contact
gog contacts search "John Smith"
# List all contacts
gog contacts list --max=100
# Get contact details
gog contacts get RESOURCE_NAME
# Create a new contact
gog contacts create \
--given="Jane" \
--family="Doe" \
--email="jane.doe@example.com" \
--phone="+1-555-123-4567"
# Search directory (Workspace)
gog contacts directory search "engineering"| Command | Description | Key Flags |
|---|---|---|
| Search threads | |
| Get message content | |
| Send email | |
| Get full thread | - |
| Modify thread labels | |
| List all labels | - |
| Get label details | - |
| Bulk modify labels | |
| Download attachment | - |
| Get Gmail web URL | - |
| Bulk delete | - |
| List drafts | - |
| Create draft | Same flags as send |
| Command | Description | Key Flags |
|---|---|---|
| List calendars | - |
| List events | |
| Get event details | - |
| Create event | |
| Update event | Same as create |
| Delete event | - |
| Check availability | |
| Find conflicts | |
| Search events | - |
| RSVP | |
| Create focus block | |
| Set OOO | |
| Set work location | |
| View team calendars | - |
| Command | Description | Key Flags |
|---|---|---|
| List files | |
| Full-text search | |
| Get file metadata | - |
| Download file | |
| Upload file | |
| Create folder | |
| Delete (trash) | - |
| Move file | |
| Rename file | - |
| Share file | |
| Remove permission | - |
| List permissions | - |
| Get web URL | - |
| Copy file | - |
| Command | Description | Key Flags |
|---|---|---|
| Read values | - |
| Update values | |
| Append row | |
| Clear values | - |
| Get spreadsheet info | - |
| Create spreadsheet | - |
| Copy spreadsheet | - |
| Export | |
| Command | Description | Key Flags |
|---|---|---|
| Print as plain text | - |
| Export document | |
| Get metadata | - |
| Create document | - |
| Copy document | - |
| Command | Description | Key Flags |
|---|---|---|
| Export presentation | |
| Get metadata | - |
| Create presentation | - |
| Copy presentation | - |
| Command | Description | Key Flags |
|---|---|---|
| List task lists | - |
| List tasks | |
| Add task | |
| Update task | Same as add |
| Mark complete | - |
| Mark incomplete | - |
| Delete task | - |
| Clear completed | - |
| Command | Description | Key Flags |
|---|---|---|
| Search contacts | - |
| List all contacts | |
| Get contact | - |
| Create contact | |
| Update contact | Same as create |
| Delete contact | - |
| Search directory | - |
| Command | Description | Key Flags |
|---|---|---|
| List your groups | - |
| List group members | - |
| Command | Description | Key Flags |
|---|---|---|
| Show your profile | - |
gog| Flag | Description |
|---|---|
| Output JSON (best for scripting/piping to jq) |
| TSV output, no colors (for scripts/parsing) |
| Use specific account (multi-account support) |
| Skip confirmation prompts |
| Never prompt, fail instead (CI/automation) |
| Detailed logging for debugging |
| Control color output |
# Use specific account for a command
gog gmail search "is:unread" --account=work@company.com
# List available accounts
gog auth list# Get unread count for inbox
gog gmail labels get INBOX --json | jq '.messagesUnread'
# Extract event IDs from today
gog calendar events --today --json | jq '.[].id'
# List file IDs from search
gog drive search "budget" --json | jq '.[].id'
# Process email subjects
gog gmail search "is:unread" --json | jq '.[].snippet'newer_than:is:unread from:boss newer_than:7d--max--max=10--with-meet--reminder="popup:15m"fullText contains--json--plain--no-input