docx

Edit Word documents with tracked changes and comments using Python OOXML.

Updated Jan 15, 2026
One-click install
npx skills add https://github.com/Kin3Xc/promoly --skill docx-kin3xc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Kin3Xc/promoly/tree/main/skills/docx
Command: npx skills add https://github.com/Kin3Xc/promoly --skill docx-kin3xc

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the complex workflow of creating and editing Word documents (.docx) while preserving formatting, tracking changes, and managing comments for collaborative reviews.

Core Features & Use Cases

  • Tracked changes & comments: Add, review, and manage insertions/deletions with proper redlining and inline comments.
  • Document creation & editing: Create new .docx files and apply edits while maintaining layout and styles.
  • Text extraction: Extract plain text from Word documents for analysis or indexing.

Quick Start

Use the docx skill to apply a tracked change to a sample document named 'proposal.docx' and export the updated file 'proposal-updated.docx'.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate tracked changes in Word documents?

You can automate tracked changes in Word documents by using internal Python OOXML tooling to apply insertions and deletions while preserving WordprocessingML structures. This ensures proper redlining is maintained across business and legal workflows.

Can I extract plain text from a .docx file for analysis?

Yes, you can extract plain text from a .docx file for analysis or indexing. The Skill safely parses WordprocessingML structures using the defusedxml library to read document content without altering the original layout.

How do I add inline comments to a Word document programmatically?

You can add inline comments to a Word document programmatically by modifying its OOXML structure. The automation scripts manage comment insertion directly within the WordprocessingML markup to support collaborative review processes.

Does this approach preserve Word document formatting when applying edits?

Yes, applying edits through internal Python OOXML tooling preserves Word document formatting. It modifies the underlying WordprocessingML markup directly, ensuring that existing styles and layout remain intact while tracking changes.

Do I need defusedxml to safely parse WordprocessingML structures?

Yes, you need the defusedxml library to safely parse WordprocessingML structures. It provides secure XML parsing capabilities that protect against malicious content when automating document creation and editing workflows.

What is the best way to create a new .docx file with redlining?

The best way to create a new .docx file with redlining is to use Python OOXML tooling that generates WordprocessingML structures from scratch. This allows you to apply tracked edits and comments immediately during document creation.