通过命令行统一管理 Gmail、日历、云盘、表格与文档等 Google 工作区任务。
整体风险较低到中等:材料显示其核心用途是通过 OAuth 访问 Google Workspace 数据,主要风险集中在账号授权范围与对邮箱、云盘、文档等数据的读写能力。源码可见且社区采用度很高,未见明确恶意外传或越权执行红旗,但仍应按最小权限配置与核验来源一致性。
README 明确写明“Requires OAuth setup”,并要求提供 client_secret.json 及为 Gmail、Calendar、Drive、Contacts、Docs、Sheets 添加账号授权。虽系统字段写“无密钥/环境变量”,但实际存在 OAuth 客户端凭据与用户授权令牌,若泄露可导致对应 Google Workspace 资源被滥用。
功能声明与示例命令表明该工具会与 Google Workspace 相关服务通信,以查询、发送和修改 Gmail、Calendar、Drive、Contacts、Sheets、Docs 数据。材料未显示会连接不明第三方端点,网络外发看起来与声明功能一致,但用户数据会被传至 Google 服务侧处理。
系统客观检查项标记为 prompt-only,且材料中未显示该 Skill 自身具有本机起进程、执行任意脚本、调用 shell 或申请系统级高权限的描述。README 主要是 CLI 使用示例,未见超出正常命令行工具范畴的危险执行能力证据。
按 README,该工具可搜索邮件、发送邮件、创建草稿、读取与修改日历事件、搜索 Drive、列出联系人、读写/清空 Sheets、导出 Docs,数据访问面较广,覆盖多类敏感办公数据。当前访问范围与声明功能基本一致,但应关注 OAuth scope 是否过宽并限制到实际所需服务。
正面证据包括:GitHub 开源、社区采用度极高(约 37.7 万 star),可审计性较好,显著降低供应链风险。但材料同时存在来源细节不完整或不一致之处:许可证未声明、维护状态未知,且“gog”名称与所给仓库 openclaw/openclaw 表面上不完全对应,建议额外核验仓库与发布物的对应关系。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "gog" 技能: 1. 下载 https://raw.githubusercontent.com/openclaw/openclaw/main/skills/gog/SKILL.md 2. 保存为 ~/.claude/skills/gog/SKILL.md 3. 装好后重载技能,告诉我可以用了
用 gog 帮我查找本周所有未读 Gmail 邮件,并列出我未来 7 天的 Google Calendar 会议,按日期生成一个待办清单。
返回未读邮件摘要、未来会议安排,以及按天整理的待办事项清单。
使用 gog 扫描我的 Google Drive,找出过去 30 天新增的文件,按类型分类,并标记可能重复的文档。
输出新增文件清单、文件类型分类结果,以及疑似重复文件列表。
通过 gog 读取指定的 Google Sheets 销售表和相关 Google Docs 周报,提取关键指标并生成一段项目进展摘要。
返回关键数据指标、文档要点,以及整合后的项目进展摘要。
Use gog for Gmail/Calendar/Drive/Contacts/Sheets/Docs. Requires OAuth setup.
Setup (once)
gog auth credentials /path/to/client_secret.jsongog auth add [email protected] --services gmail,calendar,drive,contacts,docs,sheetsgog auth listCommon commands
gog gmail search 'newer_than:7d' --max 10gog gmail messages search "in:inbox from:ryanair.com" --max 20 --account [email protected]gog gmail send --to [email protected] --subject "Hi" --body "Hello"gog gmail send --to [email protected] --subject "Hi" --body-file ./message.txtgog gmail send --to [email protected] --subject "Hi" --body-file -gog gmail send --to [email protected] --subject "Hi" --body-html "<p>Hello</p>"gog gmail drafts create --to [email protected] --subject "Hi" --body-file ./message.txtgog gmail drafts send <draftId>gog gmail send --to [email protected] --subject "Re: Hi" --body "Reply" --reply-to-message-id <msgId>gog calendar events <calendarId> --from <iso> --to <iso>gog calendar create <calendarId> --summary "Title" --from <iso> --to <iso>gog calendar create <calendarId> --summary "Title" --from <iso> --to <iso> --event-color 7gog calendar update <calendarId> <eventId> --summary "New Title" --event-color 4gog calendar colorsgog drive search "query" --max 10gog contacts list --max 20gog sheets get <sheetId> "Tab!A1:D10" --jsongog sheets update <sheetId> "Tab!A1:B2" --values-json '[["A","B"],["1","2"]]' --input USER_ENTEREDgog sheets append <sheetId> "Tab!A:C" --values-json '[["x","y","z"]]' --insert INSERT_ROWSgog sheets clear <sheetId> "Tab!A2:Z"gog sheets metadata <sheetId> --jsongog docs export <docId> --format txt --out /tmp/doc.txtgog docs cat <docId>Calendar Colors
gog calendar colors to see all available event colors (IDs 1-11)--event-color <id> flaggog calendar colors output):
Email Formatting
Prefer plain text. Use --body-file for multi-paragraph messages (or --body-file - for stdin).
Same --body-file pattern works for drafts and replies.
--body does not unescape \n. If you need inline newlines, use a heredoc or $'Line 1\n\nLine 2'.
Use --body-html only when you need rich formatting.
HTML tags: <p> for paragraphs, <br> for line breaks, <strong> for bold, <em> for italic, <a href="url"> for links, <ul>/<li> for lists.
Example (plain text via stdin):
gog gmail send --to [email protected] \
--subject "Meeting Follow-up" \
--body-file - <<'EOF'
Hi Name,
Thanks for meeting today. Next steps:
- Item one
- Item two
Best regards,
Your Name
EOF
Example (HTML list):
gog gmail send --to [email protected] \
--subject "Meeting Follow-up" \
--body-html "<p>Hi Name,</p><p>Thanks for meeting today. Here are the next steps:</p><ul><li>Item one</li><li>Item two</li></ul><p>Best regards,<br>Your Name</p>"
Notes
[email protected] to avoid repeating --account.--json plus --no-input.--values-json (recommended) or as inline rows.…
通过命令行发现并控制 BluOS 设备的播放、分组与音量。
自动化管理 OpenClaw 夜间版本发布、分支维护与主线回合并流程。
为 OpenClaw 代理创建的 GitHub PR 或议题自动添加脱敏执行记录。
用于检索和分析 Slack 归档,统计消息线程并辅助仓库协作处理。
快速搭建一次性原型,验证方案可行性并给出对比结论。
帮助用户进行网页搜索、内容提取与研究资料整理,快速获取可靠信息。
通过命令行统一操作 Google Workspace 服务并自动化办公流程。
用 AI 统一操作谷歌办公套件,自动处理邮件、日历、文档与云盘协作
连接 Gmail、日历、云盘与文档,统一处理办公协作与自动化任务
让 AI 代理安全接入 Gmail、日历和云盘并自动处理办公协作任务
让 AI 通过 gogcli 读取、写入并管理 Google 表格数据与表单内容
用自然语言统一管理 Gmail、云盘、日历及文档等 Google Workspace 服务。