docx

Create, unpack, edit, and validate Microsoft Word DOCX files via WordprocessingML.

Updated May 24, 2026
One-click install
npx skills add https://github.com/Estrella-231/Mathematical_modeling_tongmeng --skill docx-estrella-231
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Estrella-231/Mathematical_modeling_tongmeng/tree/main/.agents/skills/docx
Command: npx skills add https://github.com/Estrella-231/Mathematical_modeling_tongmeng --skill docx-estrella-231

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandoc, libreoffice, poppler, npm, docx, soffice, gcc, python, lxml, defusedxml, and includes scripts (resource) components.

What problem does it solve?

This Skill removes the pain of producing and revising Word documents by offering reliable DOCX creation, unpack/edit/repack workflows, and validation for correctness.

Core Features & Use Cases

  • Create and polish DOCX documents with structured content (headings, lists, tables, images, hyperlinks, footnotes, page breaks).
  • Unpack existing DOCX files to edit the underlying Word XML with better formatting stability (pretty-printing, run merging options, smart-quote escaping).
  • Validate and repair DOCX XML using schema checks, relationship/reference consistency checks, tracked-change rules, and whitespace-preservation enforcement.

Quick Start

Use this skill when you need to generate a formatted DOCX report for a client with consistent headings, a table, and embedded images.

Frequently Asked Questions about docx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate DOCX generation and ensure the WordprocessingML XML remains schema-compliant?

Automate DOCX generation by manipulating WordprocessingML content directly, then validate the XML using schema checks and relationship consistency rules to ensure schema-compliant output.

What is the best way to edit existing DOCX files without breaking the document formatting?

The best way to edit DOCX files safely is unpacking them to edit the underlying WordprocessingML XML directly, utilizing pretty-printing, run merging, and smart-quote escaping to maintain formatting stability before repacking.

Can I insert tracked changes, hyperlinks, and images into a Word document programmatically?

Yes, you can insert tracked changes, hyperlinks, footnotes, and images into Word documents programmatically by manipulating the internal XML structure during the DOCX creation or unpack-edit-repack workflow.

Do I need LibreOffice and pandoc installed to validate and repair DOCX XML files?

Yes, validating and repairing DOCX XML files requires dependencies like LibreOffice, pandoc, and poppler to execute the Office-file tooling and auto-repair workflows for docx-js and WordprocessingML tasks.

Why does my DOCX round-trip workflow fail XML validation after unpacking and editing?

DOCX round-trip workflows fail XML validation when whitespace-preservation rules, tracked-change structures, or relationship references are broken during manual editing, requiring schema consistency checks and auto-repair to fix.