Use this guide when the unified launcher finds no usable installation and installation is chosen. The launcher discovers the preinstalled entry on PATH; desktop availability only selects the installation guidance.
On desktop (ZCODE_PREINSTALLED_TOOLS_AVAILABLE is set), report the unavailable preparation state and its reason, then ask the user to wait or let the Agent install. Keep existing files. After installation, use the unified launcher rather than soffice directly.
Any step that calls libreoffice/soffice (.doc → .docx, DOCX → PDF, visual verification)
depends on LibreOffice.
If LibreOffice is not installed, you MUST install it. This is not a choice.
FORBIDDEN — do not do any of these:
REQUIRED sequence — no steps skipped, in this order:
https://mirrors.tuna.tsinghua.edu.cn/libreoffice/libreoffice/stable/26.8.0/ — pick the
subdirectory for the platform/arch (deb/x86_64, deb/aarch64, rpm/x86_64, mac/aarch64,
mac/x86_64, win/x86_64, win/aarch64) and download the main package from it. If 26.8.0 is no
longer there, list https://mirrors.tuna.tsinghua.edu.cn/libreoffice/libreoffice/stable/ and take
the newest version. Full per-platform download-and-install commands: env_setup/setup.md →
"LibreOffice — Recommended Download Source".
Package-manager fallback, only if the mirror is unreachable:
brew install --cask libreofficesudo apt install libreoffice-corewinget install TheDocumentFoundation.LibreOfficePATH, then re-verify. An install that leaves soffice off the
executable search path looks identical to "not installed" on the next probe — that is what causes
the same several-hundred-MB package to be downloaded twice. The mechanism differs per OS
(Linux/macOS: symlink into /usr/local/bin; Windows: append the program dir to the user PATH
with setx). Full per-OS commands: env_setup/setup.md → "Register the binary on PATH".
Re-run "$(command -v zcode-python || command -v python3)" "$DOCX_SKILL_DIR/../../scripts/zcode_libreoffice.py" check and only continue once it prints a version. Corollary: probe before
installing — if the binary already exists on disk but off-PATH, register it instead of
reinstalling.The gate is simple: no install attempt = no substitute program. If you have not run the install command and seen it fail, using Word/WPS/Pages/Keynote is a violation of this skill.