AI Agent Hub
Back to skills
gog Google Workspace CLI icon

gog Google Workspace CLI

Development Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_dd2eef27/1t20260420021950 using https://skillhub.cn/install/skillhub.md.

About this skill

Problem

When Gmail, Calendar, Drive, Contacts, Sheets, and Docs are spread across browser UIs, batch queries, exports, updates, and scriptable workflows become awkward. gog moves these Google Workspace operations into a command-line path suited to terminals, CI, automation, and agent workflows, rather than manual page clicks.

Core Capabilities and Workflow

The skill is organized around OAuth setup and common operations. It expects a Google OAuth client secret and grants a specified email access to Gmail, Calendar, Drive, Contacts, Sheets, and Docs. Afterwards, commands cover Gmail search and send, Calendar event queries, Drive keyword search, Contacts listing, Sheets cell reads, updates, appends, clears, and metadata, plus Docs export and content viewing. For scripting, prefer --json and --no-input, and pass Sheets values with --values-json to reduce parsing ambiguity.

Boundaries

It is useful for explicit read, search, spreadsheet write, and document export tasks, but it is not a full Google API client. Docs supports export, cat, and copy; in-place edits require an additional Docs API client. Mail sending and event creation should be confirmed before execution to avoid unintended automation. GOG_ACCOUNT can reduce repeated account flags, but multi-account, permissions, and OAuth configuration still require manual maintenance.

Use Cases

  • Check recent Gmail mail by date using a terminal query and pull summaries.
  • Prepare meeting notes by reading Calendar events and Drive files.
  • Maintain customer records by listing Contacts and updating Sheet cells.
  • Create weekly report inputs from Sheets ranges and exported Docs text.

Best For

  • Engineers who need Gmail and Sheets queries in CI scripts.
  • Operations staff reconciling customer contacts against sheet records.
  • Support engineers archiving Docs reports from the terminal.
  • Developers automating Calendar events and email handling.