google-workspace

google-workspace is a skill for Claude Code from opendatahub-io/ai-helpers. It costs 107 tokens per session (3,434 once invoked), scanned A, original, Apache-2.0.

A command-line connection to Google Workspace, the set of Google services for email, calendars, documents, spreadsheets, presentations, and files.

In plain words
What is it for?
It helps fetch and query Gmail, Calendar, Docs, Sheets, Slides, and Drive data using the gws command-line tool.
Why use it?
It brings requested Workspace information into the current coding session as readable context, so you do not have to switch between services or copy content manually.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the odh-google-workspace plugin — 3 skills shipped together

Good fit It helps fetch and query Gmail, Calendar, Docs, Sheets, Slides, and Drive data using the gws command-line tool.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/opendatahub-io/ai-helpers/google-workspace
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add opendatahub-io/ai-helpers --skill google-workspace
Clone the repo
git clone --depth 1 https://github.com/opendatahub-io/ai-helpers

Made for: Claude Code.

Or install odh-google-workspace, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for google-workspace

README.md
[![agentmods](https://agentmods.dev/badge/skills/opendatahub-io/ai-helpers/google-workspace/github.svg)](https://agentmods.dev/skills/opendatahub-io/ai-helpers/google-workspace)
Your own site
<a href="https://agentmods.dev/skills/opendatahub-io/ai-helpers/google-workspace"><img src="https://agentmods.dev/badge/skills/opendatahub-io/ai-helpers/google-workspace/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for google-workspace

Your own site · 80×15
<a href="https://agentmods.dev/skills/opendatahub-io/ai-helpers/google-workspace"><img src="https://agentmods.dev/badge/skills/opendatahub-io/ai-helpers/google-workspace.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,434 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00107 $0.03434
Opus 5 $0.00053 $0.01717
Sonnet 5 $0.00021 $0.00687
Haiku 4.5 $0.00011 $0.00343

Measured 11d ago against content hash d411155a7736, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

google-workspace scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/odh-google-workspace/skills/google-workspace/SKILL.md · 376 lines

How it starts

The opening of the file, as written. The whole thing — 376 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Google Workspace

Access Google Workspace data via the gws CLI. Fetches content and presents it as markdown context inside the current session.

Prerequisites

  • gws binary must be on $PATH
  • Authenticated: run gws auth login if not already logged in

If gws is not installed, not on PATH, or authentication fails with a 401/403, read references/setup.md for the full first-time setup walkthrough.

Command Patterns

gws has two ways to call any service:

  1. Shortcut commands (prefixed with +) — concise, opinionated, cover common tasks. Prefer these when they fit.
  2. Raw API calls — full access to any Google API method via gws <service> <resource> <method> --params '<JSON>'. Use when shortcuts don't expose the parameter you need.

Try the shortcut first. Fall back to the raw API when you need filters, field selection, pagination control, or parameters the shortcut doesn't expose.

Extracting IDs from Google URLs

Many requests include a Google URL. Extract the document ID before calling gws:

Service URL pattern ID location
Docs docs.google.com/document/d/<ID>/... between /d/ and next /
Sheets docs.google.com/spreadsheets/d/<ID>/... between /d/ and next /
Slides docs.google.com/presentation/d/<ID>/... between /d/ and next /
Drive file drive.google.com/file/d/<ID>/... between /d/ and next /
Drive folder drive.google.com/drive/folders/<ID> after /folders/

Extract the ID with sed (works on both macOS and Linux):

URL="https://docs.google.com/document/d/1aBcDeFgHiJkLmNoPqRsTuVwXyZ/edit"
DOC_ID=$(echo "$URL" | sed -E 's|.*/d/([A-Za-z0-9_-]+).*|\1|')

Shell Tips

  • zsh ! expansion: Sheet ranges like Sheet1!A1 trigger history expansion in zsh. Use double quotes: --range "Sheet1!A1:D10"
  • JSON flags: Wrap --params and --json in single quotes so the shell preserves inner double quotes: --params '{"pageSize": 5}'

Read the full file on GitHub · 376 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 376 lines · 107 tokens per session scan A d411155a7736

Subscribe to this mod's changes

google-workspace is a skill published in the GitHub repository opendatahub-io/ai-helpers (37 stars, last pushed 3d ago), licensed Apache-2.0. It adds 107 tokens to every session and 3,434 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories