docx

Create, edit, and repair Microsoft Word .docx files via XML workflows.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandoc, libreoffice, python, npm, docx-js, pdftoppm, soffice, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill eliminates the painful, error-prone process of creating, editing, or repairing Microsoft Word (.docx) documents—especially when you need precise formatting, tracked changes, comments, tables, and reliable conversions.

Core Features & Use Cases

  • Create and validate .docx documents using docx-js (generate DOCX as a ZIP of XML).
  • Read and edit existing .docx files by unpacking the ZIP, editing WordprocessingML XML, then repacking.
  • Work with tracked changes and comments (accept changes, add comment ranges, preserve formatting).
  • Convert and export (e.g., convert DOCX to PDF/images, extract content with pandoc).

Quick Start

Use the docx skill to create a professional .docx report with a table of contents, headings, and page numbers from your provided outline.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I programmatically generate Word documents with a table of contents and tracked changes?

You can generate Word documents with a table of contents and tracked changes by using docx-js for creation and unpacking the ZIP/XML structure to apply schema-aware edits, ensuring reliable Office rendering.

What is the best way to edit WordprocessingML XML directly inside an existing .docx file?

The best way to edit WordprocessingML XML is to unpack the .docx ZIP archive, modify the XML while respecting schema constraints to maintain relationships and content-type integrity, then repack the file.

Can I convert DOCX files to PDF or images using pandoc and libreoffice?

Yes, you can convert DOCX files to PDF or images by leveraging pandoc for content extraction and libreoffice for rendering derived formats, validating the structure before conversion to prevent rendering errors.

Why does my .docx file break after adding comment ranges or modifying tracked changes?

Your .docx file breaks after adding comment ranges or modifying tracked changes because of broken relationships or content-type integrity, which requires validation-focused unpack and pack workflows to repair.

Do I need python and npm installed to create and validate Microsoft Word documents?

Yes, you need python and npm installed to create and validate Microsoft Word documents, because the workflow relies on docx-js for generation and python scripts for unpacking and editing the XML structure.