docx

Create and edit Word documents with tables, TOC, and headers.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill empowers users to create, edit, and analyze Word documents (.docx files) programmatically, streamlining complex document generation and manipulation tasks.

Core Features & Use Cases

  • Document Creation: Generate professional Word documents with custom formatting, tables, headers, footers, and more using JavaScript.
  • Document Editing: Modify existing .docx files by unpacking, editing XML, and repacking, including accepting tracked changes.
  • Content Analysis: Extract text, work with tracked changes, and add comments using provided scripts.
  • Use Case: Automatically generate a legal contract template with specific clauses, or process a batch of reports by accepting all tracked changes and adding a standard footer.

Quick Start

Use the docx skill to create a new Word document with a title and a paragraph.

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 with complex formatting like tables and headers?

To automate Word document generation, this Skill uses the docx-js library to programmatically create .docx files with custom formatting, tables, headers, footers, and tables of contents using JavaScript.

How do I programmatically accept tracked changes in an existing .docx file?

To accept tracked changes in a .docx file, the Skill unpacks the document, manipulates the underlying XML to process modifications, and repacks the file to finalize the accepted changes.

Do I need pandoc and LibreOffice installed to edit Word documents programmatically?

Yes, you need pandoc, LibreOffice, poppler-utils, and the docx library installed, as these dependencies enable the XML manipulation, format conversion, and content analysis required for editing Word documents.

What's the best way to extract text and add comments to a Word document?

The best way to extract text and add comments is by using the provided scripts to analyze the .docx file structure, extract existing content, and programmatically insert annotations into the document XML.

Can I manipulate Word document XML directly to modify existing files?

Yes, you can directly manipulate Word document XML by unpacking the existing .docx file, editing the raw XML structure to apply modifications, and repacking it into a valid document format.