migrating-dbt-project-across-platforms
БесплатноБез исполняемых скриптовНе проверенUse when migrating a dbt project from one data platform or data warehouse to another (e.g., Snowflake to Databricks, Databricks to Snowflake) using dbt…
от dbt-labs★ 776 звёзд на GitHubОб этом скилле
Migrating a dbt Project Across Data Platforms
This skill guides migration of a dbt project from one data platform (source) to another (target) — for example, Snowflake to Databricks, or Databricks to Snowflake.
The core approach: dbt Fusion compiles SQL in real-time and produces rich, detailed error logs that tell you exactly what's wrong and where. We trust Fusion entirely for dialect conversion — no need to pre-document every SQL pattern difference. The workflow is: read Fusion's errors, fix them, recompile, repeat until done. Combined with dbt unit tests (generated on the source platform before migration), we prove both compilation correctness and data correctness on the target platform.
Success criteria: Migration is complete when:
dbtf compilefinishes with 0 errors and 0 warnings on the target platform- All unit tests pass on the target platform (
dbt test --select test_type:unit) - All models run successfully on the target platform (
dbtf run)
Validation cost: Use dbtf compile as the primary iteration gate — it's free (no warehouse queries) and catches both errors and warnings from static analysis. Only dbtf run and dbt test incur warehouse cost; run those only after compile is clean.
Contents
- Additional Resources — Reference docs for installation, unit tests, profile targets
- Migration Workflow — 7-step migration process with progress checklist
- Don't Do These Things — Critical guardrails
- Known Limitations & Gotchas — Fusion-specific and cross-platform caveats
Additional Resources
- Installing dbt Fusion — How to install and verify dbt Fusion
- Generating Unit Tests — How to generate unit tests on the source platform before migration
- Switching Targets — How to configure the dbt target for the destination platform and update sources
Migration Workflow
Progress Checklist
Copy this checklist to track migration progress:
Migration Progress:
- [ ] Step 1: Verify dbt Fusion is installed and working
- [ ] Step 2: Assess source project (dbtf compile — 0 errors on source)
- [ ] Step 3: Generate unit tests on source platform
- [ ] Step 4: Switch dbt target to destination platform
- [ ] Step 5: Run Fusion compilation and fix all errors (dbtf compile — 0 errors on target)
- [ ] Step 6: Run and validate unit tests on target platform
- [ ] Step 7: Final validation and document changes in migration_changes.md
Instructions
When a user asks to migrate their dbt project to a different data platform, follow these steps. Create a migration_changes.md file documenting all code changes (see template below).
Step 1: Verify dbt Fusion is installed
Fusion is required — it provides the real-time compilation and rich error diagnostics that power this migration. Fusion may be available as dbtf or as dbt.
To detect which command to use:
- Check if
dbtfis available — if it exists, it's Fusion - If
dbtfis not found, rundbt --version— if the output starts withdbt-fusion, thendbtis Fusion
Use whichever command is Fusion everywhere this skill references dbtf. If neither provides Fusion, guide the user through installation. See references/installing-dbt-fusion.md for details.
Step 2: Assess the source project
Run dbtf compile on the source platform target to confirm the project compiles cleanly with 0 errors. This establishes the baseline.
dbtf compile
If there are errors on the source platform, those must be resolved first before starting the migration. The migrating-dbt-core-to-v2 skill can help resolve v2 compatibility issues.
Step 3: Generate unit tests on source platform
While still connected to the source platform, generate dbt unit tests for key models to capture expected data outputs as a "golden dataset." These tests will prove data consistency after migration.
Which models to test: You must test every leaf node — models at the very end of the DAG that no other model depends on via ref(). Do not guess leaf nodes from naming conventions — derive them programmatically using the methods in references/generating-unit-tests.md. List all leaf nodes explicitly and confirm the count before writing tests. Also test any mid-DAG model with significant transformation logic (joins, calculations, case statements).
How to generate tests:
- Identify leaf nodes:
dbt ls --select "+tag:core" --resource-type modelor inspect the DAG - Use
dbt show --select model_name --limit 5to preview output rows on the source platform - Pick 2-3 representative rows per model that exercise key business logic
- Write unit tests in YAML using the
dict
Установить migrating-dbt-project-across-platforms в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл migrating-dbt-project-across-platforms?
Use when migrating a dbt project from one data platform or data warehouse to another (e.g., Snowflake to Databricks, Databricks to Snowflake) using dbt Fusion's real-time compilation to identify and fix SQL dialect differences.
Как установить скилл migrating-dbt-project-across-platforms?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл migrating-dbt-project-across-platforms запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic