docx

Create, edit, and analyze Microsoft Word .docx documents with tracked changes and XML extraction.

Updated Jan 25, 2026
One-click install
npx skills add https://github.com/kunhai-88/skills --skill docx-kunhai-88
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/kunhai-88/skills/tree/main/docx
Command: npx skills add https://github.com/kunhai-88/skills --skill docx-kunhai-88

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the creation, modification, and analysis of Microsoft Word (.docx) documents, handling tasks like content editing, revision tracking, and data extraction.

Core Features & Use Cases

  • Document Creation: Generate new .docx files from scratch using structured data.
  • Content Editing: Modify existing documents, including handling tracked changes and comments.
  • Data Extraction: Extract text content or raw XML for detailed analysis.
  • Use Case: Automatically generate a formal proposal document with specific sections and formatting, or process a batch of legal documents to extract all marked revisions.

Quick Start

Use the docx skill to extract all text from the attached file 'report.docx'.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I extract text from a Word document for analysis?

To extract text from a Word document, this Skill processes the .docx file and pulls the text content or raw XML. It requires pandoc and python-document to parse the OOXML structure and output the extracted data.

Can I modify existing Word documents and keep tracked changes?

Yes, you can modify existing Word documents while keeping tracked changes. The Skill edits .docx files and handles revisions and comments natively using docx-js and python-document for OOXML manipulation.

How do I generate a new .docx file from structured data?

You can generate a new .docx file from structured data by using the Skill's document creation features. It leverages pandoc and docx-js to translate your structured inputs into a properly formatted Word document.

Do I need pandoc installed to edit Word documents with this Skill?

Yes, you need pandoc installed, along with docx-js, python-document, and libreoffice. These dependencies are required to facilitate the creation, editing, and analysis of Microsoft Word documents.

What is the best way to process a batch of legal documents to extract marked revisions?

The best way to extract marked revisions from legal documents is using this Skill's revision tracking analysis. It processes multiple .docx files to identify and extract all tracked changes and comments efficiently.

Does this tool work with raw XML for detailed OOXML analysis?

Yes, this tool works with raw XML for detailed OOXML analysis. It can extract the underlying raw XML from Word documents, allowing you to inspect the exact document structure using defusedxml.