openai/plugins/google-docs
Claude Code and agent skill by openai/plugins
- vendor
Checking that the SKILL.md file is still in the repository.
Prompt- and template-complete Google Docs creation and editing with explicit-instruction-authoritative structural preservation, including semantic roles, relationships, comparison dimensions, and instructed extensions; full-topology native-copy routing; source-grounded per-tab adaptation for past/example references; style-preserving hyperlink and table edits; canonical smart-chip-first authoring for dates and relevant supported people or Google resources; a file-backed advisory trusted read before existing-document writes; automatic protected-control awareness; direct connector APIs by default; DOCX-first import only when no supplied Google Doc template/reference constrains the output; and checked-in code mode only for exact native dropdown mutation. Use when Codex must create, edit, fill, adapt, redesign, or verify Google Docs without overriding explicit user/template instructions, adding unrequested document scope, or carrying stale reference facts into a new deliverable.
Install
npx vskill@latest install openai/plugins/google-docsSKILL.md
Google Docs
Use this opt-in skill for Google Docs work in Codex local-plugin sessions. Draft once to the requested final shape, prove explicit prompt/source/template coverage, then compress repetition without removing unique requirements.
Code mode is preferred for the checked-in helpers below, but it is not a prerequisite for this workflow. If code mode is unavailable, reproduce the same routing, read and inventory, preservation, mutation, and verification workflow with the available connector or app tools; preserve all checks and adapt any operation without a non-code implementation to the closest supported equivalent, clearly disclosing any unavoidable fidelity difference.
Documents clarification questions
- Ask for new documents or major rewrites. Skip this for edits/conversions.
- Inspect prompt, conversation history, existing file and relevant references to figure out what questions to ask.
- Questions should cover topic, audience, and purpose and come before planning
- When asking questions, focus on consequential dimensions not stated or clearly implied.
- When the artifact is a new analysis, focus on which definition, metric, or lens should drive conclusions.
- Unresolved reference labels or question marks are user-owned: ask, don't infer.
- Once topic, audience, and purpose are clear, proceed without asking. Choose emphasis, format, length, style, details. Use placeholders for missing facts.
Use request_user_input once if available, else ask via a message. Have the best suggestion first. Append (Recommended) to its label. Have another good alternative second. Have Use your judgment as the third and final option. If the request times out or returns no answer, proceed using your best judgment; do not ask again.
Default Routing
Choose the route only after resolving whether a supplied Google Doc is a template, reference, example, or content-only source:
- Supplied Google Doc template or reference: read
references/reference-template-preservation-and-edit-scope.md, inspect the native reference signature below, and remain on a native Google Docs route. Do not delegate authoring to DOCX.
- Exact template replacement: copy the native document and replace content inside the copied structure.
- Template extension or adaptation: copy the native document, then make only the required native additions, removals, or expansions.
- Selective reference use: choose this only when the user explicitly asks to borrow selected parts. Use a native copy and prune it, or create a native Google Doc directly when the selected parts contain no native structure that must be carried forward.
- Multi-tab invariant: when the supplied document has more than one tab, start from a full native copy and preserve the complete tab tree—tab count, titles, order, and parent/nesting—unless the user explicitly requests a single-tab result, identifies selected tabs/parts to borrow, or directs removal. A URL that opens one tab and wording such as “use this as a reference” do not authorize collapsing the document.
- Structural preservation and content treatment are separate decisions. Structural preservation covers both native form and semantic organization: tab topology, section order, container identity and position, field roles, table row and column roles, comparison dimensions, ordering, dependencies, and operative instructions embedded in or adjacent to retained structures. It does not freeze the initial dimensions; when the user or template directs an extension, deletion, substitution, or reordering, perform that change inside the native structure. Applicable user and template instructions take precedence over this skill's layout, compaction, and styling defaults; those defaults apply only where the governing sources are silent. For a past/example reference used to build a new deliverable, retained tabs preserve their native structure and styling but default to
adapt content; they do not preserve prior-project facts, people, dates, links, approvals, or copy. A “legacy,” “reference,” or “do not use” label does not make stale content acceptable in the finished artifact.
- Blank or basic net-new native creation without a constraining Google Doc template/reference: read
references/reference-native-create-direct.md, create the file withmcp__codex_apps__google_drive._create_file, and use direct DocsbatchUpdaterequests when content is requested. - Polished or layout-sensitive net-new creation without a constraining Google Doc template/reference: use
[@documents](plugin://documents@openai-primary-runtime)with thegoogle_docs_defaultpreset, then readreferences/reference-import-docx-to-native-docs.mdand import as native Google Docs. A supplied Google Doc template/reference disqualifies this route even when the requested result is polished; a content-only source does not. After import, replace mandatory chip-eligible values with native chips during post-import normalization. - Existing document reads, summaries, edits, comments, and preservation-only work: use Google Docs connector or app tools directly. Before the first write to an existing document, use the checked-in file-backed trusted read described in
references/reference-trusted-read-wrapper.md; inspect its compact control warning immediately and read normalized document content from the returned file path. Targeted follow-up reads may use connector tools directly. - Exact native dropdown creation, option replacement, or selected-value mutation: use the checked-in Google Docs dropdown workflow for every mutation in the task after capability discovery. Read
references/reference-dropdown-code-mode.md.
When the prompt is ambiguous, default to native copy-and-adapt rather than selective borrowing or DOCX reconstruction. Do not create a blank destination or begin a DOCX draft before this decision.
Native reference signature
Before planning content for a supplied Google Doc template/reference:
- Read full document metadata and enumerate every tab before reading a single tab in depth: tab id, title, parent, nesting, and order. A URL ending in
?tab=t.0identifies the initially visible tab, not the full reference scope. - Record a compact signature for relevant heading roles: named style, font family, size, weight, color, and spacing.
- Record each relevant table's tab, shape, semantic row and column roles, comparison dimensions, applicable instructions in or adjacent to the table, borders, fills, padding, widths, and representative text styling.
- Record relevant native elements and their locations: people/date/rich-link chips, links, images, lists, controls, headers, and footers.
- Give every tab two treatments: a structural treatment (
retain,extend,reorder by user direction, orremove by user direction) and a content treatment (carry current content,adapt,replace, orclear). Unmentioned tabs default toretain structure; when the reference describes a different project, event, product, experiment, incident, or time period, their content defaults toadapt, never carry. - Record reference-only factual signatures that must not leak into a new deliverable: prior names and organizations, product/project identifiers, dates and times, venues, links and chips, owners and approvers, claims, metrics, statuses, and distinctive copy. The user prompt governs the requested outcome; applicable instructions in the selected template/reference govern how retained structures must be used or adapted; designated content sources govern facts. Skill defaults apply only where those authorities are silent. A template/reference governs facts only when the user explicitly makes its content authoritative.
Do not flatten paragraphs across tabs until the tab tree is recorded. If a full response is too large or truncated, request tabs(tabProperties) first and inspect relevant tabs individually. For exact-template and template-adaptation work, use the Drive copy action exposed by the current runtime, then run the file-backed trusted read on the copied destination before its first write. If native copy is unavailable and tabs, styles, chips, controls, or other native semantics matter, stop rather than silently rebuild through DOCX.
Do not block blank or basic eligible creation on the Documents plugin. For eligible DOCX-first work, keep staging untracked and non-user-visible, clean it after successful native import and readback, and return only the Google Docs link unless the user requested local files.
Documents location
Use/create ChatGPT at My Drive root. Place new documents created from scratch or from a template there. Edit existing documents in place.
Respect user-specified locations.
Coverage-First Authoring Contract
- Derive completeness only from explicit user requirements, supplied source content the user asks to carry forward, and applicable template/reference instructions, fields, containers, or functional sections.
- Before drafting, keep a compact in-memory coverage map with: obligation, authority (
prompt,source, ortemplate/reference), required output form, planned destination, and final state (present,unavailable-with-disclosure, oromitted-by-explicit-user-direction). Distinguish factual authority from structural authority: a past/example reference may authorize form, semantic organization, instructions, and style without authorizing any of its facts. Do not persist, serialize, count, hash, or script-validate the map. - Use document archetypes only to organize requested material. They never create obligations, sections, evidence requirements, or depth by themselves.
- Draft once toward the intended final shape; do not create an intentionally maximal draft. Prove coverage before optimizing length.
- Research externally only when requested, when current/time-sensitive facts are material, or when supplied sources cannot support required factual accuracy. For requested evidence, follow
references/reference-citations-and-hyperlinks.md. - Include methodology, assumptions, alternatives, risks, or sensitivity only when requested or materially necessary to satisfy an obligation.
- Compress repeated wording and duplicated rationale only after coverage passes. Never remove or merge a unique requirement, requested fact/citation/source, template instruction, field or functional section, distinct decision/owner/dependency/risk/action, comparison dimension, or requested native structure merely to shorten the document.
- If complete content cannot meet an explicit page limit without unreadable text or a typography-floor violation, report the conflict rather than silently omit content.
- Never fill a missing fact from a past/example reference merely because its slot needs content. Use the current source, a clearly labeled recommendation, or an explicit unavailable/TBD disclosure. Do not carry a reference-only schedule time, person, link, metric, status, or claim into the new artifact.
Do not use required-unit or evidence ledgers, evidence-level classifications, archetype completeness budgets, document-mode contracts, typography exception ledgers, density-trigger ledgers, a draft-everything-then-compress workflow, or automatic depth based only on document category.
Native Smart-Chip Authoring Invariant
Use native smart chips whenever the connector supports them and the source contains the required semantic value. The following cases are mandatory, not optional polish:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 16 Sep 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/google-drive/skills/google-docs/SKILL.md
Popularity
- Repository stars
- 6,799
- Repository forks
- 889
- 7-day trend score
- 44
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/openai/plugins/google-docs)