docx

Create, edit, and format .docx files from templates with images and find-and-replace.

1|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/EzioPeter/codex_skills --skill docx-eziopeter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/EzioPeter/codex_skills/tree/main/docx
Command: npx skills add https://github.com/EzioPeter/codex_skills --skill docx-eziopeter

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Word document workflows can be slow and error-prone when creating, editing, formatting, and extracting content from .docx files. This skill automates those tasks to improve consistency and productivity.

Core Features & Use Cases

  • Create, read, edit, and format Word documents (.docx) from templates and content sources.
  • Insert images, perform find-and-replace, generate tables of contents, headers/footers, and apply professional styling across documents.
  • Use cases include generating reports, proposals, letters, templates, or client deliverables as polished Word files.

Quick Start

Create a formatted Word document (.docx) from your content using the provided templates.

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

Automating Word document creation from templates involves using scripts to assemble content sources into .docx files, applying deterministic formatting and professional styling to produce reports, letters, or proposals.

Can I insert images and perform find-and-replace in .docx files programmatically?

Yes, you can insert images and perform find-and-replace in .docx files programmatically by executing scripts that parse the document structure and apply content modifications directly to the Word document.

Does this approach support handling tracked changes and comments in Word documents?

Yes, handling tracked changes and comments in Word documents is supported through built-in scripts and tools that manage revisions and annotations within the .docx file structure.

What libraries are needed for document automation with .docx files?

Document automation with .docx files requires the defusedxml and lxml libraries to securely and efficiently parse and manipulate the underlying XML structure of Word documents.

How do I extract content and generate tables of contents from Word documents?

Extracting content and generating tables of contents from Word documents involves executing scripts that read the .docx file structure, retrieve text elements, and compile hierarchical headings into navigable indexes.