General
9,490 installs
DOCX creation, editing, and analysis
by anthropics/skills
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word…
Skill content
Create, read, edit, and manipulate Word documents (.docx files) with full formatting control. - Create new .docx files from scratch using JavaScript with support for headings, tables, images, hyperlinks, footnotes, headers/footers, and table of contents - Edit existing documents by unpacking XML, making targeted changes (including tracked changes and comments), and repacking with validation - Extract text and analyze content using pandoc or raw XML access; convert legacy .doc files to .docx format - Handle professional formatting: page sizes (US Letter/A4), margins, multi-column layouts, tab stops, and styled lists without manual unicode characters DOCX creation, editing, and analysis Overview A .docx file is a ZIP archive containing XML files. Quick Reference Task Approach Read/analyze content pandoc or unpack for raw XML Create new document Use docx-js - see Creating New Documents below Edit existing document Unpack → edit XML → repack - see Editing Existing Documents below Converting .doc to .docx Legacy .doc files must be converted before editing: