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★ 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 byscripts/start.sh(uv run harbor …). If missing on PATH:- Check whether
~/.local/binis writable by the current user. On shared hosts this directory is often owned byroot. - If
~/.local/binis writable: install viacurl -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 persistPATH="$HOME/.uv/bin:$PATH",UV_PYTHON_INSTALL_DIR=$HOME/.uv/python,UV_CACHE_DIR=$HOME/.uv/cachein~/.bashrc. The cache/python redirects matter on the same shared hosts where~/.local/share/uv/is root-owned.
- Check whether
Python 3.13: required by the LiteLLM venv. If absent from the system, run
uv python install 3.13(usesUV_PYTHON_INSTALL_DIR).PyYAML in system
python3:scripts/*.shuse inlinepython3 -config readers.python3 -c 'import yaml'must succeed; install withpip install --user pyyamlif missing.
2. Repos
For each entry under meta_info.repositories:
- If
repos/<name>/is missing OR present but empty, runbash scripts/update_repos.sh --repo <name>(clones, checks out the pinned commit, chmods read-only whenreadonly: true). repos/harboris registered as a tracked git submodule (.gitmodulesin the repo root); a fresh clone of LegoFlow therefore needsgit submodule update --init blocks/tracer/repos/harborbeforeupdate_repos.shis 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>/v1withopenai/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;splitis not a dataset-library split filter.
- Local SWE Curator (default):
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
- HuggingFace (when
task_source.provider: huggingface): probe `https://huggingface.co/api/datasets/<dataset_na
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
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), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…