docxlisted
Install: claude install-skill oxoffice-dev/oxoffice-skills
# Word documents with oxoffice
oxoffice reads and writes the OOXML package natively, keeps every part it does not touch byte for byte, and
renders pages itself (no LibreOffice): the `oxoffice docx` CLI for whole files, the `oxoffice.docx` Python module
for anything finer. Use them for every .docx task. Names follow python-docx where they can
(`references/python-api.md`, "python-docx names"). `oxoffice limitations docx` lists what it cannot do yet.
## Setup, once per session
Needs **oxoffice** 0.2.0 or later (written and checked with 0.2.0): the one installed, else through a package
manager. Take the first way that works, keep it. Each defines two shell functions (bash, zsh): `ox`, the CLI, and
`oxpy`, a Python with oxoffice. Shell state is lost between tool calls: define them first.
1. **Already installed**: `oxoffice --version` and `python3 -c "import oxoffice; print(oxoffice.__version__)"`
both print 0.2.0 or later: `ox() { oxoffice "$@"; }; oxpy() { PYTHONUTF8=1 python3 "$@"; }`. Older: leave it.
2. **uv**: `ox() { uvx --python '>=3.10' --from 'oxoffice>=0.2.0' oxoffice "$@"; }`,
`oxpy() { PYTHONUTF8=1 uv run --no-project --python '>=3.10' --with 'oxoffice>=0.2.0' python "$@"; }`.
3. **pip in a virtual environment** of its own, made once (`Scripts` for `bin` on Windows):
```bash
V="${XDG_CACHE_HOME:-$HOME/.cache}/oxoffice-venv"
[ -x "$V/bin/oxoffice" ] || { python3 -m venv "$V" && "$V/bin/pip" install -q 'oxoffice>=0.2.0'; }
ox() { "${XDG_CACHE_HOME: