google-workspace

google-workspace is a skill for Claude Code, Codex from pbc-os/smb-starter-kit. It costs 52 tokens per session (2,410 once invoked), scanned A, original, MIT.

A setup guide for gws, a command-line tool that lets an AI agent use Google Workspace services such as Gmail, Calendar, Drive, Sheets, Docs, Chat, and Tasks. It returns structured JSON, a machine-readable format suited to agents.

In plain words
What is it for?
Setting up agent access to read and manage email, calendars, files, spreadsheets, documents, chats, tasks, and other Google Workspace services.
Why use it?
It gives the agent one connection method for many Google services instead of separate setup instructions for each one. It also discovers Google’s available API commands when it runs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Setting up agent access to read and manage email, calendars, files, spreadsheets, documents, chats, tasks, and other Google Workspace services.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pbc-os/smb-starter-kit/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 pbc-os/smb-starter-kit --skill google-workspace
Clone the repo
git clone --depth 1 https://github.com/pbc-os/smb-starter-kit

Made for: Claude Code, Codex.

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/pbc-os/smb-starter-kit/google-workspace/github.svg)](https://agentmods.dev/skills/pbc-os/smb-starter-kit/google-workspace)
Your own site
<a href="https://agentmods.dev/skills/pbc-os/smb-starter-kit/google-workspace"><img src="https://agentmods.dev/badge/skills/pbc-os/smb-starter-kit/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/pbc-os/smb-starter-kit/google-workspace"><img src="https://agentmods.dev/badge/skills/pbc-os/smb-starter-kit/google-workspace.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,410 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.
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.00052 $0.02410
Opus 5 $0.00026 $0.01205
Sonnet 5 $0.00010 $0.00482
Haiku 4.5 $0.00005 $0.00241

Measured 8d ago against content hash de1b0c9f8841, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 8d 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.

skills/tier-1-foundation/google-workspace/SKILL.md · 302 lines

How it starts

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

Google Workspace

Give your agent access to all of Google Workspace through one CLI.

This skill sets up gws — a command-line tool that wraps every Google Workspace API (Gmail, Calendar, Drive, Sheets, Docs, Chat, Tasks, Meet, Forms, and more). It outputs structured JSON, making it ideal for AI agents.

Attribution: The gws CLI was created by Justin Poehnelt, Developer Relations Engineer at Google. It's the foundation that makes the entire Google Workspace skill tier possible.

gws doesn't ship a static list of commands. It reads Google's Discovery Service at runtime and builds its command surface dynamically. When Google adds an API endpoint, gws picks it up automatically.

Triggers

  • "set up google workspace"
  • "connect gmail / calendar / drive / sheets"
  • "install gws"
  • "I need to read my email"
  • "I need to manage my calendar"
  • Any request that requires Google Workspace access and gws isn't installed yet

What This Enables

Once gws is set up, these skills become available:

Tier Skill What It Does
2 gmail Send, read, triage, reply, forward email
2 google-calendar Manage events, check availability, meeting prep
2 google-chat Send messages to Google Chat spaces
3 google-drive Manage files, folders, shared drives
3 google-sheets Read, write, create spreadsheets
3 google-docs Create and edit documents
3 google-tasks Manage task lists and to-dos
5 morning-briefing Daily digest combining email, calendar, and business data

Prerequisites

  • Node.js 18+ — check with node --version
  • A Google Cloud projectgws auth setup can create one, or use an existing project
  • A Google account with access to Google Workspace (works with personal Gmail too)

Installation

Option 1: npm (recommended)

npm install -g @googleworkspace/cli

Read the full file on GitHub · 302 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. 8d ago First seen · 302 lines · 52 tokens per session scan A de1b0c9f8841

Subscribe to this mod's changes

google-workspace is a skill published in the GitHub repository pbc-os/smb-starter-kit (10 stars, last pushed 3mo ago), licensed MIT. It adds 52 tokens to every session and 2,410 once invoked, about $0.0003 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-31.