docx

Create, modify, and analyze Word .docx files using JavaScript/TypeScript OOXML workflows.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill enables automated creation, reading, editing, and analysis of Word documents (.docx) by exposing robust OOXML workflows and library integrations, empowering developers to generate polished Word files without manual formatting.

Core Features & Use Cases

  • Programmatic DOCX creation and editing using JavaScript/TypeScript with docx-js patterns and related tooling.
  • Unpack/edit/repacks of Word documents by manipulating underlying OOXML XML, enabling complex formatting, styles, tables, images, headers/footers, and tracked changes.
  • Support for advanced document constructs: tables with proper widths, image embedding with sizing, numbering/bullets, bookmarks, comments, and TOC integration, plus tracked changes with author metadata.

Quick Start

Create a sample DOCX with the library, then perform a basic edit and save the result.

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 programmatically using JavaScript?

Programmatic Word document creation uses JavaScript OOXML workflows to generate .docx files with automated formatting, content insertion, and tracked changes.

Can I manipulate OOXML to add tracked changes in a .docx file?

Yes, you can unpack and edit Word documents by manipulating the underlying OOXML XML, enabling complex formatting and tracked changes with author metadata.

What is the best way to automate inserting tables and images into a .docx file?

Automating .docx editing through OOXML workflows allows you to programmatically insert tables with proper widths and embed images with specific sizing.

Does this workflow support advanced document constructs like headers, footers, and comments?

Yes, OOXML manipulation supports advanced constructs including headers, footers, numbering, bullets, bookmarks, comments, and table of contents integration.

What dependencies are needed to unpack and repack Word documents for editing?

You need defusedxml and lxml dependencies to securely parse and manipulate the underlying XML structure when unpacking and repacking Word documents.

How do I analyze an existing Word document programmatically?

You can analyze existing Word documents by unpacking the .docx file and reading the underlying OOXML XML to extract content, styles, and tracked changes metadata.