lhm-data-validation-skill
БесплатноЗапускает вложенные скриптыНе проверенValidates data consistency across heterogeneous data sources based on the Alibaba Cloud Lakehouse Migration Center (LHM) product.
от aliyun★ 303 звезды на GitHubОб этом скилле
LHM Data Validation Service (aliyun CLI)
Drives the entire data validation workflow through the aliyun CLI (aliyun-cli-lhm plugin). This Skill is execution-first: once the user specifies the data sources, tables, and check type, match the function directly and trigger execution; load reference documents on demand only for complex diagnosis and design scenarios.
Network layer: all API calls are uniformly wrapped by
scripts/aliyun_cli.pyasaliyun lhm <command>subprocess invocations, keeping the same call shape as the original Python SDK (client.xxx(request)→resp.body.data). The request models are provided by the lightweight local modulescripts/lhm_models.py(the formeralibabacloud_lhm20250116SDK is deprecated and no longer installed). The aliyun CLI and the aliyun-cli-lhm plugin must be installed before running (see README).⚠️ Sandbox environment compatibility: in the evaluation system's sandbox environment, the
aliyunCLI may be wrapped as a proxy, and actual calls require usingaliyun_real. Thefind_aliyun_binary()function inscripts/aliyun_cli.pyalready includes this detection logic (it prefersaliyun_real). But if you invoke thealiyuncommand directly through Bash, detect it first:if command -v aliyun_real >/dev/null 2>&1; then ALIYUN_CMD="aliyun_real"; else ALIYUN_CMD="aliyun"; fi ${ALIYUN_CMD} lhm <command> ...
⛔ Plugin prerequisite — hard stop (mirrors the LHM dispatcher's Step 2.1 Hard Stop Gate): every atomic skill in this package reaches the service through
aliyun lhm <command>, so thealiyun-cli-lhmplugin (>= 0.1.1, i.e.~/.aliyun/plugins/aliyun-cli-lhm/manifest.jsonmust exist) is a hard prerequisite for all checks — count / metric / batch / template / report. Verify it before anything else; when this Skill is entered directly rather than through the dispatcher, run the dispatcher'sscripts/install_lhm_plugin.shand treat a non-zero exit as fatal.If the plugin is unavailable, stop immediately: report the environment error verbatim and terminate. Do not ask the user for
ds_id, aliases, database/table names, check type, or sampling rate; do not runrun.py check, any validation script, or any dependency install; and never output a row count, consistency ratio, or pass/fail verdict that did not come from a real call. Successfully installed local Python dependencies are never proof that the cloud path works.
Quick Execution Path
- Pre-check (on first run or after environment changes):
Continue only whenpython atomic-skills/lhm-common/scripts/run.py check --profile data-validationready=true; whenready=false, guide the user to fix things per thefix_guideentries inblocking_items. On first use, runsetupfor guided configuration. - Read configuration: credentials and data sources are read preferentially from
~/.lhm/data_validation_config.yaml. Users may reference data sources by alias (e.g.,mc_source,sr_target) without memorizing ds_ids. - Build the client:
build_client(). Everyaliyun lhmcall carries the fixed parameters--endpoint/--region, read from thelhmsection of~/.lhm/credentials.json(lhm.endpoint/lhm.region_id); an explicitbuild_client(region='singapore')overrides the region, and the environment variables (LHM_ENDPOINT/REGION_ID) then built-in defaults are fallbacks. Credentials are resolved by the aliyun CLI default credential chain — never read from any config file. - Prepare data sources:
src_ds = (ds_id, ds_name, ds_type)/dst_ds = (ds_id, ds_name, ds_type), whereds_idis the only SDK input. When aliases are used, resolve them from thedata_sourcessection of data_validation_config.yaml. - Invoke by intent (prefer the wrapper functions in
scripts/common.py):- Template selection (before metric checks): use 1001(MIX) by default. For custom rules, list available templates with
list_templates(), or loadknowledge/patterns/template-guide.mdfor guided configuration. Templates can also be CRUD-managed directly viaatomic-skills/lhm-template-manage. For manual console configuration, seeknowledge/patterns/template-manual-setup.md - Count check →
run_count_check()orrun_batch_check(check_type=0) - Metric check →
run_metric_check()orrun_batch_check(check_type=1) - View/download reports →
summarize_batch()/download_report() - Rerun failures →
rerun_failed() - If the raw SDK APIs are needed (scenarios not covered by the wrapper functions), search
references/api-integration.md
- Template selection (before metric checks): use 1001(MIX) by default. For custom rules, list available templates with
- Poll until completion:
poll_exec_status(client, task_id, batch_id), targetingexec_status=4.
Core Parameters
| Parameter | Description | Example |
|---|---|---|
region |
Center node | hangzhou (default), singapore |
src_ds / dst_ds |
Data source triple (ds_id, ds_name, ds_type) |
`('d |
Установить lhm-data-validation-skill в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл lhm-data-validation-skill?
Validates data consistency across heterogeneous data sources based on the Alibaba Cloud Lakehouse Migration Center (LHM) product.
Как установить скилл lhm-data-validation-skill?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lhm-data-validation-skill запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic