gws-events-renew — команда для Claude Code
Продлевает и реактивирует подписки Google Workspace Events, чтобы они не истекали. Пригодится, если бот или скрипт слушает события Workspace и подписка вот-вот умрёт.
npx claude-code-templates@latest --command google-workspace/gws-events-renewЧто делает gws-events-renew
Команда вызывает gws events +renew из Google Workspace CLI. Один вызов с --name реактивирует конкретную подписку по имени вида subscriptions/SUB_ID, а --all вместе с --within обновляет всё, что истекает в заданном окне; по умолчанию окно — 1h. Значения вроде 30m или 2d тоже подходят.
Внутри скилл проходит четыре шага: проверка gws --version и gws auth status, просмотр схемы метода через gws schema, сборка команды с нужными флагами, разбор ошибок и повторов при временных сбоях. Ещё он ссылается на ../gws-shared/SKILL.md — там авторизация, глобальные флаги и правила безопасности; если файла нет, его создаёт gws generate-skills.
Без установленного gws и настроенной аутентификации команда бесполезна, поэтому сначала убедитесь, что gws auth status отвечает успехом. Сами подписки истекают, если их не обновлять, так что вызов стоит поставить в cron — источник прямо советует такой вариант с --all.
Какие задачи решает
- продлить подписку Google Workspace Events до истечения срока
- реактивировать конкретную подписку по её имени
- обновить все подписки, истекающие в ближайшее время
- встроить регулярное продление подписок в cron
- проверить перед вызовом схему метода и обязательные параметры
Примеры запросов агенту
- Продли подписку
subscriptions/SUB_IDчерез gws-events-renew - Обнови все подписки, которые истекают в ближайшие два дня
- Проверь, что
gwsустановлен и авторизация настроена, потом продли все подписки
Как установить gws-events-renew
1Через claude-code-templates
npx claude-code-templates@latest --command google-workspace/gws-events-renew2Вручную: положить файлы
.claude/commands/gws-events-renew.mdВызов — /gws-events-renew. Для всех проектов — ~/.claude/commands/
Вручную: положить файлы
~/.codex/prompts/gws-events-renew.mdВызов — /prompts:gws-events-renew. В Codex этот формат помечен устаревшим, замена — скиллы
Вручную: положить файлы
.github/prompts/gws-events-renew.prompt.mdВручную: положить файлы
.gemini/commands/gws-events-renew.tomlGemini хранит команды в TOML: текст запроса — в поле prompt
Вопросы о gws-events-renew
Как установить gws-events-renew в Claude Code?
Выполните npx claude-code-templates@latest --command google-workspace/gws-events-renew, затем положите файл по пути .claude/commands/gws-events-renew.md.
Что делает gws-events-renew?
Продлевает или реактивирует подписки Google Workspace Events через gws events +renew — либо одну по имени, либо все в заданном временном окне.
Что нужно, чтобы команда заработала?
Установленный Google Workspace CLI (gws) и настроенная аутентификация: проверка идёт через gws auth status. Ещё нужен файл ../gws-shared/SKILL.md — его создаёт gws generate-skills.
Исходный текст
gws-events-renew.md · MIT
--- allowed-tools: Bash, Read, Write, Edit argument-hint: "[resource] [method] [flags]" description: "Google Workspace Events: Renew/reactivate Workspace Events subscriptions." --- # Google Workspace Events Renew Execute Google Workspace Events Renew operations: $ARGUMENTS ## Prerequisites - Google Workspace CLI (`gws`) must be installed - Authentication configured: Run `gws auth status` to verify - Review `gws events-renew --help` for all available commands ## Available Resources and Methods # events +renew > **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it. Renew/reactivate Workspace Events subscriptions ## Usage ```bash gws events +renew ``` ## Flags | Flag | Required | Default | Description | |------|----------|---------|-------------| | `--name` | — | — | Subscription name to reactivate (e.g., subscriptions/SUB_ID) | | `--all` | — | — | Renew all subscriptions expiring within --within window | | `--within` | — | 1h | Time window for --all (e.g., 1h, 30m, 2d) | ## Examples ```bash gws events +renew --name subscriptions/SUB_ID gws events +renew --all --within 2d ``` ## Tips - Subscriptions expire if not renewed periodically. - Use --all with a cron job to keep subscriptions alive. ## See Also - [gws-shared](../gws-shared/SKILL.md) — Global flags and auth - [gws-events](../gws-events/SKILL.md) — All subscribe to google workspace events commands ## Usage ```bash # List available resources and methods gws events-renew --help # Inspect method schema before calling gws schema events-renew.<resource>.<method> # Execute command with arguments gws events-renew $ARGUMENTS ``` ## Task Execute the requested Events Renew operation: $ARGUMENTS 1. **Verify Prerequisites** - Check `gws` is installed: `gws --version` - Verify authentication: `gws auth status` - Review available commands: `gws events-renew --help` 2. **Inspect Method Schema** - Before calling any method, inspect its parameters - Use `gws schema` to understand required fields - Review parameter types and constraints 3. **Execute Operation** - Build command with appropriate flags - Use `--params` for query/path parameters - Use `--json` for request body - Handle pagination with `--max-results` or `--page-token` 4. **Error Handling** - Check command output for errors - Review API quotas and rate limits - Handle authentication issues - Retry transient failures --- **License**: Apache License 2.0 **Source**: [Google Workspace CLI](https://github.com/googleworkspace/cli) **Original Skill**: `gws-events-renew`
© davila7 · MIT · davila7/claude-code-templates