docx

Create, edit, and analyze .docx files with tracked changes and text extraction.

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

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 management tasks, from creating professional documents from scratch to meticulously editing existing ones with tracked changes and comments.

Core Features & Use Cases

  • Document Creation: Generate new .docx files using JavaScript/TypeScript with precise formatting.
  • Document Editing: Modify existing .docx files using Python, including tracked changes and comments.
  • Text Extraction: Convert .docx to Markdown, preserving structure and tracked changes.
  • Redlining: Implement detailed tracked changes for document review and collaboration.

Quick Start

Use the docx skill to convert the attached document 'report.docx' into markdown format.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I programmatically add tracked changes and comments to an existing Word document?

To add tracked changes and comments to a Word document, this Skill modifies existing .docx files using Python's Document library for OOXML manipulation. It enables detailed redlining for document review and collaboration without altering the original formatting.

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

Yes, you can convert .docx files to Markdown while preserving structure and tracked changes. This Skill extracts text from Word documents, utilizing pandoc and poppler-utils to ensure the redlining and formatting remain intact during conversion.

What is the best way to generate a new .docx file with precise formatting from scratch?

The best way to generate a new .docx file with precise formatting is by using JavaScript or TypeScript. This Skill utilizes docx-js for programmatic document generation, allowing you to create professional Word documents tailored to your exact specifications.

Does this approach to Word document editing require any specific external libraries?

Yes, this approach to Word document editing requires several external libraries: pandoc, docx, libreoffice, poppler-utils, and defusedxml. These dependencies are utilized to handle document generation, OOXML manipulation, and secure text extraction.

Why use Python and OOXML manipulation instead of standard text editors for document redlining?

Python and OOXML manipulation are used for document redlining because they enable programmatic, detailed tracked changes that standard text editors cannot automate. This method ensures formatting preservation and allows for scalable document review and collaboration.

When do I need to use defusedxml for text extraction from a .docx file?

You need to use defusedxml during text extraction from a .docx file to securely parse the underlying XML structure. It protects against malicious XML payloads when converting documents to Markdown or analyzing OOXML content.