docx

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

119|21|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/stvlynn/dingtalk-wukong-skills --skill docx-stvlynn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/stvlynn/dingtalk-wukong-skills/tree/main/docx
Command: npx skills add https://github.com/stvlynn/dingtalk-wukong-skills --skill docx-stvlynn

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Claude often spends hours creating, editing, and reviewing professional Word documents (.docx). This Skill automates end-to-end Word workflows, including creation, modification, tracked changes, comments, and text extraction, reducing manual effort and errors.

Core Features & Use Cases

  • Comprehensive Word document creation, editing, and analysis with preserved formatting and tracked changes.
  • Redlining, commenting, and author-tracking to support collaborative document reviews.
  • Text extraction and content processing from .docx files for downstream workflows (conversion to Markdown/HTML, data capture).
  • Real-world use: process a legal brief with tracked changes and comments across multiple reviewers, merging edits deterministically.

Quick Start

Instruct Claude to create or modify a .docx file using the included Document library and then save and review the tracked changes.

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 creation and editing with preserved formatting?

You can automate Word document creation and editing by using a deterministic OOXML handling library to manipulate .docx files directly. This approach applies tracked changes and inline comments while preserving the original document formatting throughout the workflow.

Can I add tracked changes and comments to a .docx file programmatically?

Yes, you can add tracked changes and comments to a .docx file programmatically. The Document library supports redlining, commenting, and author-tracking to facilitate collaborative document reviews without manual intervention.

What is the best way to extract text from a .docx file for format conversion?

The best way to extract text from a .docx file for format conversion is through automated content processing scripts. These scripts extract raw text content from Word documents, enabling downstream workflows like conversion to Markdown or HTML.

Does this approach work for processing legal briefs with multiple reviewer edits?

Yes, this approach works for processing legal briefs with multiple reviewer edits. It supports merging edits deterministically across multiple reviewers, handling tracked changes and comments within professional documents efficiently.

Do I need Python libraries like lxml and defusedxml to handle OOXML files?

Yes, you need Python libraries like lxml and defusedxml to handle OOXML files securely. These dependencies provide the necessary XML parsing and manipulation capabilities required for deterministic Word document processing.

Why does my Word document formatting break when applying automated edits?

Word document formatting breaks when automated edits do not use deterministic OOXML handling. By utilizing a specialized Document library to apply changes directly to the XML structure, original formatting is preserved during modification and redlining.