docx

Create and edit Word documents with python-docx, including tracked changes and comments.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/States-Media/claude-code-starter --skill docx-states-media
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/States-Media/claude-code-starter/tree/main/skills/docx
Command: npx skills add https://github.com/States-Media/claude-code-starter --skill docx-states-media

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-docx, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill enables users to create, edit, and analyze complex Word documents efficiently, reducing manual effort and human error in document workflows.

Core Features & Use Cases

  • Document Creation & Formatting: Automate the generation of richly formatted docs with styles, tables, lists, and embedded media.
  • Content Editing & Revision: Apply tracked changes, comments, and redlining workflows for collaborative review.
  • Use Case: A legal team needs to draft, revise, and review lengthy contracts with multiple comment threads and tracked amendments, ensuring clarity and version control.

Quick Start

Use the docx skill to generate a report that includes a title, headings, formatted paragraphs, and a table summarizing sales data.

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 formatting and tables?

Automate Word document creation by using python-docx to programmatically apply styles, generate tables, format lists, and embed media. This eliminates manual effort and ensures consistent formatting across professional reports and contracts.

Can I apply tracked changes and comments to a Word document programmatically?

Yes, you can apply tracked changes, redlining, and comments to a Word document programmatically. This enables collaborative review workflows and version control for contracts by manipulating XML content reliably through custom script logic.

Does python-docx support complex document workflows like contract revision?

Yes, python-docx supports complex document workflows like contract revision. It handles content editing, revision tracking, and comment threads, allowing legal teams to manage lengthy contracts and ensure clarity during collaborative review.

What is the best way to embed media and apply styles when generating Word documents?

The best way to embed media and apply styles when generating Word documents is through automated scripts using python-docx. This approach reliably manipulates XML content to insert rich formatting, headings, and media assets without manual intervention.

Why use custom script logic to manipulate XML content in Word documents?

Custom script logic is used to manipulate XML content in Word documents to reliably handle complex styling, revision tracking, and media embedding. This ensures accurate automated editing and analysis that standard formatting tools cannot achieve.