docx

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

560|92|Updated Oct 20, 2025
One-click install
npx skills add https://github.com/LeastBit/Claude_skills_zh-CN --skill docx-leastbit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/LeastBit/Claude_skills_zh-CN/tree/main/document-skills_文档技能/docx_Word文档
Command: npx skills add https://github.com/LeastBit/Claude_skills_zh-CN --skill docx-leastbit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires defusedxml, lxml.

What problem does it solve?

本技能解决在.docx 文件中进行创建、编辑、修订与注释等繁琐任务的挑战,帮助用户快速完成文档处理,确保一致性、合规性和高效性。

Core Features & Use Cases

  • 修订与批注管理:程序化添加/修改插入与删除标记,管理批注与修订历史。
  • 文档结构与导出:支持创建、编辑文本、表格、图片等常见元素,保持 OOXML 结构及格式。
  • 快速对比与导出:将带修订的文档导出为带痕迹的版本,并可与原始文档对比。

Quick Start

将需要处理的 Word 文档(.docx)上传给 Claude,示例任务:在文档中添加一个注释“请核对此信息”,并生成带修订的新版本。

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 tracked changes?

Automate .docx creation, editing, and revision tracking by programmatically adding insertion and deletion marks, managing comments, and preserving OOXML structure and formatting. This Skill handles document generation, text modification, and change history without manual intervention.

Can I extract text from Word documents and maintain format consistency?

Extract text from .docx files while preserving document structure, formatting, tables, and images. The Skill supports content analysis and export by maintaining correct OOXML namespaces and relationships throughout extraction.

How do I add comments and revision marks to .docx files programmatically?

Add, modify, and manage inline comments and tracked changes (insertions and deletions) to Word documents through code. The Skill enables revision history tracking and annotation management while keeping document integrity and compliance intact.

What's the best way to process and compare Word documents with revision history?

Process .docx files with tracked changes, export revised versions with visible markup, and compare against originals programmatically. This approach preserves all revision metadata and allows batch document analysis with format consistency.

Can I work with .docx files without losing document structure or relationships?

Work with .docx files while maintaining correct OOXML packaging, namespaces, and internal relationships. The Skill ensures that document creation, editing, and revision operations preserve structural integrity and compliance requirements.