docx

Create and edit DOCX documents with tracked changes and comments.

3|Updated Jan 1, 2026
One-click install
npx skills add https://github.com/kjgarza/marketplace-claude --skill docx-kjgarza
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/kjgarza/marketplace-claude/tree/main/plugins/kjgarza-product/skills/docx
Command: npx skills add https://github.com/kjgarza/marketplace-claude --skill docx-kjgarza

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables automated creation, editing, annotation, and analysis of Microsoft Word documents (.docx). It provides a robust workflow for applying tracked changes, adding comments, preserving formatting, and extracting text, enabling Claude to manage professional documents with reliability and audit trails.

Core Features & Use Cases

  • Document creation and editing with tracked changes: automatically manage insertions and deletions while preserving author information and revision history.
  • Commenting and review workflows: attach comments to specific ranges or blocks, support replies, and maintain audit trails.
  • OOXML-aware validation and formatting preservation: ensure documents remain compatible with Word and retain layout during programmatic edits.
  • Use Case: A legal team drafts a contract; Claude applies a redline review, adds comments, and exports a final version with preserved formatting.

Quick Start

Use the docx skill to create a sample Word document titled "Project Plan" with sections for Overview, Goals, and Timeline, including a few tracked changes and a comment.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate tracked changes in Word documents using Python?

Automate tracked changes in Word documents by managing insertions and deletions while preserving author information and revision history. This Python-based DOCX toolchain maintains OOXML schema compliance, enabling reliable redline workflows without manual editing.

Can I add comments to specific text ranges in a .docx file programmatically?

Add comments to specific ranges or blocks in a .docx file programmatically to support review workflows. The infrastructure maintains audit trails and supports replies, enabling automated annotation and collaboration scenarios directly through Python scripts.

Does this DOCX automation approach preserve formatting during programmatic edits?

DOCX automation preserves formatting during programmatic edits through OOXML-aware validation. It ensures documents remain compatible with Word and retain layout, preventing structure corruption when applying tracked changes or inserting content.

What is the best way to extract text and analyze Word documents in Python?

Extract text and analyze Word documents using a Python-based DOCX library built on lxml. It parses OOXML structures directly, enabling reliable document analysis, text extraction, and content review for professional document workflows.

Do I need lxml and defusedxml dependencies to process OOXML schemas for Word files?

Processing OOXML schemas for Word files requires the lxml and defusedxml dependencies. lxml handles XML parsing and manipulation, while defusedxml provides security against XML attacks during automated document creation and editing.