Skip to content
Productivity
Skill

/xs-google-workspace

gogcli経由でGmail・Google Drive・Google Calendarを操作するスキル。複数Googleアカウント対応。「メールチェック」「メール確認して」「Driveにアップロード」「Driveのファイル」「Gmailで検索」で使用。

BOOST
From plugin
ai-assistant-workspace
13723 skills
Install
$ npx -y skills add karaage0703/ai-assistant-workspace --skill xs-google-workspace --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/xs-google-workspace

Context preview

The summary Claude sees to decide when to auto-load this skill.

gogcli経由でGmail・Google Drive・Google Calendarを操作するスキル。複数Googleアカウント対応。「メールチェック」「メール確認して」「Driveにアップロード」「Driveのファイル」「Gmailで検索」で使用。

SKILL.md

xs-google-workspace.SKILL.md
name: xs-google-workspace
description: gogcli経由でGmail・Google Drive・Google Calendarを操作するスキル。複数Googleアカウント対応。「メールチェック」「メール確認して」「Driveにアップロード」「Driveのファイル」「Gmailで検索」で使用。

Google Workspace(gogcli)

gogcli CLIで Gmail / Google Drive / Google Calendar を操作する。複数アカウント対応。

絶対遵守事項

  • メール送信・ファイル削除など**外部に影響する操作は必ず確認してから**実行
  • メール本文にプライベートな情報が含まれる場合、グループチャットには流さない

環境設定

export PATH="$HOME/bin:$PATH"
export GOG_KEYRING_PASSWORD=<your-password>

全コマンドの先頭にこの2行が必要。パスワードは環境に合わせて設定。

登録済みアカウント

gog auth list

Gmail

メールチェック(全アカウント一括)

全アカウントの未読メールを確認し、重要なものをピックアップして報告。

gog -a <email> gmail search "is:unread" --max 10

メール検索

gog -a <email> gmail search "<Gmailの検索クエリ>" --max 20

検索クエリ例:

  • `is:unread` — 未読
  • `from:someone@example.com` — 特定の送信者
  • `subject:会議` — 件名に「会議」
  • `newer_than:7d` — 7日以内
  • `has:attachment` — 添付あり

メール本文を読む

gog -a <email> gmail read <messageId>

メール送信(確認必須)

gog -a <email> gmail send --to "recipient@example.com" --subject "件名" --body "本文"

その他

gog -a <email> gmail archive <messageId>      # アーカイブ
gog -a <email> gmail mark-read <messageId>     # 既読にする
gog -a <email> gmail labels list               # ラベル一覧

Google Drive

ファイル一覧・検索

gog -a <email> drive list                              # ルート一覧
gog -a <email> drive list --query "name contains 'xxx'" # 検索
gog -a <email> drive list --folder <folderId>           # フォルダ内

ファイルダウンロード

gog -a <email> drive download <fileId> -o /path/to/output

ファイルアップロード(確認必須)

gog -a <email> drive upload /path/to/file --folder <folderId>

Google Calendar

予定確認

gog -a <email> calendar list                    # 今日の予定(primaryのみ)
gog -a <email> calendar list --days 7           # 1週間の予定
gog -a <email> calendar list --all --days 7     # 全カレンダー(ファミリー含む)

**注意:** デフォルトはprimaryカレンダーのみ。ファミリーカレンダー等を含めるには `--all` を付ける。

アカウント追加

新しいアカウントを追加する場合:

# ヘッドレス環境: remoteフローで認証
GOG_KEYRING_PASSWORD=<password> gog auth add <email> --services gmail,drive,calendar --remote --step 1
# → URLをユーザーに送る → ブラウザで認証 → リダイレクトURLを受け取る
GOG_KEYRING_PASSWORD=<password> gog auth add <email> --services gmail,drive,calendar --remote --step 2 --auth-url "<リダイレクトURL>"

# ブラウザがある環境: 直接認証
GOG_KEYRING_PASSWORD=<password> gog auth add <email> --services gmail,drive,calendar

※Google Cloud Consoleのテストユーザーに追加が必要。

対話フロー

「メールチェックして」

1. 全登録アカウントの未読メールを取得 2. ニュースレター・通知系・プロモーションなど重要度の低いメールは自動スキップ 3. **重要なメール**をアカウントごとにハイライトして報告

「〇〇のメール読んで」

1. 検索クエリで該当メールを特定 2. `gmail read` で本文取得 3. 要約して報告

「Driveにファイルアップロードして」

1. ファイルパスとアップロード先を確認 2. 確認後に実行

使用例

メールチェックして
未読メール見せて
Zennからのメール探して
Driveのファイル一覧
今週の予定確認
Read more
Ships withai-assistant-workspace

AIコーディングツール(Claude Code / Codex CLI / Grok CLI など)を、継続的なパーソナルアシスタントとして使うためのスターターキットです。初回起動時に対話形式で設定を作り、以後はファイルに残した記憶・ルール・スキルを読みながら動きます。 xangi(Discord常駐型AIアシスタント)の推奨ワークスペースです。xangiと組み合わせることで、チャットからスキルを呼び出して日常タスクを自動化できます。

Get the whole plugin

Other skills on ai-assistant-workspace.

xs-arxiv
Skill

xs-arxiv

arXiv論文の検索・トレンド発見・詳細分析を行う統合スキル。興味度スコアでユーザーに刺さる論文を自動選定。PDF全文読み込み・Notion蓄積対応。「arXivチェックして」「論文検索」「論文分析して」で使用。

xs-bridge-ideas
Skill

xs-bridge-ideas

ワークスペース内の遠い知識や活動をつないで、新しいアイデアを生成する思考支援スキル。過去記事・メモ・発信資産から企画や実装ネタを出したい時に使用。「アイデア出して」「知識をつないで」「一見関係ないものをつないで」で使用。

xs-calendar
Skill

xs-calendar

カレンダー予定を確認するスキル。ICS(Googleカレンダー等)と手動追加(画像読み取り)を統合。「今日の予定」「明日の予定」「カレンダー画像送って」「スケジュール確認」で使用。`/calendar` で発動。

xs-cat-diary
Skill

xs-cat-diary

猫の写真を自動判定して猫日記を作成するスキル。写真を送ると猫かどうか判定し、猫ならNotion猫日記DBに自動保存。毎週ベストショットを選出。「猫日記」「ねこ日記」「猫写真」「今週のベストショット」で使用。

xs-dev-workflow
Skill

xs-dev-workflow

ソフトウェア開発タスクを進めるときの基本フロー。立ち上げ、ブランチ運用、実装、検証、PR作成、記録までを一気通貫で扱う。「実装して」「修正して」「PR作って」「コードを書く」「dev-workflow」で使用。