DOCX
Officialby Anthropic
The DOCX skill from Anthropic teaches Claude how to create, read, edit, and manipulate Microsoft Word documents (.docx files) with professional-grade formatting and structure. It activates automatically whenever you mention Word documents, .docx files, or request deliverables like reports, memos, letters, or templates. The skill provides three core workflows: creating new documents from scratch using the docx-js JavaScript library with full support for styled headings, tables, images, headers, footers, page numbers, hyperlinks, footnotes, and tables of contents; reading and analyzing existing documents via pandoc text extraction or raw XML unpacking; and editing existing documents through an unpack-modify-repack XML workflow that preserves tracked changes and comments. The skill includes critical formatting rules that prevent common pitfalls, such as always setting explicit page sizes instead of relying on the A4 default, using proper numbering configuration instead of unicode bullet characters, requiring dual width specifications on tables for cross-application compatibility, and enforcing ShadingType.CLEAR for cell backgrounds. It bundles Python helper scripts for document validation, tracked change acceptance, comment management, and LibreOffice-based format conversion. Whether you need a polished client proposal, an internal technical report, a formatted letter with letterhead, or a complex document with multi-column layouts and bookmarked cross-references, this skill gives Claude the detailed knowledge to produce Word documents that render correctly in Microsoft Word, Google Docs, and LibreOffice.
Installation
Key Features
- ✓Create new Word documents with styled headings, tables, images, headers, footers, and tables of contents using docx-js
- ✓Read and extract content from existing .docx files via pandoc or raw XML unpacking
- ✓Edit existing documents through an unpack-modify-repack workflow that preserves tracked changes and comments
- ✓Full page layout control including US Letter/A4 sizing, margins, multi-column layouts, and landscape orientation
- ✓Bundled Python helper scripts for document validation, tracked change acceptance, and format conversion via LibreOffice
- ✓Cross-application compatibility rules ensuring documents render correctly in Microsoft Word, Google Docs, and LibreOffice
Use Cases
- →Generate polished client proposals, business reports, and memos with professional formatting directly from Claude Code
- →Convert markdown or plain text content into well-structured Word documents with tables of contents and page numbers
- →Batch-process existing .docx files to accept tracked changes, insert comments, or replace images programmatically
- →Create reusable document templates with consistent branding, heading styles, and layout settings
- →Extract and reorganize content from Word documents for analysis or migration to other formats