docx

Automates Word (.docx) manipulation including editing, tracked changes, and comments via Python Document class.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Automates complex Word document workflows by enabling programmatic creation, editing, tracked changes, comments, and formatting preservation for professional document processing.

Core Features & Use Cases

  • Programmatic creation and editing of Word (.docx) files
  • Tracked changes and comments support with robust validation
  • Formatting preservation, text extraction, and structured document workflows

Quick Start

Initialize a session by loading an unpacked DOCX workspace and enabling tracking changes.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I programmatically add tracked changes to a Word document in Python?

To add tracked changes to a Word document programmatically, this Skill manipulates OOXML via a Python-based Document class to automatically inject RSID, author, and date metadata for robust revision auditing.

Can I automate Word document editing and comments for legal document revisions?

Yes, you can automate Word document editing and comments for legal or business revisions; the Skill supports programmatic creation, formatting preservation, and validation against Word schemas for strict auditing workflows.

Does this tool require lxml to manipulate OOXML files?

Yes, this tool requires lxml and defusedxml dependencies to securely parse and manipulate the underlying OOXML structure of .docx files while preserving document formatting and schema validation.

What is the best way to extract text and maintain version history from a .docx file?

The best way to extract text and maintain version history from a .docx file is using a Python-based Document class that directly edits OOXML while applying tracked changes for complete version auditing.

Are there limitations when preserving formatting during automated Word document processing?

Limitations during automated Word document processing depend on adhering to Word schemas; the Skill validates OOXML manipulations to preserve formatting, but complex structural edits may require careful RSID and author metadata management.