gws-events — Claude Code skill: what it does, how to install
This skill gives an agent Google Workspace Events commands for subscriptions, operations, and task update streams. Use it when Workspace events need to be managed through gws.
npx skills add googleworkspace/cli --skill gws-events -a claude-codeWhat gws-events does
gws-events adds Google Workspace Events commands to an agent. With gws events [flags], it can create, inspect, update, renew, reactivate, and delete subscriptions. The skill also covers task operations and streaming updates.
The skill describes the message, operations, subscriptions, and tasks resources, plus the +subscribe and +renew helpers. Before a method call, the agent can inspect gws events --help, then check required parameters with gws schema events.. and build the --params and --json flags.
You need the gws CLI and the shared gws-shared skill for authentication, global flags, and security rules. Install this skill when an agent must manage Workspace event subscriptions; it is unnecessary for ordinary Workspace requests.
What it helps with
- create a Google Workspace event subscription
- list current Workspace subscriptions
- renew or reactivate a suspended subscription
- stream task status updates
- poll a long-running operation
Example prompts for the agent
- Show the available resources with `gws events --help`, then create a subscription for the required resource.
- Inspect `gws schema events.subscriptions.create` and prepare the call with `--params` and `--json`.
- List subscriptions and check an operation through the `subscriptions` and `operations` resources.
How to install gws-events
1Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-events -a claude-code2Manually: put the files in place
~/.claude/skills/gws-events/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/gws-events/
1Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-events -a codex2Manually: put the files in place
.agents/skills/gws-events/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-events -a cursor2Manually: put the files in place
.cursor/skills/gws-events/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install googleworkspace/cli gws-events2Manually: put the files in place
.github/skills/gws-events/SKILL.md1Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-events -a gemini-cli2Platform CLI
gemini skills install https://github.com/googleworkspace/cli --path skills/gws-eventsManually: put the files in place
.devin/skills/gws-events/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-events -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set95
The whole set →Similar
Questions about gws-events
How do I install gws-events in Claude Code?
Run npx skills add googleworkspace/cli --skill gws-events -a claude-code. The skill file is placed at ~/.claude/skills/gws-events/SKILL.md.
What does gws-events do?
It gives an agent Google Workspace Events commands for subscription management, long-running operations, and streaming task updates through gws.
What does gws-events require?
It requires the gws CLI and the shared gws-shared skill, which provides authentication, global flags, and security rules.
Source text
SKILL.md · Apache-2.0
---
name: gws-events
description: "Subscribe to Google Workspace events."
metadata:
version: 0.22.5
openclaw:
category: "productivity"
requires:
bins:
- gws
cliHelp: "gws events --help"
---
# events (v1)
> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.
```bash
gws events <resource> <method> [flags]
```
## Helper Commands
| Command | Description |
|---------|-------------|
| [`+subscribe`](../gws-events-subscribe/SKILL.md) | Subscribe to Workspace events and stream them as NDJSON |
| [`+renew`](../gws-events-renew/SKILL.md) | Renew/reactivate Workspace Events subscriptions |
## API Resources
### message
- `stream` — SendStreamingMessage is a streaming call that will return a stream of task update events until the Task is in an interrupted or terminal state.
### operations
- `get` — Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
### subscriptions
- `create` — Creates a Google Workspace subscription. To learn how to use this method, see [Create a Google Workspace subscription](https://developers.google.com/workspace/events/guides/create-subscription).
- `delete` — Deletes a Google Workspace subscription. To learn how to use this method, see [Delete a Google Workspace subscription](https://developers.google.com/workspace/events/guides/delete-subscription).
- `get` — Gets details about a Google Workspace subscription. To learn how to use this method, see [Get details about a Google Workspace subscription](https://developers.google.com/workspace/events/guides/get-subscription).
- `list` — Lists Google Workspace subscriptions. To learn how to use this method, see [List Google Workspace subscriptions](https://developers.google.com/workspace/events/guides/list-subscriptions).
- `patch` — Updates or renews a Google Workspace subscription. To learn how to use this method, see [Update or renew a Google Workspace subscription](https://developers.google.com/workspace/events/guides/update-subscription).
- `reactivate` — Reactivates a suspended Google Workspace subscription. This method resets your subscription's `State` field to `ACTIVE`. Before you use this method, you must fix the error that suspended the subscription. This method will ignore or reject any subscription that isn't currently in a suspended state. To learn how to use this method, see [Reactivate a Google Workspace subscription](https://developers.google.com/workspace/events/guides/reactivate-subscription).
### tasks
- `cancel` — Cancel a task from the agent. If supported one should expect no more task updates for the task.
- `get` — Get the current state of a task from the agent.
- `subscribe` — TaskSubscription is a streaming call that will return a stream of task update events. This attaches the stream to an existing in process task. If the task is complete the stream will return the completed task (like GetTask) and close the stream.
- `pushNotificationConfigs` — Operations on the 'pushNotificationConfigs' resource
## Discovering Commands
Before calling any API method, inspect it:
```bash
# Browse resources and methods
gws events --help
# Inspect a method's required params, types, and defaults
gws schema events.<resource>.<method>
```
Use `gws schema` output to build your `--params` and `--json` flags.
© googleworkspace · Apache-2.0 · googleworkspace/cli