docx

Create and edit DOCX documents with tracked changes and comments.

1|Updated Oct 24, 2025
One-click install
npx skills add https://github.com/beyondkmp/claude-code-plugins --skill docx-beyondkmp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/beyondkmp/claude-code-plugins/tree/main/plugins/skills/document-processing/docx
Command: npx skills add https://github.com/beyondkmp/claude-code-plugins --skill docx-beyondkmp

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Comprehensive automation for Word DOCX documents: enabling programmatic creation, editing, and analysis while preserving formatting, tracked changes, and inline comments.

Core Features & Use Cases

  • Tracked changes: automatically wrap edits in <w:ins>/<w:del> with proper authorship and revision metadata to support review workflows.
  • Comments and annotations: add and manage comments across document ranges, including replies and threading.
  • Formatting preservation: maintain OOXML formatting during programmatic edits to avoid rendering issues.
  • Validation and reliability: optional schema validation to verify XML integrity and content type consistency.

Real-world example: A consultant generates a proposal by applying a series of tracked edits and comments to a base document, then saves and shares a revision-controlled version.

Quick Start

Load an unpacked DOCX document, run a basic tracked-change workflow, and attach a comment to demonstrate editing and review.

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 DOCX document?

You can programmatically add tracked changes to a DOCX document by wrapping edits in OOXML <w:ins> and <w:del> tags with proper authorship and revision metadata to support review workflows.

Can I insert and manage comments in a DOCX file using Python?

Yes, you can insert and manage comments in a DOCX file using Python by manipulating the OOXML structure to add annotations across document ranges, including replies and threading.

What is the best way to automate Word document editing while preserving formatting?

The best way to automate Word document editing while preserving formatting is by using OOXML manipulation libraries to insert edits, tracked changes, and comments without causing rendering issues.

Does this DOCX automation approach validate Word XML structures?

Yes, this DOCX automation approach provides optional schema validation to verify XML integrity and content type consistency when creating, editing, and reviewing Word documents.

Do I need Python and defusedxml to edit Word documents with tracked changes?

Yes, you need Python-based tooling and the defusedxml dependency to manipulate OOXML structures, insert tracked changes, and validate Word XML documents reliably.