Skip to main content
skill CX Codex GP ChatGPT official · OpenAI

google-drive-comments — Codex skill: what it does, how to install

Drive comment workflows for Google Docs, Sheets, and Slides in Codex. Adds evidence-backed comments, replies to threads, and resolves discussions.

Install into Codex · Skills CLI (Vercel) All methods and platforms ↓
npx skills add openai/plugins --skill google-drive-comments -a codex
Open on GitHub

What google-drive-comments does

This skill handles comment workflows across Google Docs, Sheets, Slides, and generic Drive files. Before drafting notes, the agent locates the target file and inspects the relevant surface: document text, sheet ranges, or slide outlines. It does not guess quotes.

Drive API comments frequently appear unanchored inside Google editor interfaces. To prevent orphaned notes, the skill embeds direct evidence into comment bodies: exact quotes for Docs, sheet tabs with ranges like Budget!C12 for Sheets, or slide numbers for Slides. Vague feedback referencing generic targets without evidence is rejected before sending.

Creating, replying, and resolving happen inside a single bulk_update_file_comments call. When updates exceed the tool limit, the agent asks before splitting into multiple batches. A final summary tallies updated and resolved threads.

What it helps with

  • add review comments to Google Docs with exact quoted phrases
  • leave feedback on Google Sheets formulas using cell ranges like Budget!C12
  • reply to existing comment threads across Google Drive files
  • bulk resolve addressed discussions via bulk_update_file_comments

Example prompts for the agent

  • Review the draft in Google Docs and leave comments on claims that need citations
  • Reply to open questions on the Pipeline sheet and mention cell D10
  • Resolve all addressed comments on slide 4 in the project presentation

How to install google-drive-comments

1Skills CLI (Vercel)

npx skills add openai/plugins --skill google-drive-comments -a codex

2Manually: put the files in place

.agents/skills/google-drive-comments/SKILL.md

For all projects use ~/.agents/skills/

Step by step, with commands for each platform: Codex skills: how to install, where they live, how to call them

Questions about google-drive-comments

How to install google-drive-comments in Codex?

Run npx skills add openai/plugins --skill google-drive-comments in your terminal.

What does the google-drive-comments skill do?

It lets agents inspect Google Drive files, draft anchored comments on Docs, Sheets, and Slides, reply to discussion threads, and resolve them in bulk.

Why does the skill place coordinates and quotes directly inside comment text?

Comments created through the Drive API often appear unanchored in Google web editors. Putting exact quotes, sheet names, and cell ranges directly into the comment body guarantees the reader can locate the referenced section.

Source text

SKILL.md · MIT
---
name: google-drive-comments
description: Write, reply to, and resolve Google Drive comments on Docs, Sheets, Slides, and Drive files with evidence-backed location context. Use when the user asks to leave comments, review a file with comments, respond to comment threads, or resolve Drive comments.
---

# Google Drive Comments

Use this skill for comment workflows in the unified Google Drive plugin. Drive comments can apply to Docs, Sheets, Slides, and generic Drive files, but API-created comments may appear unanchored in the Google editor UI. Every new top-level comment must therefore include enough surface-specific evidence for the reader to find the target without relying on native UI anchoring.

## Workflow

1. Ground the target file first.
- If the user did not provide an exact file URL or ID, search Drive, list recent files, list folders, or read metadata until the target file is unambiguous.
- Identify whether the file is a Google Doc, Sheet, Slides deck, or generic Drive file before drafting comments.

2. Read the surface that will be commented on.
- For Docs or text-like files, read the document text around each likely target.
- For Sheets, read spreadsheet metadata first, then read the specific sheet tabs and ranges that may receive comments.
- For Slides, read the presentation outline or text first, then read specific slides or thumbnails when visual context is needed.
- Do not guess a target quote, slide number, sheet name, or cell range from memory or search snippets.

3. Draft all intended comment updates before writing.
- Prefer one `bulk_update_file_comments` call for all creates, replies, and resolves in the same user request.
- Keep the batch to the action limit exposed by the tool. If the request needs more comments than the limit, ask before splitting into another batch.
- For replies and resolves, use existing comment IDs from the live comment thread data.

4. Attach surface-specific evidence to every new top-level comment.
- The comment body must explicitly name or quote the target evidence, because the Google editor UI may not show API-created anchors.
- Docs or text-like files: include `quoted_text` with the exact sentence, phrase, heading, or nearby text the comment refers to. Also quote that same text in the comment body when the critique would otherwise say "this sentence" or "this paragraph."
- Sheets: include `sheet_cell_range` with the sheet name and A1 cell or range, such as `Budget!C12` or `Pipeline!A2:D10`. Also name that sheet and range in the comment body, and include `quoted_text` when a displayed value, header, formula, or label would make the target clearer.
- Slides: include `slide_number`. Also name that slide number in the comment body, and include `quoted_text` when commenting on a title, bullet, label, chart text, or other visible slide text.
- Generic Drive files: if no structured surface exists, make the comment content explicitly name the file-level, page-level, timestamp-level, or section-level evidence it refers to.

5. Reject vague comments before sending them.
- Do not create comments that say only "this sentence," "this paragraph," "this slide," "this cell," or similar without the matching evidence field.
- If the model has a useful critique but cannot identify the exact evidence target, either turn it into an explicitly file-level summary comment or omit it and say the target was not specific enough.
- Do not rely on tool fields alone for location context. If the comment body would feel hand-wavy after removing the hidden tool fields, rewrite it before sending.

6. Verify the result.
- After writing, summarize how many comments were created, replied to, or resolved.
- Mention the evidence used for the highest-risk comments, especially any file-level comments that intentionally do not target a specific quote, slide, or cell.

## Limitations

- Do not rely on Drive comment `anchor` data for Google Docs, Sheets, or Slides unless the connector explicitly documents a provider-supported shape for that surface. Drive API-created comments may still display as unanchored in the Google editor UI.
- The evidence fields are the durable location contract for this workflow: exact quoted text for Docs and text-like files, sheet/cell range for Sheets, and slide number plus visible text for Slides.

© OpenAI · MIT · openai/plugins

Similar skills

All skills for Office documents →

From the same set528

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor