docx

Create and edit Word documents with tracked changes and comments.

178|24|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/ZhanlinCui/Ultimate-Agent-Skills-Collection --skill docx-zhanlincui
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/ZhanlinCui/Ultimate-Agent-Skills-Collection/tree/main/docx
Command: npx skills add https://github.com/ZhanlinCui/Ultimate-Agent-Skills-Collection --skill docx-zhanlincui

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables automated creation, editing, and analysis of Microsoft Word documents (.docx) with full support for tracked changes, comments, formatting preservation, and text extraction.

Core Features & Use Cases

  • Document creation: generate professional Word documents with structured content, styles, and headings.
  • Editing & tracking: apply changes using tracked changes and comments to preserve revision history during reviews.
  • Real-world use case: draft a project proposal with tracked edits and inline comments ready for client review.

Quick Start

Create a new Word document named 'Project Plan.docx' with a title, a heading, and two paragraphs, ensuring tracked changes and comments can be added.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate Word document editing with tracked changes and comments?

Automate Word document editing by applying tracked changes and comments through Python-based OOXML tooling, preserving revision history during document reviews and edits.

What is the best way to programmatically redline a .docx file?

Redlining a .docx file is achieved by leveraging XML processing libraries like lxml to apply deterministic tracked changes, ensuring all text revisions are recorded for review.

Can I create a formatted Word document from scratch and preserve its styles?

Yes, you can create professional Word documents with structured content, styles, and headings while ensuring formatting preservation using automated OOXML editing utilities.

Does this approach work for drafting contracts and proposals with inline comments?

It fully supports drafting contracts, reports, and proposals by generating structured content and adding inline comments ready for client review and collaboration.

Do I need lxml and defusedxml to process Word documents?

Yes, the document creation and tracking process relies on the lxml and defusedxml dependencies to perform secure XML processing and deterministic document validations.

Why use Python OOXML tooling instead of other document automation libraries?

Python OOXML tooling provides deterministic edits and validations directly on the XML structure, ensuring precise formatting preservation and reliable tracked changes without corrupting the document.