google-docs

Read, create, append, and edit Google Docs via the gws CLI.

1.7k|523|Updated May 5, 2026
One-click install
npx skills add https://github.com/Lilac-Labs/gini-agent --skill google-docs-lilac-labs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: google-docs
Source: https://github.com/Lilac-Labs/gini-agent/tree/main/skills/google/google-docs
Command: npx skills add https://github.com/Lilac-Labs/gini-agent --skill google-docs-lilac-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It removes the manual copy-paste work of reading and updating Google Doc content by letting you perform structured edits through a command-line interface.

Core Features & Use Cases

  • Read and append content: Fetch a document’s body content and append new text for notes, summaries, or ongoing drafts.
  • Create new blank docs and populate them: Start from an empty document, then write or apply batch updates to add content.
  • Structured batch edits: Perform atomic, ordered mutations using insertText, replaceAllText, and paragraph style updates, including safe placeholder replacement.

Quick Start

Create a doc titled Weekly notes and append today’s meeting summary to it using gws docs.

Frequently Asked Questions about google-docs

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

FAQPage Schema
How do I automate Google Docs editing and append text to existing documents?

You can automate Google Docs editing by using this Skill to read, append, and edit document content through the gws CLI. It utilizes the Google Docs v1 API to fetch body content and append new text for ongoing drafts or meeting notes.

What is the best way to replace text placeholders in Google Docs programmatically?

Replacing text placeholders in Google Docs is handled via structured batch edits using the batchUpdate method. This Skill applies atomic, ordered mutations like replaceAllText to safely swap placeholders without manual copy-paste.

Do I need gws authentication to create and update Google Docs?

Yes, authenticated gws with appropriate Docs scopes is required to create and update Google Docs. This Skill leverages the gws CLI to interface with the Google Docs v1 API for creating blank documents and executing structured batch edits.

Can I perform multiple ordered document mutations in a single Google Docs request?

Yes, you can perform multiple ordered document mutations in a single request using the batchUpdate feature. This Skill supports atomic request batches, allowing you to sequentially insert text, replace all text, and update paragraph styles.

How do I create a new blank Google Doc and populate it via command line?

To create a new blank Google Doc via command line, use this Skill to start from an empty document and then apply batch updates. It leverages the gws CLI to write content or insert sections into the newly created document.