docx

Create and modify .docx files with tracked changes and comments.

27|9|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/georgekhananaev/claude-skills-vault --skill docx-georgekhananaev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/georgekhananaev/claude-skills-vault/tree/main/.claude/skills/document-skills/docx
Command: npx skills add https://github.com/georgekhananaev/claude-skills-vault --skill docx-georgekhananaev

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables programmatic creation, editing, and analysis of Word documents (.docx), preserving formatting and OOXML structure while supporting advanced features like tracked changes and comments.

Core Features & Use Cases

  • Automated Word document creation: Generate new .docx files that maintain formatting and structure.
  • Editing with tracked changes and comments: Apply edits, wrap changes in <w:ins>/<w:del>, and attach comments for review.
  • Formatting preservation & validation: Keep styles, tables, lists, and images intact; validate structure with OOXML-aware tooling.
  • Use Case: Automate batch document updates across reports, proposals, and templates, with audit trails of edits.

Quick Start

Create a new Word document, add a heading, perform a tracked change, and add a comment to illustrate the process.

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 in Python?

You can automate Word document creation and editing by modifying OOXML structure with lxml. This skill wraps edits in tracked change tags and attaches comments, preserving formatting while providing an audit trail for review.

Can I add comments and tracked changes to a .docx file without breaking its formatting?

Yes, you can add comments and tracked changes to a .docx file without breaking formatting. The skill modifies document.xml directly using OOXML-aware tooling, ensuring styles, tables, lists, and images remain intact during validation.

Do I need lxml and Pillow to programmatically modify OOXML documents?

Yes, you need lxml and Pillow to programmatically modify OOXML documents. The skill requires these Python dependencies to parse XML safely with defusedxml and process embedded images while maintaining content type relationships.

What is the best way to batch update Word templates while preserving revision trails?

The best way to batch update Word templates while preserving revision trails is through programmatic OOXML modification. The skill automates template updates across business documents, wrapping changes in revision tags to maintain a complete edit history.

How does OOXML XML editing handle enterprise document workflows?

OOXML XML editing handles enterprise workflows by directly manipulating document.xml, relationships, and content types. This approach enables automated template updates, revision trails, and content validation across batch-processed business reports and proposals.

Why do my automated .docx tracked changes show up as corrupted in Word?

Automated .docx tracked changes may appear corrupted if OOXML structure is invalid. This skill prevents corruption by using defusedxml for safe XML parsing and validating document structure to ensure revision tags and relationships are correctly formed.