docx

Create, edit, and analyze Word documents with tracked changes and comments.

1|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/Cramer-69/skills-repository-3af2d1c7 --skill docx-cramer-69
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Cramer-69/skills-repository-3af2d1c7/tree/main/packages/claude/skills/docx
Command: npx skills add https://github.com/Cramer-69/skills-repository-3af2d1c7 --skill docx-cramer-69

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Working with .docx files programmatically is difficult because they are ZIP archives of XML files, making tasks like editing content, adding tracked changes, or inserting comments error-prone without the right workflows and tooling. ## Core Features & Use Cases - Document Creation: Generate new Word documents from scratch using the docx-js JavaScript library with styles, tables, lists, images, headers, and footers. - Editing & Redlining: Modify existing documents with tracked changes and comments using a Python Document library that handles OOXML infrastructure, RSIDs, and validation automatically. - Content Analysis: Extract text via pandoc, access raw XML for comments and metadata, and convert documents to images for visual review. - Use Case: Review a legal contract by converting it to markdown, planning batched tracked changes, implementing them in OOXML with minimal precise edits, and verifying the final redlined document. ## Quick Start Ask the AI to review the attached contract.docx and add tracked changes updating all payment terms from 30 days to 60 days.

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 file, then use the Python Document library to wrap edits in <w:ins> and <w:del> tags at paragraph level. The library auto-injects RSIDs, author, and date attributes, and validates the result on save.

How to create a Word document with JavaScript?▼

Use the docx npm library with Document, Paragraph, and TextRun components, then export with 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 complex formatting, unpack the file and read the raw XML directly.

Can I reject someone else's tracked changes in a docx file?▼

Yes, use revert_insertion() to wrap another author's insertion in a deletion, or revert_deletion() to restore deleted content as a new insertion. Never modify text inside another author's tracked change tags directly.

Why does my generated docx fail to open in Word?▼

Common causes include standalone PageBreak elements outside a Paragraph, using ShadingType.SOLID for table cells, missing ImageRun type parameters, or nesting <w:ins>/<w:del> inside <w:r> elements instead of at paragraph level.