What problem does it solve?
This Skill solves the problem of unreliable DOCX editing by providing a repeatable workflow to unpack, modify, validate, and repack Word documents at the XML level—so generated or edited documents remain structurally correct and render properly.
Core Features & Use Cases
- DOCX unpack → inspect → edit: Extracts DOCX ZIP contents into editable XML, with XML pretty-printing and smart-quote entity safety.
- Safe DOCX packing + validation: Rebuilds DOCX from the unpacked directory with optional XSD-style validation and auto-repair of common OOXML issues.
- Tracked changes & comments support: Provides guidance for inserting/accepting tracked changes and adding Word comments via the document XML relationship/content-type wiring.
- Quality guardrails for generated documents: Enforces docx-js constraints (page size, table widths, bullet/numbering rules, page breaks, TOC headings) to reduce broken DOCX outputs.
- Formula + image embedding support (Word-native): Includes instructions for converting LaTeX to OMML and wiring images via relationships and content types.
Quick Start
Use the docx Skill to unpack the attached file 'manuscript.docx' into an editable directory for safe XML-level modifications.