check
Recursively sanity-check every block at and beneath the current working directory: config.yaml schema, runtime_info.input completeness, inter-block dependency…
от LegoX★ 45 звёзд на GitHub
Установить check в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
/root:check
Read Effective profiles before loading
child configs. Honor explicit profiles and TRAJGEN_CONFIG, EVAL_CONFIG, and
TERMINAL_CURATOR_CONFIG with block-relative path resolution. Use that same
effective profile set for source selection, sibling dependency checks, resource
selection, and child dispatch; never reset a parent-selected profile.
Recursively walk the block tree rooted at the current working directory and validate every block's config, resources, external APIs, and block-specific runtime prerequisites. Safe to run: only scripts/dryrun.sh (a side-effect-free validation script) is executed — no scripts/start.sh, no config edits, no archives written.
This skill is MANDATORY before /root:run. The agent must:
- Run
/root:checkto surface all issues in one pass. - Present the configuration summary and check results to the user.
- Wait for explicit user confirmation ("yes", "go ahead", etc.) before launching
/root:run.
Confirm the requested scope before launch. Existing explicit user authorization for the same source, host, and budget satisfies this gate; a passed check alone does not authorize a new or expanded run.
Arguments
The args string is free-form natural language (may be empty). The agent reads the whole string holistically — no token parsing — to decide which block to check and how to focus the report.
Target resolution
Same rule as /root:run. List ./blocks/ for valid names, then read args and decide:
- Single block clearly identified (literal name or unambiguous paraphrase) →
TARGET_DIR=./blocks/<name>/. Check that block only — no recursion into its children, no walking of siblings. - Multiple blocks mentioned or ambiguous → ask. Do not guess.
- No block mentioned →
TARGET_DIR=CWD(full block tree walk). - Block inferred but
./blocks/<name>/doesn't exist → abort with the actual listing and ask the user to pick.
When TARGET_DIR is a block, cross-block dependency checks (the validator's dep:* checks) still read sibling configs to validate producer outputs — but don't recursively check those siblings' health.
Report focusing
Any extra context in args (beyond identifying the block) is a hint for how to present the report — not what to scan. /root:check always runs every check; the instruction only shapes which findings lead and which collapse to a one-line tail. If the hint is ambiguous, default to the full report.
Examples
| Args | Target | Behavior |
|---|---|---|
| (empty) | root | full report across all blocks |
curator |
curator | full report for curator |
tracer focus on api connectivity |
tracer | lead with api:* findings |
are my api keys working |
root | full tree; lead with api:* findings |
check curator for missing inputs |
curator | lead with input:* / schema:* findings |
compare curator and tracer configs |
ambiguous | ask which block |
check frobnicator |
abort | print valid list, ask user to pick |
Step 0 — Orient
Read resources/BLOCK_DEFINITION.md bundled in this plugin (sibling of the skills/ folder containing this file). It is the contract — pay particular attention to:
- The
meta_info/runtime_infoschema and the wiring rule (meta_info.dependencieshas two keys,fromandto, both always present.from: this block's own upstream — keys are dot-paths into that block'sruntime_info.input, values are<source_block>.output.<key>strings or{from, when, required}mappings.to: this block's own downstream, the mirror declared by the producer — keys are this block's ownruntime_info.outputkeys, values are<consumer>.input.<path>strings or{to, when}mappings with fully-qualified<consumer>.input.<path>when-keys. The same edge is declared on both ends; the validator cross-checks them (dep:link-mismatch).runtime_info.inputis exclusively for values originating outside the block tree).config.yamlhas exactly two top-level sections —status:andevolving:are retired; live state lives inartifacts/index.yaml. - The fill markers (
human= must-fill,""= auto/env-supplied) and the outputpath/valueshape. - The remote-execution rule (if
meta_info.resources.ipis set, the block runs on that host — so its environment and repos must exist there, not locally).
Step 1 — Discover the block tree
Starting at TARGET_DIR (resolved in the Arguments section), decide where to begin:
- If
block_namewas passed (TARGET_DIR=./blocks/<block_name>/): treat that directory as the single block under check. Itsconfig.yamlmust exist — if not, abort:"blocks/<block_name>/config.yaml not found.". Do not recurse into itsmeta_info.blocks(leaf scope by user choice). Skip cases 2 and 3 below. - No
block_name, and./config.yamlexists: this directory is the root of the check (the standard LegoFlow case —
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл check?
Recursively sanity-check every block at and beneath the current working directory: config.yaml schema, runtime_info.input completeness, inter-block dependency resolution, repos pin matches, environment (venv_path) existence, remote resource (SSH/directory) reachability, live availability of every OpenAI-compatible LLM endpoint declared in any block's runtime_info.input, AND block-specific dryrun validation (scripts/dryrun.sh — GPU, Docker, WANDB, model compatibility, etc.). Reports all failures in one consolidated message with a run configuration summary. Does not execute scripts/start.sh, does not modify any config, does not write archives. **MANDATORY before /root:run** — the agent must run this skill AND receive explicit user confirmation before launching any block. Triggers on phrases like "check my blocks", "validate the config", "sanity check everything", "are my API keys working", "is the remote reachable", "run /root:check", "diagnose this block".
Как установить скилл 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…