docx

Create, edit, validate, and analyze Word documents while preserving OOXML structure.

3|Updated Apr 18, 2026
One-click install
npx skills add https://github.com/garochee33/DSH --skill docx-garochee33
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/garochee33/DSH/tree/main/kb/claude/skills/docx
Command: npx skills add https://github.com/garochee33/DSH --skill docx-garochee33

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 making it easy to read, edit, validate, and generate professional .docx files without manual XML handling.

Core Features & Use Cases

  • Document creation: Build new Word documents with headings, tables, images, footers, hyperlinks, and page layout control.
  • Document editing and recovery: Unpack existing .docx files, edit the XML safely, repack them, and accept tracked changes when needed.
  • Validation and quality checks: Detect broken relationships, invalid IDs, whitespace issues, comment marker problems, and schema violations before shipping a document.
  • Use Case: Turn a rough report, memo, or letter into a polished, validated Word file with clean formatting and tracked-change support.

Quick Start

Ask for a polished Word document version of your content and specify the desired headings, tables, page numbers, and file-ready formatting.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I generate Word documents with tables, images, and tracked changes?

Word document generation with tables, images, and tracked changes is handled by unpacking OOXML structure, editing XML safely, and repacking to preserve formatting integrity. It supports report generation, memo drafting, and letter production with page layout control.

Can I edit existing .docx files without breaking their XML formatting?

Editing existing .docx files safely requires unpacking the OOXML structure, modifying the XML directly, and repacking it. This process preserves formatting integrity and allows for tracked-change acceptance during document editing and recovery workflows.

How do I validate OOXML structure and check for broken relationships in Word documents?

Validating OOXML structure involves checking for broken relationships, invalid IDs, whitespace issues, comment marker problems, and schema violations. This quality check ensures reliable Word output before shipping a finalized document.

Does this approach to document editing require lxml and defusedxml dependencies?

Yes, reliable Word document creation and editing using this approach requires the lxml and defusedxml dependencies to safely parse, validate, and manipulate the underlying OOXML structure during repacking.

What is the best way to accept tracked changes in a Word document programmatically?

The best way to accept tracked changes programmatically is by unpacking the .docx file, manipulating the OOXML structure to resolve change markers, and repacking the document while validating schema and relationship integrity.