Command Palette

Search for a command to run...

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

dbt-migration

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

Complete workflow for migrating database tables, views, and stored procedures to dbt projects on Snowflake. Orchestrates discovery, planning, placeholder…

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

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

Database to dbt Migration Workflow

Purpose and When to Use

Guide AI agents through the complete migration lifecycle from Snowflake or legacy database systems (SQL Server, Oracle, Teradata, etc.) to production-quality dbt projects on Snowflake. This skill defines a structured, repeatable process while delegating platform-specific syntax translation to dedicated source-specific skills.

Activate this skill when users ask about:

  • Planning a database migration to dbt
  • Organizing legacy scripts for migration
  • Converting views and stored procedures to dbt models
  • Testing migration results against source systems
  • Deploying migrated dbt projects to production

Snowflake Migration Tools

Required Two-Step Approach

  1. Convert to Snowflake first: Use SnowConvert AI and AI Powered Code Conversion to convert source database objects (from SQL Server, Oracle, Teradata, etc.) to Snowflake tables, views, and stored procedures.
  2. Then convert to dbt: Use the $dbt-migration-snowflake skill to migrate Snowflake objects to dbt models.

SnowConvert AI (Required for Supported Platforms)

IMPORTANT: For all supported platforms listed below, SnowConvert AI is a hard requirement — do not attempt manual conversion. SnowConvert AI handles edge cases, platform-specific idioms, and dependency resolution that manual translation consistently misses.

SnowConvert AI converts source DDL, views, stored procedures, functions, and additional objects (triggers, sequences, indexes) to Snowflake-compatible SQL. Download SnowConvert AI

Supported Platforms

  • Full support (tables, views, procedures, functions): SQL Server, Oracle, Teradata, Redshift, Azure Synapse, IBM DB2
  • Partial support (tables, views only): Sybase IQ, BigQuery, PostgreSQL, Spark SQL/Databricks, Hive, Vertica, Greenplum/Netezza

Platform-Specific Features

  • SQL Server: Direct DB connection, data migration, SSIS replatform
  • Oracle, Azure Synapse, Sybase IQ, BigQuery: DDL Extraction script
  • Teradata: BTEQ/MLOAD/TPUMP support
  • Redshift: Direct DB connection, data migration

Additional Snowflake Migration Tools

Tool Purpose
AI Code Conversion AI-powered validation and repair of converted code
Migration Assistant VS Code extension for resolving conversion issues (EWIs)
Data Migration Transfer data to Snowflake (SQL Server, Redshift)
Data Validation GUI-based validation (SQL Server)
Data Validation CLI CLI validation (SQL Server, Teradata, Redshift)
ETL Replatform Convert SSIS packages to dbt projects
Power BI Repointing Redirect Power BI reports to Snowflake

Name-Retention Policy

CRITICAL: Migrated dbt models must preserve the original SQL object names from the source database. Do not rename tables, views, or columns during migration.

Rules

  1. Keep original object names: The final dbt model name (and therefore the resulting Snowflake table/view name) must match the original source object name. Use dbt alias config if the file name must differ from the target object name.
  2. Add intermediate CTEs — do not rename: When breaking complex logic into steps, add CTEs within the model rather than creating new model names. If intermediate models are necessary, use int_ prefix but keep the base name intact (e.g., int_original_name__step1).
  3. Preserve column names: Output columns must retain their original names. If a column needs transformation, apply it in a CTE and alias back to the original name in the final SELECT.
  4. Document name deviations: If a name change is unavoidable (e.g., reserved word conflicts), add a comment documenting the original name and the reason for the change.

Rationale

Name retention ensures that downstream consumers (reports, applications, APIs) continue to work without modification after migration. It also simplifies validation by allowing direct name-based comparison between source and target systems.


Migration Workflow Overview

The migration process follows seven sequential phases. Each phase has entry criteria, deliverables, and validation gates that must pass before advancing.

1-Discovery → 2-Planning → 3-Plac
Полный SKILL.md на GitHub

Установить dbt-migration в Claude Code и Claude Desktop

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

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

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

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

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

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

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

README.mdresources/ai-code-conversion.mdresources/data-migration.mdresources/data-validation-cli.mdresources/data-validation.mdresources/etl-replatform.mdresources/migration-assistant.mdresources/power-bi-repointing.mdscripts/clean_migration_docs.pyscripts/clean_skill_descriptions.pyscripts/copy_migration_docs.pyscripts/fix_broken_links.pyscripts/fix_markdown_lint.pyscripts/generate_reference_index.pyscripts/migrate_references.pyscripts/update_skill_indexes.pytranslation-references/README.mdtranslation-references/general/README.mdtranslation-references/general/built-in-functions.mdtranslation-references/general/subqueries.md

FAQ

Что делает скилл dbt-migration?

Complete workflow for migrating database tables, views, and stored procedures to dbt projects on Snowflake. Orchestrates discovery, planning, placeholder creation, view/procedure conversion, testing, and deployment. Delegates platform-specific syntax translation to source-specific skills.

Как установить скилл dbt-migration?

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

Скилл dbt-migration запускает скрипты?

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

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

Сравнить dbt-migration с