aliyun/alibabacloud-aiops-skills/lhm-count-check
Claude Code and agent skill by aliyun/alibabacloud-aiops-skills
- community
Checking that the SKILL.md file is still in the repository.
Creates and triggers an LHM per-table count validation task, corresponding to run_count_check() in the outer common.py.
Install
npx vskill@latest install aliyun/alibabacloud-aiops-skills/lhm-count-checkSKILL.md
The same SKILL.md was published earlier as aliyun/alibabacloud-aiops-skills/lhm-count-check.
lhm-count-check
Creates and triggers an LHM (Lakehouse Migration Center) per-table count validation task. Automatically completes: task creation → per-table configuration → batch saving → immediate execution.
Steps
- Confirm that the aliyun CLI + aliyun-cli-lhm plugin and
pyyamlare installed (see "Environment Preparation" in the root README). - Construct the
--tables-jsonargument: a JSON array where each element is a list of 4 strings[source_table, target_table, source_partition, target_partition]; an empty string for a partition means a whole-table check. - Invoke this script, passing all required parameters via the command line.
Data sources support alias mode: use --src-alias and --dst-alias to resolve from data_validation_config.yaml, in which case --src-ds-id/name/type do not need to be passed.
- The script calls
run_count_check()in the outerscripts/common.pyto create the task and trigger execution. - On success, stdout outputs JSON:
{"ok": true, "task_id": ..., "batch_id": ...}.
Pitfalls
--thresholddefaults to0.0, meaning exact match; passingnonemeansNone, letting the system use its default value.- When a partition field is an empty string, common.py treats it as a whole-table check (
is_full_table_count=1). - MaxCompute partitioned tables usually require setting
--source-global-params/--target-global-paramstoodps.sql.allow.fullscan=true. - Credential precedence: command-line arguments > data_validation_config.yaml (~/.lhm/data_validation_config.yaml) > environment variables.
Verification
- After running the script, check whether the stdout output is
{"ok": true, "task_id": <int>, "batch_id": <int>}. - Use
lhm-poll-statusor the LHM console to check the execution status of the corresponding task_id / batch_id.
Input/Output Examples
Input (command line):
Output (stdout):
Using alias mode (data sources resolved from data_validation_config.yaml):
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/migrationom/apds/alibabacloud-lakehouse-migration/references/lhm-data-validation-skill/atomic-skills/lhm-count-check/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aliyun/alibabacloud-aiops-skills/lhm-count-check)