Skip to content

recipe-watch-drive-changes

Subscribe to Google Drive file and folder changes via Pub/Sub notifications.

— (0 ratings) 32.1K downloads googleworkspace
$ npx skills add https://github.com/googleworkspace/cli --skill recipe-watch-drive-changes

Skills can run code on your computer. Review the source before installing. This listing is community-made and isn't affiliated with Anthropic.

About this skill

Summary

Subscribe to Google Drive file and folder changes via Pub/Sub notifications.

  • Requires the gws-events skill and gws binary to execute
  • Creates event subscriptions on Drive resources with configurable notification endpoints and payload options
  • Supports subscription lifecycle management: create, list, and renew subscriptions before expiry
  • Delivers change events (file updates) to Google Cloud Pub/Sub topics for downstream processing

Watch for Drive Changes

PREREQUISITE: Load the following skills to execute this recipe: gws-events

Subscribe to change notifications on a Google Drive file or folder.

Steps

  1. Create subscription: gws events subscriptions create --json '{"targetResource": "//drive.googleapis.com/drives/DRIVE_ID", "eventTypes": ["google.workspace.drive.file.v1.updated"], "notificationEndpoint": {"pubsubTopic": "projects/PROJECT/topics/TOPIC"}, "payloadOptions": {"includeResource": true}}'
  2. List active subscriptions: gws events subscriptions list
  3. Renew before expiry: gws events +renew --subscription SUBSCRIPTION_ID

Installs: 32.1K | GitHub stars: 32.6K | First seen: Mar 4, 2026

Related skills

New

Design & UI

design-mobile-apps

Design mobile app screens with Sleek, edit Sleek projects, and implement their designs in React Native or HTML.

New • 1.7M
New

Writing & content

setup-matt-pocock-skills

Configuration scaffold for engineering skills to locate issue tracker, triage labels, and domain documentation.

New • 1.2M
New

Agent workflows

triage

State machine-driven issue triage with role-based workflow management and agent brief generation.

New • 1.1M