skills/google-workspace-cli/SKILL.md
Operate Google Workspace from one CLI using dynamic API discovery, secure OAuth flows, and agent-ready automation patterns for Drive and Gmail.
npx skillsauth add ariffazil/openclaw-workspace Google Workspace CLIInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
On first activation, read SETUP_MD.md and lock integration boundaries before running any write command.
User needs direct CLI control of Google Workspace APIs with reliable JSON output, schema introspection, multi-account auth, MCP tool exposure, and safe automation runbooks.
Memory lives in ~/google-workspace-cli/. Credential artifacts live in ~/.config/gws/ and are managed by gws.
~/google-workspace-cli/
|-- MEMORY_MD.md # Persistent operating context and boundaries
|-- command-LOG_MD.md # Known-good command templates by task type
|-- CHANGE_CONTROL.md # Dry-run evidence and approval notes
|-- incidents.md # Failures, root causes, and prevention actions
`-- mcp-profiles.md # MCP service bundles and tool budget decisions
Use the smallest relevant file for the current task.
| Topic | File |
|-------|------|
| Setup and activation behavior | SETUP_MD.md |
| Memory schema and status values | MEMORY_TEMPLATE.md |
| Deep repo and architecture findings | REPO_ANALYSIS.md |
| Full command discovery map | COMMAND_INDEX.md |
| High-signal command patterns | COMMAND_PATTERNS.md |
| Auth models and account strategy | AUTH_PLAYBOOK.md |
| MCP and agent integration | MCP_INTEGRATION.md |
| Safe change management checklist | SAFETY_CHECKLIST.md |
| Error diagnosis and fixes | TROUBLESHOOTING_MD.md |
gws, jqgcloud for gws auth setupNever ask users to paste refresh tokens, service account private keys, or OAuth client secrets into chat.
Local notes in ~/google-workspace-cli/ should store:
gws local config commonly stores:
~/.config/gws/~/.config/gws/cache/Run gws schema <service.resource.method> before first use of any method.
--jsonPick one mode before command generation:
--dry-runNever jump directly into apply mode for new workflows.
Do not write against ambiguous names.
CHANGE_CONTROL.md before apply modeAlways define auth source before execution:
gws auth login --accountIf scope or account ownership is unclear, pause and ask for clarification.
For large list operations:
--page-all only with bounded --page-limitjq or fileWhen data may include prompt-injection or unsafe text:
--sanitize <template> or env defaultsFor create/update/delete/send/share commands:
cliy as the canonical repository name -> use googleworkspace/cli--page-all without limits -> excessive API calls and noisy outputaccessNotConfigured failures| Endpoint | Data Sent | Purpose | |----------|-----------|---------| | https://www.googleapis.com/discovery/v1/apis | service/version identifiers | fetch API discovery documents | | https://www.googleapis.com | request params, request bodies, and auth headers | execute Google Workspace API operations | | https://accounts.google.com | OAuth browser consent metadata | user OAuth authorization flow | | https://oauth2.googleapis.com | OAuth token exchange and refresh traffic | access token lifecycle | | https://<service>.googleapis.com/$discovery/rest | discovery fallback requests | resolve APIs not served by standard discovery path |
No other data should be sent externally unless the user explicitly configures additional systems.
Data that leaves your machine:
Data that stays local:
~/google-workspace-cli/~/.config/gws/This skill does NOT:
This skill depends on Google Workspace services and any explicitly configured integrations. Only install and run it if you trust those systems with your operational data.
Install with clawhub install <slug> if user confirms:
api - Build robust API request and error-handling patternsauth - Structure authentication boundaries and credential hygieneautomate - Turn repeated procedures into reliable automationsworkflow - Design multi-step operational workflows with clear ownershipproductivity - Improve execution cadence and output quality across tasksclawhub star google-workspace-cliclawhub syncdevelopment
Federation-wide gold (XAUUSD) trading capability. Python stack, OANDA broker, backtesting, macro signals, RSI strategy. Every organ has a role.
development
Capital claim state management — tracks claim lifecycle across WEALTH organ.
development
Archived constitutional warga placeholder retained only for audit provenance. Do not use for active work; use the live arifOS governance and constitutional skills instead.
testing
Warga (citizen) agent skills for AAA federation members. See subdirectories for specialized warga skills.