google-workspace

Automates Google Workspace access via Hermes with OAuth2 and automatic token refresh.

1|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/cryptopafi/nexusos-skills --skill google-workspace-cryptopafi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: google-workspace
Source: https://github.com/cryptopafi/nexusos-skills/tree/main/productivity/google-workspace
Command: npx skills add https://github.com/cryptopafi/nexusos-skills --skill google-workspace-cryptopafi

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?

Gmail, Calendar, Drive, Contacts, Sheets, and Docs — Hermes agents integrate Google Workspace services via the gws CLI with automatic OAuth token refresh, simplifying automation and cross-service workflows.

Core Features & Use Cases

  • OAuth2 with automatic token refresh via bridge script that keeps tokens valid for Hermes agent integrations.
  • Backward-compatible Python wrapper (google_api.py) that delegates to gws and preserves existing CLI usage.
  • Direct gws access for advanced operations and per-service commands (gmail, calendar, drive, etc.).

Quick Start

Run the setup script to authenticate with Google and generate an access token, then use the provided wrappers to manage Gmail, Calendar, Drive, Contacts, Sheets, and Docs.

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 workflows across Gmail, Calendar, and Drive?

Automating Google Workspace workflows is handled through a gws-based CLI and Python wrapper that orchestrate Gmail, Calendar, Drive, Sheets, Docs, and Contacts. The integration uses OAuth2 with automatic token refresh to maintain continuous access for Hermes agents.

How does token refresh work with OAuth2 for Google Workspace integrations?

OAuth2 token refresh relies on a bridge script that keeps tokens valid automatically for Hermes agent integrations. This mechanism prevents authentication lapses during multi-service orchestration and includes safety checks for missing credentials and scopes.

Can I use the gws CLI directly for advanced Google Workspace operations?

Direct gws CLI access supports advanced operations and per-service commands for Gmail, Calendar, Drive, and other Google Workspace services. A backward-compatible Python wrapper also delegates to gws while preserving existing CLI usage patterns.

Do I need google-api-python-client to manage Google Workspace OAuth tokens?

Managing Google Workspace OAuth tokens requires google-api-python-client along with google-auth-oauthlib and google-auth-httplib2. Running the setup script authenticates with Google and generates an access token to initiate cross-service workflows.

What happens if my Google Workspace integration is missing required OAuth scopes?

Missing OAuth scopes trigger built-in safety checks that prevent the Google Workspace integration from executing unauthorized operations. The bridge script validates credentials and scopes before attempting token refresh or multi-service orchestration.

What is the best way to set up Google Workspace access for Hermes agents?

Setting up Google Workspace access for Hermes agents involves running a setup script to authenticate with Google and generate an access token. Once authenticated, provided wrappers manage Gmail, Calendar, Drive, Contacts, Sheets, and Docs workflows via the gws CLI.