docx

Create and edit .docx documents with tracked changes and comments.

1|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/Codcyber101/Doc-Consult-Agent --skill docx-codcyber101
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Codcyber101/Doc-Consult-Agent/tree/main/skills/docx
Command: npx skills add https://github.com/Codcyber101/Doc-Consult-Agent --skill docx-codcyber101

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines complex Word document workflows by enabling automated creation, precise editing with tracked changes, and clean preservation of formatting and metadata.

Core Features & Use Cases

  • Create new .docx documents with consistent styling and structure.
  • Edit existing documents while preserving formatting, inserting tracked changes, and adding comments.
  • Perform redlining checks and manage comments to support contract reviews and policy drafting.

Quick Start

Load an unpacked Word document and initiate a Docx automation flow to apply a tracked change and add a comment. For example, load the document at "unpacked/word/document.xml", apply an insertion, and attach a comment using the Document class.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate redlining and insert tracked changes in a Word document?

To automate redlining in a Word document, you can use this Skill to load an unpacked .docx XML structure, apply insertions or deletions as tracked changes, and attach comments. It preserves formatting while enabling precise programmatic edits.

Can I programmatically create a .docx file with consistent styling and metadata?

Yes, you can programmatically create a .docx file with consistent styling and metadata. This Skill allows you to generate new Word documents with defined structures, formatting, and optional image embedding or comments depending on your document structure.

Does Python OOXML tooling support contract drafting and document review workflows?

Python OOXML tooling supports contract drafting and document review workflows by providing scripts for precise redlining, metadata management, and comment insertion. It requires the included Python-based DocxXMLEditor tooling and supporting OOXML validation scripts.

How do I edit an existing Word document while preserving its original formatting?

To edit an existing Word document while preserving formatting, load the unpacked document XML and use the Document class to apply changes. This Skill ensures original formatting and metadata remain intact while inserting tracked changes or comments.

What is the best way to run OOXML validation scripts on edited Word files?

The best way to run OOXML validation scripts on edited Word files is through the included supporting validation scripts in this Skill. They validate the unpacked OOXML XML structure after you apply tracked changes or comments to ensure document integrity.

What are the limitations of using OOXML manipulation for document automation?

Limitations of OOXML manipulation for document automation include structural dependencies where optional features like image embedding and comments depend on the document's existing structure, requiring careful XML handling and validation to avoid corrupting the .docx file.