docx

Create, read, edit, and format .docx files with images and tables.

27|4|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/skateddu/claude-code-python-setup --skill docx-skateddu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/skateddu/claude-code-python-setup/tree/main/.claude/skills/docx
Command: npx skills add https://github.com/skateddu/claude-code-python-setup --skill docx-skateddu

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Word document tasks like creating, reading, editing, and formatting .docx files are tedious and error-prone; this skill automates them for consistent results.

Core Features & Use Cases

  • Create new .docx documents with consistent styles, headers/footers, and formatting.
  • Read and modify existing Word files, including image inserts, tables, find-and-replace, and content rearrangements.
  • Manage tracked changes and comments, and convert content into a polished Word output from templates or raw data.

Quick Start

Create a polished Word document (.docx) from the provided data or template, including headings, images, and tables.

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 formatting from raw data?

Automate Word document workflows by using scripts to generate .docx files with consistent headers, footers, styles, and tables. This approach creates polished reports, letters, or proposals directly from raw data.

Can I edit existing .docx files to add images and tables?

You can read and modify existing Word files by inserting images, adding tables, performing find-and-replace operations, and rearranging content. This ensures structured updates to documents without manual formatting errors.

How do I manage tracked changes and comments in a Word document?

Manage tracked changes and comments directly within .docx files to automate review workflows. This handles content revisions and annotations programmatically for consistent document collaboration.

Does this approach work with lxml for parsing Word document XML?

Yes, it relies on lxml and defusedxml to securely parse and manipulate the underlying XML structure of Word documents. This enables precise structural modifications while mitigating malicious XML injection risks.

What is the best way to convert templates into formatted Word documents?

The best way to convert templates into formatted Word documents is by applying predefined styles and inserting dynamic content programmatically. This yields consistent, ready-to-distribute .docx outputs.

Are there limitations when manipulating complex Word documents programmatically?

When manipulating complex Word documents, heavy reliance on XML parsing via lxml means deeply nested structures or corrupted files may cause processing limits. Always validate input files before automation.