docx

Creates and edits .docx files by manipulating XML within the ZIP archive.

1|Updated Jun 11, 2026
One-click install
npx skills add https://github.com/sergeyitaly/claude-skill-deployer --skill docx-sergeyitaly
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/sergeyitaly/claude-skill-deployer/tree/main/skills_library/docx
Command: npx skills add https://github.com/sergeyitaly/claude-skill-deployer --skill docx-sergeyitaly

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 containing XML files, making programmatic creation and editing extremely difficult without specialized tools. This Skill eliminates the need to manually manipulate XML or understand OOXML internals.

Core Features & Use Cases

  • Document Creation: Generate professional .docx files with formatting, tables, images, headers, footers, and table of contents using docx-js.
  • Document Editing: Modify existing documents by unpacking XML, applying precise changes, and repacking with automatic validation and repair.
  • Tracked Changes & Comments: Accept all tracked changes, add comments, and work with redlining using LibreOffice automation and XML manipulation.
  • Validation: Ensure document integrity with XSD schema validation, whitespace preservation checks, and relationship verification.

Quick Start

Use the docx skill to create a new Word document titled "Q4 Report" with a table of contents, three heading levels, and a footer showing page numbers, then save it as report.docx.

Frequently Asked Questions about docx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I programmatically create Word documents with formatting and tables?

Programmatic Word document creation is handled by unpacking the .docx ZIP archive, modifying the XML content, and repacking it with validation. This approach generates professional reports, memos, and letters with formatting, tables, images, headers, footers, and table of contents.

What's the best way to accept tracked changes in a .docx file?

Accepting tracked changes in a .docx file is achieved through LibreOffice automation combined with direct XML manipulation. This Skill applies redlining workflows and can insert comments while ensuring OOXML schema compliance during the repacking process.

How do I edit existing Word documents without breaking the OOXML schema?

Editing existing Word documents safely requires unpacking the ZIP archive, applying precise changes to the internal XML files, and repacking with automatic XSD schema validation. This process includes whitespace preservation checks and relationship verification to ensure document integrity.

Do I need LibreOffice and pandoc to convert legacy .doc files?

LibreOffice and pandoc are required to convert legacy .doc files and extract text from Word documents. LibreOffice handles conversion and tracked changes acceptance, while pandoc manages text extraction during document processing.

Why does modifying Word document XML directly cause validation errors?

Modifying Word document XML directly causes validation errors because .docx files are complex ZIP archives requiring strict OOXML schema compliance. This Skill prevents errors by using defusedxml and lxml for XML processing, applying automatic validation and repair during repacking.