docx

Create, edit, and format Word DOCX files with Python scripts.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/OpenElementsLabs/claude-base --skill docx-openelementslabs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/OpenElementsLabs/claude-base/tree/main/claude-project-base/skills/docx
Command: npx skills add https://github.com/OpenElementsLabs/claude-base --skill docx-openelementslabs

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

The docx skill automates the creation, reading, editing, and formatting of Word documents (.docx), reducing manual effort and ensuring consistent output.

Core Features & Use Cases

  • Create, read, edit, and manipulate Word documents (.docx) with structured formatting.
  • Insert images, perform find-and-replace, manage tracked changes and comments, and reorganize content for professional outputs.
  • Use cases include generating reports, letters, templates, memos, and other polished Word documents from structured inputs.

Quick Start

Provide a Word document and your formatting goals to generate the desired .docx output.

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 formatting for DOCX files?

Automating Word document creation and formatting for DOCX files is done by providing structured inputs and formatting goals to generate professional outputs. The process handles inserting images, performing find-and-replace, and managing tracked changes automatically.

Can I read and reorganize content in an existing Word document?

Yes, you can read and reorganize content in an existing Word document. The skill manipulates DOCX files by reading structured content, reorganizing paragraphs, managing comments, and exporting the updated text to a polished Word output.

Does this approach support inserting images and managing tracked changes in .docx files?

Yes, this approach supports inserting images and managing tracked changes in .docx files. It handles these features alongside comments and find-and-replace operations to produce professional Word documents from structured inputs.

What is the best way to generate professional reports and templates from structured inputs?

The best way to generate professional reports and templates from structured inputs is using automated DOCX generation. This enforces document structure, applies consistent formatting, and produces polished Word outputs like letters, memos, and reports.

Do I need lxml or defusedxml to manipulate Word documents programmatically?

Yes, lxml and defusedxml are required dependencies to manipulate Word documents programmatically. These libraries enforce structure validation and secure XML parsing when performing automated creation, editing, and formatting of DOCX files.

Are there limitations when performing find-and-replace across large Word documents?

Limitations when performing find-and-replace across large Word documents depend on validators enforcing structure and context-aware instructions loaded from configuration. Complex formatting may require structured inputs to ensure consistent DOCX output without manual intervention.