docx

Create, edit, and analyze Word documents with Python-based DOCX tooling.

2|1|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/junDevCodes/Claude-Harness --skill docx-jundevcodes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/junDevCodes/Claude-Harness/tree/main/.claude/skills/docx
Command: npx skills add https://github.com/junDevCodes/Claude-Harness --skill docx-jundevcodes

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill automates the creation, editing, reading, and analysis of Word documents (.docx), reducing manual formatting tasks and ensuring consistent structure, tracked changes, and embedded content.

Core Features & Use Cases

  • DOCX creation and editing automation using docx-js and Python-based tooling.
  • Read, analyze, and extract content from DOCX files, including tables, headings, and metadata.
  • Manage tracked changes and comments, including validation and repair workflows to preserve document intent.
  • Insert and format images, tables, and structured content to produce polished Word documents for reports, templates, and proposals.

Quick Start

Create a sample Word document with a title, a table, and an image to verify end-to-end functionality.

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 editing for report generation?

Automating Word document creation and editing involves using Python-based tooling with DOCX-specific utilities to generate structured content, tables, and images for streamlined report preparation.

Can I extract content and metadata from existing DOCX files?

Yes, you can extract content and metadata from DOCX files by unpacking the document structure to read tables, headings, and embedded content while preserving whitespace and validating the XML format.

How do I preserve tracked changes when analyzing Word documents?

Preserving tracked changes when analyzing Word documents requires validation and repair workflows that maintain change history and document intent during the unpacking and packing process.

Does this DOCX automation approach work with Python and lxml?

This DOCX automation approach works with Python and requires lxml and defusedxml dependencies to validate document structure, parse XML safely, and preserve whitespace during content extraction.

What's the best way to validate DOCX structure and repair malformed documents?

The best way to validate DOCX structure uses Python-based DOCX-specific utilities that unpack the file, check XML integrity with lxml, and apply repair workflows to fix malformed documents while preserving tracked changes.

Why does my tracked changes history get lost when editing DOCX files programmatically?

Tracked changes history gets lost when editing DOCX files if the tooling does not apply proper validation and repair workflows to maintain change history, which this skill addresses using DOCX-specific utilities.