docx

Create, edit, and analyze Word DOCX files using OOXML manipulation.

14|5|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/cloudbro-kube-ai/k13d --skill docx-cloudbro-kube-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/cloudbro-kube-ai/k13d/tree/main/skills/anthropic/docx
Command: npx skills add https://github.com/cloudbro-kube-ai/k13d --skill docx-cloudbro-kube-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Word document production and editing requires meticulous formatting, image embedding, and change tracking, which is error-prone and time-consuming at scale.

Core Features & Use Cases

  • Create, read, edit, and format Word documents (.docx) with OOXML-aware tooling.
  • Manage tracked changes, comments, images, tables, headers/footers, and complex layouts.
  • Convert legacy .doc files to .docx and validate/repair document structure for reliable workflows.

Quick Start

Input content or a source document, and the skill will generate a polished .docx with professional formatting and tracked edits.

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 and editing with OOXML?

You can automate Word document generation and editing by using Python-based tooling to manipulate OOXML directly, which allows you to create reports, insert images, and manage complex layouts. This approach handles formatting and tracked changes automatically.

Can I manage tracked changes and comments in a .docx file using Python?

Yes, you can manage tracked changes and comments in a .docx file by manipulating the underlying OOXML structure with Python libraries. This enables precise control over document revisions, user annotations, and content organization.

What is the best way to convert legacy .doc files to .docx format?

The best way to convert legacy .doc files to .docx format is using an automated OOXML-aware tool that validates and repairs document structure during conversion. This ensures reliable workflows and compatibility with modern Word document features.

Does this approach support inserting images and tables into Word documents?

Yes, OOXML manipulation supports inserting images, tables, headers, footers, and complex page layouts into Word documents. You can programmatically embed these elements to produce polished .docx files with professional formatting.

How do I perform find-and-replace and reorganize content in existing .docx files?

You can perform find-and-replace and reorganize content in existing .docx files by parsing the document's OOXML structure with Python. This allows for targeted text replacement and content extraction without manual editing.

Do I need lxml and defusedxml to process Word documents?

You need lxml and defusedxml to securely process Word documents because they provide the XML parsing and manipulation capabilities required for OOXML. These dependencies ensure reliable document structure validation and safe content handling.