gws-script — скилл для Claude Code: управление проектами Apps Script
Скилл для работы с Google Apps Script через интерфейс командной строки. Агент получает доступ к проектам, процессам и развёртываниям скриптов.
npx skills add googleworkspace/cli --skill gws-script -a claude-codeЧто делает gws-script
Скилл подключает к агенту команду gws, которая умеет ходить в Apps Script API. Через неё можно создавать пустые проекты, читать метаданные и содержимое, загружать файлы и запускать скрипты.
Внутри — обёртка над CLI с ресурсами processes, projects и scripts. Для проектов доступны методы create, get, getContent, getMetrics, updateContent, а также операции с deployments и versions. Перед вызовом любого метода стоит глянуть gws schema script.. — там параметры, типы и значения по умолчанию.
Перед началом работы нужно прочитать ../gws-shared/SKILL.md: там авторизация, глобальные флаги и правила безопасности. Если этого файла нет, запустите gws generate-skills. Сам скилл без установленного бинарника gws бесполезен — он в зависимостях, и об этом стоит помнить.
Какие задачи решает
- создать пустой проект Apps Script
- получить содержимое и метаданные существующего скрипта
- загрузить локальные файлы в проект
- узнать метрики исполнений и активных пользователей
- запустить скрипт через API
Примеры запросов агенту
- Создай новый проект Apps Script и покажи его ID
- Выведи содержимое проекта gws-script из моего аккаунта
- Загрузи файлы из ./src в проект Apps Script
Как установить gws-script
1Через Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-script -a claude-code2Вручную: положить файлы
~/.claude/skills/gws-script/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/gws-script/
1Через Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-script -a codex2Вручную: положить файлы
.agents/skills/gws-script/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-script -a cursor2Вручную: положить файлы
.cursor/skills/gws-script/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install googleworkspace/cli gws-script2Вручную: положить файлы
.github/skills/gws-script/SKILL.md1Через Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-script -a gemini-cli2Командой платформы
gemini skills install https://github.com/googleworkspace/cli --path skills/gws-scriptВручную: положить файлы
.devin/skills/gws-script/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-script -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора95
Весь набор →Похожие
Вопросы о gws-script
Как установить gws-script в Claude Code?
Выполните npx skills add googleworkspace/cli --skill gws-script -a claude-code. Файл скилла появится в ~/.claude/skills/gws-script/SKILL.md.
Что делает gws-script?
Даёт агенту команду gws для управления проектами Google Apps Script: создание, чтение содержимого, обновление, метрики, развёртывания и запуск.
Что нужно для работы скилла?
Бинарник gws и файл ../gws-shared/SKILL.md с настройками авторизации. Если shared-скилла нет, его создают командой gws generate-skills.
Исходный текст
SKILL.md · Apache-2.0
---
name: gws-script
description: "Manage Google Apps Script projects."
metadata:
version: 0.22.5
openclaw:
category: "productivity"
requires:
bins:
- gws
cliHelp: "gws script --help"
---
# script (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 script <resource> <method> [flags]
```
## Helper Commands
| Command | Description |
|---------|-------------|
| [`+push`](../gws-script-push/SKILL.md) | Upload local files to an Apps Script project |
## API Resources
### processes
- `list` — List information about processes made by or on behalf of a user, such as process type and current status.
- `listScriptProcesses` — List information about a script's executed processes, such as process type and current status.
### projects
- `create` — Creates a new, empty script project with no script files and a base manifest file.
- `get` — Gets a script project's metadata.
- `getContent` — Gets the content of the script project, including the code source and metadata for each script file.
- `getMetrics` — Get metrics data for scripts, such as number of executions and active users.
- `updateContent` — Updates the content of the specified script project. This content is stored as the HEAD version, and is used when the script is executed as a trigger, in the script editor, in add-on preview mode, or as a web app or Apps Script API in development mode. This clears all the existing files in the project.
- `deployments` — Operations on the 'deployments' resource
- `versions` — Operations on the 'versions' resource
### scripts
- `run` —
## Discovering Commands
Before calling any API method, inspect it:
```bash
# Browse resources and methods
gws script --help
# Inspect a method's required params, types, and defaults
gws schema script.<resource>.<method>
```
Use `gws schema` output to build your `--params` and `--json` flags.
© googleworkspace · Apache-2.0 · googleworkspace/cli