What problem does it solve?
Manually creating, editing, and formatting Word .docx files is time-consuming and error-prone, as .docx files are complex ZIP archives containing structured XML that is difficult to modify correctly by hand. This Skill eliminates that hassle by providing automated, validated workflows for all common .docx tasks.
Core Features & Use Cases
- New Document Generation: Create professional, properly formatted .docx files with custom headings, tables, tables of contents, headers, footers, page numbers, and images using the docx-js library, with built-in validation to ensure compatibility with Word and Google Docs.
- Existing Document Editing: Modify existing .docx files by unpacking their XML, making tracked changes, adding comments, inserting or replacing images, and repacking with auto-repair and schema validation to avoid corrupting files.
- Content Extraction & Conversion: Extract text from .docx files (including tracked changes), convert legacy .doc files to .docx format, convert documents to PDF or image sequences, and accept all tracked changes to produce clean final documents.
- Use Case: If you need to update a vendor contract with tracked changes and comments, generate a formatted quarterly report with a table of contents and data tables, or convert 50 legacy .doc files to .docx for archival, this Skill handles all of these tasks reliably.
Quick Start
Use the docx skill to generate a formatted quarterly sales report with a table of contents, headers, page numbers, and a summary data table from the provided sales data, and save it as a .docx file.