docx

Create, edit, and analyze Word documents with change tracking and text extraction.

Updated Dec 1, 2025
One-click install
npx skills add https://github.com/tadokoro-ryusuke/cc-plugins --skill docx-tadokoro-ryusuke
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/tadokoro-ryusuke/cc-plugins/tree/main/ms-office-suite/skills/docx
Command: npx skills add https://github.com/tadokoro-ryusuke/cc-plugins --skill docx-tadokoro-ryusuke

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Word documents (.docx) are widely used, but programmatic creation, editing, and analysis can be tedious without reliable tooling. This skill provides a structured approach to generating DOCX files, applying edits with change-tracking, extracting text, and performing analysis on document structure.

Core Features & Use Cases

  • Create new Word documents from templates and dynamic content
  • Edit & track changes within existing documents, including simple redlining and text updates
  • Extract text & analyze internal structure for auditing, reporting, and template validation
  • Compare documents to identify differences and generate redlined outputs as needed

Quick Start

Create a sample DOCX document using the provided templates and run a basic edit workflow.

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 text extraction in Python?

To automate Word document creation and text extraction, you can use Python tooling to generate DOCX files from templates and extract text from internal document structures. This approach handles OpenXML manipulation for reporting workflows.

Can I apply tracked changes to an existing DOCX file programmatically?

Yes, you can apply tracked changes to a DOCX file programmatically by using Python scripts to apply edits with simple redlining. This preserves change-tracking metadata within the OpenXML structure for document auditing.

What is the best way to compare DOCX templates and identify document differences?

The best way to compare DOCX templates is to analyze internal structures and identify differences using Python tooling. This generates redlined outputs by parsing OpenXML to validate document workflows and track changes.

Does defusedxml support secure OpenXML manipulation for DOCX automation?

Defusedxml supports secure OpenXML manipulation for DOCX automation by safely handling XML parsing during text extraction and template generation. It prevents XML vulnerabilities while editing Word documents programmatically.

Why does my Word document text extraction return unformatted plain text?

Word document text extraction returns unformatted plain text because it parses the raw OpenXML content, stripping structural styling. To retain formatting, you must analyze the document structure and map specific XML nodes.

Do I need Python to edit DOCX files and track changes with this approach?

Yes, you need Python to edit DOCX files and track changes with this approach, as it relies on Python tooling and the defusedxml dependency for OpenXML manipulation. This environment enables automated report generation and template validation.