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★ 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 bystart.sh(uv run harbor …). If missing on PATH:- If
~/.local/binis writable, install viacurl -LsSf https://astral.sh/uv/install.sh | sh. - Otherwise (shared host, root-owned
~/.local): install withUV_INSTALL_DIR="$HOME/.uv/bin" UV_UNMANAGED_INSTALL=1 sh -c 'curl -LsSf https://astral.sh/uv/install.sh | sh'and persistPATH="$HOME/.uv/bin:$PATH",UV_PYTHON_INSTALL_DIR=$HOME/.uv/python,UV_CACHE_DIR=$HOME/.uv/cachein~/.bashrc.
- If
- Python 3.13: required by the LiteLLM venv. If absent, run
uv python install 3.13. - PyYAML in system
python3: everyscripts/*.shuses inlinepython3 -config readers.python3 -c 'import yaml'must succeed;pip install --user pyyamlif missing (evaluator scripts emitERROR: PyYAML is requiredotherwise). - Docker: evaluator is CPU-only but every task runs in a container, and
the agent runtime is extracted with
docker. Confirmdocker psworks on this host.
2. Repos
For meta_info.repositories.harbor:
- If
repos/harbor/is missing, runbash scripts/update_repos.sh(clones, fetches, checks out the pinnedcommitdetached, inits submodules, then sets the worktree read-only becausereadonly: true). repos/harboris registered as a tracked submodule (.gitmodulesat the repo root), so a fresh clone of LegoFlow needsgit submodule update --init blocks/evaluator/repos/harborfirst if the dir is empty.update_repos.shrefuses to update a worktree with local modifications. Stop and ask the user when that happens.- Confirm
git -C repos/harbor rev-parse HEADequals the configuredcommit. Always read the live value fromconfig.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.yamlkeeps 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
- MODE A — remote API (commented example:
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…