docx

Create and edit .docx files with Python, including images and tables.

2|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/ingjaviergomezm/el-camello --skill docx-ingjaviergomezm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/ingjaviergomezm/el-camello/tree/main/skills/docx
Command: npx skills add https://github.com/ingjaviergomezm/el-camello --skill docx-ingjaviergomezm

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Word document tasks are time-consuming and error-prone when creating, editing, or formatting. This Skill automates the end-to-end workflow for Word documents (.docx), enabling consistent styling, image insertion, table handling, and track changes management.

Core Features & Use Cases

  • Create DOCX documents from outlines with consistent headers, formatting, and templates.
  • Read, edit, and reorganize content, insert images, and manage tables, headers/footers, and ToCs.
  • Handle tracked changes and comments, including inserting, replying, or reconciling edits, while preserving document structure.

Quick Start

Generate a polished DOCX from a simple outline and apply corporate formatting and a header with page numbers.

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 with consistent formatting and headers?

To automate Word document creation, generate .docx files from outlines applying consistent headers, templates, and styling. This produces reports, proposals, and resumes with uniform formatting and structure.

Can I insert images and create tables in a .docx file programmatically?

Yes, you can insert images and manage tables in a .docx file programmatically. The workflow edits and reorganizes content while handling headers, footers, and Table of Contents to produce structured documents.

How do I handle tracked changes and comments when editing a Word document?

Handle tracked changes and comments by inserting, replying to, or reconciling edits within the Word document. This preserves the document structure while managing revisions programmatically across the .docx file.

Does this docx workflow require specific Python libraries to process XML?

Yes, the docx workflow requires specific Python libraries to process XML safely. It depends on lxml for XML processing and defusedxml to secure against parsing vulnerabilities during document generation.

What is the best way to reflow content across pages in a generated Word document?

The best way to reflow content in a generated Word document is using Python tools to modify the .docx file structure directly. This adjusts content flow, inserts images, and manages tables while maintaining consistent styling.