Markdown to Google Doc (md-to-gdoc) for Openclaw

A streamlined utility for converting local Markdown documents into professionally formatted Google Docs with preserved styles and hierarchies.

brennerspear
v1.0.1
Mar 5, 2026
0
840
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install md-to-gdoc

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 md-to-gdoc 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 Markdown to Google Doc (md-to-gdoc)?

The Markdown to Google Doc skill is a specialized bridge between developer-centric documentation and collaborative office suites. By integrating this tool into your Openclaw Skills library, you can automate the transition from technical .md files to shared Google Workspace documents. It preserves critical formatting such as multi-level headings, bold text, and code blocks, ensuring that your technical content is presentation-ready without manual reformatting.

This tool is particularly valuable for teams that utilize Markdown for internal documentation but require Google Docs for stakeholder reviews or client deliverables. It leverages the gog CLI to ensure a reliable, API-driven conversion process that respects Google Docs' native heading styles and structural elements.

Markdown to Google Doc (md-to-gdoc) Use Cases

  • Automatically exporting technical project documentation into a shared Google Drive for team collaboration.
  • Converting research notes or automated logs from Markdown format into readable Google Docs for non-technical stakeholders.
  • Generating structured reports from template-driven Markdown files directly within the Google Workspace ecosystem.
  • Streamlining the workflow for technical writers who prefer drafting in local Markdown editors before final publication.

How Markdown to Google Doc (md-to-gdoc) Works

  1. The skill validates the presence of the gog CLI and ensures a Google account is properly authenticated.
  2. It performs a syntax check on the source Markdown file to ensure headings are correctly marked with # symbols for proper styling.
  3. A new, empty Google Doc is created with a title derived from the filename or a custom user-provided string.
  4. The content is injected into the document using a specialized update command that forces Markdown formatting via the Google Docs API.
  5. The skill verifies the upload and provides the user with access to the newly formatted document in their Google Drive.

Markdown to Google Doc (md-to-gdoc) Setup

To get started with this component of your Openclaw Skills, ensure you have the gog CLI installed and authenticated:

gog auth add <[email protected]>

Ensure Python 3 is available on your system path. You can then execute the conversion script from your local environment:

scripts/md-to-gdoc.sh <file.md> --title "Project Documentation" --parent <folder-id>

Markdown to Google Doc (md-to-gdoc) Data Schema & Taxonomy

The skill translates Markdown syntax into specific Google Docs API attributes as follows:

Markdown Element Google Doc Result Implementation Detail
# - ###### Heading 1 - 6 Maps directly to native Google styles
Bold Bold Text Standard weighted font application
Code Blocks Courier New + Background Wrapped in a styled block for readability
Tables Native Table Objects Converts Markdown tables to document tables
Link Hyperlink Active clickable links in the document
Blockquotes Indented Text Indented paragraphs for cited content

Markdown to Google Doc (md-to-gdoc) Advanced Features

  • Support for custom Google Drive folder IDs via the --parent flag for automated organization.
  • Multi-account management allowing the user to select specific authenticated Google identities for different Openclaw Skills tasks.
  • Deterministic two-step creation logic that prevents formatting errors common in direct file-to-doc uploads.
  • Automatic title sanitization that converts hyphenated filenames into professional document titles.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*