docx

Create and edit Word documents with tracked changes and comments using Python OOXML tooling.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables automated creation, editing, and analysis of Word documents (.docx) with support for tracked changes, comments, formatting preservation, and text extraction. It streamlines professional document workflows by programmatically handling drafting, reviewing, and auditing tasks to reduce manual effort and ensure consistency.

Core Features & Use Cases

  • Automated document creation: generate new Word documents from templates or programmatic content while preserving formatting.
  • Tracking changes and comments: apply and manage tracked changes and comments to support formal reviews.
  • Formatting preservation and extraction: maintain styling, layout, and extract text for analysis or archival.
  • Use Case: lawyers drafting contracts can iterate quickly with redlining, comments, and robust version control.

Quick Start

Use the docx skill to create a new Word document or apply tracked changes to an existing document.

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 creation while preserving formatting?

Automate Word document creation by programmatically generating .docx files from templates or custom content while preserving original formatting and OOXML structure integrity.

Can I apply tracked changes and comments to a docx for automated redlining?

Yes, you can apply and manage tracked changes and comments in docx files to support formal document reviews and automated redlining workflows.

How does Python OOXML tooling handle document validation and text extraction?

Python OOXML tooling manipulates the underlying XML structure of Word documents, enabling reliable text extraction, structural validation, and modification without corrupting the file.

What is the best way to review contracts with automated version control?

Automate contract review by applying programmatic redlining, inserting comments, and preserving formatting across modifications to maintain robust version control.

Do I need defusedxml to process OOXML structure in Word automation?

Yes, defusedxml is required as a dependency to safely parse and process the underlying OOXML structure when automating Word document manipulation.

Are there limitations when modifying existing Word documents programmatically?

Modifications must preserve the complex OOXML structure to prevent formatting loss, requiring careful script handling to maintain styling, layout, and tracked changes integrity.