docx

Create, edit, and analyze Word documents with tracked changes and OOXML.

167k|19.9k|Updated Sep 22, 2025
One-click install
npx skills add https://github.com/anthropics/skills --skill docx-anthropics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/anthropics/skills/tree/main/skills/docx
Command: npx skills add https://github.com/anthropics/skills --skill docx-anthropics

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandoc, docx, libreoffice, poppler-utils, defusedxml, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill eliminates the complexity of working with Microsoft Word documents programmatically, handling everything from simple edits to complex legal redlining with tracked changes.

Core Features & Use Cases

  • Document Creation: Generate professional Word documents with proper formatting, styles, and structure.
  • Tracked Changes: Implement professional redlining workflows for legal, academic, and business documents.
  • Content Analysis: Extract text, comments, and metadata from existing documents.
  • Use Case: Imagine you need to review a 50-page legal contract. Use this Skill to systematically implement all required changes with proper tracking while preserving document integrity.

Quick Start

Use the docx skill to extract all text content from the attached 'contract_review.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 Word document creation with tracked changes for legal redlining?

Tracked changes automate professional redlining workflows by recording all modifications with metadata, preserving document integrity. This Skill creates Word documents with native tracked changes support, enabling systematic review and approval cycles for legal, academic, and business contracts without manual formatting.

Can I extract text and metadata from existing .docx files programmatically?

Yes. This Skill extracts text content, comments, and metadata from Word documents using pandoc and OOXML parsing, supporting systematic analysis of document structure, comments, and embedded data without opening Word manually.

What's the best way to edit Word documents while preserving formatting and styles?

Programmatic OOXML editing preserves formatting by manipulating document structure directly at the XML level. This Skill handles style preservation, layout integrity, and complex document structures, ensuring edited files maintain professional appearance and compatibility.

Does this work for converting Word documents to other formats like PDF or plain text?

Yes, using pandoc integration. This Skill converts .docx files to multiple formats including PDF and plain text while maintaining content fidelity, supporting downstream analysis, archival, and distribution workflows.

Can I validate and manipulate Office Open XML structures directly?

Yes. This Skill supports packing, unpacking, and validating OOXML content, enabling direct manipulation of document internals, RSID metadata for tracked changes, and custom workflows beyond standard Word editing capabilities.

What are the limitations when working with complex documents or large-scale batch processing?

Processing depends on pandoc, docx libraries, and system resources. Complex nested structures, embedded objects, or extremely large batches may require optimized scripting. Validation confirms OOXML integrity but does not guarantee 100% Microsoft Word compatibility for edge cases.