docx

Create, edit, and analyze DOCX files by manipulating OOXML.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/brunoreinstein-cloud/chat-assitjur --skill docx-brunoreinstein-cloud
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/brunoreinstein-cloud/chat-assitjur/tree/main/.trae/skills/docx
Command: npx skills add https://github.com/brunoreinstein-cloud/chat-assitjur --skill docx-brunoreinstein-cloud

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill enables seamless creation, editing, and analysis of Word documents (.docx) by directly manipulating the underlying OOXML, eliminating manual Word interactions.

Core Features & Use Cases

  • Create new DOCX files with templated content and structure.
  • Edit existing .docx by unpacking, modifying word/document.xml and related files, and repacking.
  • Analyze document structure and metadata, including validation and whitespace preservation checks.
  • Use case: a legal team generating standardized contracts, redlining changes, or assembling reports from modular templates.

Quick Start

Use this skill to open a DOCX, modify its XML, and re-pack it into a new .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 DOCX creation and editing without opening Word?

You can automate DOCX creation and editing by unpacking the file, directly manipulating the underlying OOXML structure, and repacking it into a new document. This eliminates manual Word interactions for batch updates.

What is the best way to batch update legal contracts stored as Word files?

The best way to batch update Word files is by applying automated templating to the OOXML structure. This allows you to modify multiple legal contracts programmatically, ensuring proper XML handling and optional validation.

How does manipulating OOXML help with document-heavy workflows?

Manipulating OOXML helps document-heavy workflows by enabling automated templating and auditing directly on the XML structure. You can unpack, modify the document.xml, and repack files for standardized client letters and reports.

Does this approach to DOCX editing preserve whitespace and validate the structure?

Yes, this DOCX editing approach includes validation and whitespace preservation checks during the unpack and repack cycles. It ensures proper XML handling using scripts to maintain document integrity.

Do I need to install specific XML libraries to unpack and repack DOCX files?

Yes, you need to install the defusedxml and lxml dependencies to safely parse and manipulate the OOXML structure. These libraries provide the required XML handling for the unpack and repack cycles.