docx

Create, edit, and redline .docx files by manipulating OOXML via a Python API.

42|12|Updated Jan 18, 2026
One-click install
npx skills add https://github.com/frostant/awesome-claude-skills --skill docx-frostant
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/frostant/awesome-claude-skills/tree/main/document-skills/docx
Command: npx skills add https://github.com/frostant/awesome-claude-skills --skill docx-frostant

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Claude needs to work with professional Word documents (.docx) and frequently runs into tedious, error-prone manual tasks involving creation, editing, redlining, and preserving formatting. This Skill automates end-to-end Word document workflows by programmatically generating, modifying, and reviewing OOXML content, including tracked changes and comments, while maintaining document integrity.

Core Features & Use Cases

  • Automated Word document creation: generate new .docx files with formatted content and styles.
  • Editing and redlining: perform precise modifications and track changes, preserving original formatting and RSIDs.
  • Commenting and collaboration: attach comments to tracked changes and anchor them to specific sections.
  • Use Case: Proposals, contracts, or reports that require auditable edits and history tracking.

Quick Start

Load an unpacked Word document, enable tracked changes, and start applying edits and comments.

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 editing with tracked changes?

You can automate Word document creation and editing with tracked changes by manipulating OOXML directly through a Python API. This approach programmatically generates, modifies, and redlines .docx files while preserving original formatting and RSIDs for auditable history tracking.

Can I attach comments to specific sections in a .docx file programmatically?

Yes, you can attach comments to specific sections in a .docx file programmatically. The API anchors comments to tracked changes and specific OOXML elements, enabling seamless collaboration and review workflows for contracts and proposals.

Does this OOXML approach to editing .docx files require lxml?

Yes, this OOXML approach to editing .docx files requires lxml and defusedxml as dependencies. These Python libraries handle secure XML parsing and manipulation of the underlying OOXML structure to maintain document integrity during redlining.

What is the best way to redline Word documents for collaborative review without losing formatting?

The best way to redline Word documents for collaborative review without losing formatting is through deterministic OOXML manipulation. This method applies precise modifications and tracked changes while preserving original styles and RSIDs for archival tasks.

How do I load an unpacked Word document to start applying automated edits?

To load an unpacked Word document and start applying automated edits, you use the Python API to access the raw OOXML content. Once loaded, you can enable tracked changes and begin deterministic modifications, redlining, and commenting.

Are there limitations when manipulating OOXML for contract drafting versus manual edits?

Manipulating OOXML for contract drafting avoids error-prone manual edits by applying deterministic changes programmatically. However, it requires understanding the underlying XML structure to properly preserve document integrity and formatting during complex redlining workflows.