Command Palette

Search for a command to run...

Назад к скиллам
скилл № 11165

setup

Bootstrap the evaluator block: clone `repos/harbor/` at the commit declared in `meta_info.repositories.harbor` (via `scripts/update_repos.sh`), build the…

БесплатноБез исполняемых скриптов
LegoXот LegoX★ 45 звёзд на GitHub

Установить setup в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

/evaluator:setup

Use the complete effective profile selected by EVAL_CONFIG (relative filenames resolve from blocks/evaluator/), otherwise this block's config.yaml. Retain a parent-selected profile throughout checks, setup, launch, and archive. Block-local references to config.yaml below mean that profile; root shared-credential config references keep their existing meaning. Do not reset the selector or copy a private profile over the committed config.

Brings the evaluator block from a fresh clone to "/evaluator:check passes." The skill is idempotent: any step already satisfied is skipped. It never launches Harbor — that's /evaluator:run.

Unlike tracer, evaluator has no setup_*_env.sh helper scripts; the two environments are built with the explicit uv commands below (which scripts/dryrun.sh also prints when an env is missing). Evaluator builds only two envs (Harbor uv + LiteLLM venv) — there is no legoflow_trace_crafter env, because evaluator does not convert trajectories.

Where to run

Read meta_info.resources.ip and directory from the user's private run profile. For local / null, use the current host. For a remote hostname or IP, connect through SSH keys or ~/.ssh/config and run setup from the configured block directory. Envs and the Harbor checkout are host-local — never build them on a host the run won't use. Never add SSH passwords to config.yaml.

Procedure

1. Tooling preflight

  • uv: required for both env builds and by start.sh (uv run harbor …). If missing on PATH:
    • If ~/.local/bin is writable, install via curl -LsSf https://astral.sh/uv/install.sh | sh.
    • Otherwise (shared host, root-owned ~/.local): install with UV_INSTALL_DIR="$HOME/.uv/bin" UV_UNMANAGED_INSTALL=1 sh -c 'curl -LsSf https://astral.sh/uv/install.sh | sh' and persist PATH="$HOME/.uv/bin:$PATH", UV_PYTHON_INSTALL_DIR=$HOME/.uv/python, UV_CACHE_DIR=$HOME/.uv/cache in ~/.bashrc.
  • Python 3.13: required by the LiteLLM venv. If absent, run uv python install 3.13.
  • PyYAML in system python3: every scripts/*.sh uses inline python3 - config readers. python3 -c 'import yaml' must succeed; pip install --user pyyaml if missing (evaluator scripts emit ERROR: PyYAML is required otherwise).
  • Docker: evaluator is CPU-only but every task runs in a container, and the agent runtime is extracted with docker. Confirm docker ps works on this host.

2. Repos

For meta_info.repositories.harbor:

  • If repos/harbor/ is missing, run bash scripts/update_repos.sh (clones, fetches, checks out the pinned commit detached, inits submodules, then sets the worktree read-only because readonly: true).
  • repos/harbor is registered as a tracked submodule (.gitmodules at the repo root), so a fresh clone of LegoFlow needs git submodule update --init blocks/evaluator/repos/harbor first if the dir is empty.
  • update_repos.sh refuses to update a worktree with local modifications. Stop and ask the user when that happens.
  • Confirm git -C repos/harbor rev-parse HEAD equals the configured commit. Always read the live value from config.yaml → meta_info.repositories.harbor.commit; never hard-code the SHA in this skill because the pin moves as the block tracks newer registry contents.

3. Environments

Build only the envs that don't already pass the import check (<env>/bin/python -c "import <pkg>" to gate). The env paths come from meta_info.environment.

Env path Build command Verifies
artifacts/env/harbor-uv/ from inside repos/harbor: UV_PROJECT_ENVIRONMENT=<abs path> uv sync --all-extras python -c "import harbor, litellm, datasets", harbor --help, and that harbor resolves to repos/harbor (editable).
artifacts/env/litellm-venv/ uv venv <abs path> --python 3.13 && uv pip install --python <abs path>/bin/python 'litellm[proxy]==1.83.14' litellm --version and installed version == 1.83.14. Do not use import litellm; litellm.__version__ — litellm raises AttributeError on __version__ by design.

The Harbor env path must be outside repos/harbor while repositories.harbor.readonly: true — artifacts/env/harbor-uv already satisfies this. UV_PROJECT_ENVIRONMENT must be an absolute path.

4. Config

Walk runtime_info.input and prompt only for unset fields (the literal human marker always counts as unset; "" fields are env/auto-supplied — do not prompt for those):

  • llm_api.{api_key, api_base_url, model} — the upstream served via the per-job LiteLLM proxy. config.yaml keeps two interchangeable recipes, only one uncommented at a time (read the active block, don't assume):
    • MODE A — remote API (commented example: https://api.example.com/v1, openai/<served-model-name>, and a key supplied in the user's private profile). Do not commit real API keys.
    • **MODE B — local vLLM checkpoint
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл setup?

Bootstrap the evaluator block: clone `repos/harbor/` at the commit declared in `meta_info.repositories.harbor` (via `scripts/update_repos.sh`), build the Harbor uv env at the path under `meta_info.environment.harbor_uv`, build the LiteLLM venv at the configured path, then fill in `runtime_info.input.llm_api` / `litellm_proxy` / `task_source` / `harbor_job` / `agent` — prompting only for values that aren't already set. Idempotent. Triggers on phrases like "set up evaluator", "bootstrap evaluator", "install harbor for evaluator", "prepare evaluator before running".

Как установить скилл setup?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл setup запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить setup с