docx

Automate Word .docx creation, editing, parsing with OOXML and JavaScript libraries.

Updated Dec 26, 2025
One-click install
npx skills add https://github.com/jsolarz/doc-toolkit --skill docx-jsolarz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/jsolarz/doc-toolkit/tree/main/.skills/docx
Command: npx skills add https://github.com/jsolarz/doc-toolkit --skill docx-jsolarz

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Word .docx files are complex ZIP archives containing XML, making manual creation and precise editing extremely difficult. This Skill eliminates that complexity by providing automated workflows for document generation, tracked changes, comments, and format conversion.

Core Features & Use Cases

  • Document Creation: Generate professional Word documents from scratch using the docx-js library with proper styles, tables, lists, and headers/footers.
  • Tracked Changes & Comments: Apply redlining workflows to review and revise documents with precise XML-level tracked changes and comment threads.
  • Text Extraction & Analysis: Convert documents to markdown or images for content analysis and visual inspection.
  • Use Case: A legal team can apply systematic tracked changes to a contract, or a technical writer can generate a formatted engineering specification from structured data.

Quick Start

Use the docx skill to create a new Word document from the project requirements and save it as 'spec.docx'.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate Word .docx creation and editing without manually editing XML?

Automating .docx creation and editing uses OOXML manipulation and JavaScript libraries to generate Word documents with styles, tables, and lists without manual XML editing. This eliminates the complexity of directly handling ZIP archives containing XML.

Can I apply tracked changes and comments to a Word document programmatically?

Applying tracked changes and comments to a .docx file programmatically is supported through precise XML-level redlining workflows. This enables systematic document review and revision for legal and technical documentation.

What prerequisites do I need to generate and parse Office Open XML files?

Generating and parsing Office Open XML files requires pandoc, LibreOffice, Poppler, defusedxml, and the docx npm package. These dependencies validate and generate compliant .docx files.

What is the best way to extract text and convert Word documents for content analysis?

The best way to extract text and convert Word documents for content analysis is converting them to markdown or images. This enables visual inspection and structured content extraction from the .docx file.

Does this document automation approach work for legal contract redlining workflows?

Document automation supports legal contract redlining workflows by applying systematic tracked changes at the XML level. Legal teams can review and revise contracts with precise comment threads and professional formatting.