docx

Originally fromanthropics/skills
Installation
SKILL.md

DOCX creation, editing, and analysis

A .docx is a ZIP archive of XML files. Choose your approach by task:

Task Approach
Create a new document Write a docx (npm) script — see gotchas below
Fill placeholders in a template patchDocument({ data, outputType, patches }) from docx
Edit arbitrary existing content Safely unpack → edit the relevant OOXML parts → repackage
Read content pandoc -f docx -t markdown --track-changes=all file.docx for review; accept for the accepted text view

Script paths below are relative to this skill's directory.

Creating with docx-js — gotchas

Examples target docx 9.8.1. Check node -p "require.resolve('docx')" in the script's project first. If absent, install it there with npm install docx@9.8.1; preinstallation is environment-specific. These are the main layout constraints:

Installs
1.8K
GitHub Stars
48.2K
First Seen
Jan 20, 2026