gogcli-ops
Operates Google Drive, Docs, Sheets, and Slides via gogcli. Use when listing, searching, reading, or updating Google Workspace files.
- License 许可
- MIT
- 最近更新
- 2026-08-05
- Stars
- ★ 35
- Forks
- 0
01 前言 Front Matter
- name
- gogcli-ops
- description
- Operates Google Drive, Docs, Sheets, and Slides via gogcli. Use when listing, searching, reading, or updating Google Workspace files.
- when_to_use
- Google Drive, Google Docs, Google Sheets, Slides, export doc, read spreadsheet, parse Google URL
- allowed-tools
- [ "Read", "Bash", "Grep", "Glob" ]
02 资源文件 3
- 参考文档agents/openai.yaml272 B
- 参考文档references/gogcli-cheatsheet.md1.3 KB
- 脚本scripts/gog_parse_url.py1.3 KB
03 SKILL.md 正文
Gogcli Ops
Operates Google Workspace files via the gogcli CLI — Drive, Sheets, Docs, and Slides.
Overview
Standardize gogcli usage: verify auth, resolve IDs from URLs, default to read-only checks, then run the minimum command needed.
Quick start
- Confirm gogcli is available:
gog --version - List accounts and pick one explicitly if more than one:
gog auth list - Resolve URL to ID with
python3 "${CLAUDE_SKILL_DIR}/scripts/gog_parse_url.py" "<url-or-id>" - Run a read-only metadata command first (Drive/Sheets/Docs/Slides)
Workflow decision tree
- Identify target type:
sheet | doc | slide | file | folder | id | unknownvia"${CLAUDE_SKILL_DIR}/scripts/gog_parse_url.py". # skill-local - Choose the smallest read-only command to confirm access:
- Sheets:
gog sheets metadata <spreadsheetId> - Docs:
gog docs info <docId> - Slides:
gog slides info <presentationId> - Drive file/folder:
gog drive get <fileId>orgog drive permissions <fileId>
- Sheets:
- Only proceed to write operations (update/append/move/share/delete) after explicit user confirmation.
Core tasks
Auth and account selection
- Show stored accounts:
gog auth list - Show auth configuration:
gog auth status - Add/authorize account:
gog auth add <email> - Always use
--account <email>when multiple accounts exist.
Resolve IDs from URLs
- Parse a URL or ID:
python3 "${CLAUDE_SKILL_DIR}/scripts/gog_parse_url.py" "<url-or-id>"# skill-local
- If output type is
unknown, ask for a direct ID or a different URL.
Drive (files/folders)
- List root or a folder:
gog drive ls - Search by query:
gog drive search "<query>" - Get metadata:
gog drive get <fileId> - Download/export:
gog drive download <fileId> - Permissions check:
gog drive permissions <fileId>
Sheets
- Metadata:
gog sheets metadata <spreadsheetId> - Read values:
gog sheets get <spreadsheetId> <range> - Export:
gog sheets export <spreadsheetId> - Write operations (update/append/clear/format): require explicit confirmation and exact range.
Docs
- Metadata:
gog docs info <docId> - Read text:
gog docs cat <docId> - Export:
gog docs export <docId>
Slides
- Metadata:
gog slides info <presentationId> - Export:
gog slides export <presentationId>
Output modes
- Use
--plainfor stable TSV output. - Use
--jsonwhen a caller wants structured output. - Use
--no-inputin non-interactive flows to avoid hanging.
Error handling
- 403/404: verify account (
gog auth list), check permissions (gog drive permissions <fileId>), and confirm the ID. - If access fails, request the user to share the file with the selected account or provide the correct account.
Resources
- See
${CLAUDE_SKILL_DIR}/references/gogcli-cheatsheet.mdfor a compact command list. - Use
"${CLAUDE_SKILL_DIR}/scripts/gog_parse_url.py"to normalize URLs into IDs before running commands. # skill-local
04 同仓库更多 Skills
escape-skill
暂无简介
zz-review-empty
暂无简介
harness-schedule-run
Use when running Plans.md tasks on a scheduled cadence (fresh context per wake-up, sprint-contract flow, plateau detection, flock guard). Do NOT load for: single-task work (harness-work), planning, review, release.
harness-work
Use when implementing, executing, or running Plans.md tasks — single task, parallel workers, or full team/breezing run. Accepts specific task numbers or ranges. Do NOT load for: planning, review, release, or setup.
harness-schedule-run
Use when running Plans.md tasks on a scheduled cadence (fresh context per wake-up, sprint-contract flow, plateau detection, flock guard). Do NOT load for: single-task work (harness-work), planning, review, release.
breezing
Use when running the full team/breezing flow end-to-end — all tasks with parallel workers. Do NOT load for: single-task implementation, planning, review, release, or setup.