platforms/claude/skills/google-workspace/SKILL.md
Google Workspace read-only via gogcli: Gmail, Drive, Docs, Sheets, Slides, Calendar, Contacts, Tasks, Keep. 查邮件、文件、文档、表格、日程、联系人、任务、笔记。Keywords: gmail email 邮件 drive 云盘 docs sheets calendar 日历 tasks 任务 keep 笔记 gog
npx skillsauth add codingsamss/ai-dotfiles google-workspaceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Access Google Workspace services from the terminal using gogcli (gog). This skill only exposes read-only and safe operations to protect your Google account data.
brew install steipete/tap/gogcligog auth status to verify authenticationCreate OAuth credentials at Google Cloud Console:
Store credentials:
gog auth credentials ~/Downloads/client_secret_*.json
Authorize your account (choose one):
# Recommended: read-only for all services this skill uses
gog auth add [email protected] --services gmail,drive,docs,sheets,slides,calendar,contacts,tasks,keep,people --readonly
# Minimal: only core services
gog auth add [email protected] --services gmail,drive,calendar,contacts --readonly
Verify:
gog auth status
Check authorized services:
gog auth services
Confirm the output includes all services you need. Re-run auth add to add missing ones.
All commands support these flags:
--json / -j - JSON output (structured parsing)--plain / -p - TSV output (simple parsing)--account <email> - Select account (if multiple configured)--max N - Limit number of resultsTriggers: "search email", "find email about", "搜索邮件"
gog gmail search '<query>' --max 10
Uses Gmail search syntax (e.g. from:boss subject:urgent, is:unread, newer_than:1d)
Triggers: "search messages", "find message"
gog gmail messages search '<query>' --max 10 --include-body
Triggers: "read email", "show thread", "查看邮件"
gog gmail thread get <threadId>
Add --download --out-dir ./attachments to save attachments.
Triggers: "read message", "get message"
gog gmail get <messageId>
Triggers: "download attachment", "下载附件"
gog gmail attachment <messageId> <attachmentId> --out ~/Downloads/
Triggers: "email labels", "gmail labels", "邮件标签"
gog gmail labels list
Triggers: "email filters", "gmail filters"
gog gmail filters list
Triggers: "my drafts", "草稿"
gog gmail drafts list --max 10
Triggers: "list files", "show drive", "drive files", "云盘文件"
gog drive ls --max 20
gog drive ls --parent <folderId> --max 20
Triggers: "search drive", "find file", "搜索文件"
gog drive search '<query>' --max 10
Triggers: "file info", "file details"
gog drive get <fileId>
Triggers: "download file", "export file", "下载文件"
gog drive download <fileId> --out ~/Downloads/
gog drive download <fileId> --format pdf
Supported formats: pdf, docx, pptx, xlsx, csv, txt, png
Triggers: "file permissions", "who has access"
gog drive permissions <fileId>
Triggers: "shared drives", "team drives"
gog drive drives --max 20
Triggers: "file comments", "文件评论"
gog drive comments list <fileId> --max 20
Triggers: "read doc", "show document", "读文档", "文档内容"
gog docs cat <docId>
Triggers: "doc info", "document details"
gog docs info <docId>
Triggers: "doc tabs", "document tabs"
gog docs list-tabs <docId>
Triggers: "export doc", "导出文档"
gog docs export <docId> --format pdf --out ~/Downloads/
Supported formats: pdf, docx, txt
Triggers: "read sheet", "show spreadsheet", "读表格", "表格数据"
gog sheets get <spreadsheetId> 'Sheet1!A1:Z100'
Triggers: "sheet info", "spreadsheet info"
gog sheets metadata <spreadsheetId>
Triggers: "export sheet", "导出表格"
gog sheets export <spreadsheetId> --format xlsx --out ~/Downloads/
Supported formats: pdf, xlsx
Triggers: "slides info", "presentation info", "幻灯片信息"
gog slides info <presentationId>
Triggers: "list slides", "show slides", "查看幻灯片"
gog slides list-slides <presentationId>
Triggers: "read slide", "slide content"
gog slides read-slide <presentationId> <slideId>
Triggers: "export slides", "导出幻灯片"
gog slides export <presentationId> --format pdf --out ~/Downloads/
Supported formats: pdf, pptx
Triggers: "my calendars", "list calendars", "我的日历"
gog calendar calendars
Triggers: "today's events", "what's on today", "今天的日程", "今日安排"
gog calendar events primary --today
Triggers: "this week", "weekly schedule", "本周日程"
gog calendar events primary --week
Triggers: "events from [date] to [date]", "日程查询"
gog calendar events primary --from <YYYY-MM-DD> --to <YYYY-MM-DD>
Relative time example: --from today --to tomorrow, or --days 7
Triggers: "search calendar", "find event", "搜索日程"
gog calendar search '<query>' --days 30
Triggers: "event details", "show event"
gog calendar event primary <eventId>
Triggers: "am I free", "check availability", "空闲时间"
gog calendar freebusy --calendars primary --from <start> --to <end>
Triggers: "any conflicts", "日程冲突"
gog calendar conflicts --calendars primary --today
Triggers: "my contacts", "list contacts", "通讯录", "联系人列表"
gog contacts list --max 50
Triggers: "search contacts", "find contact", "查找联系人"
gog contacts search '<query>' --max 20
Triggers: "contact info", "联系人详情"
gog contacts get <resourceNameOrEmail>
Triggers: "my task lists", "任务列表"
gog tasks lists
Triggers: "my tasks", "show tasks", "查看任务"
gog tasks list <tasklistId> --max 50
Triggers: "task details", "任务详情"
gog tasks get <tasklistId> <taskId>
Triggers: "my notes", "list keep notes", "笔记列表"
gog keep list
Triggers: "read note", "show note", "查看笔记"
gog keep get <noteId>
Triggers: "search notes", "搜索笔记"
gog keep search '<query>'
Triggers: "google auth", "gog status", "检查认证"
gog auth status
Triggers: "google accounts", "gog accounts"
gog auth list
Triggers: "google whoami", "gog whoami"
gog people me
--accountThis skill only allows the read-only commands listed above. All write, modify, and delete operations are intentionally excluded. For the full list of excluded commands, see references/excluded-commands.md.
development
Safely search MX users or groups and send Midea MX / 美信 IM messages from Codex. Use when the user asks to notify someone, send a message to a person or group, use a configured group alias, @ users, @ all, or send MX file/image messages. Read lookups need no extra authorization; every live send needs explicit user authorization for that exact target and message.
development
Use when Sam wants to collect, save, translate, or reformat official source articles/blog posts/research/product announcements into the Obsidian vault, especially requests mentioning 官方文章, 官网排版, 原始排版, 美观, 收录, 1:1, 原文1:1, or 英文中文对照1:1. Preserve the source site's information architecture and visual hierarchy rather than forcing a generic Markdown template.
development
Query Midea MX / 美信 local message cache through the MX local HTTP query service from Codex. Use when the user asks to read MX sessions, search chat history, search messages globally or inside a group/session, list recent messages, or page message history. This is read-only and does not require send authorization. Never fall back to reading SQLite or app cache files directly.
tools
MX channel output rules. Always active in MX conversations.