docx

Create, edit, and analyze Word documents with tracked changes.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Dedalus-ERP-PAS/foundation-skills --skill docx-dedalus-erp-pas
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Dedalus-ERP-PAS/foundation-skills/tree/main/skills/docx
Command: npx skills add https://github.com/Dedalus-ERP-PAS/foundation-skills --skill docx-dedalus-erp-pas

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables automated creation, editing, and analysis of Word documents (.docx) while preserving formatting, tracked changes, comments, and other professional features.

Core Features & Use Cases

  • Document creation: Generate new Word documents from templates with consistent formatting.
  • Editing and redlining: Apply tracked changes, insertions, and deletions while preserving authorship metadata.
  • Comments and collaboration: Add and manage comments tied to specific content blocks for review workflows.
  • Use Case: Produce contracts or reports with tracked changes and reviewer comments automatically, then export final versions.

Quick Start

Run the docx skill to generate a new document or apply edits to an existing one using the provided Python APIs and templates.

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 creation while preserving formatting and tracked changes?▼

Automate Word document creation by manipulating WordprocessingML XML to generate new .docx files from templates, preserving formatting and applying tracked changes automatically. This approach handles contract drafting and reporting workflows where formatting and revision history matter.

Can I add comments to specific content blocks in a .docx file programmatically?▼

Yes, you can add and manage comments tied to specific content blocks in a .docx file programmatically by manipulating the OOXML structure. This enables automated review workflows with reviewer comments inserted directly into Word documents.

How does tracked changes work when editing Word documents via OOXML?▼

Tracked changes in OOXML work by manipulating WordprocessingML XML to apply insertions and deletions while preserving authorship metadata. This ensures revision history remains intact when automating document editing tasks like contract redlining.

What's the best way to apply redlining and tracked changes to Word documents in bulk?▼

The best way to apply redlining and tracked changes to Word documents in bulk is using Python OOXML utilities to manipulate WordprocessingML XML directly. This preserves authorship metadata and formatting across multiple .docx files automatically.

Does this approach to Word document automation require XML knowledge?▼

Yes, Word document automation via OOXML manipulation relies on understanding WordprocessingML XML structure, using Python libraries like lxml and defusedxml to manage revisions and generate final documents while preserving formatting and tracked changes.

Why does my .docx formatting break when applying tracked changes programmatically?▼

Formatting breaks when applying tracked changes programmatically if the WordprocessingML XML structure is not properly managed. Using dedicated OOXML utilities ensures formatting, comments, and revision history are preserved during document editing.