docx

Create and edit .docx documents with tracked changes and comments.

Updated Dec 17, 2025
One-click install
npx skills add https://github.com/ardenlab/claude-skills --skill docx-ardenlab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/ardenlab/claude-skills/tree/main/docx
Command: npx skills add https://github.com/ardenlab/claude-skills --skill docx-ardenlab

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables seamless creation, editing, and analysis of professional Word documents (.docx) while preserving formatting, tracking changes, and enabling inline comments.

Core Features & Use Cases

  • Create new Word documents with code-friendly workflows and maintain styling.
  • Edit existing documents with tracked changes, redlining, and comments to support collaborative reviews.
  • Extract and analyze document content, including text and structure, for automated processing and auditing.

Quick Start

Create a new document or modify an existing one, preserving formatting and enabling tracked changes.

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 while preserving formatting?

Automating Word document creation is handled through code-friendly workflows that generate .docx files while maintaining professional styling and structure. The Skill uses deterministic OOXML edits to ensure formatting is preserved during the creation and modification of contracts, reports, and proposals.

Can I add tracked changes and comments to an existing docx file programmatically?

Adding tracked changes and comments to an existing docx file is fully supported. The Skill implements RSID and author stamping alongside comment ranges, enabling collaborative review, redlining, and inline comments directly within professional Word documents.

What's the best way to extract and analyze text content from a Word document?

Extracting and analyzing text content from a Word document is achieved through built-in Document utilities. These tools parse the internal OOXML structure to pull text and formatting details, enabling automated processing and auditing of professional .docx files.

Does this Word document automation approach require specific XML libraries?

This Word document automation approach relies on the defusedxml library to process OOXML structures. This dependency is required to securely parse and manipulate the underlying XML of .docx files during creation, editing, and redlining operations.

How does OOXML manipulation handle author stamping for tracked changes?

OOXML manipulation handles author stamping through deterministic RSID and author attributes applied directly to tracked changes. This ensures every edit, comment range, and redline within the Word document is correctly attributed to the respective reviewer.

Are there limitations when editing complex Word documents with OOXML edits?

Editing complex Word documents with OOXML edits operates deterministically within the document's XML structure. It is designed for professional workflows like contracts and proposals, but relies on validation hooks to ensure structural integrity when applying tracked changes and comments.