gws

gws is a skill for Claude Code, Codex from fmind/dot. It costs 44 tokens per session (789 once invoked), scanned A, original, MIT.

A command-line interface for Google Workspace, the collection of services such as Drive, Docs, Sheets, Gmail, Calendar, and Chat.

In plain words
What is it for?
Use it to list Drive files, read or edit documents and spreadsheets, manage calendars, send email or Chat messages, and work with Workspace data from scripts.
Why use it?
It helps automate Workspace tasks while checking the live API rules, limiting reads, and verifying changes before writing.

Skill for Claude CodeCodex

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/fmind/dot/gws
Any agent
npx skills add fmind/dot --skill gws
Clone the repo
git clone --depth 1 https://github.com/fmind/dot

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 gws

README.md
[![agentmods](https://agentmods.dev/badge/skills/fmind/dot/gws.svg)](https://agentmods.dev/skills/fmind/dot/gws)
Your own site
<a href="https://agentmods.dev/skills/fmind/dot/gws"><img src="https://agentmods.dev/badge/skills/fmind/dot/gws.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 789 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00044 $0.00789
Opus 5 $0.00022 $0.00394
Sonnet 5 $0.00009 $0.00158
Haiku 4.5 $0.00004 $0.00079

Measured yesterday against content hash 072cc3423741, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

gws 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 yesterday.

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/gws/SKILL.md · 56 lines

How it starts

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

Google Workspace CLI

Use gws for Google Workspace automation from the shell: authentication, API discovery, bounded reads, and verified writes across Drive, Docs, Sheets, Gmail, Calendar, and Chat. A connected Workspace app (host connector or MCP server) owns in-document editing when one is available.

Workflow

  1. Resolve the profile: gws auth status confirms the account and scopes without printing credentials; set GOOGLE_WORKSPACE_CLI_CONFIG_DIR to isolate profiles.

  2. Inspect the live schema: never guess resource names, parameters, or request bodies.

    gws schema <service.resource.method> --resolve-refs
    
  3. Start with a bounded read: pass identifiers and filters through --params; use --page-all --page-limit <n> only when every page is needed.

    gws drive files list --params '{"pageSize": 10}' --format json
    
  4. Prepare writes exactly: resolve stable file, spreadsheet, document, calendar, space, and message identifiers first; build the body as JSON and validate it against the schema before passing --json.

  5. Write with authority: every write (create, edit, share, move, delete, send mail or Chat, change calendars, bulk update) needs explicit approval of the exact service, IDs or ranges, content, recipients, and sharing effects.

  6. Apply the smallest call: no broad search followed by an unreviewed batch mutation; keep retries idempotent with stable request identifiers or a read-before-write guard where the API supports them.

  7. Verify by reading back: fetch the changed resource and compare the requested fields; for messages and events, separate accepted API state from recipient-visible delivery.

Gotchas

  • gws auth export prints decrypted credentials: never run it during ordinary work.
  • gws auth status is a live call: it may refresh OAuth credentials and query scope or API state; it is not an offline config inspection.
  • Exit code 2 is authentication: repair it explicitly; on validation or discovery errors, refresh the schema before changing the request.
  • Apps Script: gws script manages projects; clasp stays only for local push and pull of script sources.

Read the full file on GitHub · 56 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. yesterday First seen · 56 lines · 44 tokens per session scan A 072cc3423741

Subscribe to this mod's changes

gws is a skill published in the GitHub repository fmind/dot (4 stars, last pushed yesterday), licensed MIT. It adds 44 tokens to every session and 789 once invoked, about $0.0002 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-09-03.