gog
Skill by openclaw
gog is a CLI for Google Workspace automation. Assistants use it when built-in Google connectors lack an operation or when shell scripts need stable JSON output. It covers Gmail, Calendar, Drive, Docs, Sheets and Contacts for agents and developers who need scoped reads and writes.
Install gog
Built from the published package, never by AI.
git clone --depth 1 https://github.com/openclaw/gogcli /tmp/gogcli && mkdir -p ~/.claude/skills && cp -r /tmp/gogcli/.agents/skills/gog ~/.claude/skills/gogRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/openclaw/gogcli /tmp/gogcli && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/gogcli/.agents/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
The gog skill tells an AI assistant how to use the gog command line tool with Google Workspace. The assistant uses it when built-in Google connectors lack an operation, when shell automation needs stable JSON, or when it needs to inspect local Google auth state. The guidance covers JSON output with --json and --wrap-untrusted, explicit account selection, and schema output for command syntax and exit codes.
The skill sets safety rules for reads and writes. Agents should use --readonly for tasks that must not change Google data, --dry-run before writes where supported, and --enable-commands or --disable-commands as runtime guards. Destructive commands require --force. The skill also covers OAuth reauthorization and service environment checks. It is aimed at agent builders and shared agent environments that work with Google accounts.
Written from the project's SKILL.md and checked against it.
What it can do
- Gmail search and readSearches Gmail and reads messages and threads, with optional content sanitizing.
- Calendar eventsLists calendar events, for example for today.
- Drive listing and uploadLists Drive files and uploads files into a folder.
- Docs read and writeReads documents, lists tabs, and writes or updates content, including markdown.
- Sheets read and updateReads ranges and updates values, including batch updates from JSON.
- Contacts listLists Google contacts with a result limit.
- Gmail repliesReplies and reply-all to messages, keeping the subject and quoting the original by default.
- Gmail trashMoves messages to trash instead of permanently deleting them.
- Auth inspectionChecks local Google account auth state and service lists with auth list and auth doctor.
What you need
- The gog CLI installed on the host
- A Google account for OAuth access
- A browser for human OAuth consent
- A file keyring password for headless or service setups, if the file backend is used
Try asking
- Search my Gmail for messages from the last 3 days and summarize them.
- List today's calendar events for user@example.com in JSON.
- Update cell A1 in my spreadsheet with the value hello, after a dry run.
Good to know
- OAuth setup is partly interactive, and a human normally completes browser consent.
- The all-user service set excludes Google Ads, which needs a separate request.
- Service accounts are Workspace-only and do not cover consumer @gmail.com OAuth.
- gmail batch delete permanently deletes messages and needs the broader mail.google.com scope.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/gog/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md12 KB -
agents/openai.yaml164 B
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
Is gog safe to use with an AI assistant?
The skill recommends --readonly for read-only tasks, --dry-run before writes, command guards, and --gmail-no-send unless sending mail is the task. Destructive commands require --force.
Why does the skill recommend --json and --wrap-untrusted?
The source says these flags give agents stable JSON to parse and wrap Google content as untrusted. Human hints and progress are sent to stderr so stdout stays data.
Does gog need a browser?
Yes, for OAuth consent. The source says a human normally completes browser consent, though an agent can drive a signed-in browser through the reauth flow.
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 88 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.
