DOCX Document Automation Skill for Openclaw

A comprehensive toolset for programmatic creation, reading, and manipulation of Microsoft Word documents within Openclaw Skills environments.

weaglewang
v1.0.0
Mar 22, 2026
1
2.7k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install docx-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 docx-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 DOCX Document Automation Skill?

The DOCX skill provides a robust API for handling Microsoft Word files, utilizing the power of the docx-js library and direct XML manipulation. As a key component of the Openclaw Skills ecosystem, it allows developers to build sophisticated document workflows including business report generation, invoice creation, and resume formatting. By treating .docx files as structured archives, this skill offers deep control over styles, headers, and metadata, ensuring professional-grade output for any automated workflow.

DOCX Document Automation Skill Use Cases

  • Automating the generation of recurring business reports and financial summaries.
  • Programmatically creating branded invoices and client statements for billing systems.
  • Dynamic resume and CV generation based on structured candidate data.
  • Bulk text extraction and content transformation from legacy Word files into Markdown.
  • Automated document validation and style enforcement in development pipelines.

How DOCX Document Automation Skill Works

  1. Initialize a new document structure using the Openclaw Skills standard integration for the docx-js library.
  2. Define document-wide properties including page size (US Letter, A4) and margin dimensions.
  3. Construct the document tree by adding paragraphs, text runs, tables, and images.
  4. Apply complex formatting such as shading, borders, and custom font styles to specific nodes.
  5. Use the Packer utility to compile the document into a binary buffer for export.
  6. For existing documents, utilize the unpacking scripts to modify internal XML files before repacking.

DOCX Document Automation Skill Setup

To install the necessary components for this skill, run the following commands in your terminal:

# Core document creation library
npm install -g docx

# Text extraction and conversion
brew install pandoc

# Validation and Python-based editing
pip install python-docx

Optional dependencies for extended functionality:

# For DOCX to PDF conversion
brew install --cask libreoffice

# For image asset optimization
brew install imagemagick

DOCX Document Automation Skill Data Schema & Taxonomy

The DOCX skill organizes document data using a hierarchical metadata taxonomy. Below is a summary of how information is structured:

Component Organization Method Metadata Scope
Sections Logical page groupings Margins, headers, footers, and page sizing
Paragraphs Sequential text blocks Alignment, spacing, and heading levels
Text Runs Inline style segments Fonts, colors, weight, and character sizing
Tables Grid-based layouts Cell borders, shading, and column widths
Media Embedded binary objects Transformation dimensions and alt-text descriptions

DOCX Document Automation Skill Advanced Features

  • Low-level XML unpacking and repacking for surgical edits to document internals via Openclaw Skills.
  • Support for professional typography through automated XML entity insertion for smart quotes and dashes.
  • Seamless integration with LibreOffice to provide high-fidelity PDF conversion from generated Word files.
  • Multi-level list support with custom numbering and bullet formats for structured documentation.
  • Automatic Table of Contents generation based on heading level metadata styles.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*