docx

Automate Word .docx editing, redlining, comments, and OOXML formatting preservation.

Updated Dec 4, 2025
One-click install
npx skills add https://github.com/jr2804/prompts --skill docx-jr2804
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/jr2804/prompts/tree/main/skills/documents/docx
Command: npx skills add https://github.com/jr2804/prompts --skill docx-jr2804

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Word documents are central to professional communication, but managing tracked changes, comments, formatting preservation, and document structure across large files is error-prone and tedious. This Skill automates the end-to-end editing and review workflow for .docx files, reducing manual steps and ensuring consistent OOXML structure.

Core Features & Use Cases

  • Programmatic creation of new Word documents with preserved formatting and tracked changes.
  • Editing existing .docx files with redlining (ins/del) while preserving authorship, plus attaching comments.
  • Managing Word relationships, content types, and metadata to maintain valid OOXML documents in automated workflows.

Quick Start

Use the docx skill to load a sample document, apply a tracked change to the first paragraph, add a comment, and save the updated file.

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?

To automate tracked changes in Word documents, you can programmatically apply insertions and deletions to .docx files while preserving authorship metadata. This Skill automates redlining by manipulating the underlying OOXML structure directly.

What is the best way to add comments to a docx file programmatically?

The best way to add comments to a docx file programmatically is by using an OOXML toolkit to manipulate the document's XML structure. This Skill attaches comments directly to targeted text while maintaining valid Word relationships.

How does OOXML manipulation work for editing Word documents?

OOXML manipulation works for editing Word documents by directly modifying the XML elements that define content, formatting, and relationships. This ensures that programmatic edits, tracked changes, and comments preserve the original document structure.

Can I create new Word documents with tracked changes automatically?

Yes, you can create new Word documents with tracked changes automatically. This Skill supports programmatic creation of .docx files, allowing you to generate content, apply redlining, and attach comments in end-to-end automated workflows.

Does this approach to Word document automation preserve original formatting?

Yes, this approach to Word document automation preserves original formatting. By managing Word relationships, content types, and metadata through direct OOXML manipulation, the document structure and formatting remain valid across edits.

Do I need Python to automate redlining and OOXML document workflows?

Yes, you need Python to automate redlining and OOXML document workflows with this Skill. It relies on Python libraries like defusedxml and uses included scripts to expose an OOXML toolkit for end-to-end document manipulation.