gws-admin-reports — команда для Claude Code: отчёты Google Workspace
Команда запускает операции Admin Reports в Google Workspace: получает отчёты об использовании и просматривает журналы активности. Перед вызовом метода она предлагает изучить его схему.
npx claude-code-templates@latest --command google-workspace/gws-admin-reportsЧто делает gws-admin-reports
gws-admin-reports выполняет операции Google Workspace Admin Reports. С её помощью можно запросить журналы активности для приложений и аккаунта, получить отчёты об использовании аккаунта, пользователей или сущностей, а также управлять уведомлениями об активности через watch и stop.
Перед вызовом команда проверяет наличие Google Workspace CLI и авторизацию, затем предлагает изучить доступные методы и схему выбранного метода через gws schema. Для параметров запроса используются --params, для тела запроса — --json; предусмотрена работа с пагинацией. Нужен установленный gws и настроенная авторизация. Без файла ../gws-shared/SKILL.md команда требует создать его через gws generate-skills — это стоит учесть до запуска.
Какие задачи решает
- получить журнал активности приложения или аккаунта
- запросить отчёт об использовании аккаунта
- собрать статистику по пользователям или сущностям
- начать или остановить получение уведомлений об активности
Примеры запросов агенту
- Покажи доступные операции Google Workspace Admin Reports командой
/gws-admin-reportsи получи журнал активности. - Запроси отчёт об использовании аккаунта через
/gws-admin-reports customerUsageReports get. - Получи отчёт об использовании пользователей через
/gws-admin-reports userUsageReport get.
Как установить gws-admin-reports
1Через claude-code-templates
npx claude-code-templates@latest --command google-workspace/gws-admin-reports2Вручную: положить файлы
.claude/commands/gws-admin-reports.mdВызов — /gws-admin-reports. Для всех проектов — ~/.claude/commands/
Вручную: положить файлы
~/.codex/prompts/gws-admin-reports.mdВызов — /prompts:gws-admin-reports. В Codex этот формат помечен устаревшим, замена — скиллы
Вручную: положить файлы
.github/prompts/gws-admin-reports.prompt.mdВручную: положить файлы
.gemini/commands/gws-admin-reports.tomlGemini хранит команды в TOML: текст запроса — в поле prompt
Вопросы о gws-admin-reports
Как установить gws-admin-reports в Claude Code?
Выполните npx claude-code-templates@latest --command google-workspace/gws-admin-reports. Команда доступна в .claude/commands/gws-admin-reports.md.
Что делает gws-admin-reports?
Команда выполняет операции Admin Reports: получает отчёты об использовании и данные об активности Google Workspace, а также управляет каналами уведомлений.
Что нужно подготовить для работы команды?
Установите Google Workspace CLI gws и настройте авторизацию. Для общих инструкций по авторизации и флагам требуется ../gws-shared/SKILL.md; если файла нет, запустите gws generate-skills.
Исходный текст
gws-admin-reports.md · MIT
--- allowed-tools: Bash, Read, Write, Edit argument-hint: "[resource] [method] [flags]" description: "Google Workspace Admin SDK: Audit logs and usage reports." --- # Google Workspace Admin Reports Execute Google Workspace Admin Reports operations: $ARGUMENTS ## Prerequisites - Google Workspace CLI (`gws`) must be installed - Authentication configured: Run `gws auth status` to verify - Review `gws admin-reports --help` for all available commands ## Available Resources and Methods # admin-reports (reports_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 admin-reports <resource> <method> [flags] ``` ## API Resources ### activities - `list` — Retrieves a list of activities for a specific customer's account and application such as the Admin console application or the Google Drive application. For more information, see the guides for administrator and Google Drive activity reports. For more information about the activity report's parameters, see the activity parameters reference guides. - `watch` — Start receiving notifications for account activities. For more information, see Receiving Push Notifications. ### channels - `stop` — Stop watching resources through this channel. ### customerUsageReports - `get` — Retrieves a report which is a collection of properties and statistics for a specific customer's account. For more information, see the Customers Usage Report guide. For more information about the customer report's parameters, see the Customers Usage parameters reference guides. ### entityUsageReports - `get` — Retrieves a report which is a collection of properties and statistics for entities used by users within the account. For more information, see the Entities Usage Report guide. For more information about the entities report's parameters, see the Entities Usage parameters reference guides. ### userUsageReport - `get` — Retrieves a report which is a collection of properties and statistics for a set of users with the account. For more information, see the User Usage Report guide. For more information about the user report's parameters, see the Users Usage parameters reference guides. ## Discovering Commands Before calling any API method, inspect it: ```bash # Browse resources and methods gws admin-reports --help # Inspect a method's required params, types, and defaults gws schema admin-reports.<resource>.<method> ``` Use `gws schema` output to build your `--params` and `--json` flags. ## Usage ```bash # List available resources and methods gws admin-reports --help # Inspect method schema before calling gws schema admin-reports.<resource>.<method> # Execute command with arguments gws admin-reports $ARGUMENTS ``` ## Task Execute the requested Admin Reports operation: $ARGUMENTS 1. **Verify Prerequisites** - Check `gws` is installed: `gws --version` - Verify authentication: `gws auth status` - Review available commands: `gws admin-reports --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-admin-reports`
© davila7 · MIT · davila7/claude-code-templates