auth-login
Google OAuth 認証を実行する。「Google ログイン」「認証して」「ログインして」「Google 認証」「アカウント追加」などで起動。
When & Why to Use This Skill
This Claude skill enables secure Google OAuth authentication, allowing the agent to obtain, store, and manage access tokens for Google services. It supports multi-profile management (e.g., work and personal accounts) and provides a foundational layer for any workflow requiring programmatic access to Google APIs.
Use Cases
- Initial setup and authorization for Claude agents to interact with Google Workspace tools like Drive, Calendar, and Gmail.
- Switching between multiple Google environments by managing distinct authentication profiles for different projects or clients.
- Automating the token acquisition process to ensure persistent and secure API connectivity for background data processing tasks.
| name | auth-login |
|---|---|
| description | Google OAuth 認証を実行する。「Google ログイン」「認証して」「ログインして」「Google 認証」「アカウント追加」などで起動。 |
| allowed-tools | [Read, Bash] |
Auth Login
Google OAuth 認証を実行してトークンを取得・保存します。
実行方法
基本的な認証(デフォルトプロファイル)
python plugins/shiiman-google/skills/auth-login/scripts/google_auth.py login
プロファイルを指定して認証
python plugins/shiiman-google/skills/auth-login/scripts/google_auth.py login --profile work
python plugins/shiiman-google/skills/auth-login/scripts/google_auth.py login --profile personal
前提条件
- クライアント設定ファイルが
~/.config/shiiman-google/clients/default.jsonに配置されていること - 未配置の場合は「OAuth 設定」と言って手順を確認してください
トークン保存先
~/.config/shiiman-google/tokens/{profile}.json
注意事項
- ブラウザが自動で開き、Google 認証画面が表示されます
- 認証完了後、ブラウザを閉じてください
- トークンは自動的に保存され、次回から再認証不要です