Skip to content
Research
Skill

/local-env-setup

Prepare optional local Python/R runtimes, user-configured Python MCP servers, Node/scimaster-cli, and pixi for the user’s task. Points users to Install into Wisp for uv/Python/R/Node, creates project environments with uv or pixi, reuses detected paths, configures Wisp

From plugin
wisp-science
1.1k27 skills

Claude Code

$ npx -y skills add xuzhougeng/wisp-science --skill local-env-setup --agent claude-code

SKILL.md

local-env-setup.SKILL.md
name: local-env-setup
description: Prepare optional local Python/R runtimes, user-configured Python MCP servers, Node/scimaster-cli, and pixi for the user’s task. Points users to Install into Wisp for uv/Python/R/Node, creates project environments with uv or pixi, reuses detected paths, configures Wisp interpreters, and applies mirrors when needed. Use for 配置环境, missing runtime dependencies, or requested local installations. For remote SSH compute use compute-env-setup.
license: Apache-2.0
tags: environment, uv, python, r, node, npm, pixi, scimaster, mirror, china, install, macos, windows, linux

Local runtime setup

Wisp starts and runs native biological tools without Python, R, uv, or Node. The local environment panel (first-run setup, Settings → General → Local environment, Capabilities) shows a background path check. **Cmd/Ctrl+P → Quick setup (快速配置)** reopens setup and refreshes the check. Detection never runs installers or creates a virtualenv. Detected executable paths are saved in the Local execution context without replacing existing choices. A found path does not establish version compatibility or installed packages.

Wisp-managed tools (preferred on a new machine)

The same panel has **Install into Wisp (安装到 Wisp)**. Tools already detected on the computer are used as they are and are not offered. Missing ones among uv, Python, R, and Node are suggested; the user ticks them (or skips and comes back later) and Wisp installs them into its own folder — no administrator rights, no shell-profile or system PATH change:

| Item | Location (under the app data folder) | |---|---| | Toolchain (pixi `PIXI_HOME`) | `toolchain/` — `envs/uv`, `envs/python`, `envs/r` (r-base + r-jsonlite), `envs/nodejs` | | Wisp's Python environment | `python/.venv`, created by that uv from Python 3.12, with `python/requirements-kernel.txt` |

The installer uses a pinned, checksum-verified pixi and conda-forge, follows Settings → Network (Code requests proxy, Conda mirror for conda-forge, Python package index, CA bundle), and saves the installed paths on Local. Wisp's local shell commands and Runs then find `uv`, `python`/`pip` (Wisp's environment), `Rscript`, `node`, and `npm` on PATH. When the user lacks a tool, point them to this panel before running any installer yourself; it is the reproducible route.

**Project-specific environments** belong to the project, not to Wisp's environment: use uv there (`uv venv` or `uv init`, `uv add …` / `uv pip install …`, `uv run …`), or pixi when conda packages are needed (Layer 3). Save the project interpreter with `set_runtime_interpreter` when the persistent tool should use it. Do not `pip install` project dependencies into Wisp's own environment.

| Task | Optional tools | |---|---| | Python analysis / persistent `python` tool | Existing Python environment; uv can help create one | | R analysis / persistent `r` tool | Rscript with `jsonlite` | | User-configured Python MCP | That server's own interpreter and dependencies | | `bear-*` literature skills | Node >= 20, npm, sci (scimaster-cli) | | Bioinformatics workflows | pixi for isolated conda/pip environments |

Start with the user's task and existing environment. Install only what it needs. Do not treat every missing optional tool as a broken installation. After changing PATH, use **Check paths again** in the local environment panel; restart Wisp only if the GUI process needs to inherit a changed PATH. Interpreter settings can be saved directly without restarting the app.

Step 0 — Detect platform, region, and current state

Read the **Environment** section in the system prompt (`Operating system`, `Working directory`).

0a — Region / network (mirror or not)

**Before any install or `pip`/`npm`/`pixi add`, decide whether the user is on mainland China and needs mirrors.**

