docx

Create, edit, and analyze Word documents with tracked changes and comments.

2|1|Updated Oct 11, 2025
One-click install
npx skills add https://github.com/rafaelcalleja/claude-market-place --skill docx-rafaelcalleja
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/rafaelcalleja/claude-market-place/tree/main/plugins/claudekit-skills/skills/document-skills/docx
Command: npx skills add https://github.com/rafaelcalleja/claude-market-place --skill docx-rafaelcalleja

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Complex Microsoft Word document tasks, such as managing tracked changes, comments, or generating reports, are often manual and error-prone. This skill automates these advanced operations, ensuring accuracy and saving time.

Core Features & Use Cases

  • Document Manipulation: Create, modify, and extract content from Word documents programmatically.
  • Tracked Changes: Programmatically add insertions, deletions, and formatting changes for legal or editorial review.
  • Comment Management: Add, reply to, resolve, and extract comments, streamlining collaborative workflows.
  • OOXML Schema Validation: Ensure documents adhere to Open Office XML standards, preventing compatibility issues.
  • Use Case: Automate the legal review process by programmatically adding tracked changes and comments to a contract draft based on a set of predefined rules, then generating a summary of all comments.

Quick Start

Use the docx skill to add a comment to the attached 'contract.docx' at "Section 2.1" saying "Review this clause for clarity."

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 can be added to Word documents using python-docx by inserting revision elements and comment ranges into the OOXML structure. This enables automated legal review, editorial workflows, and collaborative document management without manual intervention.

Can I automate Word document creation with preserved formatting and OOXML compliance?

Yes. You can create, modify, and extract content from .docx files while maintaining Open Office XML schema integrity and formatting. This ensures generated documents remain compatible with Microsoft Word and other standards-compliant applications.

What's the best way to extract text and metadata from Word documents at scale?

Document manipulation via python-docx with lxml parsing enables efficient text extraction, RSID tracking, and author metadata retrieval from .docx files. This supports automated reporting, compliance audits, and content analysis across legal, academic, and business documents.

How do I manage comment resolution and reply workflows in Word documents?

Comment management functionality lets you programmatically add, reply to, and resolve comments within .docx files. This automates collaborative review processes and generates summaries of annotations for streamlined editorial or legal workflows.

Do I need special handling for OOXML structure preservation when editing Word documents?

Yes. Direct OOXML schema validation and structure preservation prevent compatibility issues when applying insertions, deletions, and formatting changes. python-docx with lxml provides integrated tooling to maintain document integrity during automated edits.