docx

Create and edit DOCX files with tracked changes and comments.

1|Updated Nov 23, 2025
One-click install
npx skills add https://github.com/zmre/nix-pai --skill docx-zmre
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/zmre/nix-pai/tree/main/claude/skills/document-skills/docx
Command: npx skills add https://github.com/zmre/nix-pai --skill docx-zmre

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-docx, defusedxml, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Manually editing complex Word documents, especially those requiring tracked changes, comments, or specific formatting, is tedious and error-prone. This skill automates these intricate tasks, ensuring accuracy and consistency, and significantly reducing manual effort.

Core Features & Use Cases

  • Automated Document Creation: Generate new Word documents from scratch or templates, saving time on boilerplate.
  • Advanced Editing: Programmatically modify content, apply formatting, and manage layouts with precision.
  • Collaboration Tools: Add, reply to, and resolve comments, and implement tracked changes (redlining) for streamlined collaborative workflows.
  • Use Case: A legal team needs to review and redline a contract. Use this skill to automatically insert specific clauses, add comments for review, and track all changes, streamlining the legal review process.

Quick Start

In the attached document 'contract_draft.docx', find the paragraph starting with "Section 3.1" and add a comment that says "Please verify this date with the legal team."

Frequently Asked Questions about docx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add tracked changes and comments to a Word document programmatically?

Tracked changes and comments in Word documents (.docx) can be added programmatically using python-docx and OOXML libraries. This automates redlining workflows, allowing you to insert revision marks, attach comments for review, and maintain a complete change history without manual editing.

Can I generate Word documents with preserved formatting from a template?

Yes. You can create new .docx files from scratch or modify existing templates programmatically, applying formatting, layouts, and content with precision. This eliminates manual boilerplate work and ensures consistency across document generation.

What's the best way to automate legal document redlining workflows?

Automate redlining by programmatically inserting specific clauses, adding timestamped comments for team review, and tracking all changes within the .docx format. This streamlines collaborative legal review, reducing manual annotation and version control overhead.

Does this work with complex Word documents that have multiple tracked changes and media?

Yes. The Skill handles OOXML artifacts including text, formatting, tracked changes, comments, relationships, and embedded media. It validates XML structure against OOXML schemas and supports extraction and analysis of complex multi-layer documents.

How do I extract and validate text content from .docx files?

Extract text from Word documents using pandoc integration and OOXML parsing. The Skill supports content extraction, XML validation against schema standards, and text analysis while preserving document structure and metadata.

What are the limitations when working with tracked changes across different tools?

Tracked changes remain valid across tools when following OOXML standards, but complex nested revisions or tool-specific extensions may not transfer perfectly. Test change history preservation when integrating with external document management systems.