convert
БесплатноБез исполняемых скриптовНе проверенConvert source code to Snowflake SQL using SnowConvert. Transforms full-migration sources and code-conversion-only sources to Snowflake-compatible syntax, and…
от sfc-gh-dflippo★ 35 звёзд на GitHubОб этом скилле
Code Conversion
On Entry
Tell the user:
Code Conversion.
Here's what I'll do:
- Run SnowConvert against your source SQL files, transforming each into Snowflake SQL syntax (optionally tailoring conversion settings to your source first, or going with defaults).
- Generate reports flagging anything that needs manual review (EWIs, FDMs, performance remarks, out-of-scope items).
- Save converted code under
snowflake/and reports underreports/SnowConvert/.
Convert source code to Snowflake SQL using SnowConvert.
Report the result from the --json envelope and hand off. Reading the generated
reports, counting EWIs by severity or judging what needs fixing is the
assessment's job — do that here only if the user asks a direct question.
Prerequisites
- Migration project initialized (
scai init) - Source SQL in
source/or Tableau repointing withTABLEAU_PATHset (Tableau-only is allowed with an emptysource/; Step 3.5 applies the dialect gate)
Workflow
Step 1: Verify Source Code Exists
Confirm source/ contains .sql files (use whichever portable form fits the host). Note whether SQL is present; do not stop yet.
If source/ is empty, continue to Steps 2–3.5. After those steps, if there is still no SQL and TABLEAU_PATH is unset and PBIT_PATH is unset, return to the parent setup skill so it can re-query progress_setup(). Tableau-only conversions (Step 3.5 sets TABLEAU_PATH) are allowed with an empty source/.
Step 2: Check for ETL Code
Any ETL in this project was imported during register (scai code add), which arranges the packages into source/_etl/. That is where convert reads them from.
Check whether source/_etl/ exists and contains ETL files — .dtsx for SSIS, .xml for Informatica PowerCenter (use whichever portable form fits the host).
If it is missing or empty, there is no ETL to convert; proceed to Step 3.
If it contains SSIS packages only, no conversion-target prompt is needed; proceed to Step 3.
If it contains Informatica PowerCenter XML, ask the remaining ETL questions up front, in one sequence, before running the conversion:
- Conversion target, via
ask_user_question(multiSelect = false):"How should Informatica mappings be converted?
- dbt (default): each mapping becomes a dbt model orchestrated by Snowflake Tasks. Supports ETL stabilization and deploy.
- Snowflake Scripting (preview): each mapping becomes a standalone Snowflake stored procedure the Task graph calls. Stabilization and deploy are skipped for this preview flavor."
- If the answer is dbt, also ask (
multiSelect = false): "Consolidate dbt model chains to reduce the number of generated model files?". On yes, setCONSOLIDATE_DBT = truefor Step 4. - If the answer is Snowflake Scripting, set
SCRIPTING_MODE = truefor Step 4.
Persist the choice with the MCP
configuretool:etl_informatica_target = "dbt"or"scripting". When the target is Snowflake Scripting, the--informatica-to-snowflake-scriptingconvert flag in Step 4 additionally records the project-leveletl_targetinproject.ymlthat gates the scripting-preview routing.- Conversion target, via
These questions are still required: the conversion target is not something scai code add can infer from the imported files.
Step 3: Check for Power BI Reports
Ask the user:
"Do you have Power BI reports (
.pbitfiles) you'd like to repoint to Snowflake?"
If yes, load ../powerbi-repointing/SKILL.md. It collects PBIT_PATH and tells you to append --powerbi-repointing <PBIT_PATH> to the convert command in Step 4. Return here when complete.
If no, proceed to Step 3.5. PBIT_PATH remains unset; do not pass --powerbi-repointing to scai.
Step 3.5: Check for Tableau Workbooks (Oracle only)
Read source_language from configure() (already called this session). If it is not Oracle (compare case-insensitively), skip this step: TABLEAU_PATH stays unset; do not pass --tableauRepointing.
If it is Oracle, ask the user:
"Do you have Tableau workbooks (
.twbor.tdsfiles) you'd like to repoint to Snowflake?"
If yes, load ../tableau-repointing/SKILL.md in path-only mode. It collects TABLEAU_PATH and tells you to append --tableauRepointing <TABLEAU_PATH> to the convert command in Step 4. Return here when complete.
If no, proceed to Step 3.6. TABLEAU_PATH remains unset; do not pass --tableauRepointing to scai.
Step 3.6: Offer Custom Conversion Settings
Keep this quick — most users just want defaults. Ask via ask_user_question (multiSelect = false):
"SnowConvert supports custom conversion settings tailored to your source language. Want to tailor them, or go with the defaults?"
- Tailor settings — I'll suggest options based on your code; you confirm.
- Go with defaults
- On Go with defaults:
<SETTINGS_FLAGS>stays empty; proceed to Step 4
Установить convert в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл convert?
Convert source code to Snowflake SQL using SnowConvert. Transforms full-migration sources and code-conversion-only sources to Snowflake-compatible syntax, and optionally repoints Power BI reports and Tableau workbooks. Triggers: convert, snowconvert, transform code, convert to snowflake, power bi, tableau.
Как установить скилл convert?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл convert запускает скрипты?
Нет, скилл состоит только из инструкций (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