Command Palette

Search for a command to run...

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

setup

Bootstrap the tracer block: install `uv` (in a writable location when `~/.local/bin` is root-owned), clone+pin Harbor and legoflow_trace_crafter, build the…

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

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

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

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

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

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

/tracer:setup

Use the complete effective profile selected by TRAJGEN_CONFIG (relative filenames resolve from blocks/tracer/), 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 tracer block from a fresh clone to "/tracer:check passes." The skill is idempotent: any step that is already satisfied is skipped. The skill never launches Harbor — that's /tracer:run. All commands run from the block root blocks/tracer/.

Procedure

1. Tooling preflight

  • uv: required by every env step and by scripts/start.sh (uv run harbor …). If missing on PATH:

    • Check whether ~/.local/bin is writable by the current user. On shared hosts this directory is often owned by root.
    • If ~/.local/bin is writable: install via curl -LsSf https://astral.sh/uv/install.sh | sh.
    • Otherwise: 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. The cache/python redirects matter on the same shared hosts where ~/.local/share/uv/ is root-owned.
  • Python 3.13: required by the LiteLLM venv. If absent from the system, run uv python install 3.13 (uses UV_PYTHON_INSTALL_DIR).

  • PyYAML in system python3: scripts/*.sh use inline python3 - config readers. python3 -c 'import yaml' must succeed; install with pip install --user pyyaml if missing.

2. Repos

For each entry under meta_info.repositories:

  • If repos/<name>/ is missing OR present but empty, run bash scripts/update_repos.sh --repo <name> (clones, checks out the pinned commit, chmods read-only when readonly: true).
  • repos/harbor is registered as a tracked git submodule (.gitmodules in the repo root); a fresh clone of LegoFlow therefore needs git submodule update --init blocks/tracer/repos/harbor before update_repos.sh is useful.
  • The script refuses to update a worktree with local modifications. Stop and ask the user when that happens.

Both repos are managed local-only dependencies and are gitignored. Never edit their sources here; they are set read-only after checkout when readonly: true, so any uv environment for them must live outside the checkout (under artifacts/env/).

3. Environments

Build only the envs that don't already pass the editable-install check (use <env>/bin/python -c "import <pkg>" to gate):

Env path Builder Verifies
artifacts/env/harbor-uv/ bash scripts/setup_harbor_env.sh python -c "import harbor"
artifacts/env/litellm-venv/ uv venv ... --python 3.13 && uv pip install 'litellm[proxy]==1.83.14' then litellm --version DO NOT use import litellm; litellm.__version__ — litellm raises AttributeError on __version__ by design.
artifacts/env/legoflow-trace-crafter-uv/ bash scripts/setup_legoflow_trace_crafter_env.sh python -c "import legoflow_trace_crafter, jinja2"

Both setup_harbor_env.sh and setup_legoflow_trace_crafter_env.sh handle the non-root chmod dance: they temporarily restore write perms on the read-only worktree, run uv sync, and re-lock on EXIT.

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} — pick the configured upstream (e.g. https://<an-alternate-provider>/v1 with openai/deepseek-v4-flash).
  • litellm_proxy.{port, master_key} — defaults are usually fine.
  • task_source — select one supported source:
    • Local SWE Curator (default): {provider: local, local_block: curator, dataset_name: ../curator/artifacts/merged_swe_tasks}.
    • Local terminal tasks: {provider: local, local_block: terminal-curator, terminal_tasks_dir: ../terminal-curator/artifacts/tasks}. Require the producer's manifest and completed semantic audit/revalidation before rollout.
    • External local pool: {provider: local, local_block: external, dataset_name}.
    • HF prebuilt Harbor dataset: {provider: huggingface, dataset_name, split}. This preparation path downloads a raw task snapshot; split is not a dataset-library split filter.
  • harbor_job.{n_concurrent, n_tasks, max_retries, timeout_multiplier}, agent.{name, version, runtime_image, max_turns, temperature}, sft_conversion.* — config defaults are sensible for first-time runs.

5. Credentials

Полный SKILL.md на GitHub

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

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

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

FAQ

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

Bootstrap the tracer block: install `uv` (in a writable location when `~/.local/bin` is root-owned), clone+pin Harbor and legoflow_trace_crafter, build the three uv/venv environments (harbor uv, LiteLLM venv on Python 3.13, legoflow_trace_crafter uv), fill in `runtime_info.input` only for unset fields, initialise `artifacts/processed_tasks.yaml`, and (when `task_source.provider: huggingface`) prompt for a HF token if the dataset is gated. Idempotent. Ends by running `scripts/dryrun.sh` so the user sees whether the block is now check-passing. Triggers on phrases like "set up tracer", "bootstrap tracer", "install harbor for tracer", "prepare tracer before running", "/tracer:setup".

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

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

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

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

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

Сравнить setup с