googleworkspace avatar

Gws Docs

The gws-docs skill enables users to read and write Google Docs through command-line operations by wrapping Google Workspace APIs, allowing developers and automation tools to programmatically create documents, retrieve their content, and apply batch updates. It solves the problem of integrating Google Docs functionality into CLI workflows and scripts without requiring direct API interaction. The skill is for users of the Google Workspace CLI who need to automate document management tasks.

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

Install

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

Installs into .claude/skills of the current project.

Files

docs (v1)

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

gws docs <resource> <method> [flags]

Helper Commands

CommandDescription
+writeAppend 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:

# Browse resources and methods
gws docs --help

Sponsors

Details

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

More from googleworkspace/cli

All 113
1googleworkspace avatargws-docs-writegoogleworkspace/cliGoogle Docs: Append text to a document.51.5Kskills.sh installs
2convex 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
3yuan1z0825 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
4wshobson 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
5nomadamas 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
6astro-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