Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

verify-sdk

БесплатноЗапускает вложенные скриптыНе проверен

This skill should be used to "verify SDK behavior", "check an SDK change against the feature map", "run the SDK feature map", "maintain the SDK feature map"…

OpenHandsот OpenHands★ 1 439 звёзд на GitHub

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

Verify the OpenHands SDK in-process

The "user" here is a Python program that imports openhands.sdk and runs an agent in its own process. This skill proves that program's view of the SDK: each recipe builds an agent with the public API, runs it, and checks what came out (state, files, events, payloads), with a scripted model where the model cannot matter and a real one where it can. It never reruns the unit tests: CI does that on every PR, and each row links them on its Unit: line. The agent server is a separate surface with its own skill, verify-agent-server; what the server adds on top of the SDK belongs there.

Launch

There is no server. Prepare the checkout once, then start a run per scenario:

uv sync --dev
export PATH="$PWD/.agents/skills/verify-sdk/scripts:$PATH"
export SDK_VERIFY_RUN=$(control-sdk new --field run)                     # scripted
export SDK_VERIFY_RUN=$(control-sdk new --llm deepseek-flash --field run) # live

A run has its own HOME, OH_PERSISTENCE_DIR, conversation store, workspace and tmux server, and drops the caller's LLM_* and OH_* variables, so it never touches a developer's ~/.openhands. Live runs read DEEPSEEK_API_KEY when a model is called, or, with LLM_BASE_URL and LLM_API_KEY set, send deepseek-flash through that LiteLLM proxy (the run carries the pair as SDK_VERIFY_LLM_BASE_URL/SDK_VERIFY_LLM_API_KEY); without either they exit 3 and report blocked.

Doctor

sdk-map check is the read-only health check: it validates the map's structure and IDs, the index counts, the baseline line, and that every path the map cites still exists. Run it first and whenever a recipe surprises you. For the environment, uv run python -c "import openhands.sdk, openhands.tools, openhands.workspace" must succeed.

Drive

control-sdk does one thing per command and prints JSON; --check FIELD OP VALUE asserts on it and --field PATH prints one value for the shell:

CID=$(control-sdk conversation new --script S05/write_and_read.json --field id)
control-sdk conversation send "$CID" --text "write notes.txt" --run --check execution_status eq finished
control-sdk conversation events "$CID" --kind ActionEvent --check count eq 4
control-sdk program S05/reload_events --arg "$CID" --check roundtrip_equal eq true
control-sdk exec --model-env -- python examples/01_standalone_sdk/01_hello_world.py

Conversations persist in the run, so each command resumes the one before. Programs under programs/ are short scripts like the examples that print one JSON result. references/recipes.md explains scripts, programs, live runs and conventions.

Each family file in the map lists its sub-features and a Driving it section of bullets, each naming the IDs it proves and carrying sh blocks. Run them literally from the repository root, or let the tool replay them:

sdk-map run --file S05                                  # one family
sdk-map run --file S05 --only S05.event-base            # the bullets that name these IDs
sdk-map run --all --out "$SDK_VERIFY_HOME/full"         # the whole map

A bullet passes when every block it ran exits 0; exit 3 means blocked. A block that needs a real model (a live run, --model-env, an example script or the integration runner) runs only with DEEPSEEK_API_KEY (or the proxy's LLM_API_KEY) set and is skipped whole otherwise. An integration run passes only when its results.json shows every requested test succeeded, because the runner exits 0 on failed tests. Each block runs in its own process group, which is killed when the block ends or times out.

Evidence

sdk-map run writes one ledger row per sub-feature to <out>/ledger.jsonl and each bullet's transcript to <out>/transcripts/. <out> is a new directory under $SDK_VERIFY_HOME (default $TMPDIR/sdk-verify) unless --out names one. sdk-map report --runs <out> [...] renders the latest result per sub-feature, fail first; --baseline <earlier run> lists what changed since then.

Proof standards: drive the public API a program uses, not internal setters or the unit tests; assert state, files and events, never a model's wording; a scripted model (TestLLM) through the real agent loop is the deterministic proof, a live run, example or integration run the real-model one, and a row says which it got (scripted, live, example, integration). Unreachable is blocked with the missing prerequisite, never a pass.

Cleanup

Recipes write into their run's workspace, under $SDK_VERIFY_HOME (default $TMPDIR/sdk-verify), never the checkout. Keep the run directories while the evidence matters; git status should show nothing a recipe created.

Workflows

  • Verify a change or a PR: sdk-map owners --changed origin/main...HEAD maps the changed paths to the families whose Source: lines own them, and lists product paths no fami
Полный SKILL.md на GitHub

Установить verify-sdk в Claude Code и Claude Desktop

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

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

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

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

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

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

Вложенные файлы

programs/S01/echo_parallel_finish.jsonprograms/S01/finish_on_last.jsonprograms/S01/loop.pyprograms/S01/max_iterations.jsonprograms/S01/repeat_error.jsonprograms/S01/repeat_ls.jsonprograms/S01/run_to_finish.jsonprograms/S01/sleeper.pyprograms/S01/step_errors.jsonprograms/S02/api_compliance.pyprograms/S02/ask_agent_cache.pyprograms/S02/conversation_stats.pyprograms/S02/fake_provider.pyprograms/S02/format_messages.pyprograms/S02/live_llm.pyprograms/S02/llm_calls.pyprograms/S02/provider_run.pyprograms/S02/subagent_rollup.pyprograms/S03/live_switch.pyprograms/S03/model_router.pyprograms/S03/profiles.pyprograms/S03/routing.pyprograms/S03/subscription.pyprograms/S03/switching.pyprograms/S04/control.pyprograms/S04/goal_ask.pyprograms/S04/lifecycle.pyprograms/S04/pause_during_startup.pyprograms/S04/resolution.pyprograms/S04/secret_env.pyprograms/S04/sender.pyprograms/S04/views.pyprograms/S05/batch_errors.pyprograms/S05/damaged_log.pyprograms/S05/event_log.pyprograms/S05/event_types.pyprograms/S05/llm_failures.pyprograms/S05/reload_events.pyprograms/S05/system_prompt_blocks.pyprograms/S05/write_and_read.json

FAQ

Что делает скилл verify-sdk?

This skill should be used to "verify SDK behavior", "check an SDK change against the feature map", "run the SDK feature map", "maintain the SDK feature map", or "run the daily SDK map pass". It holds the maintained map of what the OpenHands SDK does in-process (agent loop, LLMs, conversations, events, condensers, skills, plugins, MCP, hooks, sub-agents, critic, security, tools, workspaces, settings, observability, ACP), the control-sdk driver its recipes use, and sdk-map (check, owners, baseline, run, report).

Как установить скилл verify-sdk?

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

Скилл verify-sdk запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить verify-sdk с