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★ 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 byscai 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 existingworkflow_pathand 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:
- You already know the tables. If the parent skill or the current wave has
already identified the tables, construct an exact
wherefrom that (source.canonicalName IN (...)). For a wave's batch, the batch'swherefilter is typically reusable verbatim only if it is already exact. - 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" (omitwhere). - If you're unsure of the registry filter syntax, run
scai code whereto 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
Установить data-migration-setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic