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.
recalc (formula recalculation), .xlsx → PDF, and .csv → .xlsx all run through
LibreOffice/soffice. It is install-on-demand only in the sense that it is installed the moment a
task needs it.
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:
#REF!, #DIV/0!, #VALUE!) surface before delivery — without it, formula results are
unverified and the Live Formula Guarantee cannot be honored.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 install the main package from it. If 26.8.0 is
gone, use the newest version under .../libreoffice/stable/. Full per-platform commands:
env_setup/setup.md → "LibreOffice — Recommended Download Source".
Package-manager fallback, only if the mirror is unreachable: macOS
brew install --cask libreoffice; Linux (Debian/Ubuntu) sudo apt install libreoffice-core;
Windows winget install TheDocumentFoundation.LibreOffice.PATH, 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)" "$XLSX_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 Excel/WPS/Numbers is a violation of this skill.