docx

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

Updated Jan 20, 2026
One-click install
npx skills add https://github.com/AndersHsueh/RedNotes-Mate --skill docx-andershsueh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/AndersHsueh/RedNotes-Mate/tree/main/aionui/skills/docx
Command: npx skills add https://github.com/AndersHsueh/RedNotes-Mate --skill docx-andershsueh

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill streamlines working with professional Word documents (.docx) by enabling end-to-end creation, editing, tracking changes, and comment management while preserving formatting and structure.

Core Features & Use Cases

  • Automated document creation with robust styling and structure (headings, lists, tables, images).
  • Safe editing of existing documents with proper redlining (insertions and deletions) and comments for collaborative reviews.
  • Use Case: A technical writer updates a policy document, applies tracked changes, and attaches reviewer comments, retaining formatting and version history.

Quick Start

Load an unpacked .docx workspace and begin a simple tracked-change example: insert new text wrapped in an insertion tag and delete a phrase with a deletion tag, then add a comment.

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 and redlining in Word documents?

Automating tracked changes in Word documents involves wrapping edits in OOXML insertion and deletion tags to preserve formatting and version history. This skill applies redlining and attaches reviewer comments across multiple collaborators programmatically.

Can I create a new Word document with headings, tables, and images programmatically?

Creating Word documents programmatically supports robust styling and structure, including headings, lists, tables, and images. This skill automates document generation through an OOXML manipulation library while ensuring well-formed XML and proper relationships.

How does OOXML manipulation preserve formatting when editing existing .docx files?

OOXML manipulation preserves formatting by validating XML structure and maintaining proper relationships within the document package. This skill relies on Python-based workflow tooling and validation to ensure formatting and structure remain intact during edits.

What's the best way to attach reviewer comments to an existing Word document?

Attaching reviewer comments to Word documents requires adding comment references within the OOXML structure during the editing process. This skill supports comment management for collaborative reviews while retaining formatting and version history.

Do I need Python and lxml to automate .docx workflows?

Automating .docx workflows requires Python along with lxml for XML processing, defusedxml for safe parsing, and Pillow for image handling. These dependencies ensure proper OOXML manipulation, validation, and formatting preservation.

Why does my Word document break after applying automated tracked changes?

Word documents break after automated tracked changes when the OOXML structure contains malformed XML or improper relationships. This skill uses validation tooling to ensure well-formed XML and proper formatting preservation during document editing.