gog-advanced
Reliable Google Workspace CLI skill (gogcli). Defaults to all-calendars for agenda queries; JSON-first; safe writes.
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- gog-advanced
- metadata
- { "clawdbot": { "emoji": "?️", "install": [ { "id": "brew", "bins": [ "gog" ], "kind": "brew", "label": "Install gogcli (brew)", "formula": "steipete/tap/gogcli" } ], "requires": { "bins": [ "gog" ] } } }
- description
- Reliable Google Workspace CLI skill (gogcli). Defaults to all-calendars for agenda queries; JSON-first; safe writes.
02 资源文件 1
- 参考文档_meta.json294 B
03 SKILL.md 正文
gog-advanced
Use gog (gogcli) for Google Workspace: Gmail, Calendar, Drive, Contacts, Sheets, Docs.
This skill is optimized for agent reliability:
- Prefer list/inspect first, don’t assume resource IDs.
- Prefer
--jsonfor parsing; treat human tables as fallback. - For “agenda / today / tomorrow / this week” questions: search across ALL calendars by default.
- For write actions (send email, create/update events, modify Drive/Sheets/Docs): confirm intent and summarize the exact action first.
Prereqs / Setup (once)
- Store OAuth client credentials:
gog auth credentials /path/to/client_secret.json
- Add an account (request only needed services):
gog auth add you@gmail.com --services gmail,calendar,drive,contacts,sheets,docs
- Make account default to avoid repeating flags:
export GOG_ACCOUNT=you@gmail.com
Notes:
- CLI help is discoverable:
gog --help,gog calendar --help, etc. gogsupports multiple accounts; use--accountorGOG_ACCOUNT. (Prefer env var.)
Global agent rules (non-negotiable)
-
Calendar agenda queries
- If user asks “what’s on my calendar today / tomorrow / this week / next N days”:
- Run:
gog calendar events --all --today|--tomorrow|--week|--days N --json - If results are empty, only then troubleshoot (timezone, account, auth status).
- Run:
- Only use a specific calendarId if the user explicitly asks for a specific calendar or name.
- If user asks “what’s on my calendar today / tomorrow / this week / next N days”:
-
Calendar identification
- If you need a calendarId (because the user wants a specific calendar):
- Run:
gog calendar calendars --json - Match by calendar name/summary and then query that calendarId.
- Run:
- If you need a calendarId (because the user wants a specific calendar):
-
Timezone
- For date-scoped queries, be explicit with
--today/--tomorrow/--week/--dayswhen possible. - If user’s timezone matters or results look off, check with:
gog calendar time --timezone <IANA_TZ>
- Prefer returning times in user-local timezone if JSON includes localized fields.
- For date-scoped queries, be explicit with
-
Writes require confirmation
- Before:
gog gmail send ...gog calendar create ...gog calendar update ...- any Sheets update/append/clear
- Do a “plan” message: recipients/calendar, subject/summary, time range, and ask for “yes”.
- Before:
High-signal command recipes
Calendar: “What’s on my calendar today?”
Default: all calendars.
gog calendar events --all --today --json
Tomorrow / week / next 3 days:
gog calendar events --all --tomorrow --jsongog calendar events --all --week --jsongog calendar events --all --days 3 --json
Search events across time window (keyword):
gog calendar search "standup" --days 30 --jsongog calendar search "meeting" --from 2026-02-01T00:00:00Z --to 2026-03-01T00:00:00Z --max 50 --json
Specific calendar (only when asked):
- Find calendarId:
gog calendar calendars --json
- Query it:
gog calendar events <calendarId> --today --json
Gmail: search + read + send (confirm sends)
Search:
gog gmail search 'newer_than:7d' --max 10 --jsongog gmail search 'from:boss@example.com newer_than:30d' --max 20 --json
Send (REQUIRES CONFIRMATION FIRST):
gog gmail send --to a@b.com --subject "Hi" --body "Hello"
Drive: find files
gog drive search "invoice" --max 10 --json
Contacts: list/search
gog contacts list --max 50 --json
Sheets: safe read/write (confirm writes)
Read:
gog sheets get <sheetId> "Tab!A1:D10" --json
Update (REQUIRES CONFIRMATION FIRST):
gog sheets update <sheetId> "Tab!A1:B2" --values-json '[["A","B"],["1","2"]]' --input USER_ENTERED
Append (REQUIRES CONFIRMATION FIRST):
gog sheets append <sheetId> "Tab!A:C" --values-json '[["x","y","z"]]' --insert INSERT_ROWS
Clear (REQUIRES CONFIRMATION FIRST):
gog sheets clear <sheetId> "Tab!A2:Z"
Docs: export/cat
gog docs export <docId> --format txt --out /tmp/doc.txtgog docs cat <docId>
Troubleshooting checklist (fast)
If calendar results look wrong or empty:
- Confirm account:
gog auth status
- List calendars to confirm visibility:
gog calendar calendars --json
- Ensure you used all-calendars for agenda:
gog calendar events --all --today --json
- If still empty, verify timezone assumptions:
gog calendar time --timezone <IANA_TZ>
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.