docx

Create, edit, and analyze Word .docx documents via JavaScript and Python interfaces.

28|1|Updated Jan 6, 2026
One-click install
npx skills add https://github.com/XJTLUmedia/Modernblog --skill docx-xjtlumedia
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/XJTLUmedia/Modernblog/tree/main/skills/document-skills/docx
Command: npx skills add https://github.com/XJTLUmedia/Modernblog --skill docx-xjtlumedia

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Working with .docx files programmatically is notoriously difficult due to the complex OOXML specification. This Skill eliminates the need to manually parse ZIP archives, edit raw XML, or manage document relationships, enabling seamless document automation.

Core Features & Use Cases

  • Document Creation: Generate professional Word documents from scratch using JavaScript with full formatting control, styles, tables, and images.
  • Tracked Changes & Comments: Implement comprehensive redlining workflows for legal, academic, and business documents with precise XML-level control over insertions and deletions.
  • Text Extraction & Analysis: Convert documents to markdown or access raw XML for deep content analysis, preserving formatting and tracked changes.

Quick Start

Use the docx skill to create a new Word document with the specified content and formatting.

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?

Automating tracked changes in Word docx files involves manipulating OOXML to apply precise XML-level control over insertions, deletions, and comments for legal, academic, and business workflows. This eliminates manual XML parsing while preserving document formatting.

What's the best way to extract text from a docx file while preserving formatting?

Extracting text from a docx file while preserving formatting is best achieved by converting documents to markdown or accessing raw XML for deep content analysis. This approach maintains structural integrity without manually parsing ZIP archives.

Do I need pandoc or docx-js to generate Word documents from scratch?

Generating professional Word documents from scratch requires pandoc, docx-js, and the Document library to manipulate OOXML. These dependencies provide full formatting control over styles, tables, and images without manual XML editing.

Can I programmatically add comments to Word documents for collaborative workflows?

Yes, you can programmatically add comments to Word documents by manipulating the OOXML specification. This enables comprehensive redlining workflows for collaborative legal and academic document automation with precise XML-level control over annotations.

Why does working with OOXML programmatically require specialized document automation tools?

Working with OOXML programmatically requires specialized document automation tools because the specification is notoriously complex, making manual ZIP archive parsing and raw XML editing unmanageable. High-level JavaScript and Python interfaces abstract this complexity.

Does the docx skill work with the defusedxml library for secure XML processing?

Yes, the docx skill works with the defusedxml library to ensure secure XML processing when manipulating OOXML. This dependency mitigates XML parsing vulnerabilities while accessing raw document content for deep analysis and text extraction.