Command Palette

Search for a command to run...

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

semantic-equivalence-checker

БесплатноЗапускает вложенные скриптыНе проверен

Check semantic equivalence between an Informatica PowerCenter workflow XML and its converted dbt model. Runs a deterministic structural and transform…

sfc-gh-dflippoот sfc-gh-dflippo★ 35 звёзд на GitHub

Об этом скилле

Semantic Equivalence Checker

How this skill is reached

Nothing in the plugin references this skill. It is not in the manifest, it has no slash command, and the migration skill's <skill-match> block does not list it, so it will never be suggested and nothing routes into it on its own.

It is reached by being named together with where it lives, for example "using the semantic-equivalence-checker sub-skill under migration/SKILL.md, check ...". Naming the checker without saying where it sits is not enough: an agent asked only to "use the semantic checker" does not find this directory, and will compare the XML and the models unaided instead, which produces something shaped like a verdict with no deterministic pass behind it.

On Entry

Tell the user:

Semantic equivalence check — I'll compare an Informatica workflow XML against its converted dbt model and tell you whether the conversion preserves the business logic. I won't change any files. I need the XML, the dbt models folder, and which workflow to check.

<SKILL_DIR> below is the absolute path to the directory containing this file. Loaded the normal way, from the migration skill's <skill-match> block, that is the semantic-equivalence-checker directory sitting beside the migration skill's own SKILL.md, so resolve it from wherever you read this file.

If you do not have an absolute path for it, say so and stop. Every command here runs as uv run --project <SKILL_DIR>, and a relative path gives --project nothing to resolve. Do not fall back to comparing the files by hand: see the check at the end of Step 3.

Run every shell command through uv run --project <SKILL_DIR>, which resolves the checker's dependencies from its pyproject.toml. Do not activate a virtualenv or invoke python directly — the package is only importable under that project.

Chain the commands of a single step into one bash call. Each separate call costs the user another permission prompt.

Architecture: one workflow, many models

This is the single most important thing to hold onto, because almost every false positive comes from ignoring it.

  • An Informatica workflow may run N pipelines (SQ_1…SQ_N) sequentially in one session.
  • In dbt those decompose into N separate .sql models in the same _wf directory.
  • The primary model is the one named in the pair index. It implements one pipeline.
  • Sibling models implement the other pipelines, plus pre-hook operations (DELETEs, TRUNCATEs) and post-hook business logic (UPDATEs, INSERTs, DELETEs, CALLs).
  • So a source table, column, expression or operation "missing" from the primary may exist in a sibling's body SQL, its pre_hook, or its post_hook.
  • Equivalence is a property of all the models together, never of the primary alone.
  • __THIS__ refers to a model's own temp table — a dbt architectural pattern, not a defect.

Step 3 writes every sibling out with Jinja pre-resolved precisely so you can search them. A FAIL you report without having searched the siblings is the most likely way this skill produces a wrong answer.

Step 1: Resolve Inputs

You need four values. Take any the user already gave you; ask for the rest in one message.

Value What it is How to resolve
{XML_PATH} The Informatica XML export containing the workflow From the user's request
{DBT_DIR} The dbt models root — the folder whose subdirectories hold the converted models From the user's request
{WORKFLOW} The Informatica workflow name, wf_-prefixed Read <WORKFLOW NAME="..."> from {XML_PATH}; if the XML holds several, list them and ask which
{PRIMARY_MODEL} The path to the primary .sql inside {DBT_DIR} See the warning below

Set {OUTPUT_DIR} to equivalence-reports/ under the current working directory unless the user names somewhere else.

Wait for the user's response — do not guess a path or a workflow name. A wrong pairing produces a confident verdict about the wrong model, which is worse than no verdict.

If the user names a workflow and the XML does not contain it, stop and say so. Do not substitute the workflow the XML does contain, even when there is exactly one and the substitution looks obvious. A name that does not match usually means the wrong XML was supplied or the name was mistyped, and either way the answer to a different question is not useful. Report the mismatch, list what the XML actually holds, and let the user choose.

Resolving the primary model

Glob {DBT_DIR} for the workflow's _wf directory. Then:

  • One .sql in it — that is the primary.
  • More than one — the primary is not derivable, and it is frequently not the model named after the directory. List the candidates, say which pipeline each appears to implement, and ask the user which is primary. Guessing here silently compares the wrong file and every finding after it is worthless.

The deterministic pass enforc

Полный SKILL.md на GitHub

Установить semantic-equivalence-checker в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

pyproject.tomlreferences/known-false-positives.mdreferences/llm-check-schema.mdscripts/conversion_checker/__init__.pyscripts/conversion_checker/__main__.pyscripts/conversion_checker/cli.pyscripts/conversion_checker/comparator.pyscripts/conversion_checker/critic.pyscripts/conversion_checker/dbt_parser.pyscripts/conversion_checker/infa_parser.pyscripts/conversion_checker/manifest.pyscripts/conversion_checker/models.pyscripts/conversion_checker/reporter.pyscripts/conversion_checker/sql_tables.pyscripts/conversion_checker/transform_checker.py

FAQ

Что делает скилл semantic-equivalence-checker?

Check semantic equivalence between an Informatica PowerCenter workflow XML and its converted dbt model. Runs a deterministic structural and transform comparison, then adjudicates what it could not resolve by reading every sibling model in the workflow's directory, and writes a per-workflow verdict with file:line citations. Read-only — it never edits the dbt project. Triggers: semantic equivalence check, check semantic equivalence, run an equivalence check between Informatica and dbt, is this dbt conversion correct, does the dbt model match the Informatica mapping, Informatica vs dbt equivalence, semantic equivalence of a converted workflow, conversion checker.

Как установить скилл semantic-equivalence-checker?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл semantic-equivalence-checker запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить semantic-equivalence-checker с