gog-restricted
Google Workspace CLI for Gmail, Calendar, and Auth (restricted via security wrapper).
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/cettoana/gog-restrictedgog (restricted)
Google Workspace CLI. Runs through a security wrapper — only whitelisted commands are allowed, everything else is hard-blocked.
Account
- Default: via GOG_ACCOUNT env
- No need to pass
--accountunless overriding - Always use
--jsonfor parseable output - Always use
--no-inputto avoid interactive prompts
Setup
Run script/setup.sh to install the security wrapper. This moves the real gog binary to .gog-real and replaces it with a wrapper that enforces the allowlist below. The script is idempotent — safe to run more than once.
Allowed Commands
System
gog --version— print version and exitgog --help— show top-level helpgog auth status— show auth configuration and keyring backendgog auth list— list stored accountsgog auth services— list supported auth services and scopes
Gmail — Read
gog gmail search '<query>' --max N --json— search threads using Gmail query syntaxgog gmail read <messageId>— read a message (alias forgmail thread)gog gmail get <messageId> --json— get a message (full|metadata|raw)gog gmail thread <threadId> --json— get a thread with all messagesgog gmail thread attachments <threadId>— list all attachments in a threadgog gmail messages search '<query>' --max N --json— search messages using Gmail query syntaxgog gmail attachment <messageId> <attachmentId>— download a single attachmentgog gmail url <threadId>— print Gmail web URL for a threadgog gmail history— Gmail change history
Gmail — Organize
Organize operations use label modification. For example, to trash a message, add the TRASH label via thread modify; to archive, remove the INBOX label; to mark as read, remove the UNREAD label.
gog gmail thread modify <threadId> --add <label> --remove <label>— modify labels on a threadgog gmail batch modify <messageId> ... --add <label> --remove <label>— modify labels on multiple messages
Gmail — Labels
gog gmail labels list --json— list all labelsgog gmail labels get <labelIdOrName>— get label details (including counts)gog gmail labels create <name>— create a new labelgog gmail labels add <messageId> --label <name>— add label to a messagegog gmail labels remove <messageId> --label <name>— remove label from a messagegog gmail labels modify <threadId> ... --add <label> --remove <label>— modify labels on threads
Calendar — Read
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-cettoana-gog-restricted": {
"enabled": true,
"auto_update": true
}
}
}