当您需要通过本地安装的 `gog` CLI 创建、查看、更新、追加或重新组织 Google 表格时使用此技能。适用于本地 Google 账户。
Use this skill to operate on Google Sheets through the local gog CLI instead of a hosted API bridge. It is intended for spreadsheet CRUD work on the user's own Google account with local OAuth.
gog must be installed locally.skills.entries.gogSheets.config.login and skills.entries.gogSheets.config.password are both set.Use gogSheets as the OpenClaw config key:
json5
{
skills: {
entries: {
gogSheets: {
enabled: true,
config: {
login: "you@gmail.com",
password: "app-specific-or-local-secret"
}
}
}
}
}
login and password are load-time gating requirements for OpenClaw. They make the skill eligible to load, but the sheet operations below still use local gog OAuth unless you later add separate automation around those config values.
If you do not want to store raw secrets directly in config, prefer using skills.entries.gogSheets.env or apiKey alongside this config and keep prompts free of secrets.
bash
gog auth credentials ~/Downloads/client_secret_....json
bash
gog auth add you@gmail.com --services sheets
bash
gog auth add you@gmail.com --services sheets --force-consent
bash
export GOG_ACCOUNT=you@gmail.com
Or pass --account you@gmail.com on each command.
--json for reads when the result will be parsed or summarized.Sheet1!A1:D20.gog sheets --help or gog <subcommand> --help before executing.GOG_ENABLE_COMMANDS=sheets.gog on the host at skill load time; sandboxed runs also need gog installed inside the container.--readonly instead of assuming write scopes are acceptable.Before any destructive or broad write, explicitly state:
Ask for confirmation before:
clear on any rangefind-replace across a whole spreadsheet or large tabupdateDirect reads and narrowly scoped appends or cell updates can proceed without a separate confirmation when the user request is already explicit.
See references/gog-sheets.md for command patterns.
update for direct cell or range replacement.append for new rows.--copy-validation-from when appropriate.gog auth credentials and inspect account state with gog auth status.--force-consent.gog help first rather than guessing.