Communitygithub.com

aiagentwithdhruv/skills

複数のGmailアカウントのメールを統合ツールで管理します。ユーザーがメールの確認、受信トレイの閲覧、ラベル付け、アーカイブ、またはアカウント間でのGmail管理を依頼した場合に使用します。

skills とは?

このスキルは、複数のGmailアカウントにわたるメール管理を統一されたツールで行えるようにします。開発者やAIエージェントは、すべてのアカウントの未読メールの確認、特定アカウントの指定、メールへのラベル付けやアーカイブ、既読マーク、フィルタ作成などをコマンドラインから実行できます。このスキルはGmail APIを無料で利用し、認証情報やトークンファイルをワークスペースルートに保存することで構成されます。Claude CodeやClineなどのコマンド実行可能なAIエージェントと連携し、認証エラーが発生した場合のトラブルシューティング手順も提供します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/aiagentwithdhruv/skills/tree/HEAD/gmail-inbox

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Gmail受信トレイ管理

目標

統一ツールを使用して、複数のGmailアカウントのメールを確認・管理します。

スクリプト

  • ./scripts/gmail_unified.py - 受信トレイの確認と管理
  • ./scripts/gmail_multi_auth.py - アカウントの認証
  • ./scripts/gmail_bulk_label.py - 一括ラベル付け
  • ./scripts/gmail_create_filters.py - フィルタの作成
  • ./scripts/gmail_auth.py - 認証ヘルパー

クイックリファレンス

# 全アカウントの未読メールを確認
python3 ./scripts/gmail_unified.py --query "is:unread" --limit 50

# 特定のアカウントのみ確認
python3 ./scripts/gmail_unified.py --query "is:unread" --account yourcompany

# 登録済みアカウントの一覧表示
python3 ./scripts/gmail_unified.py --accounts

# メールにラベルを付けてアーカイブ
python3 ./scripts/gmail_unified.py --query "from:notifications@" --label "Notifications" --archive

# 既読にする
python3 ./scripts/gmail_unified.py --query "from:noreply@" --mark-read

# ドライラン(プレビュー)
python3 ./scripts/gmail_unified.py --query "subject:invoice" --label "Invoices" --dry-run

アカウントレジストリ

アカウントメール認証情報トークン
youruser[email protected]credentials.jsontoken_youruser.json
yourcompany[email protected]credentials_yourcompany.jsontoken_yourcompany.json

認証エラーのトラブルシューティング

「トークンファイルが見つかりません」

python3 ./scripts/gmail_multi_auth.py --account yourcompany --email [email protected]

「invalid_scope: Bad Request」

rm token_youruser.json
python3 ./scripts/gmail_multi_auth.py --account youruser --email [email protected]

「認証に失敗しました」 ルートディレクトリにcredentials.jsonが存在することを確認してください。

必要なスコープ

  • gmail.modify - メールの読み取り/書き込み
  • gmail.labels - ラベルの作成/管理
  • gmail.settings.basic - 設定の管理
  • spreadsheets - Googleスプレッドシートへのアクセス
  • drive - Googleドライブへのアクセス

認証情報の場所

すべての認証情報ファイルはワークスペースルートに配置してください。

  • credentials.json / credentials_yourcompany.json - OAuthクライアント設定
  • token_*.json - 認証トークン(自動生成)
  • gmail_accounts.json - アカウントレジストリ

スキーマ

入力

名前型必須説明
querystringいいえGmail検索クエリ(例:'is:unread')
accountstringいいえレジストリ内の特定のアカウント名
limitintegerいいえ取得する最大メール数(デフォルト:50)

出力

名前型説明
emailsarray件名、送信者、日付、スニペットを含むメールオブジェクトのリスト

認証情報

名前ソース
credentials.jsonファイル
token_*.jsonファイル(自動生成)

組み合わせ可能なスキル

このスキルと連携しやすいスキル:gmail-label、instantly-autoreply

コスト

無料(Gmail API)

Individual skills in this repo

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

aiagentwithdhruv/skills

Add new Modal webhooks for event-driven execution. Use when user asks to create a webhook, add an endpoint, or set up event triggers.

aiagentwithdhruv/skills

Answer Euron Gen AI Bootcamp doubts instantly. Covers Euri API setup across all frameworks (Python, LangChain, OpenAI SDK, TypeScript, n8n, curl), MCP server setup, common errors, model recommendations, and token limits. Use when someone in the bootcamp asks a question.

aiagentwithdhruv/skills

Auto-label Gmail emails into Action Required, Waiting On, and Reference categories. Use when user asks to label emails, triage inbox, categorize emails, or organize Gmail.

aiagentwithdhruv/skills

Scrape Google Maps for B2B leads with deep website enrichment and contact extraction. Use when user asks to find local businesses, scrape Google Maps, generate contractor lists, or build local service business databases.

aiagentwithdhruv/skills

Run Claude orchestrator locally with Cloudflare tunneling. Use when user asks to run locally, start local server, or test webhooks locally.

aiagentwithdhruv/skills

MCP server for AI-powered macOS control — apps, display, audio, files, screenshots, clipboard

aiagentwithdhruv/skills

Deploy execution scripts to Modal cloud. Use when user asks to deploy to Modal, push code to cloud, or update Modal functions.

aiagentwithdhruv/skills

Scrape and verify business leads using Apify, classify with LLM, enrich emails, and save to Google Sheets. Use when user asks to find leads, scrape businesses, generate prospect lists, or build lead databases for any industry or location.

aiagentwithdhruv/skills

Query Skool community content using RAG pipeline with vector search. Use when user asks to search Skool knowledge, find community answers, or query Skool content.

aiagentwithdhruv/skills

Scrape Upwork jobs and generate personalized proposals with cover letters. Use when user asks to find Upwork jobs, create Upwork proposals, or apply to Upwork listings.

関連スキル