docx

Create, edit, and analyze .docx files with tracked changes and comments.

80|4|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/zhu1090093659/CodeConductor --skill docx-zhu1090093659
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/zhu1090093659/CodeConductor/tree/main/skills/docx
Command: npx skills add https://github.com/zhu1090093659/CodeConductor --skill docx-zhu1090093659

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandoc, docx, libreoffice, poppler-utils, defusedxml, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of creating, editing, and analyzing Word documents, handling complex formatting, tracked changes, and comments efficiently.

Core Features & Use Cases

  • Document Creation: Generate new .docx files from scratch using programmatic control.
  • Content Editing: Modify existing documents, including text replacement and formatting adjustments.
  • Tracked Changes (Redlining): Implement and manage tracked changes for collaborative document review, essential for legal, academic, and business documents.
  • Comment Management: Add, reply to, and manage comments within documents.
  • Use Case: A legal team needs to review a contract. Use this Skill to apply specific edits with tracked changes, add comments to clauses, and ensure all formatting is preserved according to company standards.

Quick Start

Use the docx skill to create a new document with a title and a heading.

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 generation with Python and preserve formatting?

Automate Word document generation by leveraging Python and the Document library to programmatically create .docx files, modify existing content, and ensure all complex formatting is preserved during structural edits.

What is the best way to programmatically add tracked changes and comments to a .docx file for legal review?

Implement redlining for legal review by programmatically inserting tracked changes and managing comments within a .docx file, ensuring collaborative document edits are visible and preserved according to company standards.

Can I modify raw OOXML structure in an existing Word document?

Yes, you can modify raw OOXML structure in an existing Word document by extracting the underlying XML for complex structural edits, allowing precise manipulation beyond standard text replacement and formatting adjustments.

Do I need LibreOffice and pandoc to manage Word document redlining?

You need dependencies like pandoc, LibreOffice, poppler-utils, and defusedxml alongside Python libraries to handle robust .docx creation, redlining, tracked changes, and complex OOXML manipulation tasks effectively.

Why does my .docx tracked changes formatting break when editing content programmatically?

Tracked changes formatting may break during programmatic editing if complex OOXML structures are not preserved; extracting and manipulating raw XML directly ensures formatting and redlining remain intact during document modifications.