check
Preflight the curator block. Validates config.yaml schema; verifies that `repos/legoflow-curator/` is checked out at the pinned commit; verifies GITHUB_TOKENS…
от LegoX★ 45 звёзд на GitHub
Установить check в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
/curator:check
Read-only preflight for the curator block. It answers "is this block ready to collect PRs, generate tasks, and run Harbor validation?" Report every failure in one pass; do not stop at the first failed check.
Step 0 - Orient
Run only from blocks/curator/. Validate:
./config.yamlexists and parses.meta_info.name == "curator"../repos/legoflow-curator/pyproject.tomlexists../scripts/dryrun.shexists.
If any of these fail, continue with checks that can still run and include all failures in the final report.
Step 1 - Deterministic file and config checks
Check these without changing the workspace:
config.yamlhasmeta_info,runtime_info.input,runtime_info.output, andstatus.runtime_info.input.languagescontains the supported language keys:py,js,ts,go,c,cpp,java,rust.- Each enabled language has
params.timeout,params.cc_timeout, andparams.n_concurrent; these are consumed byscripts/read_params.pyandscripts/create_<lang>.sh. runtime_info.output.swe_tasks_dir.pathpoints toartifacts/swe_tasks.scripts/create_<lang>.shexists for every enabled language.scripts/start.sh,scripts/create_all_bg.sh,scripts/load_runtime_env.sh, andscripts/archive_run.shexist.
For the submodule, run:
git -C repos/legoflow-curator rev-parse HEAD
If meta_info.repos.legoflow-curator.commit_id is non-null, the HEAD must match it.
If the config says null, report the HEAD as informational, not a failure.
Step 2 - GitHub credentials
Resolve tokens from GITHUB_TOKENS, GITHUB_TOKEN, or
runtime_info.input.github_token. The config value is a TXT file path;
relative paths resolve from blocks/curator/.
For each token, call:
GET https://api.github.com/rate_limit
Report HTTP status and resources.core.remaining. Missing tokens are a
failure for real runs and a warning for pure dashboard inspection.
Step 3 - LLM endpoint
This check is mandatory before /curator:create-tasks; do not skip it just because
scripts/dryrun.sh passes. Use the installed LegoFlow Curator package, not an ad hoc
request:
from openai import OpenAI
from legoflow_curator.llm_env import hydrate_cross_provider_env, get_openai_compatible_config
hydrate_cross_provider_env()
model, key, base = get_openai_compatible_config()
OpenAI(api_key=key, base_url=base, timeout=60).chat.completions.create(
model=model,
messages=[{"role": "user", "content": "ping"}],
max_tokens=16,
)
A /models probe is not enough; real completion catches wrong keys,
wrong-region routing, and stale Anthropic/OpenAI shim variables.
If the provider returns 401 Invalid token, stop and ask for a replacement
API key. Keep the base URLs from the environment unless the error points at
routing. When testing a replacement key, export it only for the current
shell process and mirror it to both OPENAI_API_KEY and
ANTHROPIC_API_KEY; never write it to .env, config.yaml, or logs.
Step 3b - Claude Code path (verification proxy)
The OpenAI ping above only covers PR evaluation. The Claude Code path
(ANTHROPIC_BASE_URL) is what writes verifiable_tasks.txt, and it fails
silently when misconfigured. Read llm_api.cc_provider_mode:
openai_proxy(Qwen / GLM / sglang / vLLM and most self-hosted endpoints):ANTHROPIC_BASE_URLmust be a running local LiteLLM proxy. Verify:curl -sf "${ANTHROPIC_BASE_URL%/}/health" >/dev/null && echo "cc proxy ok" || echo "cc proxy DOWN"A down proxy is a blocking failure — generation would report success while verifying nothing. Tell the user to start it (see
CLAUDE.md"LLM provider modes").native(real Claude / Anthropic-compatible gateway): no proxy required;ANTHROPIC_BASE_URLpoints straight at the provider. Note it as informational.
Step 4 - Docker and Harbor readiness
Run:
docker info --format '{{.ServerVersion}}'
Also require DOCKER_HOST to be set, preferably
unix:///var/run/docker.sock. If Docker works but DOCKER_HOST is empty,
warn that Harbor may incorrectly probe /tmp/podman-fresh.sock.
If the user asks for a smoke check, validate the submodule sample task:
legoflow-curator validate \
repos/legoflow-curator/artifacts/swe_tasks/py-cc \
--task tox-dev__tox-3813 \
--jobs-dir artifacts/experiments/quick-verify/harbor-jobs-quick \
--env docker \
--docker-prune-batch 0
Expected result: NOP reward is 0 and Oracle reward is 1. If the sample
task is missing, report that /curator:setup must initialize the submodule.
Step 4b - Shared credentials (optional, never blocking)
dryrun.sh also reports the two tree-wide optional credentials, resolved by
<repo_root>/scripts/shared_credentials.sh in the order env > root
config.yaml → runtime_info.input.{cloudflare,docker} > this block's legacy
~/.config/legoflow-curator_progress_cloudflare.env.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл check?
Preflight the curator block. Validates config.yaml schema; verifies that `repos/legoflow-curator/` is checked out at the pinned commit; verifies GITHUB_TOKENS reach the GitHub API (one `GET /rate_limit` per token); exercises the LLM endpoint with an actual `chat.completions.create` ping through `legoflow_curator.llm_env.hydrate_cross_provider_env` (so a misconfigured cross-provider env is caught here, not on first task); verifies `DOCKER_HOST` is set and the daemon is reachable (`docker info`); optionally runs a Harbor smoke against a known verified task (NOP/Oracle expected to print `reward=0` / `reward=1`). Runs `scripts/dryrun.sh` if present. Read-only. Reports all failures in one consolidated message with a run-configuration summary. **Mandatory before `:create-tasks`.** Triggers on phrases like "check curator", "preflight curator", "is curator ready", "diagnose curator", "validate curator config".
Как установить скилл check?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл check запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…