docx

Create and edit Word documents with tracked changes via Python APIs.

2|1|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/costa-marcello/skillkit --skill docx-costa-marcello
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/costa-marcello/skillkit/tree/main/skills/docx
Command: npx skills add https://github.com/costa-marcello/skillkit --skill docx-costa-marcello

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Word documents with tracked changes and comments often require manual, error-prone workflows. Skilldocx provides a structured approach to creating, editing, and analyzing .docx content while preserving formatting and change history.

Core Features & Use Cases

  • Creates, edits, and analyzes Word documents with tracked changes, comments, and OOXML formatting preservation.
  • Provides Python APIs to manage RSID, author, date, and batch redlining workflows, enabling reproducible edits.
  • Supports reading and applying document references for OOXML patterns and validating changes against Word schemas.

Quick Start

Create a base document, apply tracked changes using Document, and save the updated .docx file.

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 redlining and tracked changes with Python?

To automate Word document redlining with Python, use APIs that auto-inject RSID, author, and date into tracked changes while validating edits against OOXML patterns. This approach enables reproducible batch redlining workflows without manual formatting errors.

Can I preserve OOXML formatting when editing .docx files programmatically?

Yes, you can preserve OOXML formatting when editing .docx files programmatically by manipulating the underlying XML structure directly. The Skill validates content changes against Word's OOXML schemas to ensure formatting integrity and document compliance.

What is RSID and why does it matter for tracked changes in Word documents?

RSID is a unique identifier Word uses to track editing sessions. Auto-injecting RSID along with author and date metadata into tracked changes ensures reproducible edits and maintains a reliable change history across legal and corporate document workflows.

Does this approach work with lxml and defusedxml for OOXML validation?

Yes, the approach works with lxml and defusedxml for OOXML validation. These dependencies handle secure XML parsing and schema validation, ensuring that batch document edits and redlining operations comply with Word's structural patterns.

What's the best way to manage batch redlining workflows for legal documents?

The best way to manage batch redlining workflows for legal documents is using structured Python APIs that apply tracked changes across multiple files. This method automatically injects author, date, and RSID metadata while validating OOXML patterns.

When do I need OOXML validation for .docx editing workflows?

You need OOXML validation for .docx editing workflows when preserving formatting and change history is critical. Validating changes against Word's OOXML schemas prevents structural corruption during automated document creation, commenting, and redlining operations.