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 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/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.
<a href="https://agentmods.dev/skills/espennilsen/pi/google-workspace"><img src="https://agentmods.dev/badge/skills/espennilsen/pi/google-workspace.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Data Exfiltration · line 7 Code or instructions that leak agent conversation context to external services, potentially exposing sensitive user interactions.Fix: Remove any code that sends prompts, responses, or session data externally. Preserve user privacy; never exfiltrate conversation content.
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.1 | $0.00145 | $0.03299 |
| Opus 5.5 | $0.00058 | $0.01320 |
| Sonnet 5.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 1mo 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.
- 1mo ago First seen · 246 lines · 145 tokens per session scan A 51fd5e472d3e
google-workspace is a skill published in the GitHub repository espennilsen/pi (122 stars, last pushed 9d ago), licensed MIT. It adds 145 tokens to every session and 3,299 once invoked, about $0.0006 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-08-30.
Other skills, from other repositories
google-workspace
Gmail, Calendar, Drive, Docs, Sheets via gws CLI or Python.
gog
Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.
feishu
Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.
gog-workspace
Use the gog CLI for Google Workspace tasks across Gmail, Calendar, Drive, Docs, Sheets, Contacts, and related services. Use when the user asks to check email, search Gmail, inspect calendar events, find Drive files, read Docs or Sheets, or manage Google Workspace data through gog.
wecomcli-sheet
A tool for managing WeCom online spreadsheets, including spreadsheet files, data, and subtables. WeCom is an enterprise collaboration platform.
google-workspace
Access Google Workspace APIs (Drive, Docs, Calendar, Gmail, Sheets, Slides, Chat, People) via local helper scripts without MCP. Handles OAuth login and direct API calls.