recipe-watch-drive-changes — Claude Code skill: install and usage
This skill subscribes to Google Drive file or folder change notifications using the gws CLI. It helps track document updates via Pub/Sub topics.
npx skills add googleworkspace/cli --skill recipe-watch-drive-changes -a claude-codeWhat recipe-watch-drive-changes does
This skill provides a ready-made workflow around the gws command-line tool. It creates subscriptions for google.workspace.drive.file.v1.updated events, routing payloads directly to a Google Cloud Pub/Sub topic. It also covers listing current subscriptions and renewing them before expiration.
You need the gws binary installed and the gws-events skill loaded beforehand. If your setup does not rely on Google Cloud Pub/Sub for Drive webhooks, this recipe will not fit.
What it helps with
- subscribe to file and folder updates in Google Drive
- forward Drive modification events to a Google Cloud Pub/Sub topic
- list active subscriptions using
gws events subscriptions list - renew an active Drive event subscription before it expires
Example prompts for the agent
- Subscribe to Google Drive folder updates using recipe-watch-drive-changes
- List all active Drive event subscriptions with gws
- Renew my Google Drive event subscription before it expires
How to install recipe-watch-drive-changes
1Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill recipe-watch-drive-changes -a claude-code2Manually: put the files in place
~/.claude/skills/recipe-watch-drive-changes/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/recipe-watch-drive-changes/
1Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill recipe-watch-drive-changes -a codex2Manually: put the files in place
.agents/skills/recipe-watch-drive-changes/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill recipe-watch-drive-changes -a cursor2Manually: put the files in place
.cursor/skills/recipe-watch-drive-changes/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install googleworkspace/cli recipe-watch-drive-changes2Manually: put the files in place
.github/skills/recipe-watch-drive-changes/SKILL.md1Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill recipe-watch-drive-changes -a gemini-cli2Platform CLI
gemini skills install https://github.com/googleworkspace/cli --path skills/recipe-watch-drive-changesManually: put the files in place
.devin/skills/recipe-watch-drive-changes/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill recipe-watch-drive-changes -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set95
The whole set →Similar
Questions about recipe-watch-drive-changes
How do I install recipe-watch-drive-changes in Claude Code?
Run npx skills add googleworkspace/cli --skill recipe-watch-drive-changes -a claude-code. The file will be placed in ~/.claude/skills/recipe-watch-drive-changes/SKILL.md.
What does recipe-watch-drive-changes do?
It sets up notifications for Google Drive updates. The recipe details commands for creating Pub/Sub event subscriptions, checking status, and renewing them.
What are the prerequisites for this skill?
You need the gws CLI binary and the companion gws-events skill. Both are required to execute the subscription commands.
Source text
SKILL.md · Apache-2.0
---
name: recipe-watch-drive-changes
description: "Subscribe to change notifications on a Google Drive file or folder."
metadata:
version: 0.22.5
openclaw:
category: "recipe"
domain: "engineering"
requires:
bins:
- gws
skills:
- gws-events
---
# 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`
© googleworkspace · Apache-2.0 · googleworkspace/cli