Skip to content
Back to skills

Google Docs

ASecurity

Create, read, append, replace content, and insert images in Google Docs. Converts Markdown to native Docs formatting including headings, lists, tables, links, and code blocks. Use when the user asks to create a Google Doc, read a doc, edit a doc, insert images, convert markdown to Google Docs, or references a docs.google.com URL.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 6, 2026
ai-agentsgobashgcpapi

Works with

  • cursor
  • cli
  • api

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned December 6, 2026

npx -y skills add flopperj/dotfiles-core --skill google-docs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Google Docs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Google Docs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/flopperj-google-docs/badge)](https://www.skillsdirectory.com/skills/flopperj-google-docs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: google-docs
description: Create, read, append, replace content, and insert images in Google Docs. Converts Markdown to native Docs formatting including headings, lists, tables, links, and code blocks. Use when the user asks to create a Google Doc, read a doc, edit a doc, insert images, convert markdown to Google Docs, or references a docs.google.com URL.
user-invocable: true
---

# Google Docs

## Prerequisites

**Quota project:** `<your-gcp-project>` — the Google Cloud project your org enabled the Docs and Drive APIs on (see [google-cloud-setup.md](google-cloud-setup.md)).

```bash
gcloud auth application-default login \
  --scopes="https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/documents,https://www.googleapis.com/auth/drive" \
  --client-id-file=/workspace/google-cloud-sdk/<your-org>_client_secrets.json \
  --set-quota-project=<your-gcp-project>
```

## Scripts

Scripts location: `scripts/` subdirectory of this skill (resolves via `~/.claude/skills/google-docs/scripts/` or `~/.cursor/skills/google-docs/scripts/`)

Document IDs are extracted automatically from URLs: `docs.google.com/document/d/DOC_ID/edit`

| Operation | Command |
|-----------|---------|
| Create (plain) | `scripts/create_doc.sh "Title" "Content"` |
| Create (markdown) | `scripts/create_doc.sh "Title" "# Heading" --markdown` |
| Create from file | `scripts/create_from_markdown.sh "Title" --file doc.md` |
| Read | `scripts/read_doc.sh DOC_ID` |
| Append | `scripts/append_doc.sh DOC_ID "Text"` |
| Replace | `scripts/replace_doc.sh DOC_ID "Content"` |
| Insert image | `scripts/insert_image.sh DOC_ID IMAGE_URL [--width W] [--index N]` |
| Info | `scripts/doc_info.sh DOC_ID` |

## Markdown Support

Use `--markdown` flag or `create_from_markdown.sh` for proper formatting:

```bash
scripts/create_from_markdown.sh "Report" --file report.md
echo "# Hello World" | scripts/create_from_markdown.sh "Test"
```

Supported: headings, lists, tables, links, bold/italic, code blocks, horizontal rules.

## Insert Images

Images must be publicly accessible URLs. For Drive images, share publicly first.

```bash
scripts/insert_image.sh DOC_ID "https://..." --width 500
```

**Note:** Corporate policies may block public sharing. See [image-workflow.md](image-workflow.md) for workarounds.

## Additional Resources

- Image embedding workflow: [image-workflow.md](image-workflow.md)
- API reference and batch requests: [api-reference.md](api-reference.md)
- Auth troubleshooting: [troubleshooting.md](troubleshooting.md)
- Google Cloud project setup: [google-cloud-setup.md](google-cloud-setup.md)

Files in this skill

  • SKILL.md2.6 KB
  • api-reference.md2.7 KB
  • google-cloud-setup.md4.2 KB
  • image-workflow.md1.9 KB
  • integration.md1.6 KB
  • scripts/append_doc.sh2.2 KB
  • scripts/create_doc.sh4.2 KB
  • scripts/create_from_markdown.sh3.2 KB
  • scripts/doc_info.sh2.8 KB
  • scripts/insert_image.sh4.9 KB
  • scripts/read_doc.sh1.5 KB
  • scripts/replace_doc.sh5 KB
  • troubleshooting.md892 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.