TopRank Skills

Home / Claw Skills / 邮件 / gog-restricted
Official OpenClaw rules 54%

gog-restricted

Google Workspace CLI for Gmail, Calendar, and Auth (restricted via security wrapper).

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 gog-restricted 技能。 若已安装,则直接安装 gog-restricted 技能。

Overview

Skill Key
cettoana/gog-restricted
Author
cettoana
Source Repo
openclaw/skills
Version
-
Source Path
skills/cettoana/gog-restricted
Latest Commit SHA
1d462099e8e0645b727ae52c90eea527e0c913e3

Extracted Content

SKILL.md excerpt

# gog (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 `--account` unless overriding
- Always use `--json` for parseable output
- Always use `--no-input` to 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 exit
- `gog --help` — show top-level help
- `gog auth status` — show auth configuration and keyring backend
- `gog auth list` — list stored accounts
- `gog auth services` — list supported auth services and scopes

### Gmail — Read

- `gog gmail search '<query>' --max N --json` — search threads using Gmail query syntax
- `gog gmail read <messageId>` — read a message (alias for `gmail thread`)
- `gog gmail get <messageId> --json` — get a message (full|metadata|raw)
- `gog gmail thread <threadId> --json` — get a thread with all messages
- `gog gmail thread attachments <threadId>` — list all attachments in a thread
- `gog gmail messages search '<query>' --max N --json` — search messages using Gmail query syntax
- `gog gmail attachment <messageId> <attachmentId>` — download a single attachment
- `gog gmail url <threadId>` — print Gmail web URL for a thread
- `gog 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 thread
- `gog gmail batch modify <messageId> ... --add <label> --remove <label>` — modify labels on multiple messages

### Gmail...

Related Claw Skills