google-docs

Author, edit, and format Google Docs with structured text, styles, tables, and images.

15.8k|1.6k|Updated Jan 23, 2026
Ready to run
npx skills add https://github.com/cursor/plugins --skill google-docs-cursor
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: google-docs
Source: https://github.com/cursor/plugins/tree/main/third_party/google-docs/skills/google-docs
Command: npx skills add https://github.com/cursor/plugins --skill google-docs-cursor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Manually editing Google Docs through the UI is slow and error-prone, especially for programmatic content creation, bulk formatting, and document assembly. This Skill automates document authoring, styling, and layout without index math or off-by-one bugs. ## Core Features & Use Cases - Text Locating and Editing: Find exact text ranges and apply edits without manual index computation. - Structured Styling: Apply character styles (bold, italic, color), paragraph styles (headings, lists), and table formatting. - Document Assembly: Build multi-section documents with tables, images, headers/footers, and page breaks. - Use Case: Generate a formatted quarterly report with a title, date byline, section headings, bulleted summaries, and a data table—all in one workflow without touching the UI. ## Quick Start Create a Google Doc, insert a title and section heading, then fill in a table with quarterly revenue data and apply header row styling.

Frequently Asked Questions about google-docs

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

FAQPage Schema
How do I avoid index errors when editing Google Docs?▼

Use find_text to locate exact text ranges instead of computing indexes manually. Every edit shifts later indexes, so find fresh ranges before each operation and always apply edits back-to-front if multiple positional changes are needed in one pass.

How do I create lists in Google Docs programmatically?▼

Insert plain text lines first, then call create_list with firstItemText and lastItemText anchors to define the range. Use BULLET_* presets for unordered lists and NUMBERED_* for ordered steps. One create_list call per visually separate list prevents numbering continuation errors.

Can I fill a table with data from a spreadsheet?▼

Yes. Call insert_table to create an empty grid, re-read to get cell index ranges, then insert_text into cells from last to first so earlier indexes remain valid. Style the table after filling by addressing it through its element's start index from read_document.

What causes lists to merge unexpectedly?▼

Text appended after a list inherits its membership. Before bulleting new paragraphs, check if they already show leading bullets from inheritance. Use create_list with remove: true on exactly those paragraphs first, then apply the desired preset.

How do I insert images into Google Docs?▼

Call insert_image with a publicly fetchable URL (private or auth-protected URLs fail). Specify width and height in points; aspect ratio is preserved if only one dimension is set. PNG, JPEG, and GIF formats are supported.

Why do styling changes sometimes affect the wrong text?▼

End indexes are exclusive; off-by-one mistakes style the character after your intended phrase. Use ranges from read_document or find_text output directly. Always verify the styled span covers exactly the intended text before moving to the next operation.