docx

Create and edit Word documents with tracked changes and OOXML validation.

Updated Oct 19, 2025
One-click install
npx skills add https://github.com/az9713/claude_skill_hn_mcp_server --skill docx-az9713
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/az9713/claude_skill_hn_mcp_server/tree/main/.claude/skills/docx
Command: npx skills add https://github.com/az9713/claude_skill_hn_mcp_server --skill docx-az9713

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandoc, docx, libreoffice, poppler-utils, defusedxml, and includes scripts (resource) components.

What problem does it solve?

This Skill eliminates the complexity of working with Microsoft Word documents programmatically, providing comprehensive tools for document manipulation.

Core Features & Use Cases

  • Document Creation: Generate professional Word documents from scratch using JavaScript/TypeScript.
  • Tracked Changes: Implement professional redlining workflows for document review and collaboration.
  • Use Case: Imagine you need to create a business report with proper formatting, tables, and styles. Use this Skill to automatically generate the document with consistent styling and structure.

Quick Start

Use the docx skill to create a new Word document with a title, heading, and formatted paragraph content.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate Word document creation with formatting and styles?

Word document creation can be automated using docx libraries to generate .docx files programmatically with consistent formatting, tables, styles, and structure. This Skill provides JavaScript/TypeScript tools to build professional documents from scratch, eliminating manual formatting and enabling batch generation of reports, contracts, and structured content at scale.

Can I implement tracked changes and redlining workflows in Word documents?

Tracked changes and redlining are supported through OOXML manipulation and comment insertion capabilities. This Skill enables professional document review workflows by automating the addition of revisions, comments, and change tracking directly within .docx files, preserving Word compatibility and formatting integrity.

What's the best way to extract text and analyze Word document content programmatically?

Text extraction from .docx files is performed by unpacking the OOXML structure and parsing XML content. This Skill provides extraction workflows that preserve whitespace, formatting metadata, and document structure, enabling downstream analysis, validation, and content transformation while maintaining XML well-formedness.

How do I ensure Word documents remain compatible with OOXML schemas and Microsoft Word?

OOXML compatibility is maintained through XSD schema validation, RSID management, relationship and content-type integrity checks during document packing and unpacking. This Skill automates these validation steps to prevent corruption and ensure generated or modified .docx files open correctly in Word and related applications.

Can I edit existing Word documents and preserve their original formatting?

Existing .docx files can be edited by unpacking the OOXML structure, modifying specific elements, and repacking while preserving relationships, styles, and formatting. This Skill handles the complexity of OOXML manipulation to enable surgical edits—inserting content, updating tables, adding comments—without corrupting the document structure.

Do I need external tools like pandoc or LibreOffice to work with docx files?

This Skill bundles dependencies including pandoc, LibreOffice, and poppler-utils to handle diverse document workflows. While core .docx creation and editing use native OOXML libraries, external tools enable advanced format conversion, PDF extraction, and compatibility checks depending on your specific use case.