migrate-object
БесплатноБез исполняемых скриптовНе проверенCore migration loop for a single stored procedure, function, or BTEQ script. Iterates deploy -> test -> diagnose -> fix until Snowflake output matches source.
от sfc-gh-dflippo★ 35 звёзд на GitHubОб этом скилле
Migrate Object — Reference
This document describes the conceptual flow for migrating a single object. The state machine drives execution — you do not follow these steps manually. Each task in the machine points to a specific guide via its skill field.
Overview
Each object goes through a pipeline managed by the state machine:
- Claim —
claimObjectreserves the object for this user. - Checkout —
checkoutBranchcreates or switches to a git branch. - Convert —
convertruns SnowConvert to produce initial Snowflake SQL. - Test prep — procedures/functions with a source side:
createTests+captureBaselinegenerate test YAML and capture source-side baselines. Procedures/functions with no source (UDF helpers) skip this and go straight to deploy. BTEQ scripts:seedScript(binding values + import fixtures resolved from the shell script that runs it viascai test seed --bindings-from, hand-filled otherwise — see ../baseline-capture/seed-script/SKILL.md) thencaptureBaseline. - Deploy —
deploypushes the SQL to Snowflake. See DEPLOY.md. - Validate — depending on object type:
- Tables:
migrateData→validateData - Views:
validateView - Procedures/functions with a source side:
runTests. See RUN_TESTS.md. - Procedures/functions with no source:
verify. See VERIFY.md. - BTEQ scripts:
runTests(deploy is skipped — the converted script is run by the test). See RUN_TESTS.md.
- Tables:
- Fix loop — if deployment or validation fails, the machine enters a cycle:
applyRules— apply known migration rules from the rule engine.fixCode— diagnose the failure and make targeted fixes. See DIAGNOSE_FIX.md.- Loop back to deploy.
- Extract rules —
extractRulescaptures reusable rules from successful fixes. See DEDUCE_RULE.md. - Finalize —
finalizeBranchcommits and pushes,markDonecloses the claim.
Task guides
| Task | Guide | Purpose |
|---|---|---|
deploy |
DEPLOY.md | Pre-deploy checks, error table, file-update rules |
runTests |
RUN_TESTS.md | Interpreting results, dependency failure detection |
fixCode |
DIAGNOSE_FIX.md | Root cause analysis, minimal fix strategy |
extractRules |
DEDUCE_RULE.md | Capturing reusable rules from fixes |
Complexity check
If the source SQL file has 200+ non-empty lines, consider the decompose-convert-assemble approach described in references/LONG_PROCEDURE.md instead of the standard fix loop.
Escalation criteria
Do NOT iterate blindly. Escalate to the user when:
| Condition | Trigger |
|---|---|
| Same error persists | Same primary error for 3 consecutive iterations |
| Errors churning | Errors keep changing but never resolve after 5 total iterations |
On escalation, present iteration history and offer: provide guidance, decompose and retry, skip, mark as needs human repair, or mark done.
Установить migrate-object в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл migrate-object?
Core migration loop for a single stored procedure, function, or BTEQ script. Iterates deploy -> test -> diagnose -> fix until Snowflake output matches source.
Как установить скилл migrate-object?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл migrate-object запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic