DOCX Document Toolkit
OfficialOfficial skill for creating, reading, editing, redlining, and commenting on Word (.docx) documents.
Docs & OfficeIntermediate★ 167,132⑂ 19,920AI score 9/10Last updated: Aug 7, 2026
What it does
- Create: writes
docx(npm) scripts to produce polished Word files with tables of contents, headings, page numbers, tables, and images — plus a curated list of footguns (A4 vs US Letter, landscape orientation, dual table widths, dot leaders, bullet numbering). - Edit: unzips the archive, edits
word/document.xmldirectly, and rezips.merge_runs.pycoalesces fragmented runs so find-and-replace actually matches visible text. - Verify: converts to PDF via LibreOffice, rasterizes pages with
pdftoppmso the output can be visually inspected, and runs XSD validation with optional--auto-repair. - Tracked changes: correct
<w:ins>/<w:del>semantics (including deleted paragraph marks), author-scoped validation to catch untracked edits, andaccept_changes.pyfor a clean copy. - Comments:
comment.pygenerates all six cross-linked XML parts, relationships, and content types, then prints the anchor markers to insert.
Who it's for
- Anyone who must deliver reports, memos, letters, or templates as real Word files
- Legal and contract teams that depend on proper redlining and comments
- Ops teams doing bulk find-and-replace, image swaps, or content extraction across many .docx files
Examples
- "Build a US Letter quarterly report with a cover page, auto TOC, and page numbers" → generates a docx-js script and renders the PDF for a visual check.
- "Revise the indemnity clause with tracked changes under my name" → proper
<w:ins>/<w:del>markup plus validation that nothing was edited untracked. - "Leave a review comment on paragraph 3" → comment XML generated and anchored to the exact text range.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/docx folder from the GitHub repo anthropics/skills into my ~/.claude/skills/docx/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/anthropics/skills.git && mkdir -p ~/.claude/skills && cp -r skills/skills/docx ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and clone the repo:
git clone https://github.com/anthropics/skills.git - Create the Claude skills directory:
mkdir -p ~/.claude/skills - Copy just this skill:
cp -r skills/skills/docx ~/.claude/skills/ - Install the dependencies. macOS:
brew install pandoc poppler libreoffice; Ubuntu/Debian:sudo apt install pandoc poppler-utils libreoffice - Make sure Node.js is available; run
npm install docxifrequire('docx')fails. - Restart Claude Code and ask something like "create a Word report with a table of contents" — the skill triggers automatically.