Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 88
  • 8.6k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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/gog

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install gog in Claude Code

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

A

No 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 →

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.

Add to stack

Loading.