What problem does it solve?
Working with Microsoft Word .docx files programmatically is challenging because they are compressed archives containing complex XML structures, relationships, and media resources. This Skill removes the burden of manual OOXML parsing and inconsistent formatting by providing robust, validated workflows for creating, editing, reviewing, and analyzing professional Word documents.
Core Features & Use Cases
- Document Creation: Generate new Word documents from scratch using JavaScript with professional styling, tables, lists, headers, footers, and page layout control.
- Redlining & Tracked Changes: Safely edit existing documents with tracked insertions and deletions, comments, and structured batching strategies that preserve original authorship and formatting.
- Text Extraction & Analysis: Convert documents to markdown or inspect raw XML to extract text, review comments, analyze formatting, and understand document structure.
- Use Case: A contractor receives a corrections letter from a city building department and uses this Skill to generate a professional response package with tracked revisions, comments, and properly formatted attachments ready for resubmission.
Quick Start
Use the docx skill to create a new Word document with a title, several paragraphs of text, and a bulleted list, then export it as a .docx file.