docx

Create, edit, and analyze Word .docx files with tracked changes and comments.

Updated Mar 31, 2026
One-click install
npx skills add https://github.com/aiaihome/SinotransAI --skill docx-aiaihome
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/aiaihome/SinotransAI/tree/main/.claude/skills/docx
Command: npx skills add https://github.com/aiaihome/SinotransAI --skill docx-aiaihome

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

The docx skill enables automated creation, editing, and analysis of Word (.docx) documents with support for tracked changes, comments, formatting preservation, and text extraction, streamlining professional document workflows.

Core Features & Use Cases

  • Create new Word documents with consistent styling and structure.
  • Edit existing documents while preserving formatting, and apply redlining (tracked changes) and comments.
  • Analyze documents to extract text, compare versions, and preserve metadata for collaboration.

Quick Start

Create a new Word document and enable tracked changes, then insert a paragraph with edited content.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate editing Word documents while preserving formatting and tracked changes?

Automate Word document editing while preserving formatting and tracked changes by processing OOXML directly with lxml. This approach manages redlining, inserts comments, and maintains document structure without corrupting existing styles.

Can I extract text and compare document versions from .docx files programmatically?

Extract text and compare .docx document versions programmatically by parsing OOXML content. The process analyzes document structure to pull raw text, identify modifications, and preserve metadata for collaboration tracking.

What is the best way to apply redlining and comments to existing Word docs?

The best way to apply redlining and comments to existing Word docs is through OOXML manipulation. By modifying the underlying XML, you can inject tracked changes and annotations while keeping the original formatting intact.

Do I need defusedxml and lxml to process OOXML for Word document automation?

Yes, you need defusedxml and lxml to process OOXML for Word document automation. These dependencies parse complex XML structures safely and efficiently, enabling robust content extraction and manipulation within the .docx format.

Does OOXML manipulation work for creating Word documents with consistent styling?

OOXML manipulation works for creating Word documents with consistent styling by programmatically generating the required XML structures. This allows automated document creation with predefined formatting, structure, and tracked changes enabled.