Tooluck logoTooluck
SKILL.md

gdoc-to-markdown

Agent skill fromccplugins/awesome-claude-code-plugins

Internal fetcher module for Google Docs and Sheets. Fetches content via MCP (preferred, when available), Google API with bearer token or public URL export (fallback), or browser DOM extraction via Claude in Chrome (last resort) and returns Markdown. Used by /bedrock:teach and /bedrock:sync — not intended for direct user invocation.

How to install gdoc-to-markdown

install gdoc-to-markdown
# install the awesome-claude-code-plugins pack with the skills CLI
npx skills add ccplugins/awesome-claude-code-plugins

# or add only this skill to Claude Code: copy the folder

plugins/bedrock/skills/gdoc-to-markdown/

# into

~/.claude/skills/gdoc-to-markdown/ (all projects)

.claude/skills/gdoc-to-markdown/ (one project)

plugins/bedrock/skills/gdoc-to-markdown/SKILL.md

Apache-2.0Full file
1# Google Docs & Sheets Fetcher
2
3Internal module — invoked by `/bedrock:teach` Phase 1 and `/bedrock:sync` Phase 2, not user-invocable.
4
5Fetches a Google Docs document or Google Sheets spreadsheet and converts it to a local Markdown file.
6Supports both document types with automatic detection. Three layers in fallback order:
7**MCP (preferred) → API / Public Export → Browser DOM extraction.**
8
9**Dependency:** Browser fallback (Layer 3) requires `scripts/extract.js` (relative to this skill directory).
10
11---
12
13## Step 1 — Parse URL and Detect Type
14
15Parse the URL. Accept these formats:
16
17**Google Docs:**
18- `https://docs.google.com/document/d/{docId}/edit`
19- `https://docs.google.com/document/d/{docId}/edit#heading=...`
20- `https://docs.google.com/document/d/{docId}/edit?tab=t.0`
21- `https://docs.google.com/document/d/{docId}`
22- Raw document ID (no URL) — treat as Doc by default
23
24**Google Sheets:**
25- `https://docs.google.com/spreadsheets/d/{docId}/edit`
26- `https://docs.google.com/spreadsheets/d/{docId}/edit#gid=0`
27- `https://docs.google.com/spreadsheets/d/{docId}`
28- Raw spreadsheet ID — only if the user explicitly mentions "sheet" or "spreadsheet"
29
30**Detect type:**
31- URL contains `/spreadsheets/d/` → **Sheet**
32- URL contains `/document/d/` → **Doc**
33- Raw ID with no URL → default to **Doc** unless user context indicates Sheet
34
35Extract the `{docId}` — the string between `/d/` and the next `/` or end of path.
36
37---
38
39## Step 2 — Layer 1: MCP (Google Docs)
40…

Excerpt shown under the repository's Apache-2.0 license.

More skills in awesome-claude-code-plugins

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates