docx

Create, edit, and extract text from Word DOCX files via OOXML.

5|Updated Nov 16, 2025
One-click install
npx skills add https://github.com/QuestForTech-Investments/claude-code-skills --skill docx-questfortech-investments
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/QuestForTech-Investments/claude-code-skills/tree/main/document-skills/docx
Command: npx skills add https://github.com/QuestForTech-Investments/claude-code-skills --skill docx-questfortech-investments

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Claude users often need to generate, modify, and review professional Word documents (.docx) while preserving formatting, applying tracked changes, and managing comments. This Skill provides a self-contained workflow to create new DOCX content, edit existing documents, apply and review tracked changes, and extract text, all within a structured, programmable approach.

Core Features & Use Cases

  • Document creation & editing: Generate new Word documents and modify existing ones while maintaining formatting integrity.
  • Tracked changes & comments: Apply and review tracked changes, insert comments, and manage author metadata for collaborative workflows.
  • Text extraction: Read and extract plain text from DOCX content for downstream processing or archival tasks.

Quick Start

Use the docx skill to create a new Word document with a title and introductory paragraph, then apply an edit to an existing .docx and extract its text content.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I create and edit Word documents with tracked changes programmatically?

To create and edit Word documents with tracked changes, this skill programmatically edits OOXML within unpacked DOCX files, allowing you to generate new content or modify existing documents while preserving formatting integrity.

Can I extract plain text from DOCX files for downstream processing?

Yes, you can extract plain text from DOCX files for downstream processing or archival. The skill reads and isolates document content from the underlying OOXML structure, providing clean text output for further analysis.

How do I add comments to a Word document without altering its original formatting?

You can add comments to a Word document without altering formatting by manipulating the OOXML structure using the defusedxml library, which inserts annotations and manages author metadata while maintaining the original layout.

Does this approach to document editing require Python to manage OOXML directly?

Yes, this approach to document editing requires Python to manage OOXML directly. It relies on internal Python scripts and the defusedxml dependency to ensure safe XML handling when unpacking and modifying DOCX files.

What is the best way to automate collaborative review workflows on existing .docx files?

The best way to automate collaborative review workflows on existing .docx files is using a programmatic OOXML editor that applies tracked changes, inserts comments, and manages author metadata while keeping the document structure intact.

Are there limitations when modifying complex Word documents via OOXML manipulation?

When modifying complex Word documents via OOXML manipulation, limitations may arise if the unpacked XML structure contains deeply nested or non-standard formatting elements that the internal Python scripts cannot safely parse or reconstruct.