Command Palette

Search for a command to run...

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

setup

Bootstrap the curator block from a fresh clone: initialise the legoflow-curator submodule under `repos/legoflow-curator/` (`git submodule update --init`)…

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

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

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

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

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

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

/curator:setup

Prepare blocks/curator/ so /curator:check can pass. The operation is idempotent: repeat it freely, but never overwrite secrets or runtime outputs without explicit user consent.

Step 0 - Orient

Run from inside the curator block. Verify:

  1. ./config.yaml exists and meta_info.name == "curator".
  2. ./CLAUDE.md exists.
  3. ./repos/legoflow-curator/pyproject.toml exists after submodule init.

If the current directory is not blocks/curator/, stop and tell the user to rerun the command from the block directory.

Step 1 - Initialize the LegoFlow Curator source checkout

From the repository root, ensure the submodule exists:

git submodule update --init blocks/curator/repos/legoflow-curator

Then return to blocks/curator/. If config.yaml declares a non-null meta_info.repos.legoflow-curator.commit_id, compare it with git -C repos/legoflow-curator rev-parse HEAD and report any drift. Do not change the submodule pin unless the user explicitly asks.

Step 2 - Build or refresh the Python environment

Read meta_info.environment.venv_path from config.yaml (currently artifacts/envs/legoflow-curator-env) and create it if missing:

python3 -m venv artifacts/envs/legoflow-curator-env
source artifacts/envs/legoflow-curator-env/bin/activate
pip install -e repos/legoflow-curator/

The editable install exposes legoflow-curator and harbor console scripts from repos/legoflow-curator/pyproject.toml.

Step 3 - Prepare runtime environment variables

LegoFlow Curator uses both direct OpenAI-compatible calls and Claude Code SDK based task generation. Keep these in the shell or in .env; never write real secrets into config.yaml.

Variable Purpose
GITHUB_TOKENS Comma-separated GitHub API tokens for legoflow-curator create and general API use.
GITHUB_TOKEN Optional first-token alias; scripts/load_runtime_env.sh derives it from GITHUB_TOKENS when absent.
OPENAI_API_KEY LLM key used by legoflow_curator.llm_env.get_openai_compatible_config().
OPENAI_API_BASE_URL OpenAI-compatible base URL.
OPENAI_MODEL Model for PR evaluation, instruction generation, and analysis calls.
ANTHROPIC_API_KEY Usually the same value as OPENAI_API_KEY for the cross-provider shim.
ANTHROPIC_BASE_URL Endpoint for the Claude Code path. For OpenAI-only providers (cc_provider_mode: openai_proxy) this must be the local LiteLLM proxy, not the raw provider URL — see CLAUDE.md "LLM provider modes".
ANTHROPIC_MODEL Model used by Claude Code SDK task completion.
DOCKER_HOST Prefer unix:///var/run/docker.sock so Harbor does not probe stale Podman sockets.
LEGOFLOW_CURATOR_CLAUDE_HOME Optional isolated Claude runtime home. The task runner defaults this under the ignored task state so user-level settings and stale credentials cannot override the run.

If a required value is missing, ask once and show the exact export line. Most of these are hydrated from config.yaml -> runtime_info.input.llm_api by scripts/load_runtime_env.sh; confirm cc_provider_mode matches the provider (use openai_proxy + a running LiteLLM proxy for Qwen/GLM/sglang/vLLM). DOCKER_HOST and shared credentials hydrate from the root config.yaml. For GitHub collection, set runtime_info.input.github_token to the local TXT path.

Step 3b - Start the local LiteLLM CC proxy (openai_proxy mode only)

When runtime_info.input.llm_api.cc_provider_mode == openai_proxy, the Claude Code verification path needs an isolated LiteLLM proxy:

  1. Run bash scripts/setup_cc_proxy_env.sh. It creates artifacts/envs/litellm-proxy with the proxy extra and a compatible FastAPI version, separate from the Curator application environment.
  2. Export OPENAI_API_KEY, OPENAI_API_BASE_URL, and OPENAI_MODEL. The proxy helper uses these runtime values before tracked human placeholders and writes its generated config only under ignored artifacts/logs/.
  3. Run bash scripts/start_with_openai_api.sh --proxy-only. Override a conflicting host port with LEGOFLOW_CURATOR_CC_PROXY_PORT=<free-port>. The launcher verifies the new process, not merely an unrelated service already answering on the configured port.

This step is skipped when cc_provider_mode == native (no local proxy) or when llm_api is still unfilled.

Step 4 - Create expected local directories

Create directories used by scripts and smoke tests:

mkdir -p artifacts/collected_prs artifacts/swe_tasks artifacts/logs/legoflow-curator-create artifacts/claude-config

If the user wants the quick verification path, confirm that the submodule sample data exists at:

  • repos/legoflow-curator/artifacts/collected_prs/python_pr_ids.txt
  • repos/legoflow-curator/artifacts/swe_tasks/py-cc/verifiable_tasks.txt
  • repos/legoflow-curator/artifacts/swe_tasks/py-cc/tox-dev__tox-3813/

Step 5 - Hand off to /curator:check

Fin

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

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

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

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

FAQ

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

Bootstrap the curator block from a fresh clone: initialise the legoflow-curator submodule under `repos/legoflow-curator/` (`git submodule update --init`), create + activate the Python venv, `pip install -e repos/legoflow-curator/`, and ensure the cross-provider LLM env, GitHub token file, Docker host, and Claude runtime values hydrate from the curator and root configs. Idempotent. Triggers on phrases like "set up curator", "bootstrap curator", "install curator", "prepare curator before running".

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

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

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

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

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

Сравнить setup с