What problem does it solve?
Many automation and authoring workflows need reliable programmatic control over Microsoft Word documents but run into fragile OOXML, broken relationships, and inconsistent tracked-change handling; this skill provides robust tools to read, generate, edit, and repair .docx files so documents render correctly across platforms.
Core Features & Use Cases
- Read & analyze: Extract text, handle tracked changes, and inspect raw XML by unpacking .docx files for deterministic edits.
- Create & generate: Produce new .docx programmatically (docx-js guidance) with correct page sizes, styles, lists, tables, images, headers/footers, and TOC support.
- Edit & repair: Unpack → edit XML → repack workflow with helpers to merge runs, simplify redlines, add comments, accept tracked changes, and repair paraId/durableId and content-type issues.
- Validate & pack: Schema validation against OOXML, relationship and content-type checks, auto-repair of common issues, and safe packing into valid .docx/.pptx/.xlsx files.
- Use Case: Automate converting legacy .doc files, programmatically inserting images and tables, or preparing author-reviewed documents with tracked-change audits before PDF conversion.
Quick Start
Use the docx skill to unpack a Word file, apply edits or comments at the XML level, validate the document, and pack it back into a compliant .docx.