What problem does it solve? Working with Word documents programmatically is error-prone: .docx files are ZIP archives of XML with strict schema rules, and naive generation produces corrupt files, broken tables, or lost tracked changes. This Skill provides tested workflows for creating new documents, editing existing ones at the XML level, and validating output against OOXML schemas. ## Core Features & Use Cases - New Document Generation: Build .docx files with docx-js including styles, tables, images, TOC, headers/footers, footnotes, hyperlinks, and multi-column layouts, with explicit page sizing and validation. - Surgical Editing of Existing Files: Unpack a .docx, edit the XML directly for tracked changes, comments (with replies), image insertion, and find-and-replace, then repack with auto-repair validation. - Content Extraction & Conversion: Extract text with pandoc (including tracked changes), convert legacy .doc to .docx, render to PDF/images via LibreOffice, and accept all tracked changes programmatically. - Use Case: A user asks for a redlined contract revision. The Skill unpacks the .docx, inserts tracked deletions and insertions with proper <w:ins>/<w:del> markup, adds reviewer comments, validates against the XSD schema, and repacks a clean file. ## Quick Start Use the docx skill to create a professional Word report with a table of contents, styled headings, and a summary table, saved as report.docx.