docx

Create and edit Word documents with tracked changes using docx.js.

869|203|Updated May 7, 2026
One-click install
npx skills add https://github.com/freestylefly/wesight --skill docx-freestylefly
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/freestylefly/wesight/tree/main/SKILLs/docx
Command: npx skills add https://github.com/freestylefly/wesight --skill docx-freestylefly

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Word documents often require repetitive formatting and review cycles. This Skill enables automated DOCX generation, editing, and review with formatting preservation, tracked changes, and inline comments.

Core Features & Use Cases

  • Create new Word documents programmatically using a DOCX library (paragraphs, tables, images, styles).
  • Edit existing documents and apply formatting updates, while managing tracked changes and comments for collaborative workflows.
  • Use cases include drafting reports, proposals, resumes, and templates that can be generated or customized on demand.

Quick Start

Use the DOCX library to compose a simple Word document with a title and a paragraph, and export it as a .docx file.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate Word document generation programmatically?

Automate Word document generation by using a DOCX library to programmatically compose paragraphs, tables, images, and styles, then exporting the result as a .docx file. This enables on-demand drafting of reports, proposals, and resumes.

Can I edit existing DOCX files while preserving formatting?

You can edit existing DOCX files and apply formatting updates while preserving the original layout. The Skill manages content modifications programmatically, ensuring that existing document structures remain intact during updates.

Does this approach support tracked changes and inline comments for collaboration?

Tracked changes and inline comments are supported for collaborative workflows. This allows teams to manage document review cycles programmatically, capturing edits and feedback directly within the generated or updated Word documents.

Do I need a Node environment to generate DOCX files?

A Node or JavaScript environment is required to run the DOCX library (docx.js) for generating documents. You also need the defusedxml and lxml dependencies installed to process the underlying XML structure securely.

What's the best way to create Word templates on demand?

The best way to create Word templates on demand is programmatically through a DOCX library, defining reusable structures for reports and proposals that can be customized and generated dynamically as needed.