关于 gogcli
gogcli 是通过 steipete/gogcli 操作 Google Workspace 的命令行技能,涵盖 Gmail、Calendar 和 Drive 示例。它支持 JSON 输出和按命令查看帮助,适用于脚本及日常工作区任务。
主要功能
- 01搜索和发送 Gmail 邮件
- 02列出和创建日历事件
- 03搜索 Google Drive
- 04输出 JSON 格式结果
- 05查看命令专属帮助
适用场景
- 01搜索近期 Gmail 邮件
- 02查看或创建日历事件
- 03查找 Google Drive 中的报告
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ michalvavra/ agents --skill gogcli安装后在 Claude Code 中输入/gogcli确认已加载。
附带文件references/examples.md
详细介绍
gogcli
通过 steipete/gogcli 使用 Google Workspace 的命令行工具。
示例
gog gmail search 'newer_than:7d from:[email protected]'
gog gmail thread <threadId>
gog gmail send --to [email protected] --subject "Hi" --body "Text"
gog calendar events primary --from 2025-01-15T00:00:00Z --to 2025-01-16T00:00:00Z
gog calendar create primary --summary "Meeting" --from <RFC3339> --to <RFC3339>
gog drive search "quarterly report"
gog drive upload ./file.pdf --parent <folderId>
gog drive download <fileId> --out ./file.pdf
gog tasks list <tasklistId>
gog tasks add <tasklistId> --title "Task" --due <RFC3339>
gog contacts search "John"
gog sheets get <spreadsheetId> 'Sheet1!A1:B10'
使用 --json 获取可解析的输出,使用任意命令的 --help 查看选项。
Gmail 查询语法、批量操作和工作流请参阅 references/examples.md。
评论
支持 Markdown