googleworkspace avatar

Gws Docs Write

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.

skills.sh installs
51.5K
GitHub stars
32.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add googleworkspace/cli --skill gws-docs-write --agent claude-code

Installs into .claude/skills of the current project.

Files

docs +write

PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to create it.

Append text to a document

Usage

gws docs +write --document <ID> --text <TEXT>

Flags

FlagRequiredDefaultDescription
--document✓—Document ID
--text✓—Text to append (plain text)

Examples

gws docs +write --document DOC_ID --text 'Hello, world!'

Tips

  • Text is inserted at the end of the document body.
  • For rich formatting, use the raw batchUpdate API instead.

[!CAUTION] This is a write command — confirm with the user before executing.

See Also

  • gws-shared — Global flags and auth
  • gws-docs — All read and write google docs commands

Sponsors

Details

Repository
github.com/googleworkspace/cli
Categories
Documentation, CLI & Terminal, Office & Documents

More from googleworkspace/cli

All 113
1convex avatarconvex-explain-appconvex/agent-skillsExplain an existing Convex app — data model + relationships, public vs internal functions, auth/ownership model, components, a request→data flow — read from the41Kskills.sh installs
2yuan1z0825 avatarnature-writingyuan1z0825/nature-skillsDraft, restructure, or plan Nature-style manuscript sections and initial-submission materials from author-provided claims, results, figures, notes, or Chinese d16.7Kskills.sh installs
3wshobson avatarpostmortem-writingwshobson/agentsWrite effective blameless postmortems with root cause analysis, timelines, and action items. Use when conducting incident reviews, writing postmortem documents,11.2Kskills.sh installs
4nomadamas avatarnaver-blog-researchnomadamas/k-skillSearch Naver blogs, read full post content, and download images using only python3 stdlib — no API key required.10.9Kskills.sh installs
5astro-han avatarkarpathy-llm-wikiastro-han/karpathy-llm-wikiUse when building or maintaining a personal LLM-powered knowledge base. Triggers: ingesting sources into a wiki, querying wiki knowledge, linting wiki quality, 8.6Kskills.sh installs
6trailofbits avatarsecure-workflow-guidetrailofbits/skillsGuides through Trail of Bits' 5-step secure development workflow. Runs Slither scans, checks special features (upgradeability/ERC conformance/token integration)7.8Kskills.sh installs