docx

Create, edit, and format Word documents with tracked changes and image insertion.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/CHENyiru3/AI-Skills-Collections --skill docx-chenyiru3
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/CHENyiru3/AI-Skills-Collections/tree/main/skills-market/documents/formats/docx
Command: npx skills add https://github.com/CHENyiru3/AI-Skills-Collections --skill docx-chenyiru3

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the creation, reading, editing, and formatting of Word documents (.docx), reducing manual effort and ensuring consistent styling across outputs.

Core Features & Use Cases

  • Generate new .docx documents from templates with structured formatting (headings, tables, headers/footers, and TOCs).
  • Edit existing Word files by inserting images, performing find-and-replace, tracking changes, and managing comments.
  • Convert content into polished Word outputs (reports, memos, templates) and support content extraction for reuse in other pipelines.
  • Use when delivering professional documents with formatting requirements (tables of contents, page numbers, letterheads) or when reorganizing content within a .docx.

Quick Start

Create a polished Word document from an outline and media assets to produce a ready-to-share report.

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 with structured formatting like tables of contents and headers?

Automating Word document generation applies structured formatting such as headings, tables, headers, footers, and tables of contents directly to .docx files. It enforces deterministic document generation to produce polished, ready-to-share reports and templates from outlines.

Can I insert images and perform find-and-replace in an existing .docx file programmatically?

Editing an existing .docx file supports inserting images, executing search-and-replace operations, adding tracked changes, and managing comments. This streamlines professional document workflows by modifying content within Word files while maintaining consistent styling.

What is the best way to extract content from a Word document for reuse in other pipelines?

Extracting content from Word documents involves reading .docx files to pull text and structural elements for reuse. This approach supports content extraction and conversion capabilities, enabling seamless integration of extracted data into downstream processing pipelines.

Does this document-generation approach support tracked changes and comments for collaborative editing?

Document generation and editing fully support tracked changes and comments within .docx files. This enables collaborative review workflows by programmatically managing revisions and annotations while preserving the original document structure.

What are the limitations of using lxml for editing Word documents with complex formatting?

Using lxml and defusedxml for Word document editing processes .docx XML structures deterministically. It handles advanced formatting and image integration, though highly complex or corrupted XML structures may require manual validation before successful parsing and generation.