Astral

docx

Skill · Version 1 · Nov 7, 2026

About docx

Use when you create, read or edit a Word file (.docx/.dotx): reports, memos, letters, tracked changes, comments, find-and-replace. Not for PDF or spreadsheet output.

What it does

> **AIOS notes.** Run the scripts with `sandbox_exec` on an AIOS computer. Install a missing library (python-docx, openpyxl, pptxgenjs, pypdf, LibreOffice) only when an import fails. Save the finished file to the Library with `library.save_files`. # 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 | | **Edit** an existing document | `unzip` → edit `word/document.xml` → `zip` (docx-js cannot open existing files) | | **Read** co…