docx

Automate .docx editing and redlining with tracked changes and comments.

1|Updated Dec 22, 2025
One-click install
npx skills add https://github.com/HanLi0705/lead_agent --skill docx-hanli0705
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/HanLi0705/lead_agent/tree/main/Mini-Agent-main/mini_agent/skills/document-skills/docx
Command: npx skills add https://github.com/HanLi0705/lead_agent --skill docx-hanli0705

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates Word document editing and tracked changes for .docx files, reducing manual revision work and ensuring consistent formatting and review trails.

Core Features & Use Cases

  • Create, modify, and track changes in Word documents while preserving formatting and comments.
  • Apply redlining, insertions, and deletions with proper authorship metadata for professional reviews.
  • Manage comments and change history to streamline collaborative editing on professional documents.

Quick Start

Use the docx skill to create a new Word document, insert a paragraph, and apply a tracked change to demonstrate redlining.

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 editing with tracked changes?

You can automate Word document editing and apply tracked changes by manipulating OOXML directly with Python. This Skill handles insertions, deletions, and redlining while preserving formatting and authorship metadata.

Can I add comments and redlining to a .docx file without external services?

Yes, you can add comments and redlining to a .docx file entirely locally. It uses Python tooling like lxml and defusedxml to manipulate OOXML, ensuring document privacy without relying on external services.

Does this approach preserve formatting and provenance when modifying OOXML?

Yes, modifying OOXML with this Skill preserves formatting and provenance during document creation and modification. It maintains proper authorship metadata for tracked changes and comments throughout the review workflow.

What Python dependencies do I need to manipulate .docx files locally?

You need the Python tooling dependencies defusedxml, lxml, and Pillow to manipulate .docx files locally. These libraries handle XML parsing, processing, and image handling within the OOXML structure.

What is the best way to streamline collaborative editing on professional Word documents?

The best way to streamline collaborative editing is by automating redlining, comments, and change history management. This ensures consistent formatting and professional review trails without manual revision work.

Are there limitations when handling complex Word documents via OOXML manipulation?

While OOXML manipulation handles text, formatting, and tracked changes locally, extremely complex elements like embedded ActiveX objects may not be fully supported. It focuses on standard document review workflows and text modifications.