docx

Create, read, edit, and analyze Word documents with .docx files.

Updated Mar 23, 2026
One-click install
npx skills add https://github.com/mia-cx/.agents --skill docx-mia-cx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/mia-cx/.agents/tree/main/skills/docx
Command: npx skills add https://github.com/mia-cx/.agents --skill docx-mia-cx

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires defusedxml, lxml.

What problem does it solve?

Word documents (.docx) creation, editing, and formatting are time-consuming and error-prone when done manually, especially at scale or under template constraints.

Core Features & Use Cases

  • Automated .docx creation from templates or content blocks with consistent styling.
  • Read, modify, and analyze existing Word documents, including images, tables, tracked changes, and comments.
  • Real-world use: generate compliant reports or letters with standardized formatting across multiple documents.

Quick Start

Generate a ready-to-deliver Word document from an outline by instructing the AI to apply the specified formatting and content.

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 templates?

Automate Word document generation by applying frontmatter-driven rules to populate .docx templates with consistent styling. This approach streamlines creating formatted reports and letters at scale without manual formatting errors.

Can I extract content and images from existing .docx files?

Yes, you can extract content and images from existing .docx files by reading the document structure. The Skill analyzes Word documents to pull out text, tables, and embedded media for downstream processing or migration.

What's the best way to edit Word documents with tracked changes programmatically?

Editing Word documents with tracked changes programmatically is best handled by applying deterministic scripts to the .docx file. This ensures modifications to text, tables, and comments are recorded and validated automatically.

Does this approach require specific libraries to process .docx files?

Processing .docx files requires specific XML parsing libraries, namely defusedxml and lxml, to safely load and manipulate the document structure. These dependencies ensure secure and accurate reading and editing of Word files.

How do I insert tables and images into a Word document automatically?

Insert tables and images into a Word document automatically by executing deterministic scripts that apply formatting rules to the .docx structure. This enables generating compliant reports with standardized visual elements.

What are the limitations of automating .docx formatting with scripts?

Automating .docx formatting with scripts requires deterministic rules and frontmatter validation, meaning highly dynamic or free-form layouts may exceed its constraints. It is optimized for template-driven documents and standardized report generation.