What problem does it solve?
Creating and editing Word documents programmatically is notoriously difficult due to the complex XML-based OOXML format. This Skill eliminates the need to manually manipulate ZIP archives and raw XML by providing high-level JavaScript APIs for document generation and robust Python tooling for editing existing documents with tracked changes, comments, and precise formatting control.
Core Features & Use Cases
- Document Generation: Create new docx files from scratch using the docx JavaScript library with full control over styles, tables, images, headers, footers, and table of contents.
- Document Editing & Analysis: Modify existing Word documents by unpacking the XML, making targeted edits, and repacking—with full support for tracked changes, comments, and smart quote typography.
- Use Case: A legal team needs to redline a contract and add comments. Use this Skill to unpack the document, insert tracked changes with proper attribution, add comment threads, and repack a valid docx file that preserves all formatting.
Quick Start
Use the docx skill to generate a new Word document with a title, body text, and a formatted table, then save it as report.docx.