DOCX Document Master for Openclaw

A professional-grade toolkit for programmatically creating, editing, and analyzing Microsoft Word documents with high-fidelity formatting.

yang1002378395-cmyk
v1.0.0
Mar 24, 2026
0
1.1k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install docx-processor-cn

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 docx-processor-cn 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 DOCX Document Master?

The DOCX skill for Openclaw Skills is a robust integration designed for developers and automated agents who need to interact with Microsoft Word files. It treats .docx files as the ZIP-archived XML structures they are, providing tools to unpack, manipulate, and repack documents without losing complex formatting. Whether you are generating a legal contract from scratch or programmatically accepting tracked changes in a corporate report, this skill ensures technical precision.

By leveraging industry-standard libraries like docx-js and Pandoc, the skill bridges the gap between raw data and polished, boardroom-ready deliverables. It handles the nuances of document standards—such as DXA unit calculations, XML entity encoding for smart quotes, and schema-compliant element ordering—to ensure that generated files render perfectly across Microsoft Word, LibreOffice, and Google Docs.

DOCX Document Master Use Cases

  • Generating professional reports, memos, and letters from templates or raw data.
  • Extracting and reorganizing content from existing Word documents into Markdown or other formats.
  • Automating document reviews by programmatically adding comments or accepting/rejecting tracked changes.
  • Converting .docx files into high-quality PDFs or images for distribution and preview.
  • Performing bulk find-and-replace operations within complex document structures while preserving styles.

How DOCX Document Master Works

  1. Identification: The agent triggers the skill upon detecting requests involving .docx files, letterheads, or professional document formatting.
  2. Processing Strategy: For new documents, it utilizes the docx-js library; for existing files, it employs an unpack-edit-repack workflow.
  3. XML Manipulation: The skill extracts the internal XML structure, allowing for precise string replacement, style overrides, and metadata updates.
  4. Validation: After assembly, documents are passed through a validation script to ensure XML schema compliance and auto-repair common structural issues.
  5. Export: The final .docx is generated, or optionally converted to PDF/JPEG using headless LibreOffice and Poppler utilities.

DOCX Document Master Setup

To begin using this skill within Openclaw Skills, ensure you have the necessary dependencies installed:

# Install the core JavaScript library for document generation
npm install -g docx

# Ensure Python is available for office scripts and XML manipulation
# Pandoc, LibreOffice, and Poppler (pdftoppm) should be installed on the host system

DOCX Document Master Data Schema & Taxonomy

The skill manages document data through a structured workflow involving temporary XML directories and final archive packaging.

Component Description Format
word/document.xml The primary content and structure of the document XML
word/styles.xml Definitions for headings, fonts, and paragraph styles XML
word/media/ Directory containing all embedded images Binary (PNG/JPG)
_rels/ Relationships mapping internal IDs to external or media targets XML
Content_Types.xml Registry of all media types used in the archive XML

All measurements for layout are handled in DXA units (1440 DXA = 1 inch).

DOCX Document Master Advanced Features

  • Multi-column layout support with customizable gutter spacing and vertical dividers.
  • Advanced typography control using XML entities for smart quotes and Arial font defaults for cross-platform compatibility.
  • Programmatic Table of Contents (TOC) generation with hyperlinked heading ranges.
  • Automated tracked changes management, allowing agents to act as 'Claude' or other specified authors.
  • Complex table rendering using dual-width definitions (columnWidths and cell width) to prevent layout breakage in web-based editors.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*