docx

Create, edit, and analyze DOCX documents with tracked changes and tables.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/mrwyx12369/TeamPaw --skill docx-mrwyx12369
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/mrwyx12369/TeamPaw/tree/main/src/teampaw/agents/skills/docx-en
Command: npx skills add https://github.com/mrwyx12369/TeamPaw --skill docx-mrwyx12369

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Word documents are commonly created, edited, and analyzed manually, leading to formatting inconsistencies, lost changes, and time wasted on repetitive tasks. This Skill automates and standardizes DOCX workflows, enabling reliable creation, modification, and analysis of Word documents.

Core Features & Use Cases

  • Create new .docx documents with structured formatting (headings, lists, tables) and save them to shareable formats.
  • Edit existing documents, apply formatting, insert images, and manage tracked changes and comments with proper tracking.
  • Analyze Word documents for structural integrity, content types, relationships, and track changes across versions.

Quick Start

Use this skill to generate a polished Word document from an outline and ensure formatting consistency across sections.

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 from an outline with structured formatting?

Automating Word document creation from an outline involves unpacking the .docx package, manipulating document.xml to apply headings, lists, and tables, then packing it back. This ensures consistent formatting across sections without manual editing.

Can I edit existing DOCX files to insert images and manage tracked changes programmatically?

Yes, editing existing DOCX files programmatically allows you to insert images, manage tracked changes, and apply formatting by manipulating the internal document.xml structure. This requires Python environments with lxml and defusedxml for safe XML parsing.

What's the best way to analyze Word documents for structural integrity and content types?

Analyzing Word documents for structural integrity involves unpacking the DOCX package to validate content types, relationships, and track changes across versions. This process uses lxml to parse the XML structure and ensure document compliance.

Do I need Python libraries like lxml and defusedxml to manipulate DOCX files?

Yes, manipulating DOCX files requires Python environments with lxml for XML processing and defusedxml for secure parsing against malicious content. The validators library is also needed to validate structure and content types within DOCX packages.

How does unpacking and packing a DOCX package work for document automation?

Unpacking a DOCX package extracts the XML and media files for direct manipulation, while packing reassembles them into a valid .docx file. This enables precise document automation by modifying document.xml directly for formatting and content changes.

Why does my Word document lose formatting when I edit document.xml directly?

Editing document.xml directly can cause formatting loss if the XML structure or relationships are not properly validated. Using lxml to parse and manipulate the XML while validating content types ensures formatting consistency and structural integrity are preserved.