Read and analyze Google Docs, Sheets, and Slides by exporting them to local formats (DOCX, XLSX, PPTX) via browser download. Use this skill when users request reading, summarizing, or analyzing content from Google Drive URLs or .gdoc/.gsheet/.gslides files.
Read and analyze Google Workspace documents (Docs, Sheets, Slides) without direct API access. This skill exports Google Drive documents to local formats by opening export URLs in the browser, monitoring the Downloads folder, and moving files to a temporary directory for processing.
Activate this skill when users ask to:
.gdoc, .gsheet, or .gslides files from Google Drive File Stream/DesktopExample user requests:
.gsheet file)The skill uses a browser-based export workflow:
.gdoc/.gsheet/.gslides file/tmp/gdoc_exports/)The simplest approach is to use both scripts together:
# 1. Export the Google Doc
EXPORTED=$(python3 ${CLAUDE_PLUGIN_ROOT}/skills/google-docs-reader/scripts/export_gdoc.py "<google-drive-url-or-file>")
# 2. Read the exported file
python3 ${CLAUDE_PLUGIN_ROOT}/skills/google-docs-reader/scripts/read_exported_doc.py "$EXPORTED"
Run the export script with your Google Docs URL or file:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/google-docs-reader/scripts/export_gdoc.py <input>
Where <input> can be:
https://docs.google.com/document/d/ABC123/edit).gdoc, .gsheet, or .gslides fileThe script will:
/tmp/gdoc_exports/{DOC_ID}.{extension}Read the exported file using the integrated reading script:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/google-docs-reader/scripts/read_exported_doc.py <exported-file>
This automatically uses the appropriate tool based on file type:
Reading a Google Doc:
# Export
python3 scripts/export_gdoc.py "https://docs.google.com/document/d/1abc.../edit"
# Output: /tmp/gdoc_exports/1abc...docx
# Read as markdown
python3 scripts/read_exported_doc.py /tmp/gdoc_exports/1abc...docx
Reading a Google Sheet:
# Export
python3 scripts/export_gdoc.py "https://docs.google.com/spreadsheets/d/1xyz.../edit"
# Output: /tmp/gdoc_exports/1xyz...xlsx
# Read with data analysis
python3 scripts/read_exported_doc.py /tmp/gdoc_exports/1xyz...xlsx
# Shows: sheet names, dimensions, columns, preview, statistics
Reading a Google Slides:
# Export
python3 scripts/export_gdoc.py "https://docs.google.com/presentation/d/1def.../edit"
# Output: /tmp/gdoc_exports/1def...pptx
# Read as markdown
python3 scripts/read_exported_doc.py /tmp/gdoc_exports/1def...pptx
python3 scripts/export_gdoc.py <input> [options]
Options:
-o, --output-dir DIR Output directory (default: /tmp/gdoc_exports)
-t, --timeout SECONDS Download timeout (default: 30)
-h, --help Show help message
After export, use the appropriate tool to read content:
pandoc file.docx -t markdownpandoc file.pptx -t markdownImportant: This skill requires the user to be logged into Google in their default browser. The browser-based export method uses existing session cookies, avoiding the need for API credentials or OAuth flows.
If exports fail with authentication errors, ask the user to:
Exported files are stored in /tmp/gdoc_exports/ by default. This directory can be cleaned up manually or automatically:
# Remove all exported files
rm -rf /tmp/gdoc_exports/
# Remove specific file after processing
rm /tmp/gdoc_exports/{DOC_ID}.docx
If downloads take longer than 30 seconds:
python3 scripts/export_gdoc.py <input> --timeout 60
~/DownloadsThe reading functionality requires these tools:
pandoc: For reading DOCX and PPTX files
brew install pandoc # macOS
pandas + openpyxl: For reading XLSX files
pip3 install pandas openpyxl
These dependencies are only needed for the reading step, not for export.
Python script that handles the complete export workflow:
.gdoc filesExecute directly or import as a module for custom workflows.
Python script that reads exported files using appropriate tools:
Supports multiple output formats:
markdown (default), plain, jsonsummary (default), csv, jsonmarkdown (default), plain, jsonUsage:
python3 scripts/read_exported_doc.py <file> [--format <format>] [--output <file>]
Detailed reference on:
Load this file when users ask about format options or need deeper understanding of export mechanisms.
Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.
Manage Apple Notes via the `memo` CLI on macOS (create, view, edit, delete, search, move, and export notes). Use when a user asks OpenClaw to add a note, list notes, search notes, or manage note folders.
Work with Obsidian vaults (plain Markdown notes) and automate via obsidian-cli.
Use when you need to control Slack from OpenClaw via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.
Manage Apple Reminders via remindctl CLI (list, add, edit, complete, delete). Supports lists, date filters, and JSON/plain output.
Manage Trello boards, lists, and cards via the Trello REST API.
Category:productivity