docx

Create, edit, and analyze .docx Word documents with Python and JavaScript.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/IoT-VN/tuya-energy-dashboard --skill docx-iot-vn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/IoT-VN/tuya-energy-dashboard/tree/main/.claude/skills/document-skills/docx
Command: npx skills add https://github.com/IoT-VN/tuya-energy-dashboard --skill docx-iot-vn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandoc, docx, libreoffice, poppler-utils, defusedxml, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the creation, editing, and analysis of Microsoft Word (.docx) documents, eliminating manual formatting and complex XML manipulation.

Core Features & Use Cases

  • Document Creation: Generate new .docx files from scratch using JavaScript/TypeScript.
  • Content Analysis: Extract text, comments, and structure from existing .docx files.
  • Tracked Changes (Redlining): Implement precise tracked changes for document review and collaboration.
  • Use Case: Automatically generate a legal contract template, populate it with specific client details, and then apply tracked changes for a legal review process.

Quick Start

Use the docx skill to create a new document with a title, a heading, and a paragraph of text.

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 generation from a template?

Automate Word document generation by using Python and JavaScript libraries to create .docx files from scratch, populate templates with specific data, and structure headings and paragraphs programmatically.

What is the best way to implement tracked changes in a .docx file?

Implement tracked changes (redlining) in a .docx file by using dedicated document libraries that support precise review modifications, enabling automated document collaboration and legal redline tracking.

How do I extract text and comments from existing Word documents?

Extract text and comments from existing Word documents by analyzing the .docx file structure, pulling content, and accessing raw OOXML to retrieve complex formatting and document structure data.

Do I need pandoc and libreoffice to manipulate .docx files?

Yes, this approach requires pandoc, libreoffice, poppler-utils, and defusedxml dependencies to fully support OOXML manipulation, document generation, and content extraction from Word files.

Can I access raw OOXML to modify complex formatting in Word documents?

Yes, you can access raw OOXML to modify complex formatting and structure in Word documents, allowing granular control over .docx files beyond standard text editing and generation.

What are the limitations of using Python for .docx document analysis?

Python .docx document analysis relies on specific dependencies like docx and defusedxml, meaning complex OOXML manipulation may require direct XML access and could face limitations with highly corrupted Word files.