gws
Skill138 starsChanged 8 months agoMITView on GitHub
This skill should be used when the user asks to "set up gws", "install Google Workspace CLI", "connect Gmail to Claude", "manage Google Drive from terminal", "send email from CLI", "check my calendar", "create a Google Doc", "use gws", "Google Workspace agent", or mentions gws CLI, Google Workspace automation, or wants to interact with Gmail, Drive, Calendar, Sheets, Docs, Slides, Chat, Tasks, Meet, or Forms from the command line.
- Installs packages
8 other projects use a version of this.
Adopted by
Most recently taken up by
- fmind/dottheir own version, first seen Oct 5, 2026
- thensls/nsls-builder-toolkittheir own version, first seen Sep 21, 2026
- glebis/claude-skillstheir own version, first seen Jul 1, 2026
- kv0906/cc-skillsword for word, first seen Jun 14, 2026
- HybridAIOne/hybridclawtheir own version, first seen May 12, 2026
- foxl-ai/skillstheir own version, first seen May 10, 2026
Other versions8 projects use a version of this.
Word for word · 1
- kv0906/cc-skills★ 16100% same
Edited · 0
None found.
Wrote their own version · 7
- glebis/claude-skills★ 387same name
- HybridAIOne/hybridclaw★ 157same name
- fmind/dot★ 10same name
- qwwiwi/public-architecture-claude-code★ 8same name
- FutureAtoms/claude-skills-backup★ 1same name
- foxl-ai/skills★ 0same name
- thensls/nsls-builder-toolkit★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository37 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- askSkill
- blockSkill
- dailySkill
- decideSkill
- docSkill
- docxSkill
- excalidraw-generatorSkill
- explainSkill
- healthSkill
- helpSkill
- inboxSkill
- interviewSkill
- jiraSkill
- json-canvasSkill
- linearSkill
- meetSkill
- mermaid-visualizerSkill
- notionSkill
- obsidian-basesSkill
- obsidian-cliSkill
- obsidian-markdownSkill
- onboardSkill
- pdfSkill
- pptxSkill
- previewSkill
- progressSkill
- pushSkill
- reportSkill
- skill-creatorSkill
- todaySkill
- updateSkill
- vault-opsSkill
- weeklySkill
- xlsxSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 58
All responses return structured JSON for reliable agent parsing.
- Very specific: line 209
scripts/check-gws.sh: - Verify gws installation and auth status
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Google Workspace CLI (gws)
A CLI tool built in Rust that wraps every Google Workspace API into composable commands with structured JSON output. It dynamically builds its command structure from Google's Discovery Service, so it always supports the latest APIs without updates.
Prerequisites
- gcloud CLI: Required for authentication. Install via
brew install --cask google-cloud-sdkon macOS. - Node.js/npm: Required to install gws.
Installation & Setup
# 1. Install the CLI
npm install -g @googleworkspace/cli
# 2. Set up auth (interactive walkthrough for GCP project + OAuth)
gws auth setup
# 3. Login to Google Workspace account
gws auth loginThe gws auth setup command walks through:
- GCP project creation or selection (all via CLI)
- Enabling required Google Workspace APIs
- OAuth client configuration
Multiple accounts (work, personal) can be added. For agent-dedicated accounts, grant Full Access (all OAuth scopes). For personal/work accounts, start with Limited Access.
Core Usage Patterns
Command Structure
# Standard API call
gws <service> <resource> <method> --params '{"key": "value"}' --json '{"body": "data"}'
# Helper shortcut (handles encoding/formatting)
gws <service> +<helper> --flag valueKey Services & Helpers
| Service | Common Helpers | Purpose |
| gmail | +send, +triage | Email management |
| calendar | +agenda, +insert | Schedule management |
| drive | +upload | File management |
| sheets | +read, +append | Spreadsheet operations |
| docs | +write | Document operations |
| chat | +send | Team messaging |
All responses return structured JSON for reliable agent parsing.
Gmail
# Search inbox
gws gmail users messages list --params '{"userId": "me", "q": "is:unread"}'
# Read a message
gws gmail users messages get --params '{"userId": "me", "id": "MSG_ID"}'
# Send email (helper handles RFC 2822 encoding)
gws gmail +send --to alice@company.com --subject 'Report Ready' \
--body 'The Q2 report is ready for review.'
# Triage unread
gws gmail +triage --max 5 --query 'from:boss'Calendar
# Today's agenda
gws calendar +agenda
# Create event
gws calendar +insert --summary 'Standup' \
--start '2026-03-10T09:00:00-07:00' \
--end '2026-03-10T09:30:00-07:00'
# Create recurring event with attendees
gws calendar events insert \
--params '{"calendarId": "primary"}' \
--json '{
"summary": "Weekly Standup",
"start": {"dateTime": "2026-03-10T09:00:00", "timeZone": "America/Vancouver"},
"end": {"dateTime": "2026-03-10T09:30:00", "timeZone": "America/Vancouver"},
"recurrence": ["RRULE:FREQ=WEEKLY;BYDAY=MO"],
"attendees": [{"email": "team@company.com"}]
}'Drive
# List recent files
gws drive files list --params '{"pageSize": 10}'
# Upload file
gws drive +upload --file ./report.pdf --parent FOLDER_ID
# Create folder
gws drive files create --json '{"name": "Q2 Project", "mimeType": "application/vnd.google-apps.folder"}'
# Download / Export
gws drive files get --params '{"fileId": "FILE_ID", "alt": "media"}' -o report.pdf
gws drive files export --params '{"fileId": "FILE_ID", "mimeType": "application/pdf"}' -o doc.pdf
# Share with someone
gws drive permissions create --params '{"fileId": "FOLDER_ID"}' \
--json '{"role": "writer", "type": "user", "emailAddress": "colleague@company.com"}'Sheets
# Read range
gws sheets +read --spreadsheet-id SHEET_ID --range 'Contacts!A2:C'
# Append row
gws sheets +append --spreadsheet-id SHEET_ID --range 'Sheet1' \
--values '["2026-03-05", "Marketing", "Ad spend", "1500"]'Docs, Chat, Meet, Forms
# Create document
gws docs documents create --json '{"title": "Meeting Notes"}'
# Write to doc
gws docs +write --document-id DOC_ID \
--text '## Project: Q2 Launch\n\n### Objective\nLaunch by end of Q2.'
# Send chat message
gws chat +send --space spaces/TEAM_SPACE --text 'Check updated policy.'
# Create Meet room
gws meet spaces create --json '{"config": {"accessType": "OPEN"}}'
# Create form
gws forms forms create --json '{"info": {"title": "Feedback", "documentTitle": "Feedback Form"}}'MCP Server Integration
For deeper Claude Code integration, gws provides a built-in MCP server:
# Start MCP server with specific services
gws mcp -s drive,gmail,calendarConfigure in .mcp.json or Claude Desktop settings:
{
"mcpServers": {
"gws": {
"command": "gws",
"args": ["mcp", "-s", "drive,gmail,calendar"]
}
}
}Each service adds ~10-80 tools. Keep the service list focused to stay under tool limits.
Agent Skills from the Repo
The gws repo ships 100+ SKILL.md files (service skills, persona bundles, helpers, recipes). See references/services.md for the full catalog and persona details.
# Clone and symlink all skills
git clone https://github.com/googleworkspace/cli.git
ln -s $(pwd)/cli/skills/gws-* ~/.claude/skills/
# Or copy specific ones
cp -r cli/skills/gws-drive cli/skills/gws-gmail ~/.claude/skills/Model Armor (Safety)
Sanitize API responses to prevent prompt injection from email/doc content:
gws gmail users messages get --params '...' \
--sanitize "projects/P/locations/L/templates/T"Modes: warn (flags suspicious content) or block (strips it out).
Additional Resources
Reference Files
references/services.md- Complete service list with all helpers and API patternsreferences/setup-troubleshooting.md- Common setup issues and OAuth configuration details
Scripts
scripts/check-gws.sh- Verify gws installation and auth status
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

