docx

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

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

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 streamlines complex document workflows by enabling programmatic creation, editing, and analysis of .docx files, including sophisticated handling of tracked changes and comments.

Core Features & Use Cases

  • Document Creation: Generate new .docx files from scratch using JavaScript/TypeScript.
  • Content Editing: Modify existing documents with precise control over formatting and structure using Python's Document library.
  • Redlining & Review: Implement tracked changes for professional document review and collaboration.
  • Data Extraction: Convert .docx to markdown, preserving tracked changes, for analysis.
  • Use Case: Automatically generate a legal contract, incorporate review feedback with tracked changes, and extract key clauses for a summary report.

Quick Start

Use the docx skill to create a new document with a title and a heading.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I programmatically create and edit Word documents with tracked changes?

Programmatic document creation uses docx-js in JavaScript, while editing existing files leverages Python's Document library, together enabling precise formatting control and tracked changes implementation.

Can I convert a docx file to markdown while preserving tracked changes?

Yes, you can convert docx files to markdown while preserving tracked changes by utilizing pandoc for data extraction, which captures modifications and comments for downstream analysis.

Do I need Python or JavaScript to automate docx document generation?

You need both: JavaScript with docx-js generates new files from scratch, while Python with the Document library modifies existing files, providing complete coverage for document automation workflows.

What's the best way to extract text and comments from a Word document for a summary report?

The best way to extract text and comments from a Word document is using pandoc to convert the docx file into markdown, preserving structural elements and tracked modifications for analysis.

Does this approach handle complex formatting and OOXML structures in existing Word files?

Yes, this approach handles complex formatting and OOXML structures in existing Word files through the Python Document library, ensuring precise control over document structure and content modifications.

What dependencies are required to set up a docx document processing environment?

Setting up a docx document processing environment requires installing pandoc, libreoffice, poppler-utils, and defusedxml to support creation, conversion, text extraction, and secure XML parsing.