docx

Create, edit, and analyze DOCX documents with tracked changes and comments.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables programmatic creation, editing, and analysis of .docx documents, preserving formatting, handling tracked changes, and supporting comments to streamline professional document work.

Core Features & Use Cases

  • Create new Word documents from templates with sections and styling.
  • Edit existing documents with tracked changes, insertions, deletions, and comments.
  • Extract text and analyze structure from Word documents for auditing and archival purposes.

Quick Start

Create a new document and apply a set of edits with tracked changes, then export the final 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 and edits with tracked changes?

You can automate DOCX creation and edits programmatically by manipulating WordprocessingML to apply insertions, deletions, and comments while preserving formatting. This relies on Python libraries defusedxml and lxml to enforce OOXML compatibility.

Can I extract text and analyze structure from existing Word documents?

Yes, you can extract text and analyze structure from existing DOCX documents for auditing and archival purposes. The Skill parses WordprocessingML directly, enabling programmatic review of document elements without manual inspection.

Does this approach preserve formatting when editing DOCX files?

Editing DOCX files through direct WordprocessingML manipulation preserves the original formatting. The Skill enforces OOXML compatibility using lxml and defusedxml, ensuring structural integrity during insertions, deletions, and comment annotations.

What's the best way to add comments and tracked changes to a Word document programmatically?

The best way to add comments and tracked changes is by manipulating the OOXML structure directly. This Skill uses Python and lxml to insert tracked changes and comments into WordprocessingML, streamlining professional document review workflows.

Do I need Python libraries defusedxml and lxml to manipulate WordprocessingML?

Yes, you need the Python libraries defusedxml and lxml to manipulate WordprocessingML and enforce OOXML compatibility. These dependencies handle secure XML parsing and structural edits required for programmatic DOCX generation and review.

Can I create new Word documents from templates with sections and styling?

Yes, you can create new Word documents from templates with sections and styling. The Skill programmatically generates DOCX files by constructing valid WordprocessingML, supporting professional formatting and structured document drafting workflows.