/install gdocs-markdown
Google Docs from Markdown
Create Google Docs from Markdown files using the workflow: Markdown → DOCX → Drive Upload → Google Docs.
Why This Skill Exists
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 doc
This skill provides the missing workflow to create Google Docs WITH content from Markdown.
Author
Created by techla
Prerequisites
gogCLI authenticated with Google accountpandocbinary (auto-downloaded on first use if not available)
Installation Note
After installing from ClawHub, fix the script permissions:
chmod +x ~/.openclaw/workspace/skills/gdocs-markdown/scripts/gdocs-create.sh
Usage
Quick Create
# Create Google Doc from markdown file
gdocs-create.sh /path/to/file.md "Tiêu đề Document"
Manual Workflow
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
Script Reference
See scripts/gdocs-create.sh for the helper script that automates this workflow.
Example
# Create a report from markdown
echo "# Báo Cáo\
\
Nộ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
Notes
- Google Drive automatically converts DOCX to Google Docs format on upload
- The resulting document is fully editable in Google Docs
- Original DOCX file remains in Drive but can be deleted if only Google Docs version is needed
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install gdocs-markdown - 安装完成后,直接呼叫该 Skill 的名称或使用
/gdocs-markdown触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Google Docs from Markdown 是什么?
Create 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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2496 次。
如何安装 Google Docs from Markdown?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install gdocs-markdown」即可一键安装,无需额外配置。
Google Docs from Markdown 是免费的吗?
是的,Google Docs from Markdown 完全免费(开源免费),可自由下载、安装和使用。
Google Docs from Markdown 支持哪些平台?
Google Docs from Markdown 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Google Docs from Markdown?
由 techlaai(@techlaai)开发并维护,当前版本 v1.0.1。