gdoc-to-markdown
/gdoc-to-markdown
Download Google Docs as markdown files to external-brain folder. Use when the user provides a Google Doc URL and wants to save it locally, archive documentation, or import Google Docs content.
- Author
- queen-of-code ↗
- Repository
- ai-dlc ↗
- Licence
- MIT
- Last repository change
- 25.09.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 1
- HTML comments
- 0
- URLs in SKILL.md
- 6
No signals detected. Repository changed on 25.09.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 1 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/download-gdoc.py
What it does and when to use it
Download Google Docs as markdown files to external-brain folder. Use when the user provides a Google Doc URL and wants to save it locally, archive documentation, or import Google Docs content.
Original author description
Download Google Docs as markdown files to external-brain folder. Use when the user provides a Google Doc URL and wants to save it locally, archive documentation, or import Google Docs content.
How it works
- When to Use
- Quick Start
- Prerequisites
- Output Format
- File Naming
- Scripts
SKILL.md preview
--- name: gdoc-to-markdown description: Download Google Docs as markdown files to external-brain folder. Use when the user provides a Google Doc URL and wants to save it locally, archive documentation, or import Google Docs content. type: skill aidlc_phases: [plan] tags: [google-docs, markdown, documentation, external-brain] requires: [] author: Melissa Benua created_at: 2026-03-07 updated_at: 2026-03-07 --- # Google Doc to Markdown Downloads a Google Doc as markdown and saves it to `~/GitHub/external-brain/`. ## When to Use - User provides a Google Doc URL to download - Archiving documentation from Google Docs - Importing Google Docs content into the knowledge base ## Quick Start Run the download script with a Google Doc URL: ```bash python scripts/download-gdoc.py "https://docs.google.com/document/d/DOC_ID/edit" ``` ### Optional Arguments ```bash # Specify a category for organization python scripts/download-gdoc.py "URL" --category meetings # Specify a custom output directory python scripts/download-gdoc.py "URL" --output ~/GitHub/external-brain/notes ``` ## Prerequisites - `gcloud` CLI installed and authenticated - Access to the Google Doc being downloaded - `~/GitHub/external-brain/` directory exists ### Authentication The script uses gcloud auth with Drive API scopes. Run this once: ```bash gcloud auth application-default login --scopes="https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/drive.readonly" ``` ### GCP Project Configuration The `.env` file in this skill directory configures the quota project: ``` GCLOUD_QUOTA_PROJECT=queen-of-code ``` The project must have the Google Drive API enabled. Enable it at: https://console.developers.google.com/apis/api/drive.googleapis.com/overview ## Output Format Files are saved with: - Filename derived from document title (slugified) - YAML frontmatter with metadata ### Metadata Header ```yaml --- source_url: https://docs.google.com/document/d/DOC_ID/edit doc_id: DOC_ID downloaded_at: 2026-02-05T14:30:00Z owner: owner@example.com category: uncategorized --- ``` ## File Naming Document titles are converted to safe filenames: - Lowercased - Spaces replaced with hyphens - Special characters removed - `.md` extension added Example: "Q1 Planning Meeting Notes" → `q1-planning-meeting-notes.md` ## Scripts **download-gdoc.py**: Main download script ```bash python scripts/download-gdoc.py "https://docs.google.com/document/d/1ABC123/edit" ``` Returns the path to the saved file on success.
Files in this package (2)
- SKILL.md 2 KB
- scripts/download-gdoc.py 8 KB
Versions
The database has no other skills named gdoc-to-markdown.
Identical content appears in 1 other GitHub folders. We show one copy with the highest score.
Database snapshot: 13.11.2026 · package version fd312e8698a2 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 3 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 90import-gdoc
Import Google Docs from Drive into local google-in/ folder with manifest tracking. Use when importing Google documents for local analysis. Triggers include "import gdoc", "google doc", "import from drive", "google docs import". - 100edit-gdoc
Edit or create an unpublished OWID gdoc, or check or read any registered one (article, data insight, any gdoc type), as ArchieML text through the local or staging admin API. Use when an engineer asks to change a test gdoc's content, create a new gdoc draft from ArchieML, or… - 95gws-docs
Google Docs CLI operations via gws. Use when users need to read, create, or edit Google Docs documents. Triggers: google docs, document, gdoc, word processing. - 100searching-documents-with-google-drive
Search and download documents from Google Drive using rclone. Exports Google Docs as Markdown by default. Use when users ask to find files in Google Drive, download documents from Drive, export Google Docs, or sync Drive content locally. Triggers on requests mentioning Google… - 100v1-md2docs
Use when explicitly converting a Markdown file into a formatted Google Doc. Triggers on "Markdown to Google Doc" or "publish this markdown as a doc". - 100notion-public-site
Download all pages from a public Notion site as Markdown files with cross-references and embedded images. Use when the user shares a public Notion site URL and wants to archive, save, mirror, or extract the contents as local markdown.