docx

Create, edit, and analyze .docx files with Python-based tools.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/vuhuudo/GeminiCLI-skill --skill docx-vuhuudo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/vuhuudo/GeminiCLI-skill/tree/main/_deprecated-docx
Command: npx skills add https://github.com/vuhuudo/GeminiCLI-skill --skill docx-vuhuudo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandoc, docx-js, LibreOffice, Poppler, defusedxml, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill simplifies the creation, editing, and analysis of .docx files by providing support for tracked changes, comments, formatting preservation, and text extraction, enabling professional document management with efficiency.

Core Features & Use Cases

  • Document Creation and Editing: Create new documents and modify existing content with robust support for formatting and structure.
  • Tracked Changes: Manage comprehensive tracked changes for document reviews, including acceptance/rejection of edits.
  • Comments: Add comments for collaborative review and feedback.
  • Text Extraction: Extract text from .docx files for further processing or analysis.
  • Use Case: Ideal for creating new documents, editing content, reviewing changes, or extracting text for analysis.

Quick Start

Use the docx skill to create a new document with the following content: "Hello, world!"

Frequently Asked Questions about docx

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

FAQPage Schema
How do I add tracked changes and comments to a .docx file for collaborative review?

You can add tracked changes and comments to a .docx file for collaborative review by using Python-based tools and XML parsing libraries to manage edits and feedback. This Skill supports comprehensive tracked changes, including accepting or rejecting modifications.

Can I extract text from .docx files while preserving the original formatting?

Yes, you can extract text from .docx files while preserving original formatting. This Skill uses Python-based tools and XML parsing to ensure content structure remains intact during text extraction for further processing or analysis.

What's the best way to programmatically create and edit .docx documents?

The best way to programmatically create and edit .docx documents is using Python-based tools with libraries like docx-js and ooxml. This approach enables precise document creation, modification, and formatting preservation.

Do I need pandoc and LibreOffice installed to manipulate .docx files with this Skill?

Yes, you need pandoc and LibreOffice installed, along with Poppler and defusedxml, to fully manipulate .docx files. These dependencies support XML parsing, document manipulation, and format conversion.

How does XML parsing work when modifying content in a .docx file?

XML parsing works by using libraries like ooxml and defusedxml to read and modify the internal XML structure of .docx files. This allows precise content manipulation, formatting preservation, and tracked changes management.

What are the limitations of using Python for document editing and version control in .docx?

Using Python for document editing and version control in .docx requires managing complex XML structures and dependencies like docx-js and LibreOffice. Limitations may arise with highly complex formatting or non-standard document elements.