← ClaudeAtlas

gws-workspacelisted

Operate Google Workspace — Gmail, Calendar, Drive, Sheets, Docs, Slides, Chat, Tasks — through the gws CLI (github.com/googleworkspace/cli) with read-by-default safety gates. Use when the user mentions gws, Gmail, email inbox/send/reply/triage, 邮件/收件箱/发邮件/未读邮件, Google Calendar, 日程/日历/创建会议, Google Drive, 谷歌网盘/上传 Drive, Google Sheets, 谷歌表格, Google Docs, 谷歌文档, or asks for Google Workspace automation such as daily/weekly mail+calendar digests (邮件汇总/日程周报). Also use when installing gws, configuring its OAuth client, or troubleshooting gws authentication errors.
laojin1900/365Skill · ★ 1 · AI & Automation · score 74
Install: claude install-skill laojin1900/365Skill
# gws Workspace Operations Operate a user's Google Workspace account through the `gws` CLI — one binary covering every Workspace API, built dynamically from Google's Discovery Service, with structured JSON output. It is open source (Apache-2.0) but **not an officially supported Google product** and is pre-v1: expect breaking changes and pin versions in production. ## Preflight Before the first gws call in a session: ```bash gws auth status --format json ``` - `auth_method: "oauth2"` or `service_account` → proceed. - `auth_method: "none"` → stop. Follow `references/setup-guide.md` with the user to install gws and complete OAuth. Never invent client IDs, client secrets, or tokens; OAuth setup requires real user actions in the Google Cloud Console. - `command not found` → install: `npm install -g @googleworkspace/cli` (alternatives: `brew install googleworkspace-cli`, cargo, nix). The stderr line `Using keyring backend: keyring` is informational, not an error. Parse stdout only. ## Command Model Two surfaces; prefer helper commands when one fits. **Helper commands (`+` prefix, hand-written):** | Service | Command | Purpose | | --- | --- | --- | | gmail | `+send --to A --subject S --body B` | Send email | | gmail | `+reply --message-id ID --body B` | Reply (threads automatically) | | gmail | `+triage` | Unread inbox summary | | gmail | `+watch` | Stream new mail as NDJSON | | calendar | `+agenda [--today] [--timezone TZ]` | Upcoming events | | calendar | `+inser