Google Docs from Markdown for Openclaw

A bridge utility that converts Markdown files into fully editable Google Docs by automating the DOCX conversion and Drive upload workflow.

techlaai
v1.0.1
Feb 4, 2026
0
3.6k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install gdocs-markdown

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install gdocs-markdown using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Google Docs from Markdown?

The gdocs-markdown skill solves a specific technical hurdle where the gog CLI suite lacks the native ability to write or update content within Google Docs. By acting as a specialized workflow runner within the ecosystem of Openclaw Skills, it provides a reliable pipeline for technical writers and developers to transform local documentation into collaborative web documents.

This skill automates the multi-step process of converting Markdown to DOCX using Pandoc, followed by an authenticated upload to Google Drive. Because Google Drive automatically converts uploaded DOCX files into its native format, the result is a perfectly formatted, editable Google Doc created entirely through automation.

Google Docs from Markdown Use Cases

  • Automating the publication of technical documentation from a Git repository to a shared Google Drive.
  • Converting AI-generated project summaries or reports into editable collaborative documents for stakeholders.
  • Streamlining the handoff between developers writing in Markdown and non-technical teams working in Google Docs.
  • Batch processing Markdown notes into a centralized Google Docs knowledge base.

How Google Docs from Markdown Works

  1. The skill accepts a source Markdown file path and a target document title.
  2. It verifies the presence of Pandoc, automatically downloading a portable version if the system binary is missing.
  3. Pandoc converts the Markdown source into a temporary DOCX file to preserve formatting.
  4. The script utilizes the gog CLI to upload the DOCX file to Google Drive.
  5. Google Drive's internal conversion engine triggers upon upload, transforming the DOCX into a native Google Doc.
  6. The skill outputs the final URL of the generated Google Doc for immediate access.

Google Docs from Markdown Setup

To use this within your environment for Openclaw Skills, follow these steps:

  1. Ensure the gog CLI is installed and authenticated:
gog login
  1. Set the necessary execution permissions for the helper script:
chmod +x ~/.openclaw/workspace/skills/gdocs-markdown/scripts/gdocs-create.sh
  1. Run the conversion script:
gdocs-create.sh /path/to/your-file.md "Your Document Title"

Google Docs from Markdown Data Schema & Taxonomy

The skill manages data across three primary stages to ensure high-fidelity conversion:

  • Input Source: Local .md file containing standard Markdown syntax.
  • Intermediate Format: Temporary .docx file generated via Pandoc 3.x to maintain structural integrity during transport.
  • Cloud Output: Native Google Doc file stored in the user's primary Google Drive directory.
  • Metadata Tracking: Captures the Document ID and public/private URL returned by the Google Drive API.

Google Docs from Markdown Advanced Features

  • Automatic Pandoc Management: Features a self-healing mechanism that downloads and configures Pandoc in a temporary directory if not found on the host.
  • Native Conversion: Leverages Google Drive's server-side conversion to ensure the most stable .docx to Google Doc transition possible.
  • Scriptable CLI: The gdocs-create.sh script can be integrated into larger CI/CD pipelines or other automated Openclaw Skills.
  • Flexible Content Handling: Supports complex Markdown elements including headers, tables, and nested lists through Pandoc's robust parsing engine.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*