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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
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 prefersgwsfor 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
himalayaskill 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,calendarduring 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
--servicesset likecalendar,drive,sheets,docs.Full Workspace access β Continue with this skill and use the default
allservice 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:
- Create or select a project: https://console.cloud.google.com/projectselector2/home/dashboard
- 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
- Create the OAuth client here: https://console.cloud.google.com/apis/credentials Credentials β Create Credentials β OAuth 2.0 Client ID
- Application type: "Desktop app" β Create
- 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
- 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.
Popularity
- GitHub stars
- 260k
- Ranking position
- #607
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
agent-merge-conflict-arbiter
260kSettles a git merge conflict between two agents' branches as a neutral third party, producing one merged result for the repo.
antigravity-cli
260kGuides you through installing, updating, and troubleshooting the Antigravity command line tool, including its plugins, sign-in, and sandbox.
blackbox
260kLets your agent hand a coding task to the Blackbox AI command line tool, which runs several AI models and picks the best result.
dynamic-workflow
260kTeaches your agent to run large batches of similar work as a saved script, so only verified results return to the main conversation.
Similar skills
knowledge-automation
394kHelps your agent set up a recurring job that brings new content into your Knowledge vault on a schedule, then checks that the job runs.
knowledge-source-ingest
394kHelps your agent keep a Knowledge vault current with new items from chat channels, feeds, or mailboxes, without re-adding what it already has.
benchmark
280kHelps your agent measure code speed and performance. It's useful for ensuring things are fast and finding slowness issues.