← ClaudeAtlas

docxlisted

Create, read, edit, or convert Microsoft Word documents while preserving professional document structure. Use when a .docx file is a primary input or requested output, including tracked changes, comments, images, headings, page furniture, or polished reports and letters. Not for PDFs, spreadsheets, Google Docs, or unrelated coding tasks.
flonat/flonat-research · ★ 154 · Data & Documents · score 89
Install: claude install-skill flonat/flonat-research
# 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 [`references/docx-js-patterns.md`](references/docx-js-patterns.md) | | Edit existing document | Unpack → edit XML → repack — see Editing below | ### Converting .doc to .docx ```bash uv run python scripts/office/soffice.py --headless --convert-to docx document.doc ``` ### Reading Content ```bash # Text extraction with tracked changes pandoc --track-changes=all document.docx -o output.md # Raw XML access uv run python scripts/office/unpack.py document.docx unpacked/ ``` ### Converting to Images ```bash uv run python scripts/office/soffice.py --headless --convert-to pdf document.docx pdftoppm -jpeg -r 150 document.pdf page ``` ### Accepting Tracked Changes ```bash uv run python scripts/accept_changes.py input.docx output.docx ``` --- ## Creating New Documents Generate .docx files with JavaScript using `docx-js`. Install: `npm install -g docx` Full code patterns (setup, page size, styles, lists, tables, images, hyperlinks, footnotes, tab stops, multi-column layouts, TOC, headers/footers): [`references/docx-js-patterns.md`](references/docx-js-patterns.md) ### Critical Rules for docx-js - **Set page size explicitly** — defaults to A4; use US Letter (12240 x 15840 DXA) for US documents - **Landscape: pass