google-docs
What it does
The skill builds and edits Google Docs with formatting such as styles, lists, and tables. It is for people who need polished documents in Google Drive.
When to use it
- ✓When you ask the agent to create a formatted Google Doc.
- ✓When you need to edit text or add lists, tables, or images in an existing Google Doc.
- ✓When you want paragraph or character styles applied to a document.
Skill link
https://github.com/cursor/plugins/blob/main/third_party/google-docs/skills/google-docs/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Create a formatted Google Doc from my meeting notes with headings and a bulleted action list.”
5 new skills a week. 1 minute to read.
How it works
The agent finds exact text in the document and applies styles or lists to that range. It reads the document structure first, so edits do not shift the wrong paragraphs.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Google Docs authoring
Locate text, never compute indexes (the #1 source of bugs)
Docs edits address zero-based UTF-16 index ranges within one tab, and every write SHIFTS later indexes. Guessed or stale indexes silently hit the wrong paragraphs - the classic symptom is two lists merging into one continued numbering. The tools remove the need for index math:
find_textreturns FRESH{start, end}ranges for exact text - the direct source of indexes forapply_text_style,apply_paragraph_style,delete_content, andset_paragraph_format. Locate, then edit, in back-to-back calls.create_listtakesfirstItemText/lastItemTextanchors and resolves the range itself: name the first and last item paragraphs and no index ever touches your hands. Use onecreate_listper list with the right preset (BULLET_* for bullets, NUMBERED_* for numbers); never stretch one call across two visually separate lists.
When a range must come from structure instead of a phrase (styling a whole
paragraph, addressing a table), read it from read_document elements: a
paragraph's {start, end} is the range for paragraph-level tools. END IS
EXCLUSIVE: one short misses the last character, one long styles the
character after the phrase (the classic italic-or-link off-by-one).
When raw indexes are unavoidable: read_document first, compute ONE edit,
pass requiredRevisionId, apply, and re-read before the next positional
edit. Order multi-part positional work BACK-TO-FRONT (highest index first)
when re-reading between steps is too expensive; earlier ranges stay valid.
Creating a document
create_document makes a BLANK doc (its API ignores content), so plan:
- Content known up front: prefer google-drive
google_drive_create_filewith Markdown (target_mime_type: ...document), which imports headings, lists, and tables in one call and can target a folder. - Building incrementally:
create_document, theninsert_textwithindexomitted to APPEND each paragraph; append mode reads the tail itself and is revision-guarded automatically.paragraphStylestyles the new paragraphs andbold/italicstyle the inserted text in the same call, so a well-structured document is a sequence of appends with no styling pass. - Doc creates cannot set a parent folder. When placement matters, create
and then google-drive
google_drive_move_or_renamewithdestination_folder_id.
Structure is not optional
A document without hierarchy reads as a text dump. Default shape for any
report/memo/notes request: a TITLE paragraph, an italic byline or date line,
HEADING_2 per section, short body paragraphs with bold on the phrases that
matter, and bulleted lists for enumerations. Use insert_text's
paragraphStyle/bold/italic arguments as you write rather than styling
afterwards.
Styling
- Character styling (
apply_text_style): bold/italic/underline/strike, fontSize, fontFamily, textColor/backgroundColor as#RRGGBB, linkUrl. Exclusive END index: to style one paragraph without its trailing newline, useend - 1from the read. - Paragraph styling:
apply_paragraph_stylefor named styles (TITLE/HEADING_1..6),set_paragraph_formatfor alignment, indents, and line spacing (percent, 100 = single). - Lists:
create_listover the paragraphs' range; each newline-separated paragraph becomes one item. Insert the plain lines first, then bullet them. - The preset is part of correctness: enumerations get a BULLET_* preset by default; NUMBERED_* only when the content is ordered (steps, rankings) or the request says numbered.
- Before bulleting, check the read for paragraphs that ALREADY show a
leading bullet - text appended directly after a list inherits its
membership, and
create_listover such paragraphs restyles the ORIGINAL list, continuing its numbering (a second list showing 4, 5, 6). Strip first:create_listwithremove: trueover exactly the new paragraphs, then apply the wanted preset.
Tables and images
insert_tableinserts an EMPTY grid. To fill it: re-read (cells appear with their own index ranges) andinsert_textinto cells from the LAST cell to the first, so earlier cell indexes stay valid.- Style a table AFTER filling it, addressing it by the table element's
startfromread_document:set_table_cell_shadingthe header row (pick the row's text color against that fill),merge_table_cellsfor a title cell spanning columns (top-left conten
FAQ
Why do lists sometimes merge?
Guessed positions shift after each edit, so the skill finds fresh text ranges before it styles content.
Can it add images and tables?
Yes. The skill covers tables, images, and headers and footers.
Does it need a Google account?
Yes. It works through the Google Docs tools connected to your Google account.
Details
Original description by the author
Author and edit Google Docs with the google-docs tools - structured writing, character and paragraph styling, lists, tables, images, headers/footers. Use when creating a formatted document, editing document content, or applying styles.
repo: cursor/plugins
Popularity
- GitHub stars
- 15k
- Ranking position
- #11015
- License
- —
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
advisor
15kLets your agent consult a stronger second model at key checkpoints, such as before a big decision or when stuck on an error, if you turn it on.
check-agent-compatibility
15kRuns a full check of whether AI coding agents can start, verify and document a repository, and returns one compatibility score with the main issues.
cli-for-agents
15kTeaches your agent to design or review command-line tools so AI agents can run them without prompts, with clear help text and examples.
continual-learning
15kKeeps your AGENTS.md notes up to date by handing the work of reviewing past chats to a dedicated memory updater.
Similar skills
feishu-doc
394kHelps your agent read, create, and edit Feishu cloud documents, including text, images, and tables, using the document tool.
feishu-drive
394kLets your agent browse, organize, and comment on files in a Feishu cloud folder that has been shared with the bot.
feishu-perm
394kHelps your agent check and change who can access a Feishu file, choosing the smallest permission that meets your request.