docx

Generate structured DOCX files with formatted text, headings, and tables.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/dinequickly/agentsGUI --skill docx-dinequickly
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/dinequickly/agentsGUI/tree/main/excel-demo/skills/docx
Command: npx skills add https://github.com/dinequickly/agentsGUI --skill docx-dinequickly

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation and formatting of Word documents using the docx-js library.

Core Features & Use Cases

  • Text formatting: Bold, italic, fonts, colors
  • Paragraphs & structure: Headings, lists, tables
  • Headers/Footers & TOC: Page numbers, table of contents

Quick Start

Create a sample document with a title and a paragraph, then save to output.docx.

Frequently Asked Questions about docx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Word documents programmatically in Node.js?

Generate Word documents programmatically using the docx-js library in Node.js by creating Document and Paragraph objects, applying TextRun formatting, and exporting to DOCX with the Packer API. This automates creation of reports, proposals, and structured files with formatted text, headings, and tables.

Can I add headers, footers, and table of contents to automated DOCX files?

Yes, docx-js supports building sections with headers and footers, including page numbers and table of contents. Structure your document with HeadingLevel paragraphs, apply styling and borders, then export the buffer to a DOCX file with complete formatting preserved.

What's the best way to format text, tables, and multimedia in generated Word documents?

Use TextRun for bold, italic, fonts, and colors; organize content with Paragraph objects and HeadingLevel for structure; embed tables with styling and borders; include multimedia placeholders. The docx-js API handles all formatting details during export to your output DOCX file.

Do I need to install dependencies beyond docx-js to create Word documents?

The docx-js library provides all core APIs—Document, Paragraph, TextRun, Packer, HeadingLevel—required to generate and export DOCX files. No additional dependencies are listed; error handling is built into the export process.

Can I automate report generation with document templates and structured formatting?

Yes, automate reports and templates by building reusable Paragraph and table structures with docx-js, applying consistent text formatting and styling, organizing sections with headings, and exporting formatted buffers to DOCX. Ideal for proposals, structured documents, and batch generation.