docx

Create, edit, and analyze Word documents via OOXML and text extraction.

Updated May 9, 2026
One-click install
npx skills add https://github.com/kk20300113-png/my-claude-skills --skill docx-kk20300113-png
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/kk20300113-png/my-claude-skills/tree/main/vibe/bundled/skills/document-skills/docx
Command: npx skills add https://github.com/kk20300113-png/my-claude-skills --skill docx-kk20300113-png

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill eliminates the complexity of programmatically creating, editing, and analyzing Microsoft Word documents by providing a comprehensive toolkit for professional document processing, tracked changes, and content manipulation.

Core Features & Use Cases

  • Document Creation & Editing: Create new Word documents from scratch or modify existing ones while preserving formatting, styles, and structure using docx-js or Python OOXML libraries.
  • Tracked Changes (Redlining): Implement comprehensive review workflows with tracked insertions and deletions, essential for legal, academic, and business document collaboration.
  • Text Extraction & Analysis: Extract text content from documents using pandoc or access raw XML for deep inspection of comments, formatting, and embedded media.
  • Use Case: A legal team needs to review and mark up a contract. Use this Skill to apply tracked changes to specific clauses, add comments for negotiation, and export a clean final version while preserving the full revision history.

Quick Start

Use the docx skill to create a new Word document from the provided text and 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 add tracked changes to a Word document for legal redlining?

To add tracked changes for legal redlining, this Skill programmatically manipulates OOXML structures to insert tracked revisions and comments into Word documents. It automates the review workflow by applying tracked insertions and deletions to specific clauses while preserving the document's original formatting.

What is the best way to extract text from a docx file while preserving formatting?

The best way to extract text from a docx file while preserving formatting is by using pandoc or accessing the raw XML structure. This Skill processes the ZIP-based XML document structure to extract text content and inspect embedded media without manual intervention.

Can I create Word documents from scratch using Python OOXML libraries?

Yes, you can create Word documents from scratch using Python OOXML libraries or docx-js. This Skill automates document creation and editing by programmatically generating the required OOXML structures, allowing you to build new files while preserving custom styles and layouts.

Does this docx processing approach work for managing comments and revision history?

Yes, this docx processing approach works for managing comments and revision history by directly manipulating the underlying XML. It supports professional workflows requiring comment management and tracked changes, allowing you to add comments for negotiation and export a clean final version.

Do I need defusedxml installed to process Word documents securely?

Yes, you need defusedxml installed to process Word documents securely, as it is a required dependency. The Skill relies on this library alongside pandoc and docx-js to safely parse and manipulate the ZIP-based XML document structures.

Why does modifying complex Word documents programmatically often break their formatting?

Modifying complex Word documents programmatically often breaks formatting because standard APIs fail to preserve intricate OOXML styles. This Skill prevents formatting loss by directly processing the raw ZIP-based XML structure, ensuring styles and layouts remain intact during automated editing.