docx

Create, edit, and review .docx files with Python scripts and OOXML tooling.

Updated Jan 4, 2026
One-click install
npx skills add https://github.com/refly-ai/skill-to-workflow --skill docx-refly-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/refly-ai/skill-to-workflow/tree/main/skills-source/anthropic/docx
Command: npx skills add https://github.com/refly-ai/skill-to-workflow --skill docx-refly-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Claude users who work with professional Word documents (.docx) often need to automate creation, editing, and review without losing formatting. This Skill provides a programmable pipeline to generate new documents, apply tracked changes, and manage comments across collaborators.

Core Features & Use Cases

  • Document creation: Generate and initialize .docx files with preserved formatting.
  • Editing and redlining: Apply content edits while preserving OOXML structure, including tracked changes and comments.
  • Collaboration & review: Manage and annotate edits across multiple contributors for clear review trails.

Quick Start

Use the docx Skill with the included scripts to create a sample document, apply a minimal edit, and save the result.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate Word document editing and apply tracked changes using Python?

You can automate Word document editing by using Python scripts to programmatically apply tracked changes, preserving the OOXML structure and generating diffs for collaborative review.

Can I create new .docx files programmatically while preserving Word formatting?

Yes, you can create new .docx files programmatically by initializing documents with Python scripts that preserve OOXML formatting, ensuring professional Word document structure is maintained.

What is the best way to manage comments and annotations across collaborative Word documents?

The best way to manage comments in collaborative Word documents is using Python scripts to annotate edits and manage contributor trails, ensuring clear review workflows within the OOXML structure.

Does the docx Skill work with OOXML tooling and Python for deterministic document edits?

Yes, the docx Skill relies on Python scripts and OOXML tooling to perform deterministic edits on Word documents, preserving formatting while applying tracked changes and managing comments.

How do I generate review diffs for .docx files without losing formatting?

You can generate review diffs for .docx files by applying tracked changes through Python scripts, which preserve the underlying OOXML structure and formatting during document editing.