google-workspace

Automate Google Workspace tasks across Gmail, Calendar, Drive, Contacts, Sheets, and Docs via a Python CLI.

14|2|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/gquthier/CLAWG --skill google-workspace-gquthier
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: google-workspace
Source: https://github.com/gquthier/CLAWG/tree/main/skills/productivity/google-workspace
Command: npx skills add https://github.com/gquthier/CLAWG --skill google-workspace-gquthier

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires google-api-python-client, google-auth-oauthlib, google-auth-httplib2, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Automates cross-service Google Workspace tasks from CLAWG by providing a Python-based API wrapper with OAuth2 authentication.

Core Features & Use Cases

  • Unified access to Gmail, Calendar, Drive, Contacts, Sheets, and Docs via a single Python CLI.
  • Non-interactive setup flow with token refresh to keep services available in long-running agents and headless environments.
  • Real-world use: fetch emails, list calendar events, read/write sheets, and manage docs from within CLAWG workflows.

Quick Start

Run setup.py to authenticate with Google, then run scripts/google_api.py to interact with Gmail, Calendar, Drive, Contacts, Sheets, and Docs from CLAWG.

Frequently Asked Questions about google-workspace

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Google Workspace tasks like Gmail and Calendar in a headless environment?▼

Automate Google Workspace tasks by using a Python-based API wrapper with OAuth2 authentication, enabling non-interactive setup and token refresh for headless environments. It provides unified CLI access to Gmail, Calendar, Drive, Contacts, Sheets, and Docs.

What do I need to set up OAuth2 authentication for Google Workspace automation?▼

Setting up OAuth2 authentication requires storing your client secret at a specific path and running a setup script to generate a token file. The process also requires installing Google API Python client dependencies to enable cross-service automation.

Can I manage Google Sheets and Docs from a single command line interface?▼

Yes, you can manage Google Sheets and Docs from a single command line interface. The skill provides a unified Python CLI that covers reading and writing sheets, managing docs, fetching emails, and listing calendar events across Google Workspace.

How does token refresh work for long-running Google Workspace automation agents?▼

Token refresh for long-running Google Workspace automation agents works through a non-interactive flow that keeps services available without manual re-authentication. The Python API wrapper automatically manages the stored token file to maintain continuous headless access.

Does this Google Workspace automation approach work across different platforms?▼

Yes, this Google Workspace automation approach works across different platforms. By providing a Python-based API wrapper with a unified CLI, it enables cross-platform headless automation and workflow integration for Gmail, Calendar, and Drive.