Communityコーディング&開発github.com

googleworkspace/recipe-email-drive-link

Google Driveファイルを共有し、リンクとメッセージを受信者にメールで送信します。

recipe-email-drive-link とは?

このスキルは、Google Driveにファイルをアップロードし、その共有リンクを生成して、指定された受信者にメールで送信するための自動化ワークフローを提供します。主にGoogle Workspace(旧G Suite)環境で使用されることを想定しており、Claude CodeやClineなどのAIエージェントがファイル共有とメール通知をまとめて実行できるようにします。これにより、開発者やユーザーは手動でDriveの権限設定を行ったり、メールクライアントを開いたりする手間を省けます。SKILL.mdには、必要な環境変数(例:GOOGLE_DRIVE_FOLDER_ID)や、OAuth認証の設定手順、実行可能な例(例:「レポートを共有してメールを送信して」といった自然言語指示)が含まれています。このスキールは、Drive APIとGmail APIを組み合わせて利用し、ファイルの公開設定(例:リンクを知っている全員が閲覧可能)を自動で設定した後、メール本文にリンクとカスタムメッセージを埋め込んで送信します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/googleworkspace/cli/tree/main/skills/recipe-email-drive-link

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

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

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

ドキュメント

recipe-email-drive-link は何をしますか?

Google Driveファイルを共有し、リンクとメッセージを受信者にメールで送信します。

概要

このスキルは、Google Driveにファイルをアップロードし、その共有リンクを生成して、指定された受信者にメールで送信するワークフローです。ファイルの共有設定を自動的に行い、リンクをメール本文に埋め込んで送信します。

設定

以下の環境変数が必要です。

  • GOOGLE_DRIVE_FOLDER_ID(オプション): ファイルをアップロードするGoogle DriveのフォルダID。指定しない場合は、デフォルトのルートフォルダにアップロードされます。

また、Google Cloud ConsoleでOAuth 2.0認証を設定し、Drive APIとGmail APIを有効にする必要があります。

使用方法

例

「レポートファイルを共有して、チームメンバーにメールでリンクを送信して」

実行フロー

  1. 指定されたファイルをGoogle Driveにアップロード(または既存のファイルを指定)。
  2. ファイルの共有設定を「リンクを知っている全員が閲覧可能」に変更。
  3. 共有リンクを生成。
  4. 受信者のメールアドレスを指定し、リンクとカスタムメッセージを含むメールを送信。

注意事項

  • ファイルサイズの制限やAPIのレート制限に注意してください。
  • 認証情報は安全に管理してください。

関連リソース

Individual skills in this repo

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

googleworkspace/gws-admin-reports

Google Workspace Admin SDK: Audit logs and usage reports.

googleworkspace/gws-calendar

Google Calendar: Manage calendars and events.

googleworkspace/gws-calendar-agenda

Google Calendar: Show upcoming events across all calendars.

googleworkspace/gws-calendar-insert

Google Calendar: Create a new event.

googleworkspace/gws-chat

Google Chat: Manage Chat spaces and messages.

googleworkspace/gws-chat-send

Google Chat: Send a message to a space.

googleworkspace/gws-classroom

Google Classroom: Manage classes, rosters, and coursework.

googleworkspace/gws-docs

Read and write Google Docs.

googleworkspace/gws-docs-write

Google Docs: Append text to a document.

googleworkspace/gws-drive

Google Drive: Manage files, folders, and shared drives.

googleworkspace/gws-drive-upload

Google Drive: Upload a file with automatic metadata.

googleworkspace/gws-events

Subscribe to Google Workspace events.

googleworkspace/gws-events-renew

Google Workspace Events: Renew/reactivate Workspace Events subscriptions.

googleworkspace/gws-events-subscribe

Google Workspace Events: Subscribe to Workspace events and stream them as NDJSON.

googleworkspace/gws-forms

Read and write Google Forms.

googleworkspace/gws-gmail

Gmail: Send, read, and manage email.

googleworkspace/gws-gmail-forward

Gmail: Forward a message to new recipients.

googleworkspace/gws-gmail-read

Gmail: Read a message and extract its body or headers.

googleworkspace/gws-gmail-reply

Gmail: Reply to a message (handles threading automatically).

googleworkspace/gws-gmail-reply-all

Gmail: Reply-all to a message (handles threading automatically).

関連スキル