docx

Generate, parse, and edit .docx files with JavaScript and Python tooling.

Updated Jan 19, 2026
One-click install
npx skills add https://github.com/iredrion-img/kh-rnd-wms --skill docx-iredrion-img
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/iredrion-img/kh-rnd-wms/tree/main/.agents/skills/docx
Command: npx skills add https://github.com/iredrion-img/kh-rnd-wms --skill docx-iredrion-img

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Docx enables end-to-end Word document generation, reading, editing, and formatting, helping teams automate professional .docx outputs without manual crafting.

Core Features & Use Cases

  • Generate Word documents with rich formatting (headers/footers, tables, images, and TOC)
  • Read/parse existing .docx files for extraction, reorganization, or analysis
  • Edit documents programmatically, including tracked changes and comments, image insertion, and content replacement
  • Validate and assemble documents via scripted workflows to ensure delivery-ready outputs

Quick Start

Install the docx package and run a simple script to generate a sample .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 document generation with rich formatting?

You can automate Word document generation by running scripts that utilize the docx library to create .docx files, applying rich formatting like headers, footers, tables, images, and tables of contents programmatically.

Can I read and extract content from existing .docx files?

Yes, you can read and parse existing .docx files to extract content. The tooling allows you to reorganize or analyze document contents programmatically for automated document workflows.

Does this approach support managing tracked changes in Word documents?

Yes, managing tracked changes is supported. You can edit documents programmatically to add tracked changes and comments, making it suitable for collaborative team workflows across documents.

Do I need Python tooling to validate generated .docx files?

Yes, you need Python tooling. The repository uses defusedxml and lxml dependencies to perform validation and integrity checks on the generated .docx files, ensuring delivery-ready outputs.

What is the best way to insert images and tables of contents into Word docs?

The best way to insert images and tables of contents is by using scripted workflows with the docx library, which programmatically assembles and formats these elements within your Word documents.