gog-cli

intellectronica/agent-skills · updated May 24, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/intellectronica/agent-skills --skill gog-cli
0 commentsdiscussion
summary

A fast, script-friendly CLI for Google Workspace services with JSON-first output and multi-account support.

skill.md

gogcli (gog) CLI

A fast, script-friendly CLI for Google Workspace services with JSON-first output and multi-account support.

Repository: https://github.com/steipete/gogcli

Prerequisites

This skill assumes gog is installed and authorised. If commands fail with authentication errors, inform the user they need to:

  1. Install gog: brew install steipete/tap/gogcli
  2. Store OAuth credentials: gog auth credentials <path-to-credentials.json>
  3. Add account: gog auth add [email protected] --services all

Do not attempt to resolve authentication issues automatically. Provide the user with the relevant command and let them handle it.

Supported Services

Gmail, Calendar, Drive, Docs, Sheets, Slides, Chat (Workspace), Classroom, Contacts, Tasks, People, Groups (Workspace), Keep (Workspace, service account only).

Quick Reference

Global Flags

--account <email>    # Select account
--client <name>      # Select OAuth client
--json               # JSON output
--plain              # TSV output (for scripting)
--force              # Skip confirmations
--no-input           # Fail instead of prompting

Common Patterns

gog --account [email protected] gmail search "is:unread"  # Use specific account
gog gmail search "is:unread" --json | jq '.threads[].id' # JSON for parsing
gog gmail search "is:unread" --plain | cut -f1           # Plain for shell
gog gmail search "is:unread" --max 10 --page <token>     # Pagination

Gmail

Search and Read

gog gmail search "is:unread from:[email protected] newer_than:7d"
gog gmail messages search "is:unread" --include-body
gog gmail thread get <threadId>
gog gmail get <messageId> --format full

Send Email

# Basic send
gog gmail send --to [email protected] --subject "Hello" --body "Message"

# With HTML and attachments
gog gmail send --to [email protected] --subject "Report" \
  --body-html "<h1>Report</h1>" --attach ~/report.pdf

# Reply
gog gmail send --to [email protected] --subject "Re: Original" \
  --body "Reply" --reply-to-message-id <messageId>

Labels

gog gmail labels list
gog gmail labels create "Project/Subproject"
gog gmail thread modify <threadId> --add "Label" --remove INBOX

For full Gmail reference including drafts, filters, vacation, delegates, tracking, and watch, see references/gmail.md.

Calendar

Events

gog calendar events primary --from "2024-12-01" --to "2024-12-31" --weekday
gog calendar events primary --query "meeting"

# Create event
gog calendar create primary --summary "Meeting" \
  --from "2024-12-20T14:00:00" --to "2024-12-20T15:00:00"

# With attendees and recurrence
gog calendar create primary --summary "Weekly Standup" \
  --from "2024-12-20T09:00:00" --to "2024-12-20T09:30:00" \
  --attendees "[email protected],[email protected]" \
  --rrule "FREQ=WEEKLY;BYDAY=MO,WE,FR"

# Respond
gog calendar respond primary <eventId> --status accepted

Special Event Types

gog calendar focus-time create primary --from DT --to DT --auto-decline
gog calendar ooo create primary --from DT --to DT --decline-message "Away"
gog calendar working-location create primary --from DT --to DT --location home

For full Calendar reference, see references/calendar.md.

Drive, Docs, Sheets, Slides

Drive

gog drive ls --parent <folderId>
gog drive search "quarterly report"
gog drive download <fileId> --out ~/Downloads/
gog drive upload ~/report.pdf --parent <folderId>
gog drive mkdir "New Folder" --parent <folderId>
gog drive share <fileId> --email [email protected] --role writer

Sheets

gog sheets read <spreadsheetId> "Sheet1!A1:D10"
gog sheets write <spreadsheetId> "Sheet1!A1:B2" --values '[["Name","Age"],["Alice",30]]'
gog sheets append <spreadsheetId> "Sheet1!A:B" --values '[["Bob",25]]'
gog sheets format <spreadsheetId> "Sheet1!A1:D1" --bold --bg-color "#FFCC00"

Export

gog docs export <documentId> --format pdf --out ~/doc.pdf
gog slides export <presentationId> --format pptx --out ~/slides.pptx

For full Drive/Docs/Sheets/Slides reference, see references/drive-docs.md.

Tasks

gog tasks lists
gog tasks list <tasklistId>
gog tasks add <tasklistId> --title "Buy groceries" --due "2024-12-20"
gog tasks add <tasklistId> --title "Weekly review" --due "2024-12-20" --repeat weekly
gog tasks done <tasklistId> <taskId>

Contacts

gog contacts search "john"
gog contacts create --given "John" --family "Doe" --email "[email protected]"
gog contacts directory search "smith"  # Workspace

Classroom

gog classroom courses --state ACTIVE
gog classroom students <courseId>
gog classroom coursework create <courseId> --title "Homework" --type ASSIGNMENT --due "2024-12-31T23:59:59Z"
gog classroom submissions grade <courseId> <courseworkId> <submissionId> --grade 95

For Classroom, Chat, Contacts, Tasks, People, Groups, Keep, see references/other-services.md.

Configuration

