etl-validate
БесплатноБез исполняемых скриптовНе проверенRun scai test etl-validate to compare live ETL pipeline output (SSIS/Informatica natively, any platform via an external_command opt-in) against the converted…
от sfc-gh-dflippo★ 35 звёзд на GitHubОб этом скилле
ETL Validate
Runs scai test etl-validate --platform <platform> against a single ETL code unit, verifying that the original source package and its Snowflake equivalent produce identical output. Requires the ETL unit to be deployed and a test YAML to exist for it.
Deploy, the test YAML, and connections are all enforced by the state machine, not this skill. etlValidate has deterministic preconditions: deploy (the unit is deployed to Snowflake), artifactExists on etl-test/*.y*ml (a kind: etl test YAML — .yml or .yaml, from etlSeed/scai test seed or hand-authored — is present under the unit's artifacts dir), and configureSourceConnectionExtract + configureSnowflakeTarget. The executor only dispatches this skill once all hold, so it is safe to run standalone (targeted directly at etlValidate): the machine will not dispatch it against an undeployed unit, one with no test YAML, or an unconfigured session. scai test etl-validate reads the connection details from the project's settings/test_config.yaml; named-connection overrides can be passed with -c / -s.
Step 0: Resolve Unit
Read the registry entry (the executor passes object_id; if entered by name, locate via migration_status(mode="my_objects_summary")):
| Field | Used as |
|---|---|
id |
{ETL_ID} for the --where filter |
source.platform |
{PLATFORM_ID} for --platform (ssis, informatica, …) — pass the registry's value verbatim, including its casing (sqlServer, not sqlserver) |
Step 0b: Platforms Without a Built-in Executor
Only ssis (SQL Agent / SSISDB) and informatica (pmcmd / dbt Cloud) have a built-in
executor. Any other kind: etl platform — DataStage, Talend, an in-house shell or binary
orchestrator — is rejected by --platform and by the seeder unless the project declares an
external_command: section in .scai/settings/test_config.yaml:
external_command:
side: source # source | target — required
command: ["/opt/etl/run.sh", "--full"] # required, argv list (no shell)
working_dir: /opt/etl # optional
env: {ETL_ENV: prod} # optional
wait_seconds: 300 # seed-time default for the emitted YAML
The named side is then driven by launching that command and waiting wait_seconds. It is a
timer, not a status poll: nothing is polled, the exit code is never read, and this side cannot
fail. When the wait expires the side reports SUCCEEDED and the table comparison alone decides
pass/fail — so a script that exits 1 still yields a PASS if the tables match, and a pipeline
still running when the timer expires shows up as a row difference. Set wait_seconds longer than
the real pipeline runtime.
Three things to tell the user when you set this up:
commandis an argv list, not a shell string. No quoting, globbing, or&&chaining is interpreted — wrap those in a script and pointcommandat it.- The child gets a minimal environment:
PATH,HOME, plus whateverenv:declares, and nothing else. The harness environment (which carries Snowflake credentials) is deliberately not inherited, so a script that relied on an inherited variable must declare it underenv:. - Seed ordering.
test_config.yamlis generated after ETL emission, so on a first-ever seed the section does not exist yet and the native path is taken. Add the section, then re-runscai test seed --where "id = '{ETL_ID}'" --appendfor the section to be honoured.
Without the section every gate stays loud — a mistyped --platform is still an error rather than
a zero-unit run that reads as "everything passed".
Step 1: Live Environment Pre-flight
The state machine guarantees the connections are configured; it cannot know whether the live systems are reachable. Run the built-in probe once to catch a down SQL Server, an expired Snowflake token, or a missing SSISDB catalog before starting a long comparison:
scai test etl-validate --platform {PLATFORM_ID} --check-env
The probe must test the same connection the real run in Step 2 will use, so if the session uses named-connection overrides append the identical flags here (--connection {SNOWFLAKE_CONNECTION} / --source-connection {SOURCE_CONNECTION}) — otherwise the probe green-lights the default connection while Step 2 runs against a different one.
| Check | What it tests |
|---|---|
sql_server_connectivity |
Can reach the source SQL Server instance (SSIS) |
teradata_connectivity |
Can reach the source Teradata system (Informatica) |
snowflake_connectivity |
Can reach the Snowflake account |
ssisdb_catalog_access |
Can query SSISDB.catalog.packages (SSIS only) |
pmcmd_accessibility |
The informatica: section exists and its pmcmd binary is present and executable (Informatica only) |
informatica_service_domain |
Every seeded Informatica unit resol |
Установить etl-validate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл etl-validate?
Run scai test etl-validate to compare live ETL pipeline output (SSIS/Informatica natively, any platform via an external_command opt-in) against the converted Snowflake output. The CLI stamps codeStatus.etlValidate — do not invent advance outcomes.
Как установить скилл etl-validate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл etl-validate запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic