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.
npx agentmods add skills/espennilsen/pi/google-workspacenpx skills add espennilsen/pi --skill google-workspacegit clone --depth 1 https://github.com/espennilsen/piWrote 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.
[](https://agentmods.dev/skills/espennilsen/pi/google-workspace)<a href="https://agentmods.dev/skills/espennilsen/pi/google-workspace"><img src="https://agentmods.dev/badge/skills/espennilsen/pi/google-workspace.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00145 | $0.03299 |
| Opus 5 | $0.00072 | $0.01649 |
| Sonnet 5 | $0.00029 | $0.00660 |
| Haiku 4.5 | $0.00015 | $0.00330 |
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 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.
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.
How it starts
The opening of the file, as written. The whole thing — 246 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Google Workspace CLI (gws)
Interact with Google Workspace services via the gws CLI. This skill covers
all supported services, helper shortcuts, cross-service workflows, role-based
personas, and multi-step recipes.
Installation & Auth
The gws binary must be on $PATH. Version: 0.16.0+.
# Browser-based OAuth (interactive)
gws auth login
# Service Account
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/key.json
# Check status
gws auth status
Auth Flags
| Flag | Description |
|---|---|
--readonly |
Request read-only scopes |
--full |
Request all scopes incl. pubsub + cloud-platform |
--scopes |
Comma-separated custom scopes |
-s, --services |
Limit scope picker to specific services (e.g. -s drive,gmail) |
CLI Syntax
gws <service> <resource> [sub-resource] <method> [flags]
Global Flags
| Flag | Description |
|---|---|
--format <FMT> |
Output format: json (default), table, yaml, csv |
--dry-run |
Validate locally without calling the API |
--sanitize <TEMPLATE> |
Screen responses through Model Armor |
--params '{"key": "val"}' |
URL/query parameters |
--json '{"key": "val"}' |
Request body |
-o, --output <PATH> |
Save binary responses to file |
--upload <PATH> |
Upload file content (multipart) |
--page-all |
Auto-paginate (NDJSON output) |
--page-limit <N> |
Max pages with --page-all (default: 10) |
--page-delay <MS> |
Delay between pages in ms (default: 100) |
Discovering Commands
gws <service> --help # Browse resources and methods
gws schema <service.resource.method> # Inspect params, types, defaults
Shell Tips
- zsh
!expansion: Use double quotes for sheet ranges:--range "Sheet1!A1:D10" - JSON with double quotes: Wrap
--params/--jsonin single quotes:--params '{"pageSize": 5}'
Security Rules
- Never output secrets (API keys, tokens) directly
- Always confirm with user before executing write/delete commands
- Prefer
--dry-runfor destructive operations - Use
--sanitizefor PII/content safety screening
What ships with it
60 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.
- references/gws-admin-reports.md 764 B
- references/gws-chat-send.md 605 B
- references/gws-chat.md 908 B
- references/gws-classroom.md 1.9 KB
- references/gws-docs-write.md 593 B
- references/gws-docs.md 637 B
- references/gws-drive-upload.md 736 B
- references/gws-drive.md 3.4 KB
- references/gws-events-renew.md 732 B
- references/gws-events-subscribe.md 1.4 KB
- references/gws-events.md 827 B
- references/gws-forms.md 624 B
- references/gws-gmail-forward.md 1.0 KB
- references/gws-gmail-reply-all.md 1.3 KB
- references/gws-gmail-reply.md 1.2 KB
- references/gws-gmail-send.md 1.1 KB
- references/gws-gmail-triage.md 643 B
- references/gws-gmail-watch.md 1.5 KB
- references/gws-gmail.md 1.2 KB
- references/gws-keep.md 572 B
- references/gws-meet.md 731 B
- references/gws-modelarmor-create-template.md 951 B
- references/gws-modelarmor-sanitize-prompt.md 749 B
- references/gws-modelarmor-sanitize-response.md 686 B
- references/gws-modelarmor.md 730 B
- references/gws-people.md 1.1 KB
- references/gws-shared.md 1.8 KB
- references/gws-sheets-append.md 764 B
- references/gws-sheets-read.md 578 B
- references/gws-sheets.md 928 B
- references/gws-slides.md 513 B
- references/gws-workflow-email-to-task.md 683 B
- references/gws-workflow-file-announce.md 982 B
- references/gws-workflow-meeting-prep.md 573 B
- references/gws-workflow-standup-report.md 506 B
- references/gws-workflow-weekly-digest.md 518 B
- references/gws-workflow.md 941 B
- references/persona-content-creator.md 725 B
- references/persona-customer-support.md 876 B
- references/persona-event-coordinator.md 884 B
- references/persona-exec-assistant.md 1005 B
- references/persona-hr-coordinator.md 814 B
- references/persona-it-admin.md 672 B
- references/persona-project-manager.md 991 B
- references/persona-researcher.md 705 B
- references/persona-sales-ops.md 928 B
- references/persona-team-lead.md 836 B
- references/recipe-backup-sheet-as-csv.md 389 B
- references/recipe-bulk-download-folder.md 430 B
- references/recipe-collect-form-responses.md 260 B
- references/recipe-compare-sheet-tabs.md 325 B
- references/recipe-copy-sheet-for-new-month.md 674 B
- references/recipe-create-classroom-course.md 685 B
- references/recipe-create-doc-from-template.md 522 B
- references/recipe-create-expense-tracker.md 631 B
- references/recipe-create-feedback-form.md 423 B
- references/recipe-create-gmail-filter.md 634 B
- references/recipe-create-meet-space.md 350 B
- references/recipe-create-presentation.md 407 B
- references/recipe-create-shared-drive.md 510 B
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.
- 4d ago First seen · 246 lines · 145 tokens per session scan A 51fd5e472d3e
google-workspace is a skill published in the GitHub repository espennilsen/pi (117 stars, last pushed 12d ago), licensed MIT. It adds 145 tokens to every session and 3,299 once invoked, about $0.0007 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-30.
Other skills, from other repositories
xlsx-author
Produce a .xlsx file on disk (headless) instead of driving a live Excel workbook — for managed-agent sessions with no open Office app.
audit-xls
Audit a spreadsheet for formula accuracy, errors, and common mistakes. Scopes to a selected range, a single sheet, or the entire model (including financial-model integrity checks like BS balance, cash tie-out, and logic sanity). Triggers on "audit this sheet", "check my formulas", "find formula errors", "QA this…
feishu
Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.
Workspace Data Analyst
Analyze CSV files in the workspace and summarize insights.
octo-docs
Docs domain — create and govern documents, read and incrementally edit a doc's live body, read and batch-edit spreadsheet cells (dims + images), read and batch-edit whiteboard scenes, members and sharing, inline comments, versions/snapshots, and attachment metadata as a bot. Load after octo-shared.
build-model
Build a multi-tab Excel financial model.