gws-workspace
Skill1 starsChanged 4 months agoApache-2.0View on GitHub
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.
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Cor-Incorporated/claude-code-skillstheir own version, first seen Sep 3, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Cor-Incorporated/claude-code-skills★ 5same 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 repository11 other files it gives its agents.
- 365-chatgpt-pro-deliverySkill
- 365-five-step-dev-claudeSkill
- 365-five-step-dev-codexSkill
- 365-five-step-retro-claudeSkill
- 365-session-rotation-maintainerSkill
- discover-project-skillsSkill
- gws-weekly-digestSkill
- parallel-sessions-protocolSkill
- project-health-checkSkill
- shopify-store-launch-baselineSkill
- shopify-theme-deliverySkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
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 16
Before the first gws call in a session:
- Very specific: line 74
Confirm externally visible actions: Before gmail +send/+reply/+forward, chat +send, or creating calendar events that invite guests, restate …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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:
gws auth status --format jsonauth_method: "oauth2"orservice_account→ proceed.auth_method: "none"→ stop. Followreferences/setup-guide.mdwith 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 | +insert | Create an event |
| drive | +upload ./file --name N | Upload a file |
| sheets | +read --spreadsheet ID | Read values |
| sheets | +append --spreadsheet ID --values "a,b" | Append a row |
| docs | +write | Append text to a document |
| chat | +send | Message a space |
| workflow | +standup-report, +weekly-digest, +meeting-prep | Composite digests |
Discovery commands (full API surface):
gws <service> <resource> <method> --params '{"k":"v"}' # query/path params
gws <service> <resource> <method> --json '{"k":"v"}' # request body
gws schema gmail.users.messages.list # inspect any method
gws gmail --help # live command list- Message metadata: request
format: "metadata"plusmetadataHeaders: ["Subject","From","Date"]; body parts are base64url inpayload.body.data/payload.parts. - Gmail search uses standard
qoperators (is:unread,newer_than:7d,after:2026/07/01 before:2026/07/08). - Useful flags:
--format json|table|yaml|csv,--page-all(NDJSON pagination),--output <path>(binary download),--upload <path>.
Safety Gates
- Read freely. list/get/triage/agenda/read need no confirmation.
- Confirm externally visible actions. Before
gmail +send/+reply/+forward,chat +send, or creating calendar events that invite guests, restate the recipients, subject, and body summary; execute only after explicit approval. - Confirm destructive actions. Deleting mail, Drive files, or events, and modifying existing events or documents, require explicit approval with the target ID shown.
- Least privilege. Request only the scopes the task needs during
gws auth login; start read-only and expand. Never print credentials, tokens, or~/.config/gws/contents into chat output. - Timezone:
+agendauses the Google account timezone; pass--timezoneexplicitly when the user expects another zone.
Troubleshooting
| Symptom | Cause | Fix |
Access blocked / access_denied | Consent screen in testing mode, account not a test user | Add the account under Google Auth Platform → Audience → Test users |
| Token refresh fails | Stale encrypted credentials | Delete ~/.config/gws/credentials.enc, re-run gws auth login |
| Scope/permission errors | Scope not granted at login | Re-run gws auth login with the needed scopes (incremental) |
| Method not found | Discovery document cached or new API | gws <service> --help; commands are generated at runtime from the live Discovery Service |
| No OAuth client / lost secret | Google shows a client secret only once, at creation | Create a new Desktop client and download the JSON immediately — see references/setup-guide.md |
References
references/setup-guide.md— from-zero install and OAuth setup: GCP project, consent screen, Desktop client, the secret-visible-once policy, test users, headless/CI credentials, and service accounts. Read it whenevergws auth statusis notoauth2or the user asks to install gws.
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.

