Skip to content
AI Dev Toolkit.
Esc
  • Loading…

Claude skill · Documents · Anthropic

Word (DOCX) skill for Claude

The DOCX skill is Anthropic’s skill for Word documents. Claude loads it whenever a .docx file is involved, to build new documents or to edit existing ones in their XML, keeping tracked changes, comments and styles. It is built into claude.ai and the API, and Claude Code gets it through the document-skills plugin. Its licence forbids copies.

Command
/docx
Licence
Proprietary: no copies, link only
Folder
61 files, 1.1 MB
Runs code
15 scripts

Overview

What does the Word (DOCX) skill do?

The DOCX skill covers both directions. New documents are built with the docx npm library, and the instructions list the formatting traps that break or quietly spoil the output. Existing documents are unpacked to their XML, edited in place and packed again, so styles and layout survive.

It handles the parts of Word that simple converters lose: tracked changes (including accepting them with a script), comments, headings, page numbers and tables of contents. A bundled LibreOffice wrapper converts .doc to .docx and renders PDFs so the output can be checked visually.

Triggers

When does Claude use it?

  • Mentions of a Word document, .docx or .dotx file.
  • Requests for a report, memo, letter or template delivered as a Word file.
  • Editing an existing document: find and replace, images, tracked changes or comments.

What it needs

  • Node.js with the `docx` package, pandoc, LibreOffice and Poppler.
  • About sixty files, mostly Office XML schemas used to validate the output.
  • Proprietary licence: use it through Claude or the official plugin only.

Install

How do I install it in Claude Code?

From the plugin marketplace

Plugin (type in Claude Code)
/plugin marketplace add anthropics/skills
/plugin install document-skills@anthropic-agent-skills

The document-skills plugin brings 4 skills, including this one; it runs as /document-skills:docx.

Anthropic’s managed version isn’t part of Claude Code. The plugin installs the published folder instead, and its scripts run on your machine, so install the tools listed under “What it needs” first.

As a personal or project skill

Its licence doesn’t allow copies, so we don’t give a copy command. Install it with the plugin instead.

claude.ai and API

How do I use it in claude.ai and the API?

claude.ai

It’s built in. Turn on Code execution and file creation in Settings > Capabilities and Claude uses it whenever a task needs it. You can switch individual skills on or off in Customize > Skills.

Claude API

Anthropic runs this skill for you. Reference it as docx in the container, together with the code execution tool:

Messages API request (excerpt)
{
  "container": {
    "skills": [
      {
        "type": "anthropic",
        "skill_id": "docx",
        "version": "latest"
      }
    ]
  },
  "tools": [
    {
      "type": "code_execution_20250825",
      "name": "code_execution"
    }
  ]
}

API containers have no network access, so its scripts can’t download anything there.

Checks

SKILL.md validator results

Its SKILL.md (91 lines) run through our SKILL.md validator, with the folder’s file list, for both targets. These check the file’s format, not whether the skill works well.

Claude Code

0 errors, 0 warnings, 1 tip

  • tipSKILL.md doesn’t mention scripts/__init__.py, scripts/office/helpers/__init__.py, scripts/office/helpers/pptx_chart.py, scripts/office/helpers/pptx_slide.py, scripts/office/helpers/pptx_theme.py and 49 more. Say what each file is for and when to read or run it, or Claude won’t know to use it.

claude.ai and the API

0 errors, 0 warnings, 2 tips

  • tipThe Claude Help Center’s upload guide gives a 200-character description limit for claude.ai, though the platform docs say 1,024. Keep it under 200 if you’ll upload it there.
  • tipSKILL.md doesn’t mention scripts/__init__.py, scripts/office/helpers/__init__.py, scripts/office/helpers/pptx_chart.py, scripts/office/helpers/pptx_slide.py, scripts/office/helpers/pptx_theme.py and 49 more. Say what each file is for and when to read or run it, or Claude won’t know to use it.

Folder

What’s in the folder?

  • LICENSE.txt1.4 KB
  • SKILL.md6.7 KB
  • scripts/59 files, 1.1 MB

Source

Licence and source

FAQ

Questions people ask

Can Claude edit a Word document with tracked changes?

Yes. The DOCX skill edits the document’s XML directly instead of rebuilding it, so it can add insertions, deletions and comments that show up as tracked changes in Word. It also has a script for accepting existing tracked changes. Open the result in Word and step through the changes before you share it, as you would with a human reviewer.

Can Claude use my company’s Word template?

Yes, as an existing document. Give Claude the .docx or .dotx file and ask it to fill or adapt it: the skill unpacks the file, edits it in place and packs it again, so your styles, headers and layout survive. That keeps your branding more reliably than asking for a new document that only imitates the template’s look.

What does the DOCX skill need in Claude Code?

Node.js with the docx npm package, plus pandoc, LibreOffice and Poppler, because Claude Code runs its scripts on your own machine. LibreOffice converts old .doc files and renders PDFs so Claude can check the layout. On claude.ai and the API you install nothing: Anthropic runs the skill in its own code execution container.

Related

All Claude skillsWrite your own skillSlash command builderGuide: subagents, skills and commands