docx

Create and edit Microsoft Word .docx documents with JavaScript and pandoc.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the creation, editing, and manipulation of Microsoft Word (.docx) documents, eliminating manual formatting and complex operations.

Core Features & Use Cases

  • Document Generation: Create new .docx files from scratch using JavaScript.
  • Content Editing: Modify existing .docx files, including accepting tracked changes and performing find-and-replace.
  • Format Conversion: Convert documents to and from .docx format, and extract content as Markdown.
  • Use Case: Automatically generate a professional report with a table of contents, specific formatting, and embedded images, all from a script.

Quick Start

Use the docx skill to create a new 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 specific formatting and tables?

Automate Word document generation using the JavaScript docx library to create .docx files with specific formatting, tables, lists, images, hyperlinks, footnotes, and page breaks. Requires Node.js to execute the generation scripts.

Can I edit an existing .docx file to accept tracked changes and perform find-and-replace?

Edit existing .docx files by unpacking the document, modifying the underlying XML structure, and repacking it. This approach supports accepting tracked changes, managing comments, and executing find-and-replace operations programmatically.

What's the best way to convert Markdown to a .docx Word document?

Convert Markdown to .docx Word documents using pandoc, a command-line tool included in the skill's dependencies. Pandoc handles format conversion to and from .docx, allowing seamless extraction and transformation of document content.

Do I need Node.js and Python to create and manipulate Word documents?

Yes, Node.js is required to run the docx JavaScript library for document creation, and Python is needed for helper scripts that assist in manipulating and converting .docx files using pandoc and other command-line utilities.

How does modifying Word document XML work for handling tracked changes?

Modifying Word document XML works by unpacking the .docx file, directly editing the internal XML structure to manage tracked changes and comments, and repacking the archive to produce the updated document.

What are the limitations of using the docx JavaScript library for document editing?

The docx JavaScript library handles formatting, tables, and images but relies on XML unpacking for editing existing documents. Complex operations require Node.js, Python, and command-line tools like pandoc, limiting use to environments supporting these dependencies.