code-conversion-only
FreeNo executable scriptsNot checkedConvert local source code to Snowflake SQL for code-conversion-only source systems such as Sybase IQ, Azure Synapse, Spark SQL, Databricks SQL, Greenplum…
by sfc-gh-dflippo★ 35 GitHub starsAbout this skill
Code Conversion Only
On Entry
Tell the user:
Code Conversion Only — I'll walk you through adding local source files, converting them to Snowflake SQL, and choosing what to do next with the converted output.
Guide users through SnowConvert's code-conversion-only path. This path uses local source files, not live source extraction.
Supported Sources
If configure() does not already have source_language configured, use the CLI dialect directly for configure(source_language=...). Azure Synapse is the exception: it uses source_language="synapse" while initializing the CLI dialect as SqlServer with project_type: code_conversion_only.
| User-facing source | configure(source_language=...) / CLI dialect |
|---|---|
| Sybase IQ | Sybase |
| Azure Synapse | synapse / SqlServer with project_type: code_conversion_only |
| Spark SQL | Spark |
| Databricks SQL | Databricks |
| BigQuery | BigQuery |
| PostgreSQL | Postgresql |
| Greenplum | Greenplum |
| Netezza | Netezza |
| Vertica | Vertica |
| Hive | Hive |
| IBM DB2 | Db2 |
If the user says "PostgreSQL & Based Languages" but does not specify one, ask whether they mean PostgreSQL, Greenplum, or Netezza.
Note on PostgreSQL, IBM DB2, and BigQuery: New PostgreSQL, DB2, and BigQuery projects default to
project_type: full_migrationand are routed throughsetup/SKILL.md. They appear in this table only for legacy projects whoseproject.ymlalready hasproject_type: code_conversion_onlypersisted from before full-pipeline support shipped. If you reach this skill for PostgreSQL, DB2, or BigQuery, the legacy project configuration is being honored.
Workflow
Step 1: Confirm Project Routing
If routing.converted = true (from configure()), tell the user conversion output already exists in snowflake/ and offer:
- Review converted output and reports
- Re-run conversion
Only continue to Step 2 if the user chooses to re-run conversion or source files are missing.
If the source system was not already selected by the calling skill, ask the user which supported source they are converting and map it using the table above.
If no project directory is configured, ask where to create/use the project.
Call the configure tool with:
configure(project_dir="<PROJECT_DIR>", source_language="<SOURCE_KEY>")
Present the returned user_overview and routing metadata. Confirm it shows project_type: code_conversion_only.
Step 2: Add Local Source Files
Check whether source files are already present in the project source/ directory.
If no source files are present, ask:
"Where are your source SQL/code files located? Please provide the full path to the directory or file."
Then run from the project directory:
scai code add -i <INPUT_PATH> --skip-split --json
If the user explicitly wants to replace existing source files, add --overwrite.
Step 3: Check for ETL Code
Any ETL imported by scai code add lands in source/_etl/. That is where convert reads it 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 4.
If it contains SSIS packages only, no conversion-target prompt is needed; proceed to Step 4.
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.
- 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 5. - If the answer is Snowflake Scripting, set
SCRIPTING_MODE = truefor Step 5.
Persist the choice with the MCP
configuretool:etl_informatica_target = "dbt"or"scripting".- Conversion target, via
These questions are still required: the conversion target is not something scai code add can infer from the imported files. Ask them on every conversion, re-runs included — scai code convert defaults to dbt, so a missing flag in Step 5 silently changes the output.
Step 4: 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
Install code-conversion-only in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the code-conversion-only skill do?
Convert local source code to Snowflake SQL for code-conversion-only source systems such as Sybase IQ, Azure Synapse, Spark SQL, Databricks SQL, Greenplum, Netezza, Vertica, and Hive. Optionally repoints Power BI reports. Use when configure returns project_type code_conversion_only for these sources.
How do I install the code-conversion-only skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the code-conversion-only skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
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…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by 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…
by Anthropic