docx

Manage Word documents with this tool.

29|15|Updated Oct 17, 2025
One-click install
npx skills add https://github.com/NickCrew/claude-cortex --skill docx-nickcrew
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/NickCrew/claude-cortex/tree/main/skills/document-skills/docx
Command: npx skills add https://github.com/NickCrew/claude-cortex --skill docx-nickcrew

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates complex Microsoft Word document editing, including tracked changes, comments, and formatting preservation across collaborations.

Core Features & Use Cases

  • Tracked Changes: Programmatically insertions/deletions with RSIDs.
  • Comment Management: Add and organize comments for reviews.
  • OOXML Handling: Unpack/pack and patch Word documents while preserving structure.

Quick Start

Unpack a document, mark a paragraph with a comment, and re-pack it into a new 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 tracked changes in Word documents programmatically?

Tracked changes in Word documents can be automated by unpacking the DOCX file, programmatically adding insertions and deletions with RSIDs (revision session IDs) to the OOXML, then re-packing the document. This preserves the change history and author attribution needed for collaborative reviews.

Can I extract and manipulate comments from a DOCX file?

Yes. You can unpack a DOCX to access its OOXML structure, add or organize comments programmatically, and re-pack the document while maintaining formatting and comment metadata. This enables automated review workflows for legal, academic, and business contexts.

What's the best way to preserve formatting when editing Word documents programmatically?

Formatting is preserved by working directly with the OOXML structure inside the DOCX file rather than converting to intermediate formats. Unpacking, patching specific XML elements, and re-packing maintains all styling, fonts, and layout intact.

How do I validate Word documents against OOXML standards?

OOXML content can be validated by unpacking the DOCX, inspecting the raw XML structure for compliance with Office Open XML specifications, and identifying structural issues before re-packing. This ensures documents remain compatible and standards-compliant.

Can I generate new Word documents with tracked changes from scratch?

Yes. You can create new DOCX documents, insert content with tracked changes by embedding insertions and deletions directly in the OOXML with RSIDs and author data, then pack the result. This automates document generation workflows requiring change transparency.

Does working with DOCX files require XML parsing knowledge?

Direct OOXML access requires understanding XML structure, but the Skill abstracts common operations like tracked changes and comment management. Basic knowledge of DOCX structure helps, but procedural tasks like packing and unpacking are handled internally.