docx

Create, edit, and analyze Word documents via OOXML automation.

Updated Mar 5, 2026
One-click install
npx skills add https://github.com/Mohamed-Elkahef/test-project --skill docx-mohamed-elkahef
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Mohamed-Elkahef/test-project/tree/main/.claude/skills/document-skills/docx
Command: npx skills add https://github.com/Mohamed-Elkahef/test-project --skill docx-mohamed-elkahef

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Working with Microsoft Word documents (.docx) programmatically requires handling complex OOXML structures, making document automation difficult and error-prone. This Skill abstracts away the XML complexity, enabling reliable creation, editing, and analysis of professional documents.

Core Features & Use Cases

  • Document Creation: Generate new Word documents from scratch using JavaScript with full control over styles, tables, images, and formatting.
  • Redlining & Tracked Changes: Apply and manage tracked changes (insertions and deletions) for document review workflows, including support for nested changes and comment threading.
  • Text Extraction & Analysis: Extract clean text via pandoc or inspect raw XML for deep analysis of comments, formatting, and embedded media.
  • Use Case: A legal team can automatically apply revisions to a contract, add explanatory comments, and produce a clean reviewed document for client delivery.

Quick Start

Use the docx skill to create a new Word document titled "Project Proposal" with a centered title, three paragraphs of body text, and a two-column table listing key milestones.

Frequently Asked Questions about docx

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

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

Automating redlining in Word documents applies tracked insertions and deletions to OOXML structures, enabling reliable document review workflows including nested changes and comment threading.

Can I generate Word documents programmatically without manually writing OOXML?

Generating Word documents programmatically abstracts complex OOXML manipulation into automated workflows, allowing full control over styles, tables, and images without manual XML editing.

Does this document automation approach require pandoc and Python OOXML libraries?

Yes, document automation requires pandoc for clean text extraction and Python OOXML libraries with XSD schema validation to ensure document integrity and formatting preservation.

What is the best way to extract text and analyze formatting from a .docx file?

Extracting text and analyzing formatting from a .docx file uses pandoc for clean text extraction or inspects raw XML to analyze comments, formatting, and embedded media.

How do I apply explanatory comments to a contract during document review?

Applying explanatory comments to a contract during document review uses comment insertion and threading capabilities within the OOXML structure to produce a clean reviewed document.