docx

Create, edit, and analyze Word .docx documents via OOXML and JavaScript.

1|Updated Jan 3, 2026
One-click install
npx skills add https://github.com/MO196931/documentosZai --skill docx-mo196931
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/MO196931/documentosZai/tree/main/skills/docx
Command: npx skills add https://github.com/MO196931/documentosZai --skill docx-mo196931

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires defusedxml, lxml, and includes scripts (resource) components.

What problem does it solve?

Working with .docx files programmatically is challenging because they are complex ZIP archives containing XML, styles, and media. This Skill eliminates the need to manually parse OOXML or wrestle with inconsistent formatting, providing reliable tools for creating, editing, and analyzing professional Word documents with full support for tracked changes and comments.

Core Features & Use Cases

  • Document Creation: Generate new .docx files from scratch with professional formatting, styles, tables, and images using the docx-js library.
  • Tracked Changes & Redlining: Implement comprehensive review workflows with tracked insertions and deletions, preserving authorship and enabling batch amendments for legal, academic, and business documents.
  • Content Analysis & Extraction: Extract text, comments, and structure from existing documents using pandoc or raw XML access for deep inspection.
  • Use Case: A legal team needs to review a 50-page contract, marking up amendments with tracked changes and comments. This Skill enables systematic batch editing while preserving document integrity and formatting.

Quick Start

Use the docx skill to create a new professional Word document with formatted headings, bullet lists, and a table from the content in report-data.md.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate tracked changes and redlining in Word docx files?

Tracked changes in Word docx files are automated by manipulating OOXML directly to insert tracked revisions and comments. This enables systematic batch editing for legal contracts while preserving authorship and document integrity.

How do I extract text and comments from an existing docx file?

Text and comments are extracted from docx files by using pandoc or accessing the raw XML inside the document archive. This provides deep structural inspection and content analysis without manual parsing.

Can I generate a new Word document with tables and styles programmatically?

New Word documents with professional formatting, tables, and styles are generated programmatically using the docx JavaScript library. This creates complete docx files from scratch without manual intervention.

Do I need pandoc and LibreOffice to convert docx files to PDF?

Pandoc and LibreOffice are required dependencies for handling PDF conversion and text extraction from docx files. Additional libraries like defusedxml and lxml are needed for secure XML parsing and document generation.

What is the best way to batch edit a 50-page legal contract in docx?

Batch editing a legal contract in docx is best handled through OOXML manipulation to apply tracked insertions and deletions across the document. This preserves formatting integrity while enabling systematic amendments.

Why does programmatic docx editing require XML parsing libraries?

Programmatic docx editing requires XML parsing libraries because docx files are complex ZIP archives containing XML, styles, and media. Libraries like lxml and defusedxml handle the XML structure securely without manual parsing.