docx

Create, edit, analyze, and redline Microsoft Word .docx documents programmatically.

Updated Dec 14, 2025
One-click install
npx skills add https://github.com/uptonking/aionui-office --skill docx-uptonking
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/uptonking/aionui-office/tree/main/skills/docx
Command: npx skills add https://github.com/uptonking/aionui-office --skill docx-uptonking

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandoc, docx, libreoffice, poppler-utils, defusedxml, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines complex document workflows by enabling programmatic creation, editing, and analysis of Microsoft Word (.docx) files, including sophisticated handling of tracked changes and comments.

Core Features & Use Cases

  • Document Creation: Generate new .docx files from scratch using JavaScript/TypeScript with the docx-js library.
  • Content Editing: Modify existing documents using the Python Document library for OOXML manipulation.
  • Tracked Changes & Comments: Implement redlining, accept/reject changes, and manage comments within documents.
  • Document Analysis: Extract text, raw XML, and convert documents to images for visual inspection.
  • Use Case: A legal team needs to review a 50-page contract. They can use this Skill to automatically apply specific formatting, add comments to clauses, and track all changes made by different reviewers, ensuring a clean and auditable review process.

Quick Start

Use the docx skill to create a new document with a title and two headings.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I programmatically create and edit Word docx files?

You can programmatically create and edit Word docx files by generating new documents with docx-js or manipulating existing OOXML structures using Python's Document library. This allows automated document generation and content editing across legal and business workflows.

Can I automate redlining and track changes in docx documents?

Yes, you can automate redlining and track changes in docx documents. The Skill supports implementing tracked changes, accepting or rejecting modifications, and managing comments programmatically to ensure a clean and auditable review process for contracts.

How do I extract text and raw XML from OOXML files for analysis?

You extract text and raw XML from OOXML files using pandoc for text extraction and direct raw XML access for structural analysis. This enables detailed document inspection and content processing for legal and academic standards.

Does this docx workflow require LibreOffice and pandoc to convert documents?

Yes, this docx workflow requires pandoc for text extraction and LibreOffice for document conversion. These dependencies, alongside poppler-utils, enable extracting content and converting Word documents to images for visual inspection.

What is the best way to manage comments on a 50-page contract for multiple reviewers?

The best way to manage comments on a lengthy contract is using automated OOXML manipulation to add comments to specific clauses and track all changes made by different reviewers. This ensures an auditable review process across legal documents.