docx

Create, edit, and analyze Word .docx files with Pandoc and LibreOffice.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Users often need to produce, modify, and analyze Word (.docx) files with precise formatting, tracked changes, and professional layout, which is tedious without specialized tools.

Core Features & Use Cases

  • Reading & Conversion: Extract text with Pandoc or unpack raw XML for deep edits.
  • Document Creation: Generate .docx files using the docx npm library with explicit page size and style control.
  • Advanced Editing: Unpack, edit XML (including tracked changes, comments, tables, images), and repack with validation.
  • Formatting Rules: Enforce correct DXA units for tables, proper heading IDs for TOC, and mandatory xml:space="preserve" for whitespace.
  • Use Case: Quickly create a polished report with a table of contents, custom tables, and embedded images, or automate the cleanup of tracked changes in shared documents.

Quick Start

Use the docx skill to generate a professional report named "Quarterly Report.docx" with a table of contents.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I generate a Word document with a table of contents and custom tables?

You can generate a Word document with a table of contents and custom tables by using the docx npm library to explicitly control page sizes, styles, and proper heading IDs for automated TOC generation.

Can I edit tracked changes and comments in an existing .docx file?

Yes, you can edit tracked changes and comments in a .docx file by unpacking the raw XML, modifying the specific elements, and repacking the document with validation to ensure structural integrity.

What is the best way to convert Word documents to other formats?

The best way to convert Word documents to other formats is by using Pandoc or LibreOffice, which are integrated to extract text and process .docx files for accurate format conversion and analysis.

Why does my table formatting break when creating a Word document programmatically?

Table formatting breaks when creating a Word document programmatically if you do not enforce correct DXA units for table dimensions and apply mandatory xml:space="preserve" attributes for whitespace.

Do I need to install LibreOffice to read and analyze Word documents?

You need LibreOffice or Pandoc installed to read and analyze Word documents effectively, as the skill relies on these dependencies to extract text and unpack raw XML for deep document edits.