Setup & Installation
What This Skill Does
Handles .docx file creation, editing, and analysis. Supports generating structured Word documents from scratch using docx-js, editing existing files by unpacking and modifying XML, and extracting content with pandoc. Covers tables, images, tracked changes, headers/footers, footnotes, and table of contents.
Generating .docx files manually means wrestling with XML namespaces, DXA unit math, and docx-js quirks like portrait/landscape dimension swaps — this skill encodes those rules so you don't have to rediscover them.
When to use it
- Creating a formatted Word report with tables, headings, and page numbers
- Editing an existing contract to add tracked changes with author attribution
- Extracting text from a .docx file into markdown for further processing
- Converting a .doc legacy file to .docx and updating its content
- Building a memo template with a header, footer, and auto-generated table of contents