Skip to main content
skill Claude Code Claude.ai official · Anthropic

docx · anthropics — Claude Code skill: what it does, how to install

This skill creates, reads, and edits Word documents and templates. Use it for reports, letters, and files that need headings, tables, or page numbers.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add anthropics/skills
/plugin install document-skills@anthropic-agent-skills
Open on GitHub

What docx does

docx lets an agent work with .docx documents and .dotx templates. It can create new files, extract or reorganize content, replace images, run find-and-replace, and handle comments or tracked changes. Use it when the deliverable must be a Word file rather than a PDF, spreadsheet, or general code output.

New documents are built with an npm script using docx; the package is preinstalled, so the script can call require('docx') directly. Existing files are handled by unpacking the archive, editing word/document.xml, and packing the document again. pandoc reads document content, while soffice and pdftoppm can render the result for inspection. Separate Python scripts support comments, run merging, validation, and tracked changes.

Install this skill if your agent regularly prepares or revises Word files. Skip it for PDFs, spreadsheets, or unrelated coding work.

What it helps with

  • create a report as a .docx file
  • extract content from a Word document
  • edit an existing file while keeping its structure
  • replace images or text in a document
  • inspect a Word file after PDF conversion

Example prompts for the agent

  • Create `report.docx` with headings, a table of contents, and page numbers.
  • Read `contract.docx`, find every mention of the term, and replace it.
  • Edit `template.dotx`, add a comment to the disputed section, then render the result with `soffice`.

How to install docx

1Plugin marketplace

/plugin marketplace add anthropics/skills
/plugin install document-skills@anthropic-agent-skills

This installs the whole document-skills plugin with all its skills

2Skills CLI (Vercel)

npx skills add anthropics/skills --skill docx -a claude-code

3Manually: put the files in place

~/.claude/skills/docx/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/docx/

From the same set23

The whole set →
frontend-design official anthropics This skill guides intentional visual design for new interfaces and redesigns. Use it when a generic generated UI is not enough. Claude Code Claude.ai 1,025,790installs skill-creator official anthropics Creates and refines skills, then tests them with prompts, evaluations, and performance checks. Claude Code Claude.ai 414,180installs pptx official anthropics This skill helps create, read, and edit .pptx files and .potx templates. Use it when building a deck or extracting slide text. Claude Code Claude.ai 241,433installs pdf official anthropics This skill lets an agent read, create, and edit PDF files, including forms and scanned documents. Use it when PDF work is part of the task. Claude Code Claude.ai 216,041installs xlsx official anthropics Creates, reads, edits, and converts spreadsheet files. Use it when the requested deliverable is an Excel workbook or another tabular file. Claude Code Claude.ai 187,223installs webapp-testing official anthropics This skill tests local web apps with Playwright, helping agents debug UI behavior, capture screenshots, and inspect browser logs. Claude Code Claude.ai 186,758installs mcp-builder official anthropics This skill walks through building an MCP server in TypeScript or Python, from reading the protocol spec to writing tests and evaluation questions. Claude Code Claude.ai 130,949installs canvas-design official anthropics Builds posters and visual art in .png and .pdf by first writing a design philosophy, then expressing it on the canvas. Claude Code Claude.ai 121,543installs

Other versions of docx

Similar

Questions about docx

How do I install docx in Claude Code?

Add the marketplace with /plugin marketplace add anthropics/skills, then run /plugin install document-skills@anthropic-agent-skills. You can also use npx skills add anthropics/skills --skill docx -a claude-code.

What does the docx skill do?

It helps the agent create, read, and edit .docx and .dotx files, including formatting, images, comments, and tracked changes. New documents use the docx npm package, while pandoc is used for reading.

Which tools are needed to inspect the generated document?

Rendering uses LibreOffice through soffice and pdftoppm from Poppler. Content reading requires pandoc.

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor