Word Document Creator
Installation
SKILL.md
Word Document Creator
The Word Document Creator skill provides comprehensive capabilities for generating Microsoft Word (.docx) documents programmatically. It handles formatting, styles, tables, images, headers, footers, and complex layouts using the docx library for Node.js. This skill is essential for automated document generation, report creation, and template-based workflows.
Create everything from simple letters to complex reports with tables, charts, images, and custom styling. The skill supports both creation from scratch and template-based generation with variable replacement.
Core Workflows
Workflow 1: Create Formatted Document from Scratch
Purpose: Build a Word document with headings, paragraphs, lists, and formatting
Steps:
- Import
docxlibrary and create Document instance - Define styles for headings, body text, lists
- Add sections with headers and footers
- Create paragraphs with formatting (bold, italic, color, alignment)
- Add numbered and bulleted lists
- Insert tables with formatting
- Export to .docx file