Skip to content
Skillpedia
Automations260k Β· #607

google-workspace

What it does

This skill connects your AI to your Google account, so it can read and manage Gmail, Calendar, Drive, Contacts, Docs and Sheets. It is for people who run their work and life through Google services.

When to use it

  • βœ“When you ask your AI to check or manage your Gmail, Calendar or Drive.
  • βœ“When you want a daily brief of your calendar and emails that need attention.
  • βœ“When you want to create or change a Google Doc or Sheet.

Skill link

https://github.com/NousResearch/hermes-agent/blob/main/skills/productivity/google-workspace/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/NousResearch/hermes-agent/blob/main/skills/productivity/google-workspace/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œCheck my calendar for tomorrow and tell me which emails from clients need a reply today.”

5 new skills a week. 1 minute to read.

How it works

The skill uses a one-time Google sign-in approval and a command line wrapper. It runs the Google tools for each request and returns the results in a structured format.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Google Workspace

Gmail, Calendar, Drive, Contacts, Sheets, and Docs β€” through Hermes-managed OAuth and a thin CLI wrapper. When gws is installed, the skill uses it as the execution backend for broader Google Workspace coverage; otherwise it falls back to the bundled Python client implementation.

References

  • references/gmail-search-syntax.md β€” Gmail search operators (is:unread, from:, newer_than:, etc.)
  • references/daily-brief.md β€” daily/morning brief procedure: schedule + conflicts + meeting prep + urgent mail from Gmail and Calendar. Load it when the user asks for a morning brief, meeting preparation, or "what's on my calendar and what email needs attention."

Scripts

  • scripts/setup.py β€” OAuth2 setup (run once to authorize)
  • scripts/google_api.py β€” compatibility wrapper CLI. It prefers gws for operations when available, while preserving Hermes' existing JSON output contract.

First-Time Setup

The setup is fully non-interactive β€” you drive it step by step so it works on CLI, Telegram, Discord, or any platform.

Run the setup script with Python from the Hermes environment, not an unrelated system Python. --install-deps syncs Hermes' declared Google extra through PM; after syncing, restart Hermes and rerun the OAuth command. If Hermes is not importable, use hermes setup first rather than installing packages with pip.

Define a shorthand first:

GSETUP="python ${HERMES_HOME:-$HOME/.hermes}/skills/productivity/google-workspace/scripts/setup.py"

Step 0: Check if already set up

$GSETUP --check

If it prints AUTHENTICATED, skip to Usage β€” setup is already done.

Step 1: Triage β€” ask the user what they need

Before starting OAuth setup, ask the user TWO questions:

Question 1: "What Google services do you need? Just email, or also Calendar/Drive/Sheets/Docs?"

  • Email only β†’ They don't need this skill at all. Use the himalaya skill instead β€” it works with a Gmail App Password (Settings β†’ Security β†’ App Passwords) and takes 2 minutes to set up. No Google Cloud project needed. Load the himalaya skill and follow its setup instructions.

  • Email + Calendar β†’ Continue with this skill, but use --services email,calendar during auth so the consent screen only asks for the scopes they actually need.

  • Calendar/Drive/Sheets/Docs only β†’ Continue with this skill and use a narrower --services set like calendar,drive,sheets,docs.

  • Full Workspace access β†’ Continue with this skill and use the default all service set.

Question 2: "Does your Google account use Advanced Protection (hardware security keys required to sign in)? If you're not sure, you probably don't β€” it's something you would have explicitly enrolled in."

  • No / Not sure β†’ Normal setup. Continue below.
  • Yes β†’ Their Workspace admin must add the OAuth client ID to the org's allowed apps list before Step 4 will work. Let them know upfront.

Step 2: Create OAuth credentials (one-time, ~5 minutes)

Tell the user:

You need a Google Cloud OAuth client. This is a one-time setup:

  1. Create or select a project: https://console.cloud.google.com/projectselector2/home/dashboard
  2. Enable the required APIs from the API Library: https://console.cloud.google.com/apis/library Enable: Gmail API, Google Calendar API, Google Drive API, Google Sheets API, Google Docs API, People API
  3. Create the OAuth client here: https://console.cloud.google.com/apis/credentials Credentials β†’ Create Credentials β†’ OAuth 2.0 Client ID
  4. Application type: "Desktop app" β†’ Create
  5. If the app is still in Testing, add the user's Google account as a test user here: https://console.cloud.google.com/auth/audience Audience β†’ Test users β†’ Add users
  6. Download the JSON file and tell me the file path

Important Hermes CLI note: if the file path starts with /, do NOT send only the bare path as its own message in the CLI, because it can be mistaken for a slash command. Send it in a sentence instead, like: The JSON file path is: ~/Downloads/client_secret_....json

Once they provide the path:

$GSETUP --client-secret /path/to/client_secret.json

If they paste the raw client ID / client secret values instead of a file path, write a valid Desktop OAuth JSON file for them yourself, save it somewhere explicit (for example ~/Downloads/hermes-google-client-secret.json), then run --client-secret against that file.

FAQ

How do I connect my account?

The skill says to run a setup script once, approve access in the browser and then the AI can use the services.

Does it need extra packages?

The skill says to sync the Google extra through the Hermes package manager, not through a plain pip install.

Does it help with search?

Yes. The skill includes Gmail search operators such as is:unread and newer_than.

Details

Original description by the author

Gmail, Calendar, Drive, Docs, Sheets via gws CLI or Python.

repo: NousResearch/hermes-agent

Popularity

GitHub stars
260k
Ranking position
#607
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills