lhm-report-download
Triggers and downloads an LHM data validation report and returns the OSS download link.
от aliyun★ 303 звезды на GitHub
Установить lhm-report-download в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
lhm-report-download
Triggers report generation for a specified LHM data validation batch, polls the report generation status, and returns the OSS download link when complete.
Steps
- Parse the command-line arguments (batch-id, region, timeout-sec, interval-sec, 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
download_report(): first confirm the batch has completed, then trigger report generation, poll the report status, and finally download and return the OSS URL. - Redirect
sys.stdoutto capture the log prints inside the common functions and avoid polluting stdout. - Output
{"ok": true, "oss_url": "..."}to stdout; on any exception output JSON to stderr and exit(1).
Pitfalls
- The batch must have finished executing (exec_status=4), otherwise
download_report()raises an exception. - Report generation can take a long time; the default is
--timeout-sec 300seconds. Increase it for batch checks on large tables. --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 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, "oss_url": "https://xxx.oss-cn-hangzhou.aliyuncs.com/xxx.xlsx"}Running
python -m py_compile atomic-skills/lhm-report-download/scripts/run.pyproduces no syntax errors.
Input/Output Examples
python atomic-skills/lhm-report-download/scripts/run.py \
--batch-id 67890 \
--region hangzhou \
--timeout-sec 300 \
--interval-sec 3
Successful output:
{"ok": true, "oss_url": "https://xxx.oss-cn-hangzhou.aliyuncs.com/xxx.xlsx"}
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- scripts/run.py
FAQ
Что делает скилл lhm-report-download?
Triggers and downloads an LHM data validation report and returns the OSS download link.
Как установить скилл lhm-report-download?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lhm-report-download запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
AnthropicUse 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…
xlsx
AnthropicUse 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…
pptx
AnthropicUse 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…