gws
Use the `gws` CLI to interact with Google Workspace services — Gmail, Drive, Sheets, Calendar, Docs, Tasks, Chat, and more. Trigger this skill whenever the user wants to read/send email, manage Drive files, update spreadsheets, check calendars, create tasks, send Chat messages, or run any Google Workspace operation. Also trigger when the user mentions Google Workspace, Google APIs, or asks to automate anything across Gmail/Drive/Sheets/Calendar/Docs/Tasks/Chat. Use this skill even when the request seems simple — gws can handle it in one command.
What this skill does
# gws — Google Workspace CLI
```bash
gws <service> <resource> [sub-resource] <method> [flags]
```
Helpers prefixed with `+` are high-level shortcuts — prefer them. Run `gws <service> --help` to discover all commands.
## Key Flags
| Flag | Purpose |
| --------------------------- | -------------------------------- |
| `--params '{"k":"v"}'` | URL/query parameters |
| `--json '{"k":"v"}'` | Request body |
| `--format table\|yaml\|csv` | Output format (default: json) |
| `--dry-run` | Validate without calling the API |
| `--page-all` | Auto-paginate (NDJSON) |
| `--upload <PATH>` | Upload file (multipart) |
## Shell Quoting
- Wrap `--params`/`--json` in **single quotes**: `--params '{"pageSize":10}'`
- Sheet ranges contain `!` which zsh expands. Use **double quotes**: `--range "Sheet1!A1:D10"` (never single quotes)
## Services
### Gmail
```bash
gws gmail +triage # unread summary
gws gmail +send --to [email protected] --subject "Hi" --body "Hello"
gws gmail +read --message-id MSG_ID
gws gmail +reply --message-id MSG_ID --body "Thanks"
gws gmail users messages list --params '{"userId":"me","q":"is:unread"}'
```
### Drive
```bash
gws drive files list --params '{"pageSize":10}'
gws drive +upload --file ./report.pdf --name "Q4 Report" --parent FOLDER_ID
gws drive permissions create --params '{"fileId":"FILE_ID"}' \
--json '{"role":"reader","type":"user","emailAddress":"[email protected]"}'
```
### Sheets
```bash
gws sheets +read --spreadsheet SHEET_ID --range "Sheet1!A1:D10"
gws sheets +append --spreadsheet SHEET_ID --range "Sheet1" --values '[["Alice",30]]'
```
### Calendar
```bash
gws calendar +agenda
gws calendar +insert --summary "Sync" --start "2026-05-01T10:00:00" \
--end "2026-05-01T11:00:00" --attendees "[email protected],[email protected]"
gws calendar events list --params '{"calendarId":"primary","maxResults":10}'
```
### Docs / Tasks / Chat
```bash
gws docs documents get --params '{"documentId":"DOC_ID"}'
gws docs +write --document DOC_ID --text "Appended text"
gws tasks tasks list --params '{"tasklist":"@default"}'
gws tasks tasks insert --params '{"tasklist":"@default"}' --json '{"title":"Review PR"}'
gws chat +send --space SPACE_ID --text "Deploy complete"
```
### Cross-Service Workflows
```bash
gws workflow +standup-report # meetings + open tasks
gws workflow +meeting-prep # next meeting agenda
gws workflow +email-to-task --message-id MSG_ID # email → task
gws workflow +file-announce --file FILE_ID --space SPACE_ID
```
### Schema Discovery
```bash
gws schema drive.files.list # param + response shape
gws schema sheets.spreadsheets.values.get --resolve-refs
```
## Common Flows
### Gmail Filter (auto-label incoming messages)
```bash
gws gmail users labels list --params '{"userId":"me"}' --format table
gws gmail users labels create --params '{"userId":"me"}' --json '{"name":"Receipts"}'
# Use returned label id below
gws gmail users settings filters create --params '{"userId":"me"}' \
--json '{"criteria":{"from":"[email protected]"},"action":{"addLabelIds":["LABEL_ID"],"removeLabelIds":["INBOX"]}}'
gws gmail users settings filters list --params '{"userId":"me"}' --format table
```
### Upload → Share → Announce
```bash
gws drive +upload --file ./report.pdf --name "Q4 Report 2026"
gws drive permissions create --params '{"fileId":"FILE_ID","sendNotificationEmail":true}' \
--json '{"role":"reader","type":"user","emailAddress":"[email protected]"}'
gws workflow +file-announce --file FILE_ID --space SPACE_ID
```
### Sheet Update + Chat Notify
```bash
gws sheets +append --spreadsheet SHEET_ID --range "Sheet1" \
--values '[["2026-04-26","Alice",142.50,"Closed"]]'
gws chat +send --space SPACE_ID --text "New row added to pipeline sheet."
```
### Morning Standup
```bash
gws workflow +standup-report && gws gmail +triage
```
## Security
- Never emit tokens or credentials in output.
- Confirm with the user before any write or delete command.
- Use `--dry-run` before destructive operations.
## Auth
```bash
gws auth login # browser OAuth
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/key.json # service account
```
Community: <https://github.com/googleworkspace/cli>
Related in Productivity
gitea-workflow
IncludedOrchestrate agile development workflows for Gitea repositories using the tea CLI. Use when working with Gitea-hosted repos and asking to 'run the workflow', 'continue working', 'what's next', 'complete the task cycle', 'start my day', 'end the sprint', 'implement the next task', or wanting guided step-by-step development assistance. Keywords: workflow, orchestrate, agile, task cycle, sprint, daily, implement, review, PR, standup, retrospective, gitea, tea.
microsoft-graph-gateway
IncludedRoute Microsoft Graph work in this workspace. Use when users want to read or write Outlook mail, calendar events, contacts, OneDrive or SharePoint files, Teams, Planner, To Do, users, groups, directory data, or arbitrary Microsoft Graph endpoints from VS Code. Prefer WorkIQ for common read scenarios. Use Microsoft Graph for write actions and gap-read scenarios that need exact Graph properties, filters, permissions, or endpoints.
copilotkit
IncludedUse when building with CopilotKit — setup, development, integrations, debugging, upgrading, or contributing. Routes to the appropriate specialized skill based on the task.
wordly-wisdom
IncludedProvides calibrated decision analysis using Charlie Munger-style multiple mental models, inversion, incentive mapping, circle-of-competence checks, misjudgment audits, second-order effects, and forecast updates. Use when the user asks for an oracle take, a hard call, a decision memo, a premortem, an outside view, a red-team, a sanity-check, what am I missing, think this through, or wants a strategy, hire, investment, plan, product, partnership, or major life choice analysed. Avoid for simple factual lookups or time-sensitive legal, medical, or market questions without fresh evidence.
swain-session
IncludedSession management and project status dashboard. Owns the full session lifecycle (start/work/close/resume), focus lane, bookmarks, worktree detection, and tab naming. Also serves as the project status dashboard — shows active epics, progress, actionable next steps, blocked items, tasks, GitHub issues, and recommendations. Worktree creation is deferred to swain-do task dispatch (SPEC-195). Triggers on: 'session', 'status', 'what's next', 'dashboard', 'overview', 'where are we', 'what should I work on', 'show me priorities', 'bookmark', 'focus on', 'session info'.
gandi
IncludedComprehensive Gandi domain registrar integration for domain and DNS management. Register and manage domains, create/update/delete DNS records (A, AAAA, CNAME, MX, TXT, SRV, and more), configure email forwarding and aliases, check SSL certificate status, create DNS snapshots for safe rollback, bulk update zone files, and monitor domain expiration. Supports multi-domain management, zone file import/export, and automated DNS backups. Includes both read-only and destructive operations with safety controls.