Marktodocx Markdown to DOCX Converter for Openclaw

A versatile AI skill that transforms Markdown content into formatted DOCX documents with support for custom styling and local images.

zhao-kun
v0.1.3
Apr 19, 2026
0
818
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install marktodocx-skill

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 marktodocx-skill 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 Marktodocx Markdown to DOCX Converter?

Marktodocx is a developer-focused tool designed to facilitate the programmatic conversion of Markdown content into Microsoft Word files. Built to integrate with the Openclaw Skills framework, it allows AI agents to produce high-fidelity documents from technical drafts. By leveraging a shared Node.js runtime, it ensures that document structure, headers, lists, and images are accurately preserved in the output format.

This skill is particularly valuable for developers and technical writers who want to bridge the gap between Markdown-based documentation and the professional formatting required by Microsoft Word. As part of the growing ecosystem of Openclaw Skills, it provides a standardized way for AI agents to handle document exports without requiring manual intervention.

Marktodocx Markdown to DOCX Converter Use Cases

  • Exporting technical documentation to DOCX for client delivery.
  • Transforming AI-generated Markdown drafts into formatted reports.
  • Automating the creation of document templates with custom CSS-like style overrides.
  • Converting legacy Markdown notes into editable Word documents for collaborative editing.

How Marktodocx Markdown to DOCX Converter Works

  1. The user triggers the skill by providing a Markdown file or raw text to the AI agent.
  2. The agent invokes the convertWithAgentSkill function from the provided skill.mjs file.
  3. The system maps user-defined parameters such as style presets or margin configurations.
  4. The skill processes the Markdown, resolves embedded images, and applies the Open XML styling rules.
  5. The resulting DOCX file is saved to the specified output path, and the location is reported back to the user.

Marktodocx Markdown to DOCX Converter Setup

To get started with this skill in your environment, you need to ensure the shared Node runtime is configured. Users of Openclaw Skills can utilize the following steps:

# Install the necessary runtime dependency
npm install @marktodocx/runtime-node

# Ensure the skill.mjs wrapper is accessible to your agent
export CLAUDE_SKILL_DIR=/path/to/your/skills

Configuration is managed through environment variables or direct parameter mapping during the function call within your agent environment.

Marktodocx Markdown to DOCX Converter Data Schema & Taxonomy

The skill uses a structured mapping system to handle document attributes and formatting. It primarily operates on the following data schema:

Attribute Functionality
source Supports either an inputPath (file) or markdown (string).
styling Controlled via stylePreset (default, minimal, report) or granular styleJson.
layout Managed through marginPreset (default, compact, wide).
assets Local images are resolved via baseDir mapping or input directory.

The output is a standard .docx file compliant with Open XML standards, ensuring compatibility across all modern office suites.

Marktodocx Markdown to DOCX Converter Advanced Features

  • Precision styling using dotted-path overrides for specific elements (e.g., body.fontSizePt=12).
  • Multiple layout presets designed for professional reports or minimal drafts.
  • Deep integration with Openclaw Skills for multi-agent document processing workflows.
  • Programmatic base directory resolution for complex image handling in documentation.
  • Support for custom style JSON files to maintain consistent brand identity across generated files.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*