gog
Skill by openclaw
gog gives an AI assistant access to Gmail, Calendar, Drive, Contacts, Sheets, and Docs through the gog command line tool. It is for users who want their assistant to search, send, and manage Google Workspace data after OAuth setup.
Install gog
Built from the published package, never by AI.
git clone --depth 1 https://github.com/openclaw/openclaw /tmp/openclaw && mkdir -p ~/.claude/skills && cp -r /tmp/openclaw/skills/gog ~/.claude/skills/gogRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/openclaw/openclaw /tmp/openclaw && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/openclaw/skills/gog ~/.gemini/antigravity-cli/skills/gogAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
gog is an agent skill that teaches an AI assistant how to use the gog command line tool for Google Workspace. It covers Gmail, Calendar, Drive, Contacts, Sheets, and Docs. The skill lists common commands for searching and sending email, creating drafts and replies, managing calendar events and colors, searching Drive, listing contacts, and reading or writing spreadsheets and documents. Setup requires OAuth credentials and an authorized account, and the skill includes steps for remote or headless Gateway hosts.
The skill tells the assistant to use the already authorized account intended for the task and to resolve the target before sending or writing. It says never to ask for passwords, client secrets, or refresh tokens in chat. It is aimed at people who run gog on a Gateway host and want scripted, non-interactive use with JSON output and the --no-input flag. The source gives Homebrew as the install method, using the gogcli formula.
Written from the project's SKILL.md and checked against it.
What it can do
- Gmail searchSearches threads with `gog gmail search` and individual messages with `gog gmail messages search`.
- Gmail sendSends plain text, multi-line, stdin, or HTML email, and supports replies to a message ID.
- Gmail draftsCreates drafts and sends existing drafts by draft ID.
- Calendar eventsLists, creates, and updates events, with optional event colors.
- Calendar colorsShows the available event color IDs, 1 to 11, with `gog calendar colors`.
- Drive searchSearches Google Drive files with `gog drive search`.
- Contacts listLists Google contacts with `gog contacts list`.
- Sheets read and writeGets, updates, appends, clears, and reads metadata for spreadsheet ranges.
- Docs exportExports a document to a file or prints it with `gog docs cat`.
What you need
- Google OAuth client secret file for gog auth credentials
- A Google account to authorize for the needed services
- gog command line tool, installable with Homebrew (gogcli formula)
Try asking
- Search my Gmail for unread messages from the last 7 days
- Create a calendar event called Team sync next Tuesday at 10am
- Append a row with today's totals to my expenses sheet
Good to know
- In-place Docs edits require a Docs API client, which is not part of gog.
- gog auth list --check exit status does not prove every stored token is valid.
- --body does not unescape \n, so use --body-file for multi-paragraph messages.
- gog gmail search returns one row per thread, not one row per email.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/gog/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB
Alternatives to gog
All alternatives →Ask-user-question lets an AI assistant ask the user questions through a modal in the UI. It suits tasks that need clarification, preferences, or approval before the assistant proceeds.
Beads is a Dolt-backed issue tracker that gives AI assistants persistent task memory. It tracks dependencies and notes across sessions and conversation compaction. It is for developers and agents managing multi-session work.
Manages the user's Google Tasks from an AI assistant. It reads task lists and tasks, adds, edits, completes and organizes them, and clears finished items from view. Built for people who keep their to-dos in Google Tasks.
Rebuilds your recent working context before you start or resume work. It reads your chat history and the shared record, then returns a short current-state brief for developers.
Build Agent turns a task a business owner repeats by hand into a named, reusable skill. It can be triggered by name or put on a schedule, and it adds approval checkpoints at consequential steps.
Lark-approval is a Feishu (Lark) skill for querying, handling and starting native approval workflows. It is for users who need to work through approval todos, review submitted approvals, or search and submit approval requests.
Compare with ask-user-question, beads or google_tasks
gog: common questions
Does gog need OAuth setup before it works?
Yes. The source says gog requires OAuth setup, which means adding credentials once and authorizing an account for the services you need.
Can the assistant edit Google Docs in place with gog?
Not with gog alone. The source says in-place edits require a Docs API client, while gog supports export, cat, and copy.
How are passwords and tokens handled?
The skill says never to ask for passwords, client secrets, or refresh tokens in chat, and callback URLs must never enter chat or agent tool input.
How do I install gog?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is gog free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is gog safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to gog?
Similar skills: ask-user-question, beads, google_tasks, recall.
