docx

Create, read, and edit .docx files with python-docx.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/VYRE-Studios/Windows-Agentic-Framework --skill docx-vyre-studios
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/VYRE-Studios/Windows-Agentic-Framework/tree/main/skills/claude-code/docx
Command: npx skills add https://github.com/VYRE-Studios/Windows-Agentic-Framework --skill docx-vyre-studios

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Removes the manual and error-prone process of creating, formatting, and updating Microsoft Word documents by providing clear Python-based operations to generate, read, and modify .docx files programmatically.

Core Features & Use Cases

  • Document creation: Build titled documents with headings, paragraphs, lists, and page breaks.
  • Editing and templating: Find-and-replace text, append sections, and fill templates.
  • Tables and images: Insert and populate tables, embed images, and control image sizing.
  • Headers/Footers & layout: Configure headers, footers, and page margins for consistent formatting.
  • Reading and verification: Extract paragraph text and table data to verify content or pull structured information.
  • Use Case: Automate generation of weekly reports or batch-edit templates to produce personalized client documents.

Quick Start

Generate a well-formatted Word document named report.docx with a title, two sections, a table, and an embedded image using python-docx.

Frequently Asked Questions about docx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Word documents programmatically using Python?

Yes, you can automate Word document generation by using python-docx to programmatically create titled files with headings, paragraphs, lists, page breaks, tables, and embedded images directly in Python workflows.

How do I extract text and table data from a .docx file in Python?

Extracting text and table data from a .docx file in Python is done by reading paragraph text and table structures via python-docx, allowing you to pull structured information and verify content from existing Word documents.

Can I fill Word document templates automatically with Python?

Filling Word document templates automatically with Python is supported through find-and-replace text operations and section appending using python-docx, enabling batch-editing to produce personalized client documents efficiently.

Does python-docx support adding headers, footers, and images to Word files?

python-docx supports adding headers, footers, and embedded images to Word files, allowing you to configure page margins, control image sizing, and ensure consistent formatting across generated .docx documents.

What are the limitations of python-docx for document generation?

Limitations of python-docx for document generation include its focus on structural elements like paragraphs, tables, headers, and images, meaning complex layout manipulations or advanced styling beyond standard formatting may not be fully supported.