Community程式設計與開發github.com

steipete/gog

Google Workspace 命令列工具,支援 Gmail、日曆、雲端硬碟、聯絡人、試算表和文件。

gog 是什麼?

steipete/gog 是一個強大的 Google Workspace 命令列介面 (CLI),專為開發者和 AI 代理設計,用於透過終端機直接管理 Gmail、日曆、雲端硬碟、聯絡人、試算表和 Google Docs 等核心服務。這個技能消除了使用圖形介面的需求,讓您可以自動化電子郵件整理、排程事件、管理檔案、同步聯絡人、編輯試算表資料以及操作文件。它透過 Google API 進行 OAuth 2.0 認證,支援批次操作和指令碼執行,非常適合 CI/CD 管線、自動化工作流程或是需要程式化存取 Workspace 資料的 AI 代理。使用這項技能可以大幅提升生產力,特別是在處理大量資料或需要重複性任務自動化的場景中。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/steipete/clawdis/tree/main/skills/gog

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

gog 是做什麼的?

Google Workspace 命令列工具,支援 Gmail、日曆、雲端硬碟、聯絡人、試算表和文件。

功能

  • Gmail:讀取、搜尋、傳送和管理電子郵件。
  • 日曆:建立、更新和查詢日曆事件。
  • 雲端硬碟:上傳、下載和管理檔案與資料夾。
  • 聯絡人:管理聯絡人清單和群組。
  • 試算表:讀取和編輯 Google 試算表資料。
  • 文件:建立、讀取和更新 Google 文件。

安裝

npm install -g gog

或從 GitHub Releases 下載預編譯的二進位檔。

設定

  1. 從 Google Cloud Console 取得 OAuth 2.0 用戶端憑證。
  2. 設定環境變數:
    export GOG_CLIENT_ID="your-client-id"
    export GOG_CLIENT_SECRET="your-client-secret"
    
  3. 執行 gog auth 以進行認證。

使用方式

Gmail

# 列出未讀郵件
gog gmail list --unread

# 傳送郵件
gog gmail send --to "[email protected]" --subject "Hello" --body "This is a test."

日曆

# 列出今日事件
gog calendar list --today

# 建立事件
gog calendar create --title "會議" --start "2024-01-01T10:00:00" --end "2024-01-01T11:00:00"

雲端硬碟

# 列出檔案
gog drive list --query "mimeType='application/vnd.google-apps.document'"

# 上傳檔案
gog drive upload --file /path/to/file.txt

聯絡人

# 列出聯絡人
gog contacts list

# 新增聯絡人
gog contacts create --name "John Doe" --email "[email protected]"

試算表

# 讀取試算表
gog sheets read --spreadsheet-id "abc123" --range "Sheet1!A1:B10"

# 更新儲存格
gog sheets update --spreadsheet-id "abc123" --range "Sheet1!A1" --value "新值"

文件

# 建立文件
gog docs create --title "我的文件" --content "這是內容。"

# 讀取文件
gog docs read --document-id "xyz456"

授權

MIT

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

steipete/1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

steipete/apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

steipete/apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

steipete/bear-notes

Create, search, and manage Bear notes via grizzly CLI.

steipete/blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

steipete/blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

steipete/bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

steipete/camsnap

Capture frames or clips from RTSP/ONVIF cameras.

steipete/clawhub

Search, install, update, sync, or publish agent skills with the ClawHub CLI and registry.

steipete/coding-agent

Delegate coding work to Codex, Claude Code, or OpenCode as background workers; not simple edits or read-only code lookup.

steipete/discord

Discord message-tool ops: send/read/edit/delete, react, poll, pin, thread, search, presence, media/components.

steipete/eightctl

Control Eight Sleep pods (status, temperature, alarms, schedules).

steipete/gemini

Gemini CLI one-shot prompts, summaries, generation, skills, hooks, MCP, or Gemma routing.

steipete/gh-issues

Fetch GitHub issues, select candidates, spawn background fix agents, open PRs, and optionally process PR review comments.

steipete/gifgrep

Search GIF providers with CLI/TUI, download results, and extract stills/sheets.

steipete/github

GitHub CLI for issues, PRs, CI/check logs, comments, reviews, releases, repos, and gh api queries.

steipete/goplaces

Query Google Places for text search, place details, resolve, reviews, or scriptable JSON via goplaces.

steipete/healthcheck

Audit/harden OpenClaw hosts: SSH, firewall, updates, exposure, backups, disk encryption, gateway security.

steipete/himalaya

Himalaya CLI for IMAP/SMTP mail: list, read, search, compose, reply, forward, copy, move, delete.

steipete/imsg

iMessage/SMS CLI for listing chats, history, and sending messages via Messages.app.

相關技能