gws-docs

Automate Google Docs reading and writing via the gws CLI.

Updated May 25, 2025
One-click install
npx skills add https://github.com/temple-slope/dotfiles --skill gws-docs-temple-slope
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gws-docs
Source: https://github.com/temple-slope/dotfiles/tree/main/.agents/skills/gws-docs
Command: npx skills add https://github.com/temple-slope/dotfiles --skill gws-docs-temple-slope

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates reading and writing Google Docs via the gws CLI, reducing manual editing and retrieval work.

Core Features & Use Cases

  • Read document content with gws docs get
  • Create new documents with gws docs create
  • Update documents with gws docs batchUpdate
  • Integrate into automation pipelines for report generation and templating

Quick Start

Run gws docs <resource> <method> to read or modify a Google Doc.

Frequently Asked Questions about gws-docs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate reading and writing Google Docs from the CLI?

You can automate reading and writing Google Docs from the CLI by running gws docs commands. Use gws docs get to retrieve content, gws docs create for new documents, and gws docs batchUpdate to apply changes across automation pipelines.

Do I need Google API credentials to use gws docs commands?

Yes, using gws docs commands requires the gws binary and Google API credentials with appropriate scopes. You must configure these credentials beforehand to authorize document retrieval, creation, and batch updates.

Can I update multiple Google Docs in an automation pipeline?

Yes, you can update multiple Google Docs in an automation pipeline using the gws docs batchUpdate method. This exposes resources for batch updates, enabling automated report generation and templating across projects without manual editing.

What's the best way to generate Google Docs reports automatically?

The best way to generate Google Docs reports automatically is integrating gws docs commands into your automation pipelines. You can create documents with gws docs create and apply templated changes via documents.batchUpdate.

How does the documents.batchUpdate method work for Google Docs?

The documents.batchUpdate method works by sending batch requests through the gws CLI to modify Google Docs. It allows you to programmatically apply multiple document updates simultaneously, reducing manual retrieval and editing work.