Word Documents (.docx)
Create, read, edit Word .docx documents and templates.
📖 Guide
Load with skill_view("docx"). Create, read, and edit Word documents — reports, memos, letters, letterheads, tables of contents, tracked changes (redlining), and comments. A `.docx` is a ZIP archive of XML files; this skill covers both the high-level creation path and surgical XML editing.
🔧 How To
Skill sections: DOCX Skill, When to Use, Prerequisites, Quick Reference, Creating with docx-js — gotchas, Verify the output.
⚠️ Pitfalls
- Don't round-trip OOXML through `xml.etree.ElementTree` — it rewrites namespace prefixes and corrupts the file. Use `defusedxml.minidom` for scripted transforms. - Zip from INSIDE the unpacked directory (`cd unpacked && zip -Xr ../out.docx .`) and `rm` the target first, or deleted parts survive in the archive.
Related Skills
More skills in Productivity