lhm-report-summary
БесплатноЗапускает вложенные скриптыНе проверенGets the overview statistics of an LHM data validation batch.
от aliyun★ 303 звезды на GitHubОб этом скилле
lhm-report-summary
Gets the overview statistics of a specified LHM data validation batch, including task name, validation template, table-level pass/fail counts, pass rate, difference rate, etc.
Steps
- Parse the command-line arguments (batch-id, region, etc.).
- 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). - Call
summarize_batch()to get the batch overview; redirectsys.stdoutto capture the log prints inside the common functions and avoid polluting stdout. - Add
"ok": trueto the returned dict and output the JSON to stdout. - On any exception output JSON to stderr and exit(1).
Pitfalls
- The batch must have finished executing (exec_status=4), otherwise
GetDataCheckReportOverviewmay return incomplete data. --batch-idis a required argument; missing it triggers an argparse error.- Credentials are resolved through the default credential chain (environment variables / RAM Role /
~/.alibabacloud/credentials); the script never accepts AK/SK as command-line arguments. - The common functions may use
printinternally for logs; the script captures them viaio.StringIOand writes them to stderr, so stdout contains only the final JSON.
Verification
For a valid batch, stdout should output something like:
{ "ok": true, "task_name": "逐表数据量校验", "template": "MIX", "total_tables": 13, "pass_tables": 11, "fail_tables": 2, "pass_rate": "84.62%", "column_pass_rate": 0.95, "diff_rate": "15.38%", "exec_status": 4, "check_result": 2 }Running
python -m py_compile atomic-skills/lhm-report-summary/scripts/run.pyproduces no syntax errors.
Input/Output Examples
python atomic-skills/lhm-report-summary/scripts/run.py \
--batch-id 67890 \
--region hangzhou
Successful output:
{"ok": true, "task_name": "逐表数据量校验", "template": "MIX", "total_tables": 13, "pass_tables": 11, "fail_tables": 2, "pass_rate": "84.62%", "column_pass_rate": 0.95, "diff_rate": "15.38%", "exec_status": 4, "check_result": 2}
Установить lhm-report-summary в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл lhm-report-summary?
Gets the overview statistics of an LHM data validation batch.
Как установить скилл lhm-report-summary?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lhm-report-summary запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic