google-workspace

google-workspace is a skill for Claude Code, Codex from iofold/ainative-claude-plugins. It costs 59 tokens per session (2,086 once invoked), scanned B, original, MIT.

A Google Workspace skill for using Gmail, Drive, Calendar, Docs, Sheets, and Tasks through the gws command-line tool. It can also maintain local DuckDB indexes, which are searchable databases, for Drive files and email.

In plain words
What is it for?
Reading and sending email, managing files and calendars, working with documents and spreadsheets, managing tasks, syncing indexes, searching Drive or email, and syncing data to Sheets.
Why use it?
It lets an agent handle Google Workspace requests from one interface and search indexed Drive or email data locally instead of repeatedly querying the Google APIs.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the google-workspace plugin — 1 skill shipped together

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.

agentmods
npx agentmods add skills/iofold/ainative-claude-plugins/google-workspace
Any agent
npx skills add iofold/ainative-claude-plugins --skill google-workspace
Clone the repo
git clone --depth 1 https://github.com/iofold/ainative-claude-plugins

Made for: Claude Code, Codex.

Or install google-workspace, the plugin that ships this one along with the rest of its 1 skill.

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/iofold/ainative-claude-plugins/google-workspace.svg)](https://agentmods.dev/skills/iofold/ainative-claude-plugins/google-workspace)
Your own site
<a href="https://agentmods.dev/skills/iofold/ainative-claude-plugins/google-workspace"><img src="https://agentmods.dev/badge/skills/iofold/ainative-claude-plugins/google-workspace.svg" alt="Measured on agentmods" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,086 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. Scan, not verified.
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 $0.00059 $0.02086
Opus 5 $0.00030 $0.01043
Sonnet 5 $0.00012 $0.00417
Haiku 4.5 $0.00006 $0.00209

Measured 4d ago against content hash 077e6019f439, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

google-workspace scanned grade B with 2 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 4d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

unzip duckdb_cli-linux-amd64.zip && sudo mv duckdb /usr/local/bin/

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -LO https://github.com/duckdb/duckdb/releases/latest/download/duckdb_cli-linux-amd64.zip
google-workspace/skills/google-workspace/SKILL.md · 231 lines

How it starts

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

Google Workspace CLI (gws)

Binary: gws (must be on PATH) Auth: OAuth2 with your authenticated Google account (encrypted credentials in ~/.config/gws/)

Installation

gws CLI

pnpm add -g gws

Or with npm:

npm install -g gws

Dependencies

  • DuckDB - Required for Drive and Email indexing
    # macOS
    brew install duckdb
    # Linux
    curl -LO https://github.com/duckdb/duckdb/releases/latest/download/duckdb_cli-linux-amd64.zip
    unzip duckdb_cli-linux-amd64.zip && sudo mv duckdb /usr/local/bin/
    
  • Python 3 - Required for index sync scripts

Drive Index (DuckDB)

A local DuckDB index of all Google Drive files lives at a configurable path. This avoids API round trips for search/browse operations.

Default location: ${GWS_INDEX_DB:-~/.local/share/gws/inbox.duckdb} Override: Set GWS_INDEX_DB env var to point to a different DuckDB file.

Scripts that sync and query the index:

# Sync Drive files into the DuckDB index
${CLAUDE_PLUGIN_ROOT}/scripts/sync-drive.sh

# Query the index (search, videos, folders, recent, stats, tree, sql)
${CLAUDE_PLUGIN_ROOT}/scripts/query-drive.sh search "term"
${CLAUDE_PLUGIN_ROOT}/scripts/query-drive.sh videos
${CLAUDE_PLUGIN_ROOT}/scripts/query-drive.sh recent
${CLAUDE_PLUGIN_ROOT}/scripts/query-drive.sh stats
${CLAUDE_PLUGIN_ROOT}/scripts/query-drive.sh tree "folder name"
${CLAUDE_PLUGIN_ROOT}/scripts/query-drive.sh sql "SELECT ..."

From other projects: The index scripts read GWS_INDEX_DB if set, falling back to the default path. The index is shared — sync once, query from anywhere.

Email Index (DuckDB)

Emails can also be synced into the same DuckDB index for local search and categorization.

# Sync inbox emails into DuckDB
${CLAUDE_PLUGIN_ROOT}/scripts/sync-emails.sh

# Auto-categorize emails (newsletter, notification, meeting, business, application)
${CLAUDE_PLUGIN_ROOT}/scripts/categorize-emails.sh

# Query emails (applications, unseen, stats, search, sql)
${CLAUDE_PLUGIN_ROOT}/scripts/query.sh applications
${CLAUDE_PLUGIN_ROOT}/scripts/query.sh unseen
${CLAUDE_PLUGIN_ROOT}/scripts/query.sh stats
${CLAUDE_PLUGIN_ROOT}/scripts/query.sh search "term"
${CLAUDE_PLUGIN_ROOT}/scripts/query.sh sql "SELECT ..."

# Sync application emails to a Google Sheet
${CLAUDE_PLUGIN_ROOT}/scripts/sync-to-sheets.sh <spreadsheet-id>

Read the full file on GitHub · 231 lines

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. 4d ago First seen · 231 lines · 59 tokens per session scan B 077e6019f439

Subscribe to this mod's changes

google-workspace is a skill published in the GitHub repository iofold/ainative-claude-plugins (3 stars, last pushed 16d ago), licensed MIT. It adds 59 tokens to every session and 2,086 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.