docx

Automate Word .docx tracked changes, comments, edits, and text extraction with OOXML preservation.

2|1|Updated Sep 15, 2025
One-click install
npx skills add https://github.com/AizenvoltPrime/claude-compass --skill docx-aizenvoltprime
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/AizenvoltPrime/claude-compass/tree/main/.claude/skills/document-skills/docx
Command: npx skills add https://github.com/AizenvoltPrime/claude-compass --skill docx-aizenvoltprime

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates Word document tasks, especially tracking changes, comments, and structural editing, while preserving OOXML semantics.

Core Features & Use Cases

  • Tracked changes: programmatically insert, delete, and review edits
  • Comments: manage in-document comments
  • XML access: raw OOXML content for advanced editing

Quick Start

Open 'contract.docx', add a Claude comment to a paragraph, and save.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I add tracked changes and comments to a Word document programmatically?

Tracked changes and comments are managed through OOXML manipulation. This Skill applies tracked changes with RSIDs and author metadata, and embeds comments directly into the document structure, enabling end-to-end redlining workflows while preserving formatting and document semantics.

Can I automate Word document creation and editing while preserving formatting?

Yes. This Skill automates creation, editing, and analysis of .docx files with full OOXML-aware capabilities. It handles content manipulation, whitespace preservation, and formatting integrity across new documents and existing edits.

What's the best way to extract and review text from Word documents for downstream processing?

Text extraction pulls content with structural awareness, enabling review and downstream processing in professional workflows. The Skill preserves document semantics during extraction so content remains usable for analysis and further automation.

Can I work with .docx files and handle tracked changes without external Word dependencies?

Yes. This Skill works directly with OOXML, the underlying XML format in .docx files. It manages tracked changes, comments, and content manipulation programmatically without requiring Microsoft Word or external libraries beyond defusedxml for secure XML processing.

How do I access and manipulate raw OOXML content in Word documents?

Raw OOXML content access enables advanced editing beyond standard document APIs. This Skill exposes the XML structure directly, allowing fine-grained control over document elements, metadata, and tracked-change internals for specialized workflows.

What are the limitations when automating complex Word document workflows?

Automation works best for content-focused tasks: edits, comments, and structural changes. Complex formatting, embedded objects, or macros may require direct XML inspection. OOXML semantics must be understood for edge cases in tracked-change metadata or comment positioning.