
The gws-docs-write skill appends plain text to the end of a Google Docs document using the Google Workspace CLI, requiring only a document ID and the text content to insert. It serves Google Workspace users and developers who need to programmatically add content to documents without manual editing. This skill solves the problem of automating document updates through the command line while maintaining security through prerequisite authentication checks.
$ npx -y skills add googleworkspace/cli --skill gws-docs-write --agent claude-codeInstalls into .claude/skills of the current project.
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
Append text to a document
gws docs +write --document <ID> --text <TEXT>
| Flag | Required | Default | Description |
|---|---|---|---|
--document | ✓ | — | Document ID |
--text | ✓ | — | Text to append (plain text) |
gws docs +write --document DOC_ID --text 'Hello, world!'
[!CAUTION] This is a write command — confirm with the user before executing.
Sponsors