Signals (use several; do not rely on one):

| Signal | Mainland likely | |---|---| | User writes in Chinese and mentions 国内 / 镜像 / 翻墙 / 清华 / 阿里 | yes | | `TZ` / system timezone `Asia/Shanghai`, `Asia/Chongqing`, `Asia/Urumqi` | hint | | Locale `zh_CN`, `zh-Hans-CN` | hint | | `curl -s --connect-timeout 3 https://pypi.org/simple/` fails or >5s; tuna mirror responds in <2s | yes | | User explicitly says they are **not** in China / have full international access | no |

If **ambiguous**, ask once: "Are you on mainland China? I'll use domestic mirrors for pip/npm/conda if yes."

When **mainland mirrors apply**, set these **before** installs (user shell profile or session env):

# PyPI / uv (Python environments + pixi pip deps)
export UV_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
export PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple

# npm (scimaster-cli)
npm config set registry https://registry.npmmirror.com

Windows (PowerShell, persist for user):

[Environment]::SetEnvironmentVariable("UV_INDEX_URL", "https://pypi.tuna.tsinghua.edu.cn/simple", "User")
[Environment]::SetEnvironmentVariable("PIP_INDEX_URL", "https://pypi.tuna.tsinghua.edu.cn/simple", "User")
npm config set registry https://registry.npmmirror.com

**Pixi conda channels** (global or per-project `pixi.toml`):

[project]
channels = ["https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/"]

[pypi-config]
index-url = "https://pypi.tuna.tsinghua.edu.cn/simple"

Or global:

pixi config set --global pypi-config.index-url https://pypi.tuna.tsinghua.edu.cn/simple

Alternatives if tuna is slow: Aliyun PyPI `https://mirrors.aliyun.com/pypi/simple/`, USTC conda mirrors.

If international access works, **do not** set mirrors — use defaults.

0b — Tool presence

Run with **`shell`** (PowerShell on Windows, `sh -c` elsewhere):

**Windows:**

Get-Command python,python3,Rscript,uv,node,npm,sci,pixi -ErrorAction SilentlyContinue | Select-Object Name,Source
uv --version 2>$null; node --version 2>$null; npm --version 2>$null; sci --version 2>$null; pixi --version 2>$null

**macOS / Linux:**

Read more
@xuzhougeng
Ships withwisp-science

The open-source, local-first AI research workbench. WISP — Workspace for Intelligent Scientific Practice Search the literature, run Python and R, query ~80 scientific databases, and keep the trail — figures, runs, decisions, and drafts — in one project.

Stars on GitHub

Momentum

stars in total
1.1k
Star history of xuzhougeng/wisp-science on GitHub, a chart by star-history.com

Other skills on wisp-science.

agent-infini

agent-infini

Use the InfiniSynapse CLI (`agent_infini`) for multi-turn AI data-analysis tasks, database/RAG context, and task workspace files.…

analysis-workflow

analysis-workflow

Organize multi-step scientific analyses into reproducible, self-contained modules. Use for workflows such as QC→PCA→DEG→GSEA that…

browser-use

browser-use

Use this skill to drive Wisp Browser Runtime sessions (shared daily Chrome or workspace Chrome) — open pages, read them, click,…

compute-env-setup

compute-env-setup

Set up and validate a reproducible Python or R environment on a Wisp execution context. Use for a selected local, WSL, or direct…

computer-use

computer-use

Use Cua Driver through MCP to inspect and operate the user's native desktop apps on Windows, macOS, or Linux. Trigger when a task…

More skills from other plugins.

academic-paper-review

academic-paper-review

Use this skill when the user requests to review, analyze, critique, or summarize academic papers, research articles, preprints,…

@bytedance@bytedanceInstall Skill
last30days

last30days

Research what people actually say about any topic in the last 30 days. Pulls posts and engagement from Reddit, X, YouTube,…

@mvanhorn@mvanhornInstall Skill

Questions about local-env-setup.

Which coding agents can use local-env-setup?
local-env-setup installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.