docx

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

2|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/Weiwei-Mao/hydrology-skills --skill docx-weiwei-mao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Weiwei-Mao/hydrology-skills/tree/main/hydrology-skills/docx
Command: npx skills add https://github.com/Weiwei-Mao/hydrology-skills --skill docx-weiwei-mao

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 the process of creating, editing, and reviewing Word documents, eliminating manual formatting and complex tracked changes.

Core Features & Use Cases

  • Document Creation: Generate professional .docx files from scratch using JavaScript.
  • Content Editing: Modify existing documents, including complex tracked changes and comments.
  • Review & Redlining: Implement precise edits with tracked changes, ensuring clarity and professionalism.
  • Use Case: A legal professional needs to review a contract, propose changes with tracked revisions, and add specific comments to clauses, all while maintaining the original document's formatting and structure.

Quick Start

Use the docx skill to create a new Word document with a title "Project Proposal" and a heading "Introduction".

Frequently Asked Questions about docx

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

FAQPage Schema
How do I add tracked changes and comments to a Word document for redlining?

To add tracked changes and comments to a Word document for redlining, this Skill modifies OOXML structures directly using Python and JavaScript libraries. It precisely inserts revisions and annotations while fully preserving the original document formatting and structure.

Can I generate a .docx file from scratch using JavaScript?

Yes, you can generate a .docx file from scratch using JavaScript. This Skill manages document creation by leveraging JavaScript libraries for OOXML manipulation, allowing you to programmatically build professional Word documents with specific titles and headings.

Do I need pandoc and libreoffice installed to edit existing .docx files?

Yes, you need pandoc, libreoffice, poppler-utils, and defusedxml installed to edit existing .docx files. These dependencies provide the necessary environment for OOXML manipulation, format conversion, and rendering documents to images for visual analysis.

What is the best way to convert a Word document to images for visual analysis?

The best way to convert a Word document to images for visual analysis is through poppler-utils and libreoffice. This Skill utilizes these dependencies to render .docx files into image formats, enabling detailed visual review of the document's layout and content.

How do I modify content in a .docx file without losing the original formatting?

To modify content in a .docx file without losing the original formatting, the Skill manipulates the underlying OOXML structure directly. This approach ensures that text modifications, tracked changes, and comment insertions maintain the document's professional layout.