gws-workflow — команда для Claude Code: рабочие процессы Google Workspace
Слэш-команда для Claude, которая запускает операции Google Workspace CLI: отчёты, подготовка к встречам, разбор почты.
npx claude-code-templates@latest --command google-workspace/gws-workflowЧто делает gws-workflow
Команда принимает аргументы вида [resource] [method] [flags] и передаёт их в gws workflow. Внутри — набор вспомогательных сценариев: сводка дня из встреч и открытых задач, подготовка к следующей встрече с повесткой и участниками, превращение письма Gmail в задачу Google Tasks, недельный дайджест и анонс файла Drive в пространстве Chat.
Перед запуском нужен установленный Google Workspace CLI. Проверить авторизацию можно через gws auth status, а список команд — через gws workflow --help. Без настроенной аутентификации команда не выполнится, поэтому это первое, что стоит проверить.
Порядок работы такой: команда сверяет версию gws, смотрит схему нужного метода через gws schema, собирает вызов с --params для параметров и --json для тела запроса, а пагинацию отдаёт на --max-results или --page-token. Инструменты ограничены Bash, Read, Write и Edit.
Какие задачи решает
- собрать стендап-сводку из встреч и открытых задач
- подготовить повестку и список участников к следующей встрече
- превратить письмо Gmail в задачу Google Tasks
- получить недельный дайджест встреч и непрочитанных писем
- объявить файл Drive в пространстве Chat
Примеры запросов агенту
- Сделай стендап-отчёт за сегодня
- Подготовь меня к следующей встрече
- Преврати это письмо из Gmail в задачу
Как установить gws-workflow
1Через claude-code-templates
npx claude-code-templates@latest --command google-workspace/gws-workflow2Вручную: положить файлы
.claude/commands/gws-workflow.mdВызов — /gws-workflow. Для всех проектов — ~/.claude/commands/
Вручную: положить файлы
~/.codex/prompts/gws-workflow.mdВызов — /prompts:gws-workflow. В Codex этот формат помечен устаревшим, замена — скиллы
Вручную: положить файлы
.github/prompts/gws-workflow.prompt.mdВручную: положить файлы
.gemini/commands/gws-workflow.tomlGemini хранит команды в TOML: текст запроса — в поле prompt
Вопросы о gws-workflow
Как установить gws-workflow в Claude Code?
Запустите npx claude-code-templates@latest --command google-workspace/gws-workflow, файл появится в .claude/commands/gws-workflow.md.
Что делает gws-workflow?
Выполняет операции Google Workspace CLI через gws workflow: стендап-отчёты, подготовку к встречам, конвертацию писем в задачи, недельные дайджесты и анонсы файлов.
Что нужно для работы команды?
Установленный Google Workspace CLI и настроенная авторизация. Проверить её можно командой gws auth status.
Исходный текст
gws-workflow.md · MIT
--- allowed-tools: Bash, Read, Write, Edit argument-hint: "[resource] [method] [flags]" description: "Google Workflow: Cross-service productivity workflows." --- # Google Workspace Workflow Execute Google Workspace Workflow operations: $ARGUMENTS ## Prerequisites - Google Workspace CLI (`gws`) must be installed - Authentication configured: Run `gws auth status` to verify - Review `gws workflow --help` for all available commands ## Available Resources and Methods # workflow (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 workflow <resource> <method> [flags] ``` ## Helper Commands | Command | Description | |---------|-------------| | [`+standup-report`](../gws-workflow-standup-report/SKILL.md) | Today's meetings + open tasks as a standup summary | | [`+meeting-prep`](../gws-workflow-meeting-prep/SKILL.md) | Prepare for your next meeting: agenda, attendees, and linked docs | | [`+email-to-task`](../gws-workflow-email-to-task/SKILL.md) | Convert a Gmail message into a Google Tasks entry | | [`+weekly-digest`](../gws-workflow-weekly-digest/SKILL.md) | Weekly summary: this week's meetings + unread email count | | [`+file-announce`](../gws-workflow-file-announce/SKILL.md) | Announce a Drive file in a Chat space | ## Discovering Commands Before calling any API method, inspect it: ```bash # Browse resources and methods gws workflow --help # Inspect a method's required params, types, and defaults gws schema workflow.<resource>.<method> ``` Use `gws schema` output to build your `--params` and `--json` flags. ## Usage ```bash # List available resources and methods gws workflow --help # Inspect method schema before calling gws schema workflow.<resource>.<method> # Execute command with arguments gws workflow $ARGUMENTS ``` ## Task Execute the requested Workflow operation: $ARGUMENTS 1. **Verify Prerequisites** - Check `gws` is installed: `gws --version` - Verify authentication: `gws auth status` - Review available commands: `gws workflow --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-workflow`
© davila7 · MIT · davila7/claude-code-templates