gws

gws is a skill for Claude Code, Codex from fmind/dot. It costs 23 tokens per session (1,013 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

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

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fmind/dot/gws
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 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/github.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/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 gws

Your own site · 80×15
<a href="https://agentmods.dev/skills/fmind/dot/gws"><img src="https://agentmods.dev/badge/skills/fmind/dot/gws.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,013 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.00023 $0.01013
Opus 5.5 $0.00009 $0.00405
Sonnet 5.5 $0.00005 $0.00203
Haiku 4.5 $0.00002 $0.00101

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

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/chat_body.py, scripts/docs_text.py, scripts/pages.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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. Prefer the CLI for supported operations; use a connected app when the requested native editing operation needs its document context or capabilities.

Workflow

  1. Resolve the profile: check gws auth status for the account and scopes without printing credentials. Set GOOGLE_WORKSPACE_CLI_CONFIG_DIR before auth commands to isolate profiles; an existing GOOGLE_WORKSPACE_CLI_TOKEN or GOOGLE_WORKSPACE_CLI_CREDENTIALS_FILE can override stored credentials, so verify the effective identity without echoing those values.

  2. Inspect the installed command and live schema: use <command> --help for flags and schema for the API contract. Start without recursive reference expansion; inspect a referenced type separately when needed.

    gws schema <service.resource.method>
    gws schema <service.TypeName>
    
  3. Start with a bounded read: pass identifiers, filters, and only the needed fields and date range through --params; use --page-all --page-limit <n> only when every page is needed. It emits NDJSON with one object per page, not one JSON array; keep nextPageToken (and Drive incompleteSearch) in fields, because reaching --page-limit with a remaining token means the result is incomplete.

    gws drive files list --params '{"pageSize":10,"q":"trashed = false","fields":"nextPageToken,incompleteSearch,files(id,name,mimeType)"}' --format json
    
  4. Choose the content path: read service recipes for metadata versus bodies, Docs tabs, Sheets ranges, Gmail MIME/replies, Calendar times, Slides and Drive exports. Prefer a +helper listed by gws <service> --help when its documented semantics match the request.

  5. Prepare writes exactly: resolve the service, stable identifiers or ranges, content, recipients, and sharing effects first. Follow file-based requests to serialize multiline content, separate --params from --json, and inspect a --dry-run. It validates request construction, not permissions or server acceptance. For Chat, follow formatting and threads before composing text.

  6. Write with authority: reuse authority already supplied by the user for the intended create or edit; ask only for missing consequential scope. Sending mail or Chat, destructive changes, and permission changes require explicit authority. Prepare the concrete request before asking for missing approval.

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

  8. 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.

Read the full file on GitHub · 56 lines

Files

What ships with it

7 files 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. 7d ago Changed dd3dce9453f9
  2. 12d ago Changed 5bbf03f868cf
  3. 14d ago Changed 288673afb4c5
  4. 15d ago Changed · -2 lines d54142e2c4cf
  5. 17d ago Changed 2831d3074d07
  6. 23d ago Changed 44659e1b95c7
  7. 26d ago Changed dacfe559b471
  8. 1mo ago Changed · -9 lines · -21 tokens per session b389327804ec
  9. 1mo ago Changed · +13 lines 970d8d81d3d1
  10. 1mo ago First seen · 54 lines · 44 tokens per session scan A ab12484f04fd

Subscribe to this mod's changes

gws is a skill published in the GitHub repository fmind/dot (12 stars, last pushed today), licensed MIT. It adds 23 tokens to every session and 1,013 once invoked, about $0.0001 per session on Opus 5.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.

Related

Other skills, from other repositories

google-workspace-cli

Use gws across Workspace APIs with schema-first calls, profile isolation, bounded reads, and verified Drive, Docs, Sheets, Gmail, Calendar, or Chat writes.

fmind/dotfiles · 38 tokens

handover

Write a self-contained follow-up prompt carrying this session's decisions, constraints, and verified findings into a fresh agent session. Use when handing unfinished work to a new context window.

fmind/dotfiles · 38 tokens

dotfiles-bootstrap

Bootstrap a workstation with the dotfiles framework. Takes a GitHub user / owner+repo / explicit clone URL and runs dot init (which shells out to chezmoi) with the right safety prompts. Honors the active agent profile (ask / plan / apply / audit) so it defaults to dry-run in safer modes and full apply in apply.

sebastienrousseau/dotfiles · 88 tokens

vibe

Delegate a coding task to a cheap AI model (Mistral Vibe by default, but any provider Vibe knows about — DeepSeek, Gemini Flash, etc.) and supervise the result via git diff. Claude orchestrates, the cheap model codes. Claude consumes 500-1500 tokens per delegation regardless of how many file reads the delegate does…

sebastienrousseau/dotfiles · 137 tokens

telegram

Send notifications, interactive questions, or multiple-choice polls to the user via Telegram. Use when the user asks to be notified ("ping me", "notify me on Telegram", "ask me when..."), when a long-running task finishes and the user is likely away, when an irreversible action needs out-of-band confirmation, or when…

laurigates/dotfiles · 117 tokens

dotfiles

Chezmoi dotfiles conventions and patterns. Use when modifying dotfiles, adding new managed files, working with chezmoi templates, or syncing agent skills and subagents through agentspec. Do NOT use for installing tools, running doctor, or updating a machine through the dotfiles CLI; use manage-machine.

urmzd/dotfiles · 67 tokens