gog Google Workspace CLI
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.
Related Skills
A one-shot coding agent built on Claude Code CLI that runs non-interactively, supports a specified workdir, and can be monitored in the foreground or background.
Preview and confirm file sorting by extension, with recursive cleanup, ignore rules, and transactional rollback.
An engineering assistant for static HTML/CSS/JS pages, design-token extraction, IE8-compatible review, and structured delivery.
An engineering workflow for requirement analysis, scenario modeling, risk planning, quality gates, testing, and knowledge capture, with lightweight, standard, and full modes.