Command Palette

Search for a command to run...

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

data-migration-setup

БесплатноБез исполняемых скриптовНе проверен

Setup, run, and report on cloud data migration — workflow YAML, migrate_data run, background Monitor, and end-of-run summary for the user.

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

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

Data Migration Setup

One-time configuration for migrating data from a source database into Snowflake via the scai CLI, plus run → monitor → report after migrate_data(mode="run").

Always use the official tooling. Run data migration through migrate_data(mode="setup") / migrate_data(mode="run") (backed by scai data migrate). Never suggest writing ad-hoc scripts to extract, copy, or load data outside the DMVF task pipeline — the orchestrator handles partitioning, retries, incremental sync, and load orchestration.

Supported sources: SQL Server, Redshift, Oracle, Teradata, PostgreSQL Supported targets: Native Snowflake tables (default). Iceberg targets are Redshift-only (partial support) — see Extraction strategies reference.

Run-only entry: If you were routed here only to execute migrateData (registry task) and the workflow YAML already exists, skip Steps 1–2 and complete Step 2a (display the existing workflow_path and offer optional updates) before Step 4. Complete Steps 5–6 (background Monitor and error-first migration report), then return the result to the parent. Per-object subagents do not manage shared infrastructure or teardown.

Prerequisite

Load ../../../data-infrastructure/SKILL.md first. It handles shared prerequisites, compute pool registration, and worker config (source host/port/credentials, source database, source schema). Return here after it completes.


Step 1: Choose Migration Approach

1.A — Pick Tables to Migrate (where)

The where parameter is a registry filter that selects which tables go into the generated workflow. Same syntax as scai code deploy --where (e.g. source.objectType = 'table' AND source.schema = 'sales', source.canonicalName IN ('dbo.customers', 'dbo.orders')).

Exact table selection (required when the user lists specific tables)

When the user names specific tables, always use an exact filter — never substring / ILIKE '%…%':

source.objectType = 'table' AND source.canonicalName IN (
  'dbo.CURR_EDB_MODEL_AUCTION_HISTORY',
  'dbo.SNAPM_EDB_MODEL_GROUPING'
)

Why: Substring filters (and the old ILIKE '%name%' pattern) can silently include sibling tables whose names share a prefix — for example selecting SNAPM_EDB_MODEL_GROUPING would also match SNAPM_EDB_MODEL_GROUPING_SWTCH (a customer SWITCH staging table). That is unexpected for change-control workflows. Prefer IN (...) or equality (source.canonicalName = '…' / source.name = '…').

After generating the workflow YAML, read the tables: list and confirm the count and names with the user before running. If the YAML has more tables than requested, stop and fix the where (or pass force_regenerate=true after correcting it) — do not invent explanations like “partition switch auto-include” (SnowConvert does not auto-add SWITCH siblings).

Decide the value in this order:

  1. You already know the tables. If the parent skill or the current wave has already identified the tables, construct an exact where from that (source.canonicalName IN (...)). For a wave's batch, the batch's where filter is typically reusable verbatim only if it is already exact.
  2. Otherwise, ask the user. Suggest options like "all tables in schema X" (source.schema = 'X'), "specific tables" (source.canonicalName IN (...)), or "all tables in scope" (omit where).
  3. If you're unsure of the registry filter syntax, run scai code where to see the available columns and operators for this project, then construct the filter from the listed columns (source.objectType, source.schema, source.canonicalName, etc.).

Show the proposed where and the resulting table names to the user and get confirmation before continuing.

1.B — Migration strategy (captured at setup)

The migration strategy — migration type, sync strategy, extraction mechanism, and target table type — is chosen once during setup by the dataStrategy task (executor setup/data-strategy/SKILL.md) and committed to the git main branch, so by the time you dispatch it is already set. Do not re-ask it here.

If the user asks to change that persisted strategy, do not apply the change inside this per-object action. Return control to the main agent, which owns the one-time setup and must route through ../../../data-infrastructure/SKILL.md, which owns any setup delegation, before redispatching object work.

If the strategy is unexpectedly unset (for example, an older project), return that setup remediation to the main agent as well. Do not run a catch-up wizard from an object subagent. Extraction is not always ODBC (PostgreSQL COPY; Oracle ODP.NET/DBMS_CLOUD; Redshift ODBC/UNLOAD + optional Iceberg; Teradata

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

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

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

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

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

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

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

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

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

RUN.mdreferences/background-monitoring.mdreferences/extraction-strategies-reference.mdreferences/iceberg-setup-reference.mdreferences/task-model-reference.mdreferences/troubleshooting-reference.mdreferences/workflow-config-reference.md

FAQ

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

Setup, run, and report on cloud data migration — workflow YAML, migrate_data run, background Monitor, and end-of-run summary for the user.

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

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

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

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить data-migration-setup с