gws-docs — скилл для Claude Code: что делает и как установить
Скилл позволяет агенту читать и изменять Google Docs через gws. Подойдёт для создания документов и работы с их содержимым из чата.
npx skills add googleworkspace/cli --skill gws-docs -a claude-codeЧто делает gws-docs
gws-docs даёт агенту команды для работы с Google Docs через ресурс documents. Он умеет получать актуальную версию документа, создавать пустой документ с заданным заголовком и применять пакет обновлений. Для добавления текста есть отдельная команда +write.
Перед вызовом метода нужно просмотреть gws docs --help, а затем проверить схему через gws schema docs... Так агент узнаёт обязательные параметры, типы и значения по умолчанию для флагов --params и --json. Для авторизации, глобальных флагов и правил безопасности нужен общий скилл gws-shared; если его нет, входной текст предлагает запустить gws generate-skills.
Ставить скилл стоит тем, кто хочет управлять Google Docs из агента и уже использует CLI gws. Без этого CLI и настроенной авторизации он не закроет рабочий сценарий.
Какие задачи решает
- получить последнюю версию Google Docs
- создать пустой документ с заданным заголовком
- применить несколько обновлений к документу
- добавить текст через команду
+write - проверить параметры метода Google Docs
Примеры запросов агенту
- Создай пустой Google Doc с заголовком «План релиза».
- Получи актуальную версию документа через `documents.get`.
- Добавь этот текст в документ с помощью `+write`.
Как установить gws-docs
1Через Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-docs -a claude-code2Вручную: положить файлы
~/.claude/skills/gws-docs/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/gws-docs/
1Через Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-docs -a codex2Вручную: положить файлы
.agents/skills/gws-docs/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-docs -a cursor2Вручную: положить файлы
.cursor/skills/gws-docs/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install googleworkspace/cli gws-docs2Вручную: положить файлы
.github/skills/gws-docs/SKILL.md1Через Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-docs -a gemini-cli2Командой платформы
gemini skills install https://github.com/googleworkspace/cli --path skills/gws-docsВручную: положить файлы
.devin/skills/gws-docs/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-docs -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора95
Весь набор →Похожие
Вопросы о gws-docs
Как установить gws-docs в Claude Code?
Выполните npx skills add googleworkspace/cli --skill gws-docs -a claude-code. Файл скилла появится по пути ~/.claude/skills/gws-docs/SKILL.md.
Что делает gws-docs?
Скилл позволяет читать Google Docs, создавать пустые документы и отправлять обновления через ресурс documents. Для записи текста предусмотрена команда +write.
На каких платформах работает gws-docs?
Скилл предназначен для Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI и OpenCode.
Исходный текст
SKILL.md · Apache-2.0
---
name: gws-docs
description: "Read and write Google Docs."
metadata:
version: 0.22.5
openclaw:
category: "productivity"
requires:
bins:
- gws
cliHelp: "gws docs --help"
---
# docs (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 docs <resource> <method> [flags]
```
## Helper Commands
| Command | Description |
|---------|-------------|
| [`+write`](../gws-docs-write/SKILL.md) | Append text to a document |
## API Resources
### documents
- `batchUpdate` — Applies one or more updates to the document. Each request is validated before being applied. If any request is not valid, then the entire request will fail and nothing will be applied. Some requests have replies to give you some information about how they are applied. Other requests do not need to return information; these each return an empty reply. The order of replies matches that of the requests.
- `create` — Creates a blank document using the title given in the request. Other fields in the request, including any provided content, are ignored. Returns the created document.
- `get` — Gets the latest version of the specified document.
## Discovering Commands
Before calling any API method, inspect it:
```bash
# Browse resources and methods
gws docs --help
# Inspect a method's required params, types, and defaults
gws schema docs.<resource>.<method>
```
Use `gws schema` output to build your `--params` and `--json` flags.
© googleworkspace · Apache-2.0 · googleworkspace/cli