docx

Automates creation, editing, and analysis of .docx files with tracked changes and comments.

Updated Jan 31, 2026
One-click install
npx skills add https://github.com/Gull-Stack/love-rescue --skill docx-gull-stack
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Gull-Stack/love-rescue/tree/main/.claude/skills/document-skills/docx
Command: npx skills add https://github.com/Gull-Stack/love-rescue --skill docx-gull-stack

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the creation, editing, and analysis of Word documents (.docx) with tracked changes, comments, and preserved formatting, reducing manual overhead and human error.

Core Features & Use Cases

  • Document creation and editing: generate new .docx files and modify existing ones while maintaining formatting and structure.
  • Tracked changes and comments: apply, revert, and manage Word tracked changes and add inline or adjacent comments for collaborative reviews.
  • Text extraction and analysis: extract plain text or structured content from Word documents for downstream processing, validation, or comparison.
  • Use Case: draft a contract with initial edits and comments, then export a final version after stakeholder approvals, while preserving formatting and change history.

Quick Start

  • Create a new Word document with tracked changes and a sample comment, then save as a .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 adding tracked changes and comments to a Word document?

Automating tracked changes and comments in a Word document involves using internal OOXML tooling and Python libraries to programmatically insert revisions and annotations into the .docx structure while preserving original formatting.

Can I extract plain text from a .docx file for downstream processing without losing structure?

Yes, you can extract plain text or structured content from a .docx file by parsing the internal OOXML, enabling downstream processing, validation, or comparison without requiring external software for the core extraction task.

Does document editing with Python require external software like Microsoft Word to modify .docx files?

No, modifying .docx files with Python does not require external software for core tasks like text insertion and tracked changes, relying solely on internal OOXML tooling, although optional validation may use LibreOffice.

What's the best way to programmatically generate a new Word document with preserved formatting?

The best way to programmatically generate a new Word document with preserved formatting is to use Python libraries to construct the OOXML structure directly, ensuring styling and layout are maintained without manual editing.

How do I manage and revert tracked changes in an existing .docx file using Python?

To manage and revert tracked changes in an existing .docx file, Python scripts can manipulate the underlying OOXML to apply, accept, or reject revisions automatically, streamlining collaborative review workflows.

Are there limitations when using Python for Word document editing and OOXML manipulation?

Limitations of Python-based Word document editing involve handling complex OOXML structures, where core tasks need no external software, but optional document validation may require installing LibreOffice to verify formatting accuracy.