docx

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

333|83|Updated Jan 9, 2026
One-click install
npx skills add https://github.com/zephyrwang6/myskill --skill docx-zephyrwang6
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/zephyrwang6/myskill/tree/main/docx
Command: npx skills add https://github.com/zephyrwang6/myskill --skill docx-zephyrwang6

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill simplifies the creation, editing, and analysis of professional Word documents (.docx) by enabling tracked changes, comments, formatting preservation, and text extraction workflows.

Core Features & Use Cases

  • Create new Word documents from templates and programmatic content while preserving formatting.
  • Edit existing documents with tracked changes, redlining, comments, and structured approvals.
  • Analyze and extract text and structure from docx files, preserving formatting and metadata for auditing.

Quick Start

Use the docx skill to create a new Word document named 'Proposal.docx' with a title, a section header, and a 3-item list.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I create and edit Word documents programmatically with tracked changes?

Creating and editing Word documents with tracked changes lets you automate proposal drafting and contract reviews while preserving formatting and audit trails. This skill uses Python OOXML tooling to manipulate .docx files, enabling you to add tracked changes, comments, and redlines programmatically without manual Word editing.

Can I extract text and formatting from .docx files while preserving document structure?

Text extraction from .docx files preserves formatting, metadata, and document structure for auditing and analysis. This skill uses defusedxml and lxml to parse WordprocessingML safely, extracting content while maintaining relationships and content-type validation needed for reporting workflows.

What's the best way to automate Word document generation from templates?

Automating Word document generation from templates combines programmatic content insertion with formatting preservation. This skill creates new .docx files from templates, adds structured content like titles and lists, and maintains professional formatting without manual intervention.

Do I need OOXML knowledge to work with .docx files programmatically?

Working with .docx files programmatically benefits from OOXML understanding, but this skill abstracts WordprocessingML complexity through the docx script library. You can create, edit, and analyze documents without deep XML knowledge, though understanding OOXML relationships helps with advanced customization.

How do I validate and audit changes in Word documents through code?

Validating and auditing changes in Word documents involves analyzing tracked changes and comments embedded in the .docx structure. This skill extracts and processes these metadata elements alongside content, enabling automated compliance checks and change auditing for contract reviews and proposals.