docx

Create, edit, and validate DOCX documents with OOXML schema-aware checks.

1|Updated May 5, 2026
One-click install
npx skills add https://github.com/thechrickenrun-cyber/wedding --skill docx-thechrickenrun-cyber
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/thechrickenrun-cyber/wedding/tree/main/.agents/skills/docx
Command: npx skills add https://github.com/thechrickenrun-cyber/wedding --skill docx-thechrickenrun-cyber

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill removes the friction of working with Word documents by helping you create, inspect, edit, and validate DOCX files without manual XML handling.

Core Features & Use Cases

  • Document creation and editing: Build polished Word files with headings, tables, images, hyperlinks, footers, and page layout control.
  • DOCX analysis and round-tripping: Read existing documents, unpack them for inspection, and safely repack them after edits.
  • Tracked changes and comments: Handle redlining workflows, accept changes, add comments, and preserve author-aware revisions.
  • Validation and repair: Check OOXML structure, relationship integrity, content types, whitespace preservation, and common ID constraints.
  • Use case: A team can convert a draft report into a validated, branded Word document while keeping revisions, comments, and formatting intact.

Quick Start

Ask the docx skill to turn my outline into a professional Word document with headings, a table, and tracked changes.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I create a Word document with tables and tracked changes from an outline?

To create a Word document with tables and tracked changes, you can use the docx skill to generate DOCX files with headings, tables, images, and author-aware revisions. It handles document creation and redlining workflows automatically.

What is OOXML validation and how does it repair DOCX files?

OOXML validation checks WordprocessingML structure, relationship integrity, content types, and ID constraints to repair DOCX files. This validation ensures formatting and relationship integrity are preserved during document round-tripping and edits.

Can I unpack and inspect an existing DOCX file without breaking the formatting?

You can unpack and inspect existing DOCX files for round-tripping without breaking formatting. The skill reads documents, validates OOXML structure, and safely repacks them while preserving whitespace, content types, and relationship integrity.

Do I need Python and LibreOffice to validate Office Open XML documents?

Validating Office Open XML documents requires Python-based document tooling, LibreOffice, pandoc, and OOXML schema-aware validation. These dependencies are necessary to preserve formatting, inspect content, and perform file repair workflows.

What is the best way to handle tracked changes and comments in WordprocessingML?

The best way to handle tracked changes and comments in WordprocessingML is using schema-aware validation tools that support author-aware revisions. This approach accepts changes, adds comments, and preserves revision metadata during document round-tripping.

Why does my DOCX file lose formatting after XML round-tripping?

DOCX files lose formatting after XML round-tripping when OOXML structure, whitespace preservation, or relationship integrity is compromised. Proper validation checks content types and ID constraints to prevent formatting loss during document edits.