google-workspace
できること
このスキルは、AIがあなたのGoogleアカウントに接続し、Gmail、カレンダー、Drive、連絡先、Docs、Sheetsを読み、管理できるようにします。仕事や生活をGoogleのサービスで回している人向けです。
使う場面
- ✓Gmail、Googleカレンダー、Driveを確認または管理するようAIに頼むとき。
- ✓カレンダーと、注意が必要なメールの日次のブリーフがほしいとき。
- ✓Googleのドキュメントやスプレッドシートを作成または変更したいとき。
スキルのリンク
https://github.com/NousResearch/hermes-agent/blob/main/skills/productivity/google-workspace/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“明日の予定をカレンダーで確認し、今日返信が必要な顧客からのメールを教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、一度だけのGoogleサインインの承認と、コマンドラインのラッパーを使います。各依頼ごとにGoogleのツールを実行し、結果を構造化された形式で返します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Google Workspace
Gmail, Calendar, Drive, Contacts, Sheets, and Docs — through Hermes-managed OAuth and a thin CLI wrapper. When gws is installed, the skill uses it as the execution backend for broader Google Workspace coverage; otherwise it falls back to the bundled Python client implementation.
References
references/gmail-search-syntax.md— Gmail search operators (is:unread, from:, newer_than:, etc.)references/daily-brief.md— daily/morning brief procedure: schedule + conflicts + meeting prep + urgent mail from Gmail and Calendar. Load it when the user asks for a morning brief, meeting preparation, or "what's on my calendar and what email needs attention."
Scripts
scripts/setup.py— OAuth2 setup (run once to authorize)scripts/google_api.py— compatibility wrapper CLI. It prefersgwsfor operations when available, while preserving Hermes' existing JSON output contract.
First-Time Setup
The setup is fully non-interactive — you drive it step by step so it works on CLI, Telegram, Discord, or any platform.
Run the setup script with Python from the Hermes environment, not an unrelated
system Python. --install-deps syncs Hermes' declared Google extra through PM;
after syncing, restart Hermes and rerun the OAuth command. If Hermes is not
importable, use hermes setup first rather than installing packages with pip.
Define a shorthand first:
GSETUP="python ${HERMES_HOME:-$HOME/.hermes}/skills/productivity/google-workspace/scripts/setup.py"
Step 0: Check if already set up
$GSETUP --check
If it prints AUTHENTICATED, skip to Usage — setup is already done.
Step 1: Triage — ask the user what they need
Before starting OAuth setup, ask the user TWO questions:
Question 1: "What Google services do you need? Just email, or also Calendar/Drive/Sheets/Docs?"
Email only → They don't need this skill at all. Use the
himalayaskill instead — it works with a Gmail App Password (Settings → Security → App Passwords) and takes 2 minutes to set up. No Google Cloud project needed. Load the himalaya skill and follow its setup instructions.Email + Calendar → Continue with this skill, but use
--services email,calendarduring auth so the consent screen only asks for the scopes they actually need.Calendar/Drive/Sheets/Docs only → Continue with this skill and use a narrower
--servicesset likecalendar,drive,sheets,docs.Full Workspace access → Continue with this skill and use the default
allservice set.
Question 2: "Does your Google account use Advanced Protection (hardware security keys required to sign in)? If you're not sure, you probably don't — it's something you would have explicitly enrolled in."
- No / Not sure → Normal setup. Continue below.
- Yes → Their Workspace admin must add the OAuth client ID to the org's allowed apps list before Step 4 will work. Let them know upfront.
Step 2: Create OAuth credentials (one-time, ~5 minutes)
Tell the user:
You need a Google Cloud OAuth client. This is a one-time setup:
- Create or select a project: https://console.cloud.google.com/projectselector2/home/dashboard
- Enable the required APIs from the API Library: https://console.cloud.google.com/apis/library Enable: Gmail API, Google Calendar API, Google Drive API, Google Sheets API, Google Docs API, People API
- Create the OAuth client here: https://console.cloud.google.com/apis/credentials Credentials → Create Credentials → OAuth 2.0 Client ID
- Application type: "Desktop app" → Create
- If the app is still in Testing, add the user's Google account as a test user here: https://console.cloud.google.com/auth/audience Audience → Test users → Add users
- Download the JSON file and tell me the file path
Important Hermes CLI note: if the file path starts with
/, do NOT send only the bare path as its own message in the CLI, because it can be mistaken for a slash command. Send it in a sentence instead, like:The JSON file path is: ~/Downloads/client_secret_....json
Once they provide the path:
$GSETUP --client-secret /path/to/client_secret.json
If they paste the raw client ID / client secret values instead of a file path,
write a valid Desktop OAuth JSON file for them yourself, save it somewhere
explicit (for example ~/Downloads/hermes-google-client-secret.json), then run
--client-secret against that file.
よくある質問
アカウントをどのように接続しますか?
スキルは、セットアップスクリプトを一度実行し、ブラウザーでアクセスを承認するよう定めています。その後、AIがそのサービスを使えます。
追加のパッケージは必要ですか?
スキルは、通常のpip installではなく、Hermesのパッケージマネージャーを通じてGoogleのエクストラを同期するよう定めています。
検索を手伝えますか?
はい。スキルには、is:unreadやnewer_thanなど、Gmailの検索演算子が含まれています。
詳細
人気
- GitHubのスター
- 260k
- ランキング
- #607
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
agent-merge-conflict-arbiter
260k並行して動く2つのエージェントのブランチ間のgitマージ競合を、中立的な第三者として解決し、リポジトリに1つのマージ結果を作ります。
antigravity-cli
260kAntigravityのコマンドラインツールのインストール、更新、トラブルシューティングをガイドし、そのプラグイン、サインイン、サンドボックスも扱います。
blackbox
260kBlackbox AIのコマンドラインツールに、コーディングのタスクを渡します。このツールは複数のAIモデルを動かし、最も良い結果を選びます。
dynamic-workflow
260k多くの似た作業の大きな束を、保存されたスクリプトとして実行し、検証済みの結果だけをメインの会話に返すようエージェントに教えます。