aliyun/alibabacloud-aiops-skills/lhm-report-diagnose
Claude Code and agent skill by aliyun/alibabacloud-aiops-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Diagnoses the failed tables and fields in an LHM data validation batch and outputs structured diagnosis results.
Install
npx vskill@latest install aliyun/alibabacloud-aiops-skills/lhm-report-diagnoseSKILL.md
The same SKILL.md was published earlier as aliyun/alibabacloud-aiops-skills/lhm-report-diagnose.
lhm-report-diagnose
Diagnoses the details of failed tables and fields in a specified LHM data validation batch. Supports two output forms: grouped by field or a flat list.
Steps
- Read the command-line arguments: batch ID, output grouping mode, and region.
- Before execution, run
lhm-common check --profile data-validationfirst to confirm the preconditions are met. - Call
build_client_from_config()to build the LHM client (the network layer goes through the aliyun CLI, read from data_validation_config.yaml, with CLI arguments taking precedence). - Redirect
sys.stdouttoio.StringIO, calldiagnose_failed()to obtain the diagnosis results, then restore stdout. - Output JSON:
{"ok": true, "diagnosis": [...] or {...}}.
Pitfalls
- Not redirecting stdout pollutes the JSON: although
diagnose_failed()does not print directly, stdout must be redirected to strictly guarantee that external systems can parse the output. - Confusing batch_id with task_id: the diagnosis interface must use
batch_id; do not passtask_id. - Credentials: resolved through the default credential chain (environment variables / RAM Role /
~/.alibabacloud/credentials); the script never accepts AK/SK as command-line arguments. - Semantics of group_by_field: defaults to
False, returning a flat list; when set toTrue, results are grouped by table → field, which is convenient for aggregating and viewing differences.
Verification
python -m py_compile atomic-skills/lhm-report-diagnose/scripts/run.pypasses.- After running the script, stdout is valid JSON and contains JSON content only.
- When credentials are missing or the
batch_iddoes not exist, stderr outputs{"ok": false, "error": "..."}and exit(1).
Input/Output Examples
Output (flat list):
Grouped by field:
Output:
Security
- Security scanPassed, 95 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-report-diagnose/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-report-diagnose)