Install
openclaw skills install gdocs-markdownCreate Google Docs from Markdown files. Use when the user wants to create a Google Doc from Markdown content, or when working with gog CLI and need to populate Google Docs with content. This skill handles the conversion Markdown → DOCX → Google Docs via Drive upload, since gog docs CLI only supports create/export/cat/copy but NOT write/update content.
openclaw skills install gdocs-markdownCreate Google Docs from Markdown files using the workflow: Markdown → DOCX → Drive Upload → Google Docs.
gog docs CLI does NOT support writing/updating content to Google Docs. It only supports:
create - Create empty docexport - Export to filecat - Read contentcopy - Copy existing docThis skill provides the missing workflow to create Google Docs WITH content from Markdown.
Created by techla
gog CLI authenticated with Google accountpandoc binary (auto-downloaded on first use if not available)After installing from ClawHub, fix the script permissions:
chmod +x ~/.openclaw/workspace/skills/gdocs-markdown/scripts/gdocs-create.sh
# Create Google Doc from markdown file
gdocs-create.sh /path/to/file.md "Tiêu đề Document"
If you need more control, follow these steps:
Ensure pandoc is available:
# Auto-downloaded to /tmp/pandoc-3.1.11/bin/pandoc on first use
# Or use system pandoc if available
Convert Markdown to DOCX:
/tmp/pandoc-3.1.11/bin/pandoc input.md -o output.docx
Upload to Drive (auto-converts to Google Docs):
gog drive upload output.docx
Result: Google Drive returns a link to the converted Google Doc
See scripts/gdocs-create.sh for the helper script that automates this workflow.
# Create a report from markdown
echo "# Báo Cáo\n\nNội dung..." > /tmp/report.md
gdocs-create.sh /tmp/report.md "Báo Cáo Tháng 2"
# Output: https://docs.google.com/document/d/xxxxx/edit