Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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:

  • command is an argv list, not a shell string. No quoting, globbing, or && chaining is interpreted — wrap those in a script and point command at it.
  • The child gets a minimal environment: PATH, HOME, plus whatever env: 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 under env:.
  • Seed ordering. test_config.yaml is 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-run scai test seed --where "id = '{ETL_ID}'" --append for 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
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить etl-validate с