google-docs

A tool for creating, reading, editing, organizing, and sharing native Google Docs, the online documents stored in Google Drive. It is not for Word files or spreadsheets.

In plain words
What is it for?
Use it to create documents, add or rewrite sections, replace text, insert headings or tables, share documents, and move them between Drive folders.
Why use it?
It helps avoid manually opening Google Drive and making document changes yourself. It also requires reading a document before changing it, which helps prevent accidental edits.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/sashakang/google-drive-plugin/google-docs
Any agent
npx skills add sashakang/google-drive-plugin --skill google-docs
Clone the repo
git clone --depth 1 https://github.com/sashakang/google-drive-plugin

Made for: Claude Code, Codex.

Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,374 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00085 $0.01374
Opus 5 $0.00043 $0.00687
Sonnet 5 $0.00017 $0.00275
Haiku 4.5 $0.00009 $0.00137

Measured 2d ago against content hash 2a7958c13a82, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

google-docs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/google-docs/SKILL.md · 127 lines

How it starts

The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Google Docs Operations

When to use

  • Create/edit/manage native Google Docs
  • Organize or share documents in Google Drive
  • Convert meeting notes, reports, or notes into docs

When NOT to use

  • .docx files → use the built-in Cowork docx skill (not part of this plugin)
  • .xlsx / spreadsheets → use the built-in Cowork xlsx skill (not part of this plugin)
  • Google Sheets → use the google-sheets skill (included in this plugin)

Available tools

Tool Purpose
create_google_doc Create new doc, optional folder placement
get_google_doc Read structure (default) or full content
append_text Add text at end with optional heading style
replace_text Global find/replace
replace_section Rewrite one section safely (requires prior get)
insert_heading Add heading at end or after a section
insert_table Add table with optional data (max 50 rows x 20 cols)
share_doc Share with emails (domain-restricted if configured)
move_doc Move to Drive folder (allowlist-enforced if configured)

Critical rule: read before write

ALL write operations (append_text, replace_text, replace_section, insert_heading, insert_table) require a prior get_google_doc call for the same doc_id. This is server-enforced — skipping it produces a ReadBeforeWriteError. The read must have occurred within the last 5 minutes.

Key patterns

Create a report

  1. create_google_doc(title, folder_id) → get doc_id
  2. get_google_doc(doc_id) — read structure (required before writes)
  3. append_text(doc_id, "Title", "HEADING_1")
  4. append_text(doc_id, body) for content
  5. insert_table(doc_id, ...) for data

Update one section safely

  1. MANDATORY: get_google_doc(doc_id) — read structure first
  2. Confirm section heading exists in response
  3. Show user what will change
  4. replace_section(doc_id, heading, new_content)
  5. MANDATORY: get_google_doc(doc_id) — verify result

Read the full file on GitHub · 127 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 127 lines · 85 tokens per session scan A 2a7958c13a82

Subscribe to this mod's changes

google-docs is a skill published in the GitHub repository sashakang/google-drive-plugin (1 stars, last pushed 4mo ago), licensed MIT. It adds 85 tokens to every session and 1,374 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

notion

Notion API for creating and managing pages, databases, and blocks. Use when the user wants to create a Notion page, query a Notion database, update Notion properties, search Notion, add content to Notion, manage Notion blocks, or interact with Notion data sources and workspaces via the API.

elizaOS/eliza · 69 tokens

feishu

Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.

Hmbown/CodeWhale · 33 tokens

sn-da-large-file-analysis

万行以上 Excel 数据集的高性能分析引擎。提供 openpyxl readonly 流式读取(iterrows 支持 10 万行以上)、Parquet 转换加速、内存优化、分块处理和大文件写入模式。遇到以下任一情况就主动使用本 skill:①数据行数 ≥ 10k(由 sn-da-excel-workflow 的行数评估步骤触发);②用户出现触发词:大文件 / 大数据量 / 性能优化 / 内存不足 / OOM / 百万行 / 十万行 / 流式读取 / Parquet / 分块处理 / large file / big data / streaming read / chunked processing;③直接使用…

OpenSenseNova/SenseNova-Skills · 218 tokens

resilient-document-pipeline

Unified document generation with tool failure detection, domain knowledge fallback, progressive conversion, and Unicode safety.

HKUDS/OpenSpace · 25 tokens

category-filtering-and-difficulty-analysis

对Excel数据进行自定义分类统计、交叉分析与可视化,并基于多维度指标(如文本长度、术语密度、正则匹配等)进行综合评分与分级,适用于多类别数据分布统计及文本内容难度/质量评估场景。.

OpenSenseNova/SenseNova-Skills · 74 tokens

summarize-document

Summarize a long PDF, scan, office file, text file, or markdown file through the connected Superlinked MCP edge instead of reading the whole source into model context. Use when the user asks for a summary, overview, digest, or "what does this document say" about a large file.

superlinked/sie · 66 tokens