docx

Create and edit .docx Word documents using the docx library in Node.js.

Updated Jan 13, 2026
One-click install
npx skills add https://github.com/danielctc/ReactSpacesMonoRepo --skill docx-danielctc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/danielctc/ReactSpacesMonoRepo/tree/main/.claude/skills/document-skills/docx
Command: npx skills add https://github.com/danielctc/ReactSpacesMonoRepo --skill docx-danielctc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docx, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the creation, editing, and analysis of Word documents (.docx) using the docx library in Node.js, enabling automated document workflows and repeatable formatting.

Core Features & Use Cases

  • Create rich Word documents with text, styles, lists, tables, images, and comments using code.
  • Programmatically modify existing documents, update content, and adjust layout and styling.
  • Use Case: generate standardized reports by composing sections, tables, and headers, then export as .docx for distribution.

Quick Start

Create a new Word document named "ProjectPlan" with a title, a short introductory paragraph, and a 3-item bullet list.

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 with Node.js?

You can generate Word documents in Node.js by using the docx library to create .docx files with text, styles, lists, tables, and images. This enables automated document workflows through programmatic script execution.

Can I add tables and images to a docx file programmatically?

Yes, the docx library in Node.js supports adding tables and images to .docx files programmatically. You can compose rich Word documents with styled text, lists, tables, and images for standardized reporting.

What is the best way to automate standardized report generation in Word?

Automating standardized report generation in Word is best achieved using the Node.js docx library to compose sections, tables, and headers programmatically. This exports consistent .docx files for distribution without manual formatting.

Do I need a specific runtime to use Node.js for Word document formatting?

Yes, a Node.js runtime is required to execute scripts for Word document formatting. You must install the docx package and its dependencies using npm before running the script to produce a .docx file.

How do I modify existing Word documents with code?

You can modify existing Word documents with code using the docx library in Node.js. This allows you to programmatically update content, edit text, and adjust layout and styling within .docx files for automated document workflows.

Does the docx library support document templating for repeatable formatting?

Yes, the docx library supports document templating for repeatable formatting in Node.js. You can create templates with standardized headers, lists, and tables to ensure consistent document generation across multiple projects.