Command Palette

Search for a command to run...

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

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от sfc-gh-dflippo★ 35 звёзд на GitHub

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

Code Conversion

On Entry

Tell the user:

Code Conversion.

Here's what I'll do:

  1. 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).
  2. Generate reports flagging anything that needs manual review (EWIs, FDMs, performance remarks, out-of-scope items).
  3. Save converted code under snowflake/ and reports under reports/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 with TABLEAU_PATH set (Tableau-only is allowed with an empty source/; 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:

    1. Conversion target, via ask_user_question (multiSelect = false):

      "How should Informatica mappings be converted?

      1. dbt (default): each mapping becomes a dbt model orchestrated by Snowflake Tasks. Supports ETL stabilization and deploy.
      2. Snowflake Scripting (preview): each mapping becomes a standalone Snowflake stored procedure the Task graph calls. Stabilization and deploy are skipped for this preview flavor."
    2. If the answer is dbt, also ask (multiSelect = false): "Consolidate dbt model chains to reduce the number of generated model files?". On yes, set CONSOLIDATE_DBT = true for Step 4.
    3. If the answer is Snowflake Scripting, set SCRIPTING_MODE = true for Step 4.

    Persist the choice with the MCP configure tool: etl_informatica_target = "dbt" or "scripting". When the target is Snowflake Scripting, the --informatica-to-snowflake-scripting convert flag in Step 4 additionally records the project-level etl_target in project.yml that gates the scripting-preview routing.

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 (.pbit files) 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 (.twb or .tds files) 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?"

  1. Tailor settings — I'll suggest options based on your code; you confirm.
  2. Go with defaults
  • On Go with defaults: <SETTINGS_FLAGS> stays empty; proceed to Step 4
Полный SKILL.md на GitHub

Установить convert в Claude Code и Claude Desktop

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

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

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

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

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

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

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

recommend-settings/SKILL.mdrecommend-settings/reference/teradata.md

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), без исполняемых скриптов.

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

Сравнить convert с