docx

Automate Word document creation, editing, and review workflows for .docx files.

Updated Dec 30, 2025
One-click install
npx skills add https://github.com/Salmanferozkhan/Cloud-and-fast-api --skill docx-salmanferozkhan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Salmanferozkhan/Cloud-and-fast-api/tree/main/.claude/skills/docx
Command: npx skills add https://github.com/Salmanferozkhan/Cloud-and-fast-api --skill docx-salmanferozkhan

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) but manual editing, review tracking, and formatting preservation are time-consuming and error-prone. This skill automates end-to-end Word document workflows, including creation, editing, tracked changes, comments, and content extraction, ensuring consistent formatting and provenance.

Core Features & Use Cases

  • Automated document creation and editing with tracked changes and comments using OOXML tooling.
  • Reliable preservation of formatting when applying edits, inserting tracked changes, and exporting text.
  • Real-world scenario: draft a contract in .docx, apply edits via tracked changes, add reviewer comments, and extract key sections for review.

Quick Start

Run a sample workflow against a test document to observe automated tracked changes 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 editing with tracked changes in Python?

You can automate Word document editing by using Python to manipulate .docx files, applying tracked changes and comments through OOXML handling and RSID insertion and deletion tracking.

Can I add reviewer comments to a .docx file programmatically?

Yes, you can add reviewer comments to a .docx file programmatically by utilizing OOXML tooling to manage comment integration alongside tracked changes during document workflows.

How does OOXML handle tracked changes and formatting preservation in .docx files?

OOXML handles tracked changes by managing RSID, insertion, and deletion tracking at the XML level, ensuring formatting preservation when applying edits and exporting text from .docx files.

Do I need lxml to automate .docx document workflows?

Yes, lxml and defusedxml are required dependencies to process .docx files, providing the XML parsing and security layers needed for robust OOXML manipulation and document editing.

What is the best way to extract text from a .docx file while preserving formatting provenance?

The best way to extract text while preserving formatting provenance is to use OOXML tooling that reliably manages document structure, tracked changes, and comments during content extraction.

Are there limitations when using Python for OOXML document editing?

Limitations of OOXML document editing involve managing complex XML structures, requiring robust handling of RSID and tracked changes to avoid formatting corruption in collaborative .docx workflows.