docx

Create and modify DOCX documents with tracked changes and comments.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables automated creation, modification, and analysis of Word documents (.docx) by applying tracked changes, comments, and structural-preserving edits. It reduces manual overhead in professional document workflows and ensures consistent formatting and revision tracking.

Core Features & Use Cases

  • Automated DOCX creation: Generate new Word documents from templates while preserving formatting and styles.
  • Redlining and tracked changes: Apply and validate tracked changes, including insertions, deletions, and comments.
  • XML-based editing and validation: Modify OOXML content safely using the Document/DocxXMLEditor framework and validate against OOXML schemas for reliability.
  • Use Case: A consulting firm auto-generates a project plan in Word, then iterates edits with tracked changes and reviewer comments, preserving formatting and enabling reproducible diffs.

Quick Start

Use the docx skill to automate a simple Word document creation workflow: generate a new .docx, apply a basic tracked change, and save the result to disk.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I apply tracked changes to a DOCX document programmatically?

Automated DOCX modification applies tracked changes, insertions, and deletions using OOXML tooling to ensure structural preservation and reproducible diffs for professional Word workflows.

What is OOXML editing for Word documents?

OOXML editing for Word documents is the process of modifying the underlying XML structure of .docx files. It uses validators and editors to perform deterministic edits while ensuring formatting and schema reliability.

How do I generate Word documents from templates while preserving formatting?

You can generate Word documents from templates while preserving formatting by using automated DOCX creation. This applies template-based generation through Python OOXML tooling to maintain styles and structural integrity.

Does defusedxml work with lxml for DOCX XML validation?

Yes, defusedxml and lxml are used together for DOCX XML validation. They process OOXML content safely, allowing the Document and DocxXMLEditor framework to modify and validate Word documents against schemas reliably.

What are the limitations of automated redlining in Word documents?

Automated redlining relies on deterministic OOXML edits and schema validation, so limitations arise if the template structure is heavily corrupted or if complex Word features fall outside the supported OOXML schema scope.

Can I use Python to add reviewer comments to an existing .docx file?

Yes, you can use Python to add reviewer comments to an existing .docx file. The Skill uses Python OOXML tooling to apply comments and revision tracking for professional document workflows.