What problem does it solve? Working with Microsoft Word documents programmatically is error-prone: text gets fragmented across runs, tracked changes and comments live in raw XML, and naive find-replace corrupts files. This Skill provides tested CLI scripts that handle .docx creation, reading, editing, templating, revision review, and package validation safely. ## Core Features & Use Cases - Document Creation & Templating: Build .docx files from a JSON spec (headings, tables, images, styles, TOC, page numbers) or fill {{token}} placeholders in existing templates from JSON data. - Editing & Review: Find-and-replace with formatting preserved, edit table cells, insert/delete paragraphs, list and accept/reject tracked changes, and add or delete anchored comments. - Inspection & Validation: Extract full text, heading outlines, styles, and embedded images, plus health-check packages for corrupt zips, dangling relationships, and missing styles. - Use Case: A contract template with {{client_name}} and {{date}} tokens needs filling, then the counterparty's tracked changes must be reviewed — fill the tokens with docx_template.py, list revisions with docx_revisions.py, and accept or reject each change by id. ## Quick Start Use the docx skill to create a Word report from a JSON spec and then verify the output with the validation script.