docx

Create, read, and edit Word documents via XML manipulation.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill solves the difficulty of programmatically creating, reading, and editing complex Word documents, including handling tracked changes and XML-level modifications that standard libraries often fail to manage.

Core Features & Use Cases

  • Document Manipulation: Create reports, memos, and letters from scratch or edit existing .docx files by manipulating underlying XML.
  • Advanced Editing: Perform find-and-replace, insert images, manage tracked changes (redlining), and add comments to documents.
  • Use Case: Use this skill to automate the generation of a contract template, then programmatically add comments and track changes for a legal review process.

Quick Start

Use the docx skill to read the content of the provided contract.docx file and extract all text into a 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 insert tracked changes and comments into a Word document for redlining?

You can programmatically insert tracked changes and comments into a Word document by manipulating the underlying XML structure. This skill supports advanced redlining and comment insertion through both high-level APIs and low-level XML manipulation for professional legal reviews.

What is the best way to automate reading and extracting text from docx files into markdown?

The best way to extract text from docx files into markdown is using pandoc for format conversion. This skill leverages pandoc and libreoffice to read .docx content, validate documents, and render them into markdown or other formats.

Can I edit existing Word documents by modifying their underlying XML directly?

Yes, you can edit existing Word documents by modifying their underlying XML directly. This skill provides low-level XML manipulation using libraries like defusedxml and lxml, allowing you to bypass standard library limitations for complex document tasks.

Do I need libreoffice and pandoc installed to programmatically generate and render Word documents?

Yes, you need libreoffice and pandoc installed to handle document rendering, validation, and format conversion. These dependencies are required alongside node-docx to execute complex document generation and manipulation tasks effectively.

Why does standard node-docx fail to handle complex document modifications like template generation?

Standard node-docx often fails to handle complex document modifications because it lacks low-level XML access. This skill overcomes this by combining high-level APIs with direct XML manipulation, enabling advanced tasks like find-and-replace, image insertion, and template generation.

Are there limitations when using high-level APIs for advanced Word document editing tasks?

High-level APIs have limitations with advanced Word document editing tasks like precise tracked changes or complex XML modifications. This skill addresses these constraints by allowing direct low-level XML manipulation using lxml, bypassing standard library failures.