docx

Create, edit, and analyze .docx files with tracked changes and comments.

10|2|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/Yrzhe/telegram-claude-bot --skill docx-yrzhe
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Yrzhe/telegram-claude-bot/tree/main/.claude/skills/docx
Command: npx skills add https://github.com/Yrzhe/telegram-claude-bot --skill docx-yrzhe

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Automates end-to-end Word document workflows by enabling programmatic creation, editing, and analysis of .docx files with full support for tracked changes, comments, and formatting preservation. Claude can manage professional documents with consistency across multiple editors and review cycles.

Core Features & Use Cases

  • Create new Word documents programmatically while preserving layout and styles.
  • Edit existing documents with tracked changes, apply redlining, and manage comments.
  • Extract text and metadata from documents for auditing, indexing, or content review.

Quick Start

Create a new Word document and enable tracked changes for collaborative editing.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I edit existing Word documents with tracked changes using Python?

You can edit Word documents with tracked changes by using a Python-driven library that injects RSIDs, authors, and change tracking metadata into the file. This enables programmatic redlining and comment management across professional review cycles.

Can I create Word documents programmatically while preserving layout and styles?

Yes, you can create Word documents programmatically while preserving layout and styles. The automation process manipulates the underlying OOXML structure to ensure formatting preservation across multiple collaborators and review cycles.

How do I extract text and metadata from docx files for content review?

You can extract text and metadata from docx files by analyzing the document's OOXML structure programmatically. This allows you to audit, index, or review content while accessing tracked changes, comments, and formatting metadata.

Does this docx automation approach work with lxml and Pillow dependencies?

Yes, this docx automation approach works with lxml, Pillow, and defusedxml dependencies. These libraries handle XML parsing, image processing, and secure XML traversal to manipulate OOXML files while preserving formatting.

What is the best way to manage comments and redlining across multiple collaborators in Word?

The best way to manage comments and redlining across multiple collaborators is by programmatically injecting authors and change tracking metadata into the document's OOXML structure, ensuring consistency across professional review cycles.

Why does formatting get lost when I automate edits to existing Word documents?

Formatting gets lost when edits bypass the underlying OOXML structure. By injecting RSIDs and change tracking metadata directly into the XML while preserving layout styles, you can prevent formatting loss during automated redlining.