docx

Create, edit, and analyze Word documents with OOXML tooling.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a comprehensive toolkit to create, edit, and analyze Word documents (.docx) while preserving formatting, supporting tracked changes, and managing comments.

Core Features & Use Cases

  • Create new Word documents programmatically using OOXML tooling.
  • Edit existing documents with tracked changes and comments.
  • Validate and manage redlining workflows for professional reviews and collaboration.
  • Use case: generate a contract draft, apply editor changes, attach reviewer comments, and export the final document.

Quick Start

Create a new Word document with an initial paragraph and save it as a .docx file.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate adding tracked changes to a Word document?

Automating tracked changes in a Word document involves injecting RSID, author, and date metadata into OOXML elements to apply deterministic redlining and editing workflows.

Can I programmatically extract and manage comments from a .docx file?

You can programmatically manage comments in a .docx file by parsing and modifying OOXML structures, enabling automated comment attachment and professional review workflows.

What is the best way to validate OOXML when editing Word documents?

Validating OOXML during Word document editing is achieved by leveraging lxml and defusedxml dependencies to securely parse XML structures and apply optional schema validation.

Does this approach preserve Word formatting when generating documents programmatically?

Creating Word documents programmatically via OOXML tooling preserves formatting by directly manipulating native XML structures, ensuring styles remain intact during automated drafting.

How do I handle redlining workflows for contract drafts without breaking the file structure?

Handling redlining workflows for contract drafts requires deterministic OOXML modifications that inject tracked changes and comments safely, maintaining the .docx file's structural integrity.

Why use defusedxml and lxml for automating Word document processing?

Using lxml and defusedxml for automating Word document processing ensures secure XML parsing against malicious entities while providing robust API support for complex OOXML modifications.