gog

Manage Gmail, Calendar, Drive, Contacts, Sheets, and Docs via command-line.

Updated Mar 21, 2026
One-click install
npx skills add https://github.com/Polealpha/XINNIAN_PI --skill gog-polealpha
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gog
Source: https://github.com/Polealpha/XINNIAN_PI/tree/main/app%20windows/vendor/openclaw-runtime/skills/gog
Command: npx skills add https://github.com/Polealpha/XINNIAN_PI --skill gog-polealpha

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

gog solves the problem of manually working through the Google web UI by providing a command-line way to search, send, and manage Gmail, Calendar events, Drive files, Contacts, Sheets, and Docs.

Core Features & Use Cases

  • Gmail operations: search inbox mail, send messages, create drafts, and send replies with plain text or HTML.
  • Calendar operations: list events, create and update events, and query available event color IDs.
  • Productivity data operations: search Drive, list Contacts, read/update/append/clear Sheets ranges, and export/cat Docs content.
  • Use Case: You need to quickly find recent emails and then send a follow-up message with a draft workflow, without switching contexts or clicking through multiple pages.

Quick Start

Use the gog CLI to send an email by setting your account and using a single gog gmail send command with a recipient, subject, and message body.

Frequently Asked Questions about gog

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage Google Workspace data like Gmail and Calendar from the command line?

You can manage Google Workspace data from the command line by using CLI flags to search messages, send emails, create calendar events, and update spreadsheet ranges without opening a browser UI.

Do I need OAuth setup to automate sending emails and updating Sheets via CLI?

Yes, prior OAuth setup is required to authenticate your account and securely send emails, draft messages, and read or write spreadsheet ranges using the command line interface.

Can I script Google Drive searches and Contacts lists with deterministic output?

Yes, you can script Google Drive searches and list Contacts with deterministic JSON output options, enabling seamless automation and data piping for your workflows.

What is the best way to search Gmail and send a follow-up message without switching browser tabs?

The best way to search Gmail and send follow-ups without switching browser tabs is executing CLI commands to search inbox mail and immediately send or draft plain text and HTML replies.

How do I export Google Docs content or append data to Sheets for automation?

You export Google Docs content or append data to Sheets by running specific CLI commands to cat document text and append values to specified spreadsheet ranges for automation.