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

googleworkspace/gws-events-subscribe

Google Workspace イベント:Workspace イベントを購読し、NDJSON としてストリーミングします。

gws-events-subscribe とは?

このスキルは、Google Workspace の管理者や開発者が、Workspace 内の変更やアクティビティをリアルタイムで監視できるように支援します。例えば、ドライブファイルの変更、カレンダー予定の作成、Gmail の受信など、様々なイベントを購読し、そのデータを NDJSON(改行区切り JSON)形式で標準出力にストリーミングします。これにより、イベントデータを他のシステムやログ処理パイプラインに簡単にパイプしたり、jq などのツールで解析したりできます。このスキルは Claude Code、Cursor、Codex などの AI エージェントプラットフォームで動作し、Google Workspace API を利用してイベント購読のセットアップとデータストリーミングを自動化します。設定には必要なスコープと認証情報が必要ですが、一度セットアップすれば、選択されたイベントタイプの継続的な監視が可能になります。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/googleworkspace/cli/tree/main/skills/gws-events-subscribe

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

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

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

ドキュメント

gws-events-subscribe は何をしますか?

Google Workspace イベント:Workspace イベントを購読し、NDJSON としてストリーミングします。

概要

このスキルは、Google Workspace のイベント(ドライブの変更、カレンダーの更新、Gmail の受信など)を購読し、そのデータを標準出力に NDJSON(改行区切り JSON)としてストリーミングします。

前提条件

  • Google Workspace 管理者アカウント
  • 適切な OAuth 2.0 スコープと認証情報の設定

使用方法

gws-events-subscribe <イベントタイプ> [オプション]

例

gws-events-subscribe drive.fileChanges --watch-interval 60

オプション

オプション説明
--watch-intervalポーリング間隔(秒)。デフォルトは 60 秒
--debugデバッグログを有効化

出力形式

出力は NDJSON 形式で、各行が JSON オブジェクトです:

{"eventType": "drive.fileChanges", "resource": "...", "timestamp": "..."}

サポートされるイベントタイプ

  • drive.fileChanges - Google Drive のファイル変更
  • calendar.eventChanges - Google カレンダーの予定変更
  • gmail.messageReceived - Gmail の新着メッセージ

注意事項

  • イベントストリームは Ctrl+C で中断できます。
  • 適切なスコープと認証情報が設定されていることを確認してください。

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-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).

googleworkspace/gws-gmail-send

Gmail: Send an email.

関連スキル