docx

Automate Word document creation, editing, and analysis with Python OOXML tooling.

Updated Apr 11, 2026
One-click install
npx skills add https://github.com/Prathviraj-jadhav/nexgen-elit-website --skill docx-prathviraj-jadhav
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Prathviraj-jadhav/nexgen-elit-website/tree/main/.agent/skills/docx
Command: npx skills add https://github.com/Prathviraj-jadhav/nexgen-elit-website --skill docx-prathviraj-jadhav

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Word document workflows are error-prone and manual when creating, editing, or analyzing .docx files; this skill provides programmatic tooling to automate those tasks.

Core Features & Use Cases

  • Create new Word documents with consistent styling, layout, and structure (covers, TOC, and templates).
  • Edit existing documents with tracked changes and comments, including redlining and author attribution.
  • Analyze content and manipulate structure programmatically, including content extraction and TOC generation.

Quick Start

Create a new Word document template and begin applying edits and comments with the provided scripts.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I programmatically create a Word document with a table of contents and consistent styling?

Python OOXML tooling automates Word document creation by generating consistent styling, covers, and programmatic TOC management. It supports template-based document generation to ensure layout consistency across workflows.

How do I apply tracked changes and comments to an existing .docx file?

Apply tracked changes and comments to a .docx file by injecting RSID and author metadata using Python OOXML utilities. This enables redlining and author attribution for document editing workflows.

Can I extract content and manipulate the structure of a .docx file without opening Word?

Yes, you can analyze content and manipulate document structure programmatically without opening Word. Python OOXML tooling supports content extraction and structural manipulation across .docx workflows.

Do I need defusedxml to handle OOXML document editing safely?

Yes, defusedxml is required as a dependency to safely handle OOXML document editing. It provides secure XML parsing when manipulating Word document structures and applying tracked changes.

What's the best way to automate frontmatter metadata handling in Word documents?

Automate frontmatter metadata handling in Word documents using Python OOXML scripts. This approach supports programmatic metadata injection, document generation, and template-based workflows.

Why does my programmatic Word document editing lose author attribution for tracked changes?

Tracked changes lose author attribution without proper RSID and author injection. Python OOXML tooling handles this by injecting the required metadata into the document XML during redlining.