docx

Create, read, and edit Word .docx files via XML manipulation and external tools requiring node.js, npm, pandoc, and libreoffice for validation.

Updated Jun 17, 2026
One-click install
npx skills add https://github.com/cxnaive/hermes-agent-llbot --skill docx-cxnaive
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/cxnaive/hermes-agent-llbot/tree/main/skills/productivity/docx
Command: npx skills add https://github.com/cxnaive/hermes-agent-llbot --skill docx-cxnaive

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill solves the difficulty of programmatically creating, editing, and validating complex Word documents, which are often fragile ZIP archives of XML files.

Core Features & Use Cases

  • Document Manipulation: Create reports, memos, and letters from scratch or edit existing .docx files using surgical XML modification.
  • Advanced Formatting: Handle tracked changes, comments, tables, and complex layouts like TOCs and redlining.
  • Use Case: Use this skill to automatically generate a contract template, insert specific client data, and add internal review comments before finalizing the document.

Quick Start

Use the docx skill to create a new report document named project_summary.docx with the provided content.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate Word document generation and edit existing .docx files programmatically?

Automate Word document generation by manipulating underlying XML structures to create or edit .docx files. This skill uses surgical XML modification to handle complex document tasks like generating reports, memos, and letters from scratch or inserting specific data into existing files.

Can I add tracked changes, redlining, and comments to a .docx file using automation?

Yes, you can add tracked changes, redlining, and comments to a .docx file through automation. The skill supports advanced formatting features including comment insertion, tables, and complex layouts like TOCs by directly modifying the document's XML structure.

What dependencies do I need to install for .docx document lifecycle management and validation?

You need node.js, npm, pandoc, and libreoffice installed for full .docx document lifecycle management and validation. Additional dependencies include poppler-utils, defusedxml, and lxml to support rendering and secure XML processing tasks.

What is the best way to programmatically validate complex Word documents without corrupting the file?

The best way to validate complex Word documents is by leveraging external rendering tools like pandoc and libreoffice. Because .docx files are fragile ZIP archives of XML, this skill uses surgical XML modification and validation tools to prevent file corruption.

Does this approach work for generating contract templates and inserting client data automatically?

Yes, this approach works for generating contract templates and inserting client data automatically. You can create a contract template, insert specific client data, and add internal review comments before finalizing the document, all through precise XML manipulation.

Why does editing a .docx file programmatically often break the document structure?

Editing a .docx file programmatically can break the document structure because Word documents are fragile ZIP archives containing interconnected XML files. This skill avoids structural corruption by using surgical XML modification and external rendering tools for safe manipulation.