DOCX Creation & Editing Skill
OfficialOfficial skill for creating, reading, and editing Word (.docx/.dotx) files, including tracked changes and comments.
Docs & OfficeIntermediate★ 177,650⑂ 21,037AI score 10/10Last updated: Sep 22, 2026
What it does
- Generates new Word documents via
docx(npm) scripts, with correct settings for A4 vs US Letter, landscape, table widths, TOC, and dot-leader tabs. - Edits existing files through an
unzip → edit word/document.xml → zipworkflow, usingmerge_runs.pyto coalesce fragmented runs so find-and-replace actually works. - Produces schema-correct redlines with
<w:ins>/<w:del>, validates that every edit is tracked, and can emit a clean copy with all changes accepted. - Adds comments (which need six cross-linked XML parts) automatically via
comment.py. - Verifies output by converting to PDF and rendering page images for visual inspection.
Who it's for
- Anyone producing formatted Word deliverables: reports, memos, letters, contracts, letterhead templates.
- Legal/consulting users who need to redline and annotate third-party contracts.
- Developers building automated document-generation pipelines.
Examples
- "Turn this analysis into a Word report with a table of contents and page numbers" → docx-js script, then PDF render to check layout.
- "Revise Section 4 of this contract with tracked changes" → direct XML edits plus
validate.py --authorto catch untracked edits. - "Comment on this clause that the fee cap is too low" →
comment.pywrites the comment parts and prints the anchor markers to insert.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/anthropics/skills/HEAD/skills/docx/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
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/docx⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repo:
git clone https://github.com/anthropics/skills.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r skills/skills/docx ~/.claude/skills/docx - Install dependencies:
brew install pandoc poppler(macOS; use apt on Linux) plus LibreOffice. The Nodedocxpackage is usually preinstalled — only runnpm install docxifrequire('docx')fails. - Restart Claude Code and ask something like "make this into a Word document" — the skill triggers automatically.