gws-events — скилл для Claude Code: что делает и установка
Скилл подключает Google Workspace Events к агенту: подписки, операции и потоковые обновления задач. Нужен для работы с событиями через gws.
npx skills add googleworkspace/cli --skill gws-events -a claude-codeЧто делает gws-events
gws-events добавляет агенту команды для Google Workspace Events. Через gws events [flags] можно создавать, просматривать, обновлять, продлевать, возобновлять и удалять подписки. Есть операции для задач и потоковой передачи обновлений.
Внутри описаны ресурсы message, operations, subscriptions и tasks, а также вспомогательные команды +subscribe и +renew. Перед вызовом метода агент может посмотреть gws events --help, затем проверить параметры через gws schema events.. и собрать флаги --params и --json.
Для работы нужен CLI gws и общий скилл gws-shared с настройками авторизации и безопасности. Ставьте этот скилл, если агенту нужны подписки на события Workspace; для обычных запросов к Workspace он избыточен.
Какие задачи решает
- создать подписку на события Google Workspace
- получить список активных подписок
- продлить или возобновить приостановленную подписку
- отслеживать поток обновлений задачи
- проверить состояние длительной операции
Примеры запросов агенту
- Покажи доступные ресурсы и методы через `gws events --help`, затем создай подписку на нужный ресурс.
- Проверь параметры метода через `gws schema events.subscriptions.create` и подготовь вызов с `--params` и `--json`.
- Получи текущие подписки и проверь состояние операции через ресурсы `subscriptions` и `operations`.
Как установить gws-events
1Через Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-events -a claude-code2Вручную: положить файлы
~/.claude/skills/gws-events/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/gws-events/
1Через Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-events -a codex2Вручную: положить файлы
.agents/skills/gws-events/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-events -a cursor2Вручную: положить файлы
.cursor/skills/gws-events/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install googleworkspace/cli gws-events2Вручную: положить файлы
.github/skills/gws-events/SKILL.md1Через Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-events -a gemini-cli2Командой платформы
gemini skills install https://github.com/googleworkspace/cli --path skills/gws-eventsВручную: положить файлы
.devin/skills/gws-events/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-events -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора95
Весь набор →Похожие
Вопросы о gws-events
Как установить gws-events в Claude Code?
Выполните npx skills add googleworkspace/cli --skill gws-events -a claude-code. Файл скилла появится в ~/.claude/skills/gws-events/SKILL.md.
Что делает gws-events?
Скилл даёт агенту команды Google Workspace Events для управления подписками, длительными операциями и потоковыми обновлениями задач через gws.
Что нужно для работы gws-events?
Нужен CLI gws и общий скилл gws-shared, который содержит правила авторизации, глобальные флаги и безопасности.
Исходный текст
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