From gogcli
Google Workspace を CLI で操作するスキル。gogcli (gog) コマンドを使い、 Gmail(メール検索・送信・ラベル管理)、Google Calendar(予定一覧・作成・更新・削除・空き時間確認)、 Google Drive(ファイル検索・アップロード・ダウンロード・共有)、Google Sheets(セル読み書き・フォーマット)、 Google Tasks(タスク管理)、Google Docs / Slides(エクスポート・作成)、 Google Contacts / People(連絡先検索・管理)、Google Chat(メッセージ送信)、 Google Classroom(コース・課題管理)、Google Groups、Google Keep を操作する。 「メールを確認」「予定を作成」「ドライブで検索」「スプレッドシートを更新」「タスクを追加」 「連絡先を検索」「チャットで送信」などのリクエストに対応する。
How this skill is triggered — by the user, by Claude, or both
Slash command
/gogcli:gogThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
[gogcli](https://github.com/steipete/gogcli) は Google Workspace サービスを統合的に操作する CLI ツール。
gogcli は Google Workspace サービスを統合的に操作する CLI ツール。
gog <service> <command> の統一構文で、Gmail / Calendar / Drive / Sheets / Tasks / Docs / Slides / Contacts / People / Chat / Classroom / Groups / Keep を操作できる。
操作を実行する前に、以下を確認する:
which gog
未インストールの場合、Homebrew でインストールを提案する:
brew install steipete/tap/gogcli
gog auth list
アカウントが登録されていない場合、セットアップ手順を案内する。 詳細は setup.md を参照。
--account フラグまたは GOG_ACCOUNT 環境変数でアカウントを指定する。
ユーザーがアカウントを明示しない場合、gog auth list で登録済みアカウントを確認し、どのアカウントを使うか尋ねる。
--json を付ける--plain(TSV 出力)を使う--force フラグは明示的に指示された場合のみ使用するgog gmail send) は実行前に件名・宛先・本文をユーザーに確認するgog auth status で確認し、再認証を案内today, tomorrow, monday 等2025-01-15T09:00:00+09:002025-01-15(終日イベント用)最頻使用サービス。メール検索、本文取得、送信、ラベル管理を行う。
# スレッド検索(Gmail クエリ構文)
gog gmail search "is:unread" --max 20
gog gmail search "from:[email protected] after:2025/01/01"
# メッセージ本文取得
gog gmail get <messageId>
# メール送信
gog gmail send --to "[email protected]" --subject "件名" --body "本文"
# ラベル一覧
gog gmail labels list
詳細: gmail.md
予定の一覧取得、作成、更新、削除、空き時間確認を行う。
# 今日の予定
gog calendar events --today
# 今週の予定(全カレンダー)
gog calendar events --week --all
# 予定作成
gog calendar create primary --summary "会議" --from "2025-01-15T10:00:00" --to "2025-01-15T11:00:00"
# 空き時間確認
gog calendar freebusy "[email protected]" --from today --to tomorrow
# 予定の競合検出
gog calendar conflicts --from today --to "next friday"
詳細: calendar.md
ファイルの検索、アップロード、ダウンロード、共有管理を行う。
# ファイル一覧
gog drive ls
# 全文検索
gog drive search "議事録"
# ファイルダウンロード
gog drive download <fileId>
# ファイルアップロード
gog drive upload ./report.pdf --parent <folderId>
# 共有設定
gog drive share <fileId> --type user --role reader --email "[email protected]"
詳細: drive.md
スプレッドシートのセル読み書き、フォーマット設定を行う。
# セル値取得
gog sheets get <spreadsheetId> "Sheet1!A1:D10"
# セル値更新
gog sheets update <spreadsheetId> "Sheet1!A1" "値1" "値2" "値3"
# 行追加
gog sheets append <spreadsheetId> "Sheet1!A:D" "val1" "val2" "val3" "val4"
# 新規作成
gog sheets create "新しいシート"
詳細: sheets.md
タスクリストとタスクの管理を行う。
# タスクリスト一覧
gog tasks lists list
# タスク一覧
gog tasks list <tasklistId>
# タスク追加
gog tasks add <tasklistId> --title "買い物" --due "2025-01-15"
# タスク完了
gog tasks done <tasklistId> <taskId>
詳細: tasks.md
ドキュメントとスライドのエクスポート、作成を行う。
# ドキュメントをプレーンテキストで表示
gog docs cat <docId>
# PDF エクスポート
gog docs export <docId> --format pdf
# スライド情報
gog slides info <presentationId>
# スライドを PDF エクスポート
gog slides export <presentationId> --format pdf
詳細: docs-slides.md
連絡先の検索・作成・管理を行う。
# 連絡先検索
gog contacts search "田中"
# 連絡先一覧
gog contacts list
# Workspace ディレクトリ検索
gog people search "yamada"
# 自分のプロフィール
gog people me
詳細: contacts.md
スペースの一覧取得、メッセージ送信を行う。
# スペース一覧
gog chat spaces list
# メッセージ送信
gog chat messages send <space> --text "メッセージ本文"
# DM 送信
gog chat dm send [email protected] --text "メッセージ"
詳細: chat.md
コース、課題、成績の管理を行う。
# コース一覧
gog classroom courses list
# 名簿取得
gog classroom roster <courseId>
# 課題一覧
gog classroom coursework list <courseId>
詳細: classroom.md
Groups, Keep, Service Account 等の高度な機能。
# グループ一覧
gog groups list
# Keep メモ一覧(Workspace 専用 / Service Account 必須)
gog keep list
# 認証サービス一覧
gog auth services
詳細: advanced.md
複数サービスを横断する便利なワークフロー集。
詳細: workflows.md
すべてのコマンドで使用可能:
| フラグ | 説明 |
|---|---|
--account=EMAIL | 使用するアカウントを指定 |
--client=NAME | OAuth クライアントを指定 |
--json | JSON 出力(スクリプト向け) |
--plain | TSV 出力(パース向け) |
--force | 確認プロンプトをスキップ |
--no-input | 対話プロンプトを無効化(CI 向け) |
--verbose | 詳細ログ出力 |
--color=auto|always|never | カラー出力制御 |
gog auth list --check # トークン状態確認
gog auth remove [email protected]
gog auth add [email protected] # 再認証
Google Cloud Console で該当 API を有効化する:
https://console.cloud.google.com/apis/api/gmail.googleapis.comhttps://console.cloud.google.com/apis/api/calendar-json.googleapis.comhttps://console.cloud.google.com/apis/api/drive.googleapis.comgog <service> --help
gog <service> <command> --help
gog config path
gog config list
npx claudepluginhub tocyuki/agent-skill-gogcli --plugin gogcliProvides MCP tools to search/send Gmail emails, manage Drive files/folders, create/edit Calendar events/Docs/Sheets/Slides/Forms, and handle Tasks/Chat. Use for Google Workspace interactions.
Manages Google Workspace operations across Gmail, Drive, Calendar, Docs, Sheets, and more using MCP tools or uvx CLI. Routes to 114 tools for checking email, finding files, scheduling meetings.
Integrates Claude Code with Google Workspace (Sheets, Docs, Slides, Gmail, Calendar, Tasks) for read/write operations, file/event management, comments, and multi-account auth via CLI tools.