Skip to main content
skill · Claude Code, Claude.ai

docx — 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.

  • Author anthropics
  • License LicenseRef-Proprietary
  • GitHub ★ 183,434
  • Installs 206,304
  • Updated 2026-10-09
  • Source on GitHub
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

How to install docx

Command from the source

/plugin marketplace add anthropics/skills

Command from the source

/plugin install document-skills@anthropic-agent-skills

Command from the source

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

With the Skills CLI (Vercel)

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

Manually

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

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

How to use it: example prompts

  • 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`.

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.

Similar

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