AI Skill MartBrowse skillsPromptsProgramsLearnWhat is a Skill?
← Back to list

DOCX Creation & Editing Skill

Official

Official skill for creating, reading, and editing Word (.docx/.dotx) files, including tracked changes and comments.

Docs & OfficeIntermediate★ 187,763⑂ 22,153AI score 10/10Last updated: Oct 28, 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 → zip workflow, using merge_runs.py to 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

  1. "Turn this analysis into a Word report with a table of contents and page numbers" → docx-js script, then PDF render to check layout.
  2. "Revise Section 4 of this contract with tracked changes" → direct XML edits plus validate.py --author to catch untracked edits.
  3. "Comment on this clause that the fee cap is too low" → comment.py writes 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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download ZIP
Install in Claude Code

Let Claude do it — paste this into Claude Code

Install the skill I found on AI 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.

  1. Open a terminal.
  2. Clone the repo: git clone https://github.com/anthropics/skills.git
  3. Create the skills folder: mkdir -p ~/.claude/skills
  4. Copy the skill: cp -r skills/skills/docx ~/.claude/skills/docx
  5. Install dependencies: brew install pandoc poppler (macOS; use apt on Linux) plus LibreOffice. The Node docx package is usually preinstalled — only run npm install docx if require('docx') fails.
  6. Restart Claude Code and ask something like "make this into a Word document" — the skill triggers automatically.