docx

Create, edit, analyze, and validate Microsoft Word documents while preserving formatting.

4|Updated Feb 23, 2026
One-click install
npx skills add https://github.com/npow/claude-skills --skill docx-npow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/npow/claude-skills/tree/main/docx
Command: npx skills add https://github.com/npow/claude-skills --skill docx-npow

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill removes the complexity of creating, editing, analyzing, and validating Microsoft Word documents, including documents with advanced formatting, tracked changes, comments, images, and structured XML.

Core Features & Use Cases

  • Document Creation: Generate professional reports, memos, letters, templates, tables of contents, headers, footers, page numbers, and letterheads with docx-js.
  • Document Editing: Extract content, perform find-and-replace operations, insert or replace images, modify raw OOXML, and author or manage tracked changes and comments.
  • Validation and Repair: Unpack, repack, validate, and repair DOCX structures while checking schemas, relationships, redlining integrity, and content types.
  • Use Case: Update an existing contract with tracked revisions and reviewer comments, then validate and package the final DOCX for delivery.

Quick Start

Use the docx skill to create or update the attached Word document and validate its structure before returning the finished DOCX.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I create Word documents with advanced formatting like headers, footers, and tables of contents?

To create Word documents with advanced formatting, you can generate professional reports, memos, and templates complete with headers, footers, page numbers, and letterheads using docx-js. This approach removes the complexity of building structured DOCX files from scratch.

Can I edit an existing DOCX file to add tracked changes and reviewer comments?

You can edit an existing DOCX file to author and manage tracked changes and reviewer comments. This capability allows you to update contracts or reports with redlining, find-and-replace text, and insert images while preserving document integrity.

What is the best way to validate and repair a corrupted Word document structure?

The best way to validate and repair Word documents is to unpack the DOCX structure, check schemas, relationships, and content types, then repack it. This process validates redlining integrity and repairs corrupted OOXML structures for final delivery.

How does OOXML editing work for modifying raw Word document structures?

OOXML editing works by unpacking the DOCX file to access and modify its raw XML structure directly. This allows you to perform precise find-and-replace operations, extract content, and manipulate document schemas before repacking the validated DOCX output.

Do I need defusedxml to process Word documents with complex OOXML schemas?

You need defusedxml when processing Word documents to safely parse complex OOXML schemas and prevent XML external entity attacks. It serves as a secure dependency for unpacking and validating document structures during extraction and modification workflows.

Can I convert older DOC files to DOCX format while preserving formatting and images?

You can convert older DOC files to DOCX format while preserving formatting, images, and structured content. This conversion requires tools like LibreOffice or pandoc, depending on the selected workflow, to ensure document integrity during the transformation.