Setup wizard

From fritzprix/libr-agent · View interactive version

Setup wizard is an AI agent skill from the GitHub repository fritzprix/libr-agent. Use when the user needs to diagnose and install runtime environment dependencies (Python, Node.js, uv) for running LibrAgent or MCP servers, or when a task fails because a runtime is missing. Use on first run or a new machine ("I just installed LibrAgent, what do I need to set up?"), MCP "command no

How to use this skill

Skill file

System Setup for MCP Servers

Automated installation and verification of MCP runtime dependencies.

Path conventions

Paths in this skill are relative to this skill's Base Directory. Replace <skill-base-dir> with its absolute path in commands.

Missing runtime during a task (fixed order)

Use this when a command fails with command not found, exit code 127, a missing Python or Node version, or a broken venv:

  1. Look for a user-scope tool first: uv, conda, nvm (Get-Command uv / command -v uv conda; nvm is a shell function, so check $NVM_DIR).
  2. For Python, use uv run --python <version> <script.py> or uv python install <version>.
  3. Prefer a user-scope install. If a step needs root, ask for the password once with workspace__runInPersistentShell and requireUserInput=true, inputType=password, storeAs=SUDO_PASSWORD, then use plain sudo. Do not use sudo -n, sudo -S, su, or pkexec.
  4. After one install attempt, run the check again. If it still fails, report the error to the user and stop.

If the output contains os error 448 or ERROR_UNTRUSTED_MOUNT_POINT, stop and report: Windows RedirectionGuard blocks the uv Python junction (#2527). Do not reinstall.

Workflow

  1. Detect OS — identify platform via terminal
  2. Check installations — run verification commands below
  3. Install missing components — use platform scripts or installation-guide.md
  4. Verify — run verify_setup script or manual checks; confirm Python 3.11+, Node 18+, uv available

Quick Verification

Windows (PowerShell):

Get-Command python -ErrorAction SilentlyContinue
Get-Command node -ErrorAction SilentlyContinue
Get-Command uv -ErrorAction SilentlyContinue

Linux/macOS:

which python3 && python3 --version
which node && node --version
which uv && uv --version

Report what is missing, then load only the relevant section from the installation guide.

Automated Scripts

Prefer scripts when the user wants hands-off install:

# Windows examples
& "<skill-base-dir>/scripts/verify_setup.ps1"
& "<skill-base-dir>/scripts/install_python.ps1"
& "<skill-base-dir>/scripts/install_node.ps1"
& "<skill-base-dir>/scripts/install_uv.ps1"
# Linux/macOS examples (install_node.sh is Linux-only; on macOS use brew install node)
bash "<skill-base-dir>/scripts/verify_setup.sh"
bash "<skill-base-dir>/scripts/install_python.sh"
bash "<skill-base-dir>/scripts/install_node.sh"   # Linux only; no-op if node exists, add --force to reinstall
bash "<skill-base-dir>/scripts/install_uv.sh"

Advanced Topics

Integration with LibrAgent

LibrAgent MCP servers require:

After setup, re-run the verification script before retrying failed MCP servers.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.