google-workspace

google-workspace is a skill for Claude Code, Codex from Threat-Vector-Security/guardian-agent. It costs 0 tokens per session (448 once invoked), scanned A, original, Apache-2.0.

A set of instructions for using Google Workspace tools with Gmail, Calendar, Drive, Docs, and Sheets. It covers reading information and creating or changing items with the connected account.

In plain words
What is it for?
Use it for email, calendar, file, document, and spreadsheet tasks in Google Workspace, including reading, drafting, sending, and making approved changes.
Why use it?
It helps choose the right Google tool, handle unclear mailbox requests, and avoid guessing when an operation or data format is unfamiliar.

Skill for Claude CodeCodex

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

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/threat-vector-security/guardian-agent/google-workspace
Any agent
npx skills add Threat-Vector-Security/guardian-agent --skill google-workspace
Clone the repo
git clone --depth 1 https://github.com/Threat-Vector-Security/guardian-agent

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/threat-vector-security/guardian-agent/google-workspace.svg)](https://agentmods.dev/skills/threat-vector-security/guardian-agent/google-workspace)
Your own site
<a href="https://agentmods.dev/skills/threat-vector-security/guardian-agent/google-workspace"><img src="https://agentmods.dev/badge/skills/threat-vector-security/guardian-agent/google-workspace.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 448 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.1 $0.00000 $0.00448
Opus 5 $0.00000 $0.00224
Sonnet 5 $0.00000 $0.00090
Haiku 4.5 $0.00000 $0.00045

Measured 6d ago against content hash c8df62b27057, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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/google-workspace/SKILL.md · 39 lines

How it starts

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

Google Workspace

Use the native Google Workspace tools for Gmail, Calendar, Drive, Docs, and Sheets.

Core rules:

  • Authentication is handled by the connected Google Workspace integration. Never ask the user for OAuth access tokens.
  • If the user asks for a generic email or inbox task and both Google Workspace and Microsoft 365 are available, ask which mailbox they mean before acting. Do not silently choose Gmail.
  • For simple plain-text Gmail drafts, prefer gmail_draft.
  • For simple plain-text Gmail sends, prefer gmail_send.
  • For everything else, use gws.
  • If you are unsure about a Google method or payload shape, use gws_schema before guessing.

Workflow:

  1. Read first when the task is ambiguous or mutating.
  2. Prefer narrow reads over broad listings.
  3. For writes, confirm missing critical details only. Do not add unnecessary confirmation.
  4. Expect approvals for drafts, sends, and most write operations.
  5. If a Google action fails for auth, tell the user to connect Google Workspace in Settings. Do not ask for raw tokens.

How to use this skill:

  • Gmail task: read references/gmail.md
  • Calendar task: read references/calendar.md
  • Drive, Docs, or Sheets task: read references/drive-docs-sheets.md

General gws rules:

  • Resource paths use spaces, not dots. Example: users messages, users drafts, spreadsheets values.
  • Resource IDs and path/query fields go in params.
  • Request bodies go in json.
  • Gmail defaults to userId: "me" when needed, but include it explicitly in examples and deliberate calls.
  • Calendar defaults to calendarId: "primary" when needed, but include it explicitly when clarity matters.

Read only the domain reference you need for the current request. Do not load all references up front.

Gotchas

  • Do not ask the user for raw OAuth tokens or API credentials.
  • Do not silently pick Gmail when the mailbox provider is ambiguous.
  • Do not use broad gws calls when gmail_draft or gmail_send covers the plain-text task cleanly.

Read the full file on GitHub · 39 lines

Files

What ships with it

4 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. 6d ago First seen · 39 lines · 0 tokens per session scan A c8df62b27057

Subscribe to this mod's changes

google-workspace is a skill published in the GitHub repository Threat-Vector-Security/guardian-agent (11 stars, last pushed 2mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 448 tokens. 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

data-analysis

Profile and aggregate a bundled sales dataset - group revenue by region, category, channel or month, apply filters, and compute sums, means, medians and ranges. Use for questions about sales figures, trends, or which segments perform best.

DougTrajano/pydantic-ai-skills · 51 tokens

document-processor

Guidance for processing documents, extracting content, and transforming structured information. Use when the user asks to process, parse, extract, or transform document content such as PDFs, Word files, or spreadsheets.

vixues/LeAgent · 44 tokens

attendance-signin-sheet

Generate printable attendance / 签到表 spreadsheets from name lists. Use when the user asks for 签到表, attendance sheet, meeting sign-in table, or similar printable roster tables (not full payroll attendance scoring unless asked).

vixues/LeAgent · 51 tokens

xlsx

Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or…

eigent-ai/eigent · 201 tokens

google-workspace

Manage Gmail, Google Calendar, Drive, Sheets, Docs, Contacts, and Tasks via the gogcli CLI. TRIGGER: "gmail", "google calendar", "google drive", "google sheets". NOT FOR: outlook-assistant, xlsx, docx use cases.

xg-gh-25/SwarmAI · 61 tokens

google

Google Workspace integration — Gmail, Drive, Calendar, Contacts, Tasks, and Sheets via gogcli.

thewolffish/wolffish-app · 21 tokens