docx

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

9|Updated Dec 27, 2025
One-click install
npx skills add https://github.com/AbdullahMalik17/My_skills --skill docx-abdullahmalik17
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/AbdullahMalik17/My_skills/tree/main/.claude/skills/docx
Command: npx skills add https://github.com/AbdullahMalik17/My_skills --skill docx-abdullahmalik17

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables Claude to create, edit, and analyze Word documents (.docx) with tracked changes and comments. It supports workflows from drafting new documents to redlining, formatting preservation, and text extraction across business, legal, and content tasks.

Core Features & Use Cases

  • Document creation and editing: programmatically create and modify Word documents while preserving formatting.
  • Tracked changes and comments: supports insertion/deletion marking with author metadata, redlining review workflows and inline comments.
  • Use Case: Imagine a legal draft requiring multiple reviews with tracked changes and comments; this skill automates that lifecycle from draft to final version.

Quick Start

Load an unpacked Word document with the Document class (docx/scripts/document.py). Create a tracked change, add a comment, then save and validate using the included validators (DOCXSchemaValidator and RedliningValidator).

Frequently Asked Questions about docx

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

FAQPage Schema
How do I create and edit Word documents programmatically with tracked changes?

Tracked changes in Word documents let you mark insertions and deletions with author metadata. Load a .docx file using the Document class, create tracked changes through the API, add comments for review, then save to preserve all markup for redlining workflows.

Can I extract text and preserve formatting when working with .docx files?

Yes. This Skill extracts text from Word documents while maintaining original formatting through OOXML manipulation. Use the Document class to parse the file, access formatted content, and export cleaned text for downstream processing.

What's the best way to automate document review workflows with comments and redlines?

Automate redlining by programmatically inserting tracked changes and inline comments with author metadata into .docx files. The RedliningValidator ensures compliance; chain multiple edits together to simulate multi-reviewer workflows from draft to final.

Does this work for legal and business document processing?

Yes. The Skill handles legal drafts, business documents, and content tasks requiring tracked changes and comments. It supports the full lifecycle from initial draft through multiple review cycles with formatted output validation.

How do I validate that my Word document edits are correct?

Use included validators: DOCXSchemaValidator checks XML structure compliance, and RedliningValidator verifies tracked changes and comment integrity. Run validation after saving to confirm edits preserved document integrity.