gog-cli
Use this skill whenever the user wants to operate Google Workspace from the command line with gog/gogcli, including Gmail, Calendar, Drive, Docs, Sheets…
Skill by intellectronica
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/intellectronica-gog-cli
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: spreadsheets, presentations, security, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/gog-cli
What's inside
- Skill name
gog-cli- Description
- Use this skill whenever the user wants to operate Google Workspace from the command line with gog/gogcli, including Gmail, Calendar, Drive, Docs, Sheets, Slides, Forms, Apps Script, Chat, Classroom, Contacts, Tasks, People, Groups, Admin, Keep, auth, configuration, scripting, or agent-safe Google automation. Prefer this skill for Google account/file/mail/calendar work when the user mentions gog, gogcli, Google CLI, Gmail search/send, Calendar events, Drive files, Docs/Sheets/Slides editing, Forms, Apps Script, Workspace admin, or command-line Google automation.
- License
- CC0-1.0
- Instructions
- 177 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: "gog-cli" does not match folder "skills"
Files (9)
- SKILL.md
- authentication.md · references/
- calendar.md · references/
- command-reference.md · references/
- configuration.md · references/
- drive-docs.md · references/
- gmail.md · references/
- other-services.md · references/
- sedmat.md · references/
SKILL.md (first lines)
# gogcli (gog) `gog` is a fast, script-friendly CLI for Google services. It is JSON-first, supports multiple accounts/OAuth clients, and has explicit guardrails for agent and CI usage. Authoritative upstream: https://github.com/steipete/gogcli This skill was refreshed against upstream `gog` v0.13.0 (2026-04-20). When exact syntax matters, run `gog <command> --help` or `gog schema --json`; the command surface moves quickly, rather inconveniently for anyone fond of stale notes. ## Operating rules - Prefer `gog --json ... | jq ...` for inspection and scripting. - Use `--plain` only when stable TSV is more convenient than JSON. - Use `--dry-run` for supported mutating operations when preparing a change or when user intent is ambiguous. - Use `--no-input` in automation so commands fail instead of prompting. - Use `--force` only when the user asked for the destructive/public/send/admin operation or after you have clearly explained the effect. - Do not repair OAuth, consent, keyring, or Workspace delegation problems silently. Show the exact command the user should run. - Do not export tokens, print secrets, open public shares, add delegates/forwarding, send mail, suspend users, or permanently delete data unless the user explicitly requested that action. - For agent runs that must not send mail, add `--gmail-no-send`, set `GOG_GMAIL_NO_SEND=1`, or configure `gog config no-send set <account>`. ## Install and auth ```bash brew install gogcli gog auth credentials set ~/Downloads/client_secret_....json gog auth add you@example.com --services gmail,calendar,drive gog auth list --check ``` Notes: - Homebrew now uses `brew install gogcli`; old tap examples are obsolete. - `gog auth add` defaults to `--services user`. Request the services needed for the task. - `--services all` is accepted only as a backwards-compatible alias for `user`; do not use it when you need every API. - Use `--readonly`, `--drive-scope readonly|file|full`, and `--gmail-scope readonly|full` for least privilege. - Keep and Admin require Workspace service-account/domain-wide delegation. Google Chat, Groups, directory, and Classroom also have Workspace restrictions. - For headless/CI, consider `--manual`, `--remote`, `--access-token`, or `GOG_AUTH_MODE=adc`. Read `references/authentication.md` for full auth patterns. ## Global flags ```bash --account, -a <email|alias|auto> # account selection --client <name> # named OAuth client/token bucket --access-token <token> # direct short-lived token; also GOG_ACCESS_TOKEN --json, -j # machine-readable JSON --plain, -p # stable TSV --results-only # JSON primary result only --select <fields> # best-effort JSON projection --dry-run, -n # preview supported writes --force, -y # skip confirmations --no-input # never prompt --enable-commands <csv> # allowlist top-level or dotted commands --disable-commands <csv> # denylist top-level or dotted commands --gmail-no-send # block Gmail send operations --verbose, -v # debug logging ``` Useful command aliases: ```bash gog send ... # alias for gog gmail send gog ls # alias for gog drive ls gog search "budget" # alias for gog drive search gog download <fileId> # alias for gog drive download gog upload ./file.pdf # alias for gog drive upload gog me # alias for gog people me gog status # alias for gog auth status gog open <id-or-url> # best-effort Google web URL, offline ``` ## High-value workflows ### Account selection ```bash gog auth alias set work you@company.com gog --account work gmail search 'is:unread newer_than:2d' GOG_ACCOUNT=work gog calendar events primary --today gog --client work auth credentials set ~/Downloads/work-client.json gog --client work auth add you@company.com --services gmail,calendar ``` ### Gmail ```bash gog --json gmail search 'is:unread newer_than:7d' | jq -r '.threads[].id' gog gmail messages search 'from:alice@example.com has:attachment' --include-body gog gmail messages search 'subject:report newer_than:30d' --full gog gmail thread get <threadId> --download --out-dir ./attachments gog gmail labels modify <threadId> --add Project --remove INBOX gog gmail messages modify <messageId> --add STARRED gog gmail send --to user@example.com --subject "Hello" --body-file ./body.txt gog gmail forward <messageId> --to user@example.com --note "FYI" ``` For forwarding, autoreply, watch/Pub/Sub, filters, delegates, send-as, label colours, batch operations, and tracking, read `references/gmail.md`. ### Calendar ```bash gog calendar calendars gog calendar events primary --today --weekday gog calendar events --all --from "2026-04-25T00:00:00+02:00" --to "2026-04-26T00:00:00+02:00" gog calendar freebusy --cal primary --from "2026-04-25T09:00:00+02:00" --to "2026-04-25T17:00:00+02:00" gog calendar create primary --summary "Planning" --from "2026-04-25T14:00:00+02:00" --to "2026-04-25T14:30:00+02:00" --attendees "alice@example.com,bob@example.com" --with-meet gog calendar respond primary <eventId> --status accepted --send-updates all ``` Use RFC3339 with timezone offsets for generated datetimes. Read `references/calendar.md` for aliases, subscriptions, secondary calendars, extended properties, Focus Time, OOO, working locations, team calendars, and conflict detection. ### Drive, Docs, Sheets, Slides, Forms, Apps Script ```bash gog drive search "invoice filetype:pdf" --max 20 gog drive upload ./report.md --convert-to doc --parent <folderId> gog drive upload ./deck.pdf --replace <fileId> --name "Board Deck.pdf" gog drive share <fileId> --to user --email editor@example.com --role commenter gog docs write <docId> --file ./brief.md --replace --markdown
From intellectronica/agent-skills, CC0-1.0.
More from intellectronica/agent-skills
- 0.620score
beautiful-mermaid
intellectronica
Render Mermaid diagrams as SVG and PNG using the Beautiful Mermaid library.
SkillDFreshness: D★ 297Claude Code +9 - 0.620score
notion-api
intellectronica
This skill provides comprehensive instructions for interacting with the Notion API via REST calls.
SkillDFreshness: D★ 297Claude Code +9 - 0.620score
todoist-api
intellectronica
This skill provides instructions for interacting with Todoist using the td CLI tool.
SkillDFreshness: D★ 297Claude Code +9 - 0.536score
copilot-sdk
intellectronica
This skill helps with GitHub Copilot SDK work across Node.js/TypeScript, Python, Go, .NET, and Java.
SkillDFreshness: D★ 297Claude Code +9 - 0.534score
nano-banana-pro
intellectronica
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API.
SkillDFreshness: D★ 297Claude Code +9 - 0.534score
mgrep-code-search
intellectronica
Semantic code search using mgrep for efficient codebase exploration.
SkillDFreshness: D★ 297Claude Code +9 - 0.534score
nano-banana-2
intellectronica
Generate and edit images using Google's Nano Banana 2 (Gemini 3.1 Flash Image Preview) API.
SkillDFreshness: D★ 297Claude Code +9 - 0.534score
ray-so-code-snippet
intellectronica
Generate beautiful code snippet images using ray.so.
SkillDFreshness: D★ 297Claude Code +9 - 0.530score
raindrop-api
intellectronica
This skill provides comprehensive instructions for interacting with the Raindrop.io bookmarks service via its REST API using curl and jq.
SkillDFreshness: D★ 297Claude Code +9 - 0.528score
ultrathink
intellectronica
Display colorful ANSI art of the word "ultrathink".
SkillDFreshness: D★ 297Claude Code +9 - 0.505score
monologue-notes-api
intellectronica
Use this skill when the user wants to read or search their Monologue notes through the Monologue Notes REST API.
SkillDFreshness: D★ 297Claude Code +9
Signals
- Stars
- 297
- Forks
- 27
- Open issues
- 1
- Last commit (this folder)
- Apr 25, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- CC0-1.0
- Repository
- github.com/intellectronica/agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from intellectronica
- 0.620score
todoist-api
intellectronica
This skill provides instructions for interacting with Todoist using the td CLI tool.
SkillDFreshness: D★ 297Claude Code +9 - 0.620score
notion-api
intellectronica
This skill provides comprehensive instructions for interacting with the Notion API via REST calls.
SkillDFreshness: D★ 297Claude Code +9 - 0.620score
beautiful-mermaid
intellectronica
Render Mermaid diagrams as SVG and PNG using the Beautiful Mermaid library.
SkillDFreshness: D★ 297Claude Code +9 - 0.536score
copilot-sdk
intellectronica
This skill helps with GitHub Copilot SDK work across Node.js/TypeScript, Python, Go, .NET, and Java.
SkillDFreshness: D★ 297Claude Code +9 - 0.534score
nano-banana-pro
intellectronica
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API.
SkillDFreshness: D★ 297Claude Code +9 - 0.534score
nano-banana-2
intellectronica
Generate and edit images using Google's Nano Banana 2 (Gemini 3.1 Flash Image Preview) API.
SkillDFreshness: D★ 297Claude Code +9
Cite this page
gog-cli skill. Agent Mart. https://agentmart.dev/skills/intellectronica-gog-cli (last updated 2026-10-24)