docx

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill eliminates the tedious manual work involved in creating, editing, and analyzing professional Microsoft Word documents (.docx files). It streamlines complex tasks like applying tracked changes, managing comments, and extracting specific information, saving you significant time and reducing errors in document workflows.

Core Features & Use Cases

  • Comprehensive Document Manipulation: Effortlessly create new Word documents from scratch or modify existing ones while preserving intricate formatting.
  • Advanced Review & Redlining: Implement precise tracked changes (insertions, deletions) and add/manage comments, crucial for legal, academic, or business document reviews.
  • Intelligent Content Extraction: Convert documents to Markdown for easy text extraction, or access the raw XML for deep analysis of structure, comments, and embedded media.
  • Use Case: A legal team needs to draft a contract, incorporate multiple rounds of revisions with tracked changes, and add specific comments for internal review. This Skill can automate the entire redlining process, ensuring all changes are systematically applied and easily verifiable.

Quick Start

Using the docx skill, convert the attached document 'report.docx' to markdown, preserving all tracked changes, and then extract the main body text.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate creating and editing Word documents with tracked changes?

Tracked changes in Word documents automate revision workflows by recording insertions, deletions, and comments with author and timestamp metadata. This Skill applies tracked changes programmatically to .docx files, preserving formatting and enabling systematic review cycles for legal, academic, and business documents without manual redlining.

Can I extract text and analyze structure from .docx files programmatically?

Yes. This Skill extracts text by converting .docx documents to Markdown or accessing raw XML, exposing document structure, comments, and embedded metadata. Pandoc handles the conversion, making deep content analysis and structured text extraction feasible for automation pipelines.

What's the best way to handle document redlining and review workflows at scale?

Redlining at scale requires systematic change tracking, comment management, and formatting preservation across multiple revisions. This Skill automates the entire process—applying tracked changes, managing comments, and propagating author/date metadata—eliminating manual coordination in legal and academic review cycles.

Do I need pandoc and LibreOffice to work with .docx files?

Pandoc and LibreOffice are dependencies for text extraction and format conversion. Pandoc converts .docx to Markdown for content access; LibreOffice and poppler-utils support deep document analysis. The docx npm library handles creation and editing directly without them.

Can I create Word documents from scratch and preserve complex formatting?

Yes. This Skill creates new .docx documents using docx-js for OOXML-compliant structure and a Python-based Document library for editing, both preserving intricate formatting, styles, and embedded elements throughout creation and modification workflows.

What are the limitations when working with large or legacy .docx files?

XML parsing relies on defusedxml to prevent injection attacks, which may impact performance on extremely large documents. Legacy .docx files with non-standard formatting or embedded macros may require manual validation. Text extraction fidelity depends on document complexity and pandoc's conversion rules.