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
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
.docxfile - 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/skillsCommand from the source
/plugin install document-skills@anthropic-agent-skillsCommand from the source
npx skills add anthropics/skills --skill docx -a claude-codeWith the Skills CLI (Vercel)
npx skills add anthropics/skills --skill docx -a claude-codeManually
~/.claude/skills/docx/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/docx/
Manually
.agents/skills/docx/SKILL.mdFor all projects use ~/.agents/skills/
Manually
.cursor/skills/docx/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
GitHub CLI (gh ≥ 2.90)
gh skill install anthropics/skills docxManually
.github/skills/docx/SKILL.mdGemini CLI
gemini skills install https://github.com/anthropics/skills --path skills/docxManually
.devin/skills/docx/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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.