docx

Create and modify Word documents with formatting and tracked changes.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires defusedxml, lxml, and includes scripts (resource) components.

What problem does it solve?

This skill eliminates the back-and-forth of editing Word files by combining guidance for creation, tracked-change editing, conversion, and validation so the agent can produce polished .docx deliverables without manual XML surgery.

Core Features & Use Cases

  • Guided Document Creation: docx-js templates, explicit page-size settings, list/table rules, hyperlink/TOC instructions, and imagery best practices keep new Word files consistent and compliant with brand standards.
  • Structured Editing Workflow: unpack → edit → pack with scripts like unpack.py/pack.py, merge runs, simplify redlines, and accept or inject tracked changes while preserving smart quotes and style metadata.
  • Conversion & Validation: LibreOffice macros accept changes, validation suites (DOCX schema, redlining) and Pandoc commands cover reading content, converting legacy docs, exporting to PDFs or images, and ensuring OOXML integrity for high-stakes reports.

Quick Start

Tell the agent to use the docx skill to build a formatted Word report with headings, tables, and tracked changes as needed.

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 creation with precise formatting and tables?

Automate Word document creation by using docx-js templates with explicit page-size settings, list rules, and structured table instructions to generate consistent, brand-compliant .docx files instantly.

How do I edit tracked changes in a Word document without breaking the XML?

Edit tracked changes using a structured unpack, edit, and pack workflow that simplifies redlines and merges runs while preserving smart quotes and style metadata inside the OOXML structure.

What is the best way to convert legacy .doc files to modern .docx format?

Convert legacy .doc files by running LibreOffice conversion macros and Pandoc commands to extract content, validate OOXML integrity, and export modern .docx or PDF outputs reliably.

Does LibreOffice work with pandoc for Word document conversion and validation?

LibreOffice works with pandoc to accept tracked changes, read content, convert legacy docs, and export PDFs, while validation suites ensure OOXML integrity for high-stakes reports.

Why does my Word document formatting break when inserting structured images?

Formatting breaks when raw XML editing disrupts style metadata, but using docx-js construction with imagery best practices and an XML-aware unpack and pack pipeline ensures validated output.

Do I need lxml to unpack and pack Word documents for tracked change editing?

You need lxml and defusedxml dependencies to execute the unpack and pack scripts required for securely parsing and modifying OOXML structures during tracked change editing.