docx

Create, edit, and analyze Word .docx documents while preserving formatting and review markup.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill removes the friction of working with professional Word documents by preserving formatting, structure, and review history while creating, editing, or analyzing .docx files.

Core Features & Use Cases

  • Document creation: Build new Word files from scratch with consistent styles, tables, images, headers, footers, and page layout.
  • Editing and redlining: Safely modify existing documents, including tracked changes, deletions, insertions, and comments.
  • Text and XML analysis: Extract document text, inspect raw OOXML, and work with embedded media or complex formatting.
  • Use case: Review a contract, preserve the original formatting, and return a tracked-change version with comments instead of rewriting the whole file.

Quick Start

Use the docx skill to review the attached .docx file and return its text with tracked changes preserved.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I edit a Word document with tracked changes and comments without breaking the formatting?

To edit a Word document while preserving formatting and review history, you can apply tracked-change redlining, insertions, deletions, and comments directly at the OOXML level. This approach ensures the original document structure, styles, and review markup remain intact during modifications.

Can I extract text from a .docx file while preserving the original review markup?

Yes, you can extract text from a .docx file while preserving the original review markup. The process requires pandoc for text extraction and safely handles tracked revisions, comments, and complex formatting, ensuring you can analyze the document content without losing the embedded review history.

What is the best way to programmatically generate a Word .docx file with consistent styles and tables?

The best way to programmatically generate a Word .docx file with consistent styles, tables, images, headers, footers, and page layout is by using docx-js for new-document generation. This creates professional business, legal, or technical files from scratch with reliable formatting.

Do I need pandoc and defusedxml to analyze OOXML and extract document text?

Yes, you need pandoc for document text extraction and defusedxml as a dependency for XML-safe editing. These tools are required to inspect raw OOXML, work with embedded media, and safely modify complex formatting within Word files without breaking the underlying structure.

How do I review a contract in .docx format and return a redlined version with comments?

To review a contract in .docx format and return a redlined version with comments, you can safely modify the existing document using tracked changes, deletions, insertions, and comment management features. This preserves the original formatting and review history instead of rewriting the entire file.