Use when the task touches Google Docs through grr (3 methods under `grr docs` — batchUpdate, create, get). Carries the service's generated command map, the naming rule applied to docs, example commands verified with --dry-run, and the least-privilege scope callout.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Docs?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/debanjanbasu-docs)
---
name: grr-docs
description: "Use when the task touches Google Docs through grr (3 methods under `grr docs` — batchUpdate, create, get). Carries the service's generated command map, the naming rule applied to docs, example commands verified with --dry-run, and the least-privilege scope callout."
---
<!-- GENERATED by scripts/generate-skills.ts from the committed Discovery index — index generated at 2026-11-27T13:50:27.758Z. Do not edit by hand; regenerate with `npm run skills`. -->
# grr docs — Google Docs API
**3 methods**, v1, Discovery revision 20261118, all reached as `grr docs <resource…> <method>` and generated from the same committed index as the CLI tree — this file, `grr api`, and `grr docs --help` never disagree. Load the core skill first: [grr](../grr/SKILL.md) owns the discovery discipline, the output contract, the safety flags, multi-account, `mcp`, and `ask`.
## Coverage
| Resource path (the id prefix — each command walks these words) | Methods |
| --- | --- |
| `documents` | 3 |
## Naming, applied to docs
- Id dots become spaces: `docs.documents.get` → `grr docs documents get`. Resource segments and method names keep their exact Discovery casing (`otherContacts`, `getProfile`).
- Flags are the same ids, camelCase → kebab-case: `userId` → `--user-id`, `maxResults` → `--max-results`. Integers parse as numbers, booleans are presence flags, repeated parameters repeat, enum parameters validate.
- No parameter in this service collides with the reserved flag names (`params`, `body-file`, `query`, `dry-run`, `format`).
- Request bodies are untyped by design: `--params '<json>'` or `--body-file PATH|-`. Typed flags win on conflict.
## Examples
```sh
grr docs documents get --document-id <document-id>
grr docs documents create --dry-run
grr docs documents batchUpdate --document-id <document-id> --dry-run
```
Values in `<angle brackets>` are placeholders — substitute real ids (`me` is the authenticated user wherever the parameter is `--user-id`). Append `--dry-run` to any example to print the resolved request — verb, URL, scopes — instead of sending it.
## Scopes
- Least privilege for reads: `https://www.googleapis.com/auth/drive.readonly` — the narrowest scope the service's methods accept (it is the least-privilege scope for 1 of 3 methods). Per method, ask the index: `grr api describe <id>` → `leastPrivilegeScope`.
- Scope honesty: a login grants only the scopes it asked for — `grr auth login` requests a small default set, `--service <name>` adds one service's scopes from the embedded index, `--all-scopes` the whole union — minus the Chat app-authentication scopes Google grants only to a service account (`chat.bot`, `chat.app.*`, `chat.import`), which a user consent screen cannot show. A `403` is therefore not a missing consent: it is either a scope outside the current grant (the remedy is a human re-running `grr auth login --service <name>`) or an API that is not enabled on the Cloud project. Surface that distinction; never retry a 403 in a loop.
## Contract
- stdout is data, stderr is logs; JSON by default, `-f jsonl|table|pretty` to switch.
- `--dry-run` before anything destructive — the resolved request as JSON, nothing sent.
- Non-zero exit on failure; errors are actionable (a 403 names the missing scope, a typo gets ranked suggestions).
## Go deeper
- Core skill: [skills/grr/SKILL.md](../grr/SKILL.md) — discipline, contract, safety, accounts.
- `grr api describe docs.documents.get` — the authority on one method's parameters and scopes.
- `grr api list --service docs` and `grr docs --help` — browse the whole branch, offline, before any login.
- Site reference: [grr-cli.pages.dev/docs/api-reference/docs/](https://grr-cli.pages.dev/docs/api-reference/docs/)