skills$openclaw/gdocs-markdown
techlaai7.2k

by techlaai

gdocs-markdown – OpenClaw Skill

gdocs-markdown is an OpenClaw Skills integration for writing workflows. 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.

7.2k stars7.6k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026writing

Skill Snapshot

namegdocs-markdown
descriptionCreate 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 integration.
ownertechlaai
repositorytechlaai/gdocs-markdown
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @techlaai/gdocs-markdown
last updatedFeb 7, 2026

Maintainer

techlaai

techlaai

Maintains gdocs-markdown in the OpenClaw Skills directory.

View GitHub profile
File Explorer
4 files
.
scripts
gdocs-create.sh
2.3 KB
_meta.json
293 B
SKILL.md
2.4 KB
SKILL.md

name: gdocs-markdown description: 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.

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 doc
  • export - Export to file
  • cat - Read content
  • copy - Copy existing doc

This skill provides the missing workflow to create Google Docs WITH content from Markdown.

Author

Created by techla

Prerequisites

  • gog CLI authenticated with Google account
  • pandoc binary (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:

  1. Ensure pandoc is available:

    # Auto-downloaded to /tmp/pandoc-3.1.11/bin/pandoc on first use
    # Or use system pandoc if available
    
  2. Convert Markdown to DOCX:

    /tmp/pandoc-3.1.11/bin/pandoc input.md -o output.docx
    
  3. Upload to Drive (auto-converts to Google Docs):

    gog drive upload output.docx
    
  4. 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\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

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
README.md

No README available.

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

- `gog` CLI authenticated with Google account - `pandoc` binary (auto-downloaded on first use if not available)

FAQ

How do I install gdocs-markdown?

Run openclaw add @techlaai/gdocs-markdown in your terminal. This installs gdocs-markdown into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/techlaai/gdocs-markdown. Review commits and README documentation before installing.