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 synctesting
OpenClaw edge agent bridge — operational triage, doctor, restart, and A2A bridge routing for the federation edge (Telegram surface). USE WHEN: "openclaw unhealthy", "gateway down", "edge bot not responding", "a2a bridge disconnected", "watchdog tripped", "openclaw doctor", "openclaw restart". NOT for token/security audit — use FORGE-telegram-audit.
tools
Generate images, videos, TTS, voice clone, and music via MiniMax MCP server. Use when user asks to "draw", "generate image", "create picture", "make a photo", "text to image", "image generation".
testing
Single load-bearing constitutional-judgment skill. Routes all F1–F13, verdict, hold, seal, scope, authority and floor-check calls through the live arif_judge surface. Replaces 7 overlapping predecessors (arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge).
development
MANDATORY LSP grounding gate BEFORE any code mutation on .ts, .py, .js, .tsx, .jsx files. Forces the agent to read real-time compiler diagnostics and structural project context before editing — eliminating blind guesses and anchoring every mutation in F2 (TRUTH). Routes through arifOS kernel (:8088) for centralized gate logic.