Sql translate

From AltimateAI/altimate-code · View interactive version

Sql translate is an AI agent skill from the GitHub repository AltimateAI/altimate-code. Translate SQL queries between database dialects (Snowflake, BigQuery, PostgreSQL, MySQL, etc.)

How to use this skill

Skill file

SQL Translate

Requirements

Agent: builder or migrator (may write translated SQL to files)

Tools used: sql_translate, read, write, altimate_core_validate

Translate SQL queries from one database dialect to another using sqlglot's transpilation engine.

Workflow

  1. Determine source and target dialects — If the user did not specify both dialects, ask which source and target dialects to use. Common dialects: snowflake, bigquery, postgres, mysql, tsql, hive, spark, databricks, redshift, duckdb.
  1. Get the SQL to translate — Either:
  1. Call sql_translate with:
  1. Review the result:
  1. Format the output showing:
  1. Offer next steps if applicable:

Usage

The user invokes this skill with optional dialect and SQL arguments:

Supported Dialects

| Dialect | Key |

|---------|-----|

| Snowflake | snowflake |

| BigQuery | bigquery |

| PostgreSQL | postgres |

| MySQL | mysql |

| SQL Server | tsql |

| Hive | hive |

| Spark SQL | spark |

| Databricks | databricks |

| Redshift | redshift |

| DuckDB | duckdb |

| SQLite | sqlite |

| Oracle | oracle |

| Trino/Presto | trino / presto |

Use the tools: sql_translate, read, write, altimate_core_validate.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.