--- name: work-with-kombai description: Design UI with Kombai's taste agent. Designs go on a Kombai canvas, or in another design tool or the repo's code when the user asks for that; design systems are .ds files in the Kombai account and need no canvas. Use when the user asks to work with Kombai, for a design, mockup, variants or a design system, or pastes a Kombai canvas link; not for ordinary coding, and not for a design in another tool unless the user names Kombai. --- When running in Codex's sandbox, first read `codex-access.md` beside this file and do what it says **before the first command below**: it says how to get network access without trying the restricted command first. Elsewhere, skip it. Run Kombai's CLI (`kombai` below) from `node "$HOME/.kombai/cli/install/latest/launch.mjs"` if that file exists; if not, fall back to `npx -y @kombai/cli@0.3.0`. Run `kombai skill` and follow what it prints; it is this skill's full text. If that command fails before it prints anything: - **`npx` or `node` not found.** Kombai needs Node.js 20 or later. Tell the user, give them the steps for their OS, and wait; do not install Node yourself. - macOS: `brew install node` if Homebrew is installed, otherwise the LTS installer from https://nodejs.org. - Windows: `winget install OpenJS.NodeJS.LTS`, otherwise the LTS .msi from https://nodejs.org. - Linux: nvm (https://github.com/nvm-sh/nvm), then `nvm install --lts`. The distro's package is often older than 20. When they say it is installed, run the command again. If `node` is still not found, ask them to restart this agent or its editor, so it picks up the new PATH; do not ask them to install again. - **`CLI_NODE_TOO_OLD`.** The same steps upgrade Node; with nvm, `nvm install --lts` then `nvm alias default lts/*`. If the error comes back after an upgrade, an older `node` is first on PATH: show the user `which -a node` (`where node` on Windows). - **Windows PowerShell says running scripts is disabled.** Run `npx.cmd` in place of `npx`. - **The network is blocked** (a sandboxed shell). Ask for network access the way your client does; Node is not missing.