DOCX
DOCX is Anthropic's official agent skill for Word documents. It creates new files, edits existing ones, handles tracked changes and comments, and verifies the result by rendering it, so the document you get is a real .docx, not a text dump.
Install
npx skills add https://github.com/anthropics/skills --skill docx
Skill files (1)
- skills/docx/SKILL.md
Quality and security
DOCX Review: Anthropic's Official Skill for Word Documents That Look Professional
Ask an agent for a report and you usually get a long chat message. Ask for it as a Word file and the result is often worse: a plain dump with broken tables, no table of contents, and formatting that falls apart the moment someone opens it in Word. The model wrote the words. It did not build a document.
DOCX is Anthropic's official skill for Word documents, from the repository that powers Claude's document capabilities. Its SKILL.md runs 174 lines, it ships scripts for merging runs, validating files, and managing comments, and it comes from the same official source as the pptx and pdf skills. It treats a .docx as a ZIP archive of XML with rules worth respecting.
What is DOCX?
DOCX fires whenever the user wants a Word document or template: a report, a memo, a letter, a contract, or a polished deliverable with a table of contents, headings, page numbers, or a letterhead. It also handles reading and reorganizing .docx files, inserting or replacing images, find-and-replace, tracked changes, and comments. It explicitly does not do PDFs, spreadsheets, or Google Docs.
The approach is chosen by task. New documents are written as scripts using the docx library. Editing an existing file means unzipping it, editing the document XML, and zipping it back, because the creation library cannot open existing files. Reading goes through pandoc. Every finished file is rendered and inspected, page by page, before it is handed over.
Key Features
1. New documents built as code, with the gotchas listed
The skill documents the exact traps in the docx library: page size defaults to A4, tables need dual widths in DXA units, lists must use a numbering config rather than literal bullets, image runs require a type, page breaks must sit inside a paragraph. Each rule prevents a specific visible defect.
2. Real editing of existing files
Unzip, edit, re-zip, validate. A merge-runs script coalesces Word's fragmented text runs so a phrase you can see is actually findable in the XML. Legacy .doc files are converted first. The result is a file Word accepts, not a best-effort approximation.
3. Tracked changes done properly
Redlining is supported end to end: wrap changes in insertion and deletion markers with author and date, validate them against the original with an author check, and produce a clean copy with all changes accepted. The skill even warns about the artifacts each approach leaves behind.
4. Comments with all six cross-linked files
Comments in Word require six linked files. A helper script writes them all, assigns comment IDs, and prints the anchor snippet to place in the document XML, so the comment appears exactly where it should instead of floating unattached.
5. Verify by rendering, not by trusting
After writing a .docx, the agent converts it to PDF, renders the pages to images, and looks at them. Table shading, spacing, and page breaks are checked visually, because XML that validates can still look wrong on the page.
How It Works
Install it with the skills CLI. The command below pulls just the docx skill from the official Anthropic repository:
npx skills add https://github.com/anthropics/skills --skill docx
Then ask for a report, memo, letter, or template in plain words. The agent writes the generator script or edits the file you named, validates the output, renders it to images, and inspects the pages. It also installs as part of the document-skills plugin from the same repository.
Who Should Use DOCX?
Anyone who needs Word files from an agent should install it: consultants writing client reports, founders drafting contracts and memos, analysts producing recurring reports, operations staff maintaining templates. It is most valuable when the document will be opened in Word, shared with others, and edited by a human afterward.
Pricing
DOCX is free to install and use. The skill costs nothing. The same license condition as the other Anthropic document skills applies: the repository is source-available, not open source, under a proprietary license file. Use falls under your agreement with Anthropic, and you may not copy the materials, keep copies outside Anthropic services, make derivative works, or distribute them.
Pros and Cons
Pros: official Anthropic guidance with format-specific rules that prevent real defects; proper tracked changes and comments, which most document tools skip; a render-and-inspect verification pass; 174 lines of dense, practical instruction.
Cons: the license is proprietary source-available, which limits reuse of the skill text; it is Claude-first and the document skills are not all available in every Claude surface; it depends on local tools such as pandoc, LibreOffice, and Poppler; editing requires XML surgery, so complex edits take longer than generation.
Final Verdict
DOCX turns document generation from a text dump into a real deliverable. The tracked-changes support and the render-and-inspect pass are the parts that matter most: they are what make the file trustworthy enough to send to a client. If Word documents are part of your work, install it. Try it on GitHub: anthropics/skills.