Config Locations

  • macOS: ~/Library/Application Support/gogcli/config.json
  • Linux: ~/.config/gogcli/config.json
  • Windows: %AppData%\gogcli\config.json

Settings

gog config set default_timezone America/New_York
gog config set default_account [email protected]
gog config list

Environment Variables

GOG_ACCOUNT=[email protected]      # Default account
GOG_CLIENT=work                 # OAuth client
GOG_JSON=1                      # Default JSON output
GOG_PLAIN=1                     # Default plain output
GOG_TIMEZONE=America/New_York   # Display timezone
GOG_ENABLE_COMMANDS=calendar,tasks  # Command allowlist

For full configuration, see references/configuration.md.

Multi-Account Usage

gog --account [email protected] gmail search "is:unread"
gog auth alias set work [email protected]
gog --account work gmail search "is:unread"
gog auth list --check

For authentication including service accounts, see references/authentication.md.

Scripting

# JSON processing
gog gmail search "is:unread" --json | jq -r '.threads[].id'

# Batch operations
gog gmail search "older_than:30d" --json | \
  jq -r '.threads[].id' | \
  xargs -I {} gog gmail thread modify {} --add Archive --remove INBOX

# Non-interactive
gog gmail send --to [email protected] --subject "Test" --body "Hi" --force

Troubleshooting

If commands fail, inform the user of the likely cause:

Error Cause Solution
no credentials OAuth not configured gog auth credentials <file>
token expired Auth invalid gog auth add <email> --force-consent
insufficient scope Missing permissions gog auth add <email> --services <services>
command not found Not installed brew install steipete/tap/gogcli

Status checks:

gog auth list --check
gog auth status

Reference Files

  • references/command-reference.md - Complete command specification
  • references/authentication.md - Auth, credentials, multi-account
  • references/configuration.md - Config and environment variables
  • references/gmail.md - Gmail operations
  • references/calendar.md - Calendar operations
  • references/drive-docs.md - Drive, Docs, Sheets, Slides
  • references/other-services.md - Classroom, Chat, Contacts, Tasks, People, Groups, Keep
how to use gog-cli

How to use gog-cli on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add gog-cli
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/intellectronica/agent-skills --skill gog-cli

The skills CLI fetches gog-cli from GitHub repository intellectronica/agent-skills and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/gog-cli

Reload or restart Cursor to activate gog-cli. Access the skill through slash commands (e.g., /gog-cli) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

Task Automation & Efficiency

Automate repetitive workflows and reduce manual effort

Example

Generate reports, summarize documents, draft communications

Save 3-5 hours per week on routine tasks

Knowledge Enhancement

Learn new skills, understand complex topics, get expert guidance

Example

Explain concepts, provide examples, suggest learning resources

Accelerate learning and skill development by 2x

Quality Improvement

Enhance output quality through reviews, suggestions, and refinements

Example

Review drafts, suggest improvements, catch errors

Improve work quality by 30-40% with less effort

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client with skill support
  • Clear understanding of task or problem to solve
  • Willingness to iterate and refine outputs

Time Estimate

15-45 minutes depending on use case complexity

Installation Steps

  1. 1.Install skill using provided installation command
  2. 2.Test with simple use case relevant to your work
  3. 3.Evaluate output quality and relevance
  4. 4.Iterate on prompts to improve results
  5. 5.Integrate into regular workflow if valuable

Common Pitfalls

  • Expecting perfect results without iteration
  • Not providing enough context in prompts
  • Using skill for tasks outside its intended scope
  • Accepting outputs without review and validation

Best Practices

✓ Do

  • +Start with clear, specific prompts
  • +Provide relevant context and constraints
  • +Review and refine all outputs before using
  • +Iterate to improve output quality
  • +Document successful prompt patterns

✗ Don't

  • Don't use without understanding skill limitations
  • Don't skip validation of outputs
  • Don't share sensitive information in prompts
  • Don't expect skill to replace human judgment

💡 Pro Tips

  • Be specific about desired format and style
  • Ask for multiple options to choose from
  • Request explanations to understand reasoning
  • Combine AI efficiency with human expertise

When to Use This

✓ Use When

Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.

✗ Avoid When

Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.

Learning Path

  1. 1Familiarize yourself with skill capabilities and limitations
  2. 2Start with low-risk, non-critical tasks
  3. 3Progress to more complex and valuable use cases
  4. 4Build expertise through regular use and experimentation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.545 reviews
  • Yuki Okafor· Dec 24, 2024

    gog-cli fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Kabir Verma· Dec 12, 2024

    We added gog-cli from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Kabir Shah· Dec 8, 2024

    Registry listing for gog-cli matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Shikha Mishra· Dec 4, 2024

    I recommend gog-cli for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Yash Thakker· Nov 23, 2024

    gog-cli fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Kabir Sharma· Nov 15, 2024

    I recommend gog-cli for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Dhruvi Jain· Oct 14, 2024

    gog-cli has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • William Kapoor· Oct 6, 2024

    Solid pick for teams standardizing on skills: gog-cli is focused, and the summary matches what you get after install.

  • Kabir Li· Sep 13, 2024

    Registry listing for gog-cli matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Yuki Mensah· Sep 13, 2024

    gog-cli fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

showing 1-10 of 45

1 / 5