docx

Create, read, edit, and format Word documents with Python.

Updated Apr 22, 2026
One-click install
npx skills add https://github.com/Shockwave2k/team-claude-skills --skill docx-shockwave2k
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Shockwave2k/team-claude-skills/tree/main/skills/docs/docx
Command: npx skills add https://github.com/Shockwave2k/team-claude-skills --skill docx-shockwave2k

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 drafting and ensuring consistent styling across outputs.

Core Features & Use Cases

  • Create new .docx documents with structured formatting and styles.
  • Read, analyze, and modify existing Word content, including images and tracked changes.
  • Produce polished Word outputs (reports, letters, templates) by reorganizing and enhancing content.

Quick Start

Create a polished Word document from a draft outline with headings and images.

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

You can automate Word document creation by using scripts to unpack, pack, and validate .docx files, applying structured formatting, styles, and image insertion programmatically.

Can I edit existing .docx files and handle tracked changes?

Yes, you can read, analyze, and modify existing Word content, including handling tracked changes and images, by leveraging the included scripts to unpack and repack the .docx files.

Do I need Python libraries to generate .docx files?

Yes, you need a Python runtime environment with the defusedxml and lxml libraries installed to execute the scripts required for creating, editing, and formatting Word documents.

What is the best way to reorganize content from existing Word documents?

The best way to reorganize existing Word document content is using automated scripts that read and modify the underlying XML, allowing you to produce polished reports, letters, and templates.

How does automated .docx formatting handle images and styles?

Automated .docx formatting handles images and styles by utilizing Python scripts with lxml to parse the document XML, allowing precise insertion of images and application of consistent styling rules.

Are there limitations when using Python scripts for Word document editing?

Limitations include requiring a Python runtime with specific dependencies like lxml and defusedxml, and relying on included scripts for unpacking and packing, which may not support highly complex Word features.