What problem does it solve?
This skill eliminates the tedious manual work of creating, formatting, and editing Word documents by providing programmatic control over .docx files, allowing you to generate professional reports, memos, and letters with precise formatting, tracked changes, and embedded media without fighting with the Word UI.
Core Features & Use Cases
- Document Generation: Create new .docx files from scratch with custom styles, tables of contents, headers, footers, and multi-column layouts using JavaScript and the docx library.
- Content Editing & Track Changes: Unpack existing documents, edit raw XML to make precise modifications, and manage tracked changes and comments with proper attribution.
- Media & Formatting: Insert and replace images, apply consistent table formatting with DXA units, and convert between .doc and .docx or PDF formats using LibreOffice and Pandoc.
- Use Case: Imagine you need to generate 50 personalized offer letters with company letterheads, tables, and embedded logos. Use this skill to programmatically create each document with consistent formatting and page numbers in seconds.
Quick Start
Use the docx skill to create a new Word document named 'quarterly-report.docx' with a title, table of contents, and three sections of formatted text, then save it to your desktop.