What problem does it solve? Working with Word documents programmatically is error-prone: docx-js has undocumented pitfalls, Word fragments text across XML runs making find-and-replace unreliable, and tracked changes or comments require coordinating multiple cross-linked XML files. This Skill provides tested workflows and scripts that handle these complexities correctly. ## Core Features & Use Cases - Document Creation: Generate new .docx files with the docx npm library, with guidance on page sizes, tables, lists, images, and tables of contents. - Document Editing: Unzip, edit word/document.xml directly, and repack, with merge_runs.py to coalesce fragmented text runs so search-and-replace works. - Tracked Changes & Comments: Add redlined edits with proper w:ins/w:del markup, insert comments via comment.py, and accept all tracked changes with accept_changes.py. - Validation: Verify output with XSD schema validation and render documents to PDF/images for visual inspection. - Use Case: A user needs to redline a contract received as a .docx file. The Skill unpacks the document, merges runs, applies tracked deletions and insertions, validates every change is properly marked, and repacks a clean deliverable. ## Quick Start Use the docx skill to create a professional Word report with a table of contents, headings, and a formatted table, then render it to PDF for review.