google-workspace

Access Gmail, Calendar, Drive, Contacts, Sheets, and Docs via command-line or Python scripts.

Updated Jun 13, 2026
One-click install
npx skills add https://github.com/srivtx/supercharger-opencode --skill google-workspace-srivtx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: google-workspace
Source: https://github.com/srivtx/supercharger-opencode/tree/main/productivity/google-workspace
Command: npx skills add https://github.com/srivtx/supercharger-opencode --skill google-workspace-srivtx

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?

This Skill simplifies accessing and managing Google Workspace services like Gmail, Calendar, Drive, Sheets, and Docs directly through a command-line interface or Python script.

Core Features & Use Cases

  • Gmail Management: Search, read, send, reply, and label emails.
  • Calendar Operations: List, create, and delete events.
  • Drive File Operations: Search, get metadata, upload, download, create folders, share, and delete files.
  • Contacts Management: List contacts.
  • Sheets Operations: Create, read, update, and append rows in spreadsheets.
  • Docs Operations: Read, create, and append text to Google Docs.
  • Use Case: Need to check and respond to emails quickly, organize your calendar, manage documents and spreadsheets, and collaborate with team members? This Skill offers a convenient way to do all of that from the command line or script.

Quick Start

Run the following command to setup OAuth2 credentials:

python /path/to/productivity/google-workspace/scripts/setup.py --client-secret /path/to/client_secret.json

After setup, use the gapi shorthand to interact with Google Workspace services:

GAPI="python /path/to/productivity/google-workspace/scripts/google_api.py"
$GAPI gmail search "is:unread"

Frequently Asked Questions about google-workspace

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

FAQPage Schema
How do I manage Gmail and Google Calendar from the command line?

You can manage Gmail and Google Calendar from the command line by using a Python script that integrates with Google Workspace APIs to search emails, send replies, and create calendar events after completing OAuth2 authentication.

Can I upload and download files from Google Drive using Python?

Yes, you can upload and download files from Google Drive using Python scripts that leverage the Google Workspace API integration to handle file operations, create folders, and manage file sharing permissions.

Do I need OAuth2 to automate Google Sheets and Docs operations?

Yes, OAuth2 authentication is required to automate Google Sheets and Docs operations, ensuring secure access to create, read, update, and append spreadsheet rows or document text via the API.

What's the best way to search unread emails and apply labels via a script?

The best way to search unread emails and apply labels via a script is using a CLI tool that interfaces with the Gmail API, allowing you to execute search queries and manage email labels programmatically.

Does this Google Workspace API integration work for corporate administrative tasks?

Yes, this Google Workspace API integration works for corporate administrative tasks by providing command-line access to manage Contacts, Calendar events, Drive files, and team documents within a corporate environment.

Why does my Python script fail to connect to Google Workspace services?

Your Python script fails to connect to Google Workspace services because the required APIs are not enabled in the Google Cloud Console or the OAuth2 credentials are not properly configured during setup.