Docx

Create, edit, and analyze Word documents with tracked changes, tables, and format conversion.

Updated Jul 10, 2026
One-click install
npx skills add https://github.com/Kaleb-Rupe/aurora --skill docx-kaleb-rupe
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Docx
Source: https://github.com/Kaleb-Rupe/aurora/tree/main/claude/skills/Utilities/Documents/Docx
Command: npx skills add https://github.com/Kaleb-Rupe/aurora --skill docx-kaleb-rupe

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Working with Word documents programmatically is error-prone: OOXML is verbose, tracked changes require precise XML structure, and naive edits corrupt files. This Skill provides tested workflows and a Python library for creating, editing, redlining, and analyzing .docx files without breaking document integrity. ## Core Features & Use Cases - Document Creation: Generate professional Word documents from scratch using docx-js with styles, tables, images, lists, headers, and table of contents. - Tracked Changes & Redlining: Implement precise insertions, deletions, and comments using the Python Document library, with automatic RSID handling and validation — ideal for legal contract review. - Reading & Conversion: Extract text via pandoc, unpack raw OOXML for deep inspection, and convert documents to PDF or images for visual analysis. - Use Case: A lawyer asks you to change payment terms in a contract. The Skill unpacks the .docx, applies minimal tracked changes in batches with proper <w:ins>/<w:del> tags, repacks the file, and verifies every edit via pandoc conversion. ## Quick Start Ask the assistant to create a Word document from your outline, or provide a .docx file and request tracked changes to specific sections.

Frequently Asked Questions about Docx

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

FAQPage Schema
How do I add tracked changes to a Word document programmatically?

Unpack the .docx with the pack/unpack scripts, then use the Python Document library to wrap edits in <w:ins> and <w:del> tags with proper RSIDs. The library auto-injects author, date, and ID attributes, and validates the result on save.

How do I create a Word document from scratch in JavaScript?

Use the docx npm library with Document, Paragraph, and TextRun components, then export via Packer.toBuffer(). Define custom styles, use numbering config for lists instead of unicode bullets, and set columnWidths for tables.

How do I extract text from a docx file?

Convert the document to markdown using pandoc with the --track-changes=all flag to preserve insertions and deletions. For comments, embedded media, or raw structure, unpack the file and read word/document.xml directly.

Why does my edited Word document fail to open?

Common causes include nesting <w:ins> or <w:del> inside <w:r> elements, standalone PageBreak elements, invalid RSIDs, or missing relationship entries. The Document library's save validation catches schema violations before packing.

Can I convert a Word document to images for visual review?

Yes. Convert the .docx to PDF with LibreOffice's headless mode, then use pdftoppm to render pages as JPEG or PNG at a chosen DPI. This lets you visually inspect layout, tables, and formatting.