Language:JapaneseEnglish

docx Claude Code Skill

Author
Anthropic
Topics
Documents & Content Creation
License
Proprietary (see LICENSE.txt)
First cataloged
2026-07-09 (UTC)
Explanation last updated
2026-09-03 (UTC)
Source (GitHub) last updated
2026-07-17 (UTC) (50 days ago)

The explanation below is AI-generated. Please verify it against the sources.

This is a Claude skill that enables creating, reading, editing, and analyzing Microsoft Word .docx and .dotx files. It relies on the docx npm library to build new documents from scratch, direct manipulation of the underlying XML (via unzip/zip) to edit existing files, and pandoc to read document content as markdown. The skill also covers formatting pitfalls (page size, tables, lists, TOC, images), verifying output by rendering pages to images through LibreOffice and Poppler, and handling advanced Word features such as tracked changes and comments. It includes helper scripts for merging fragmented text runs, validating XML against schemas, accepting tracked changes, and inserting comment anchors. This is a local document-processing capability rather than a connector to an external cloud service.

What you can do with docx

  • Generate new Word documents (.docx) with headings, tables of contents, tables, lists, images, and page breaks using the docx npm library
  • Read existing Word document content by converting it to markdown with pandoc
  • Edit existing .docx files by unpacking the XML, modifying document.xml, and repacking the archive
  • Convert legacy .doc files to .docx before editing
  • Merge fragmented text runs so searchable phrases can be located and replaced in the XML
  • Validate edited documents against XML schemas and auto-repair common issues
  • Add, track, and accept tracked changes (insertions/deletions) with proper author and date attributes
  • Insert and anchor comments to specific text ranges in a document
  • Render a finished document to images (via LibreOffice and pdftoppm) to visually verify formatting

Sources

History of docx

  • Claude Code Skill Updated skill content (SKILL.md) of docx
  • Claude Code Skill Updated the official description of docx

Back to list