google-docs
Skill by Open-Curiosity
Google Docs access for AI assistants, through the gws CLI. It creates blank documents, reads and appends text, and runs structured batch edits on document bodies. It is aimed at users who need collaborative editing or live sharing of Google Docs content.
Install google-docs
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Open-Curiosity/gini-agent /tmp/gini-agent && mkdir -p ~/.claude/skills && cp -r /tmp/gini-agent/skills/google/google-docs ~/.claude/skills/google-docsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/Open-Curiosity/gini-agent /tmp/gini-agent && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/gini-agent/skills/google/google-docs ~/.gemini/antigravity-cli/skills/google-docsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill lets the assistant work with the body of Google Docs using the gws command line tool. It can create a blank document, read a document's content, append text, and run structured batch edits against the Docs v1 API. The skill covers document content only.
Edits can insert text at a given index, replace every occurrence of a string, or apply heading styles. Batch requests are atomic, so if one request is invalid, none are applied. Sharing, moving, copying and trashing files are handled by the separate google-drive skill. The skill is for users on macOS or Linux who need to edit Google Docs content.
Written from the project's SKILL.md and checked against it.
What it can do
- Create blank documentCreates a new blank Google Doc with a title and returns a documentId for later calls.
- Read documentReturns the structured Docs JSON for a document, or plain text when piped through jq.
- Append textAdds text to the end of a document body using the gws docs +write helper.
- Structured batch editsRuns batchUpdate requests such as insertText, replaceAllText and updateParagraphStyle.
- Find document by titleUses the google-drive skill to locate a document before reading or editing it.
What you need
- The gws CLI installed and authenticated with Docs scopes
- macOS or Linux
- GOOGLE_WORKSPACE_CLI_CLIENT_ID and GOOGLE_WORKSPACE_CLI_CLIENT_SECRET environment variables
- A Google account
- The docs scope, plus drive.readonly to find documents by title
Try asking
- Create a blank Google Doc titled Weekly notes
- Append today's meeting notes to my Weekly notes doc
- Replace every {{NAME}} placeholder with Alice in my contract doc
Good to know
- Documents.create accepts only a title, so content must be added with a follow-up call
- Index-based batchUpdate edits are brittle because each insert shifts later indices
- Plain-text export via jq misses tables, footnotes, headers and footers
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/google/google-docs/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to google-docs
All alternatives →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
google-docs: common questions
Can this skill share or move a Google Doc?
No. Sharing, moving, copying, renaming and trashing are handled by the google-drive skill, which owns the file. This skill only handles the document body.
Does it work with Google Sheets or Slides?
No. The source says spreadsheets use the gws sheets commands and slide decks use the gws slides commands, not Docs.
How can I export the full text of a document?
The source says the jq path only catches paragraph text. For a faithful export including tables and headers, it recommends Drive's files.export with mimeType text/plain.
How do I install google-docs?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is google-docs free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is google-docs safe to use?
It scores 67 of 100. Grades: maintenance C, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to google-docs?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
