docx

Creates, edits, and analyzes Word .docx files via JavaScript and Python OOXML.

Updated Mar 28, 2026
One-click install
npx skills add https://github.com/hidariutiwa/flask-learning --skill docx-hidariutiwa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/hidariutiwa/flask-learning/tree/main/.claude/skills/docx
Command: npx skills add https://github.com/hidariutiwa/flask-learning --skill docx-hidariutiwa

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill eliminates the complexity of programmatically working with .docx files, which are intricate ZIP archives containing XML, relationships, and media. It removes the need to manually parse OOXML or manage low-level formatting details, enabling seamless document automation for creation, editing, and review.

Core Features & Use Cases

  • Document Creation: Generate professional .docx files from scratch using JavaScript with full control over styles, tables, lists, images, and page layout.
  • Editing & Redlining: Modify existing documents with tracked changes, comments, and precise XML-level edits using Python, including specialized workflows for legal, academic, and business document review.
  • Text Extraction & Analysis: Convert documents to markdown or inspect raw XML to analyze content, formatting, and embedded resources.
  • Use Case: A legal team can use this Skill to automatically apply tracked changes to a contract, add reviewer comments, and export a clean .docx file ready for client delivery.

Quick Start

Use the docx skill to create a new professional document with a title, headings, and a bulleted list based on the meeting notes provided.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I programmatically apply tracked changes to a Word document for contract redlining?

To apply tracked changes for contract redlining, you can programmatically modify existing .docx files using Python for precise XML-level edits, adding reviewer comments and tracked changes to generate a clean document ready for delivery.

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 to convert the document to markdown or inspect its raw XML to analyze content, formatting, and embedded resources without manual intervention.

Do I need pandoc and LibreOffice to automate document creation and editing?

Yes, you need pandoc, LibreOffice, and Python libraries like defusedxml to automate document creation and editing, as these tools parse XML, validate schemas, and preserve formatting during high-level and low-level OOXML manipulation.

Can I generate a professional DOCX file from scratch using JavaScript?

Yes, you can generate professional .docx files from scratch using JavaScript, gaining full control over document styles, tables, lists, images, and page layout for report generation and business use cases.

Why does modifying a Word document programmatically often break its formatting?

Modifying a Word document programmatically often breaks formatting because .docx files are intricate ZIP archives containing XML and relationships that require low-level OOXML manipulation and schema validation to preserve without manual intervention.