docx

Create, edit, and validate .docx documents via XML workflows.

Updated Jul 10, 2025
One-click install
npx skills add https://github.com/damilola-elegbede-org/claude-config-5ad01dbe --skill docx-damilola-elegbede-org
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/damilola-elegbede-org/claude-config-5ad01dbe/tree/main/system-configs/.claude/skills/docx
Command: npx skills add https://github.com/damilola-elegbede-org/claude-config-5ad01dbe --skill docx-damilola-elegbede-org

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Word documents (.docx) are complex ZIP archives of XML that are error-prone to create and modify manually; this Skill automates the lifecycle of .docx files, enabling reliable creation, editing, and validation.

Core Features & Use Cases

  • Create new .docx documents using docx-js
  • Unpack, edit, and repack Word documents via XML workflow
  • Validate content types, relationships, and schemas to ensure compatibility
  • Manage images, tables, headers/footers, and tracked changes with integrity checks

Quick Start

Create a new Word document with docx-js and validate its structure using the included scripts.

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 without corrupting the file?

You can automate .docx document creation using docx-js and manage editing by unpacking the XML archive, modifying word/document.xml, and repacking it using Python scripts with schema validation to prevent file corruption.

What is the best way to validate Word document schemas and relationships?

Validating Word document schemas involves unpacking the .docx archive and running Python scripts that check content types, relationships, and XML schemas to ensure compatibility and integrity across platforms.

Can I edit headers, footers, and tables in a .docx file by modifying the XML directly?

Yes, you can manage headers, footers, tables, and tracked changes by unpacking the .docx archive, directly modifying the target XML files, and repacking the document with integrity checks to maintain structure.

Does this docx automation workflow require Python dependencies like lxml?

Yes, the Word document automation workflow requires Python dependencies including lxml and defusedxml to execute the unpack, pack, and XML editing scripts securely and efficiently.

Why does editing a Word document manually result in XML errors?

Manually editing Word documents causes XML errors because .docx files are complex ZIP archives of XML where unmanaged changes to content types or relationships break the schema and corrupt the file.