What problem does it solve?
Many workflows require programmatic creation, inspection, and modification of Microsoft Word documents but fail because .docx files are ZIP archives of XML with fragile relationships, tracked changes, and media handling. This Skill provides a deterministic, scriptable approach to create polished .docx files, extract and reorganize content from existing documents, manage tracked changes and comments, and validate or repair OOXML issues.
Core Features & Use Cases
- Unpack / Pack DOCX: Extract and reassemble the ZIP-based .docx package with pretty-printed XML for safe editing.
- Tracked changes & comments: Add, reply to, accept, or validate tracked changes and comments (defaults to author "Claude" unless specified).
- XML-safe editing: Guidance and tools to edit word/ XML while preserving xml:space, RSIDs, relationships, paraId/durableId constraints, and media references.
- Creation helpers: Recommendations for generating documents with docx-js and rules for page size, styles, tables, images, lists, TOC, headers/footers, and multi-column layouts.
- Validation & Repair: Schema-based validation against ISO/IEC29500 XSDs, content-type and relationship checks, and auto-repair for common ID/whitespace issues.
- Use Case: Convert a heavily redlined contract into a clean, validated final .docx by unpacking, merging/simplifying redlines, reviewing comments, accepting or producing tracked changes, and repacking after validation.
Quick Start
Unpack report.docx to an unpacked/ directory, add or review tracked changes and comments using the provided scripts, then run the pack tool to produce a validated final.docx.