dbt-migration
БесплатноЗапускает вложенные скриптыНе проверенComplete workflow for migrating database tables, views, and stored procedures to dbt projects on Snowflake. Orchestrates discovery, planning, placeholder…
от 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
- 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.
- 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
- 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
aliasconfig if the file name must differ from the target object name. - 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). - 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.
- 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
Установить dbt-migration в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic