docx

Patch DOCX OOXML for tracked changes, comments, captions, and navigation.

6|1|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/Traveller2001/openai-skills --skill docx-traveller2001
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Traveller2001/openai-skills/tree/main/skills/docx
Command: npx skills add https://github.com/Traveller2001/openai-skills --skill docx-traveller2001

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires lxml, python-docx, Pillow, pdf2image, and includes scripts (resource) components.

What problem does it solve?

This Skill provides a self-contained DOCX editing and QA toolkit that patches OOXML to enable advanced edits, redlining, comments, captions, and navigation inside a container, reducing manual, error-prone editing and QA overhead.

Core Features & Use Cases

  • Robust OOXML patching with deterministic edits across document.xml, header/footer parts, and related relationship/content-type files.
  • Built-in helpers for enabling tracked changes, inserting comments, adding captions, cross-references, and internal navigation links for end-to-end automation.
  • Use cases include template assembly, batch edits in CI pipelines, and headless QA rendering validation for Word documents.

Quick Start

Run the patch tool to modify a DOCX in place and validate results with a headless render.

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

To automate tracked changes and comments in Word documents, this toolkit patches OOXML directly, enabling deterministic insertion of redlining, comments, and captions without manual editing. It modifies document.xml and related parts for safe, automated edits inside a container.

What is OOXML patching for DOCX files?

OOXML patching for DOCX files is the process of directly modifying the internal XML structures like document.xml, relationships, and content types. This approach enables advanced structural edits, cross-references, and navigation links that standard APIs often cannot perform.

Can I use python-docx and lxml for batch editing in CI pipelines?

Yes, you can use python-docx and lxml for batch editing in CI pipelines. This Skill provides headless, script-based OOXML patching designed for template assembly and automated batch edits across multiple Word documents deterministically.

Does this approach support headless QA rendering for Word files?

Yes, this approach supports headless QA rendering for Word files. It includes dependencies like pdf2image and Pillow to validate automated DOCX edits, ensuring structural integrity and correct rendering after batch patching operations.

What are the limitations of using python-docx for advanced Word document edits?

The limitations of using python-docx for advanced Word document edits include difficulty handling complex tracked changes, internal navigation, and cross-references. This Skill overcomes these constraints by using lxml to directly patch the underlying OOXML structures with explicit overrides.