What problem does it solve?
This Skill empowers you to programmatically create, edit, and manipulate Microsoft Word (.docx) documents, automating complex document generation and modification tasks.
Core Features & Use Cases
- Programmatic Document Creation: Generate new .docx files from scratch using JavaScript and the
docx-js library, including complex formatting, tables, lists, and headers/footers.
- Document Editing & Manipulation: Unpack existing .docx files, edit their XML structure, and repack them, enabling find-and-replace, tracked changes, and comment management.
- Conversion & Formatting: Convert between document formats (e.g., .doc to .docx), accept tracked changes, and ensure consistent page sizing and styling.
- Use Case: Automatically generate personalized offer letters for new hires, incorporating their name, role, and salary into a pre-defined template, and then save it as a .docx file.
Quick Start
Create a new Word document with a title "Project Proposal" and a heading "Introduction" using the docx skill.