sql-translate

A SQL converter that rewrites queries from one database dialect to another, such as Snowflake to PostgreSQL or BigQuery to MySQL. A SQL dialect is a database system's variation of the SQL language.

In plain words
What is it for?
Use it to translate SQL between supported systems, review warnings, and save the converted query when working on migrations or cross-database projects.
Why use it?
It reduces the manual effort of adapting queries when moving between databases and points out cases that may still need human adjustment.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/altimateai/altimate-code/sql-translate
Any agent
npx skills add AltimateAI/altimate-code --skill sql-translate
Clone the repo
git clone --depth 1 https://github.com/AltimateAI/altimate-code

Made for: Claude Code, Codex.

Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 644 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00026 $0.00644
Opus 5 $0.00013 $0.00322
Sonnet 5 $0.00005 $0.00129
Haiku 4.5 $0.00003 $0.00064

Measured 2d ago against content hash 842dcd5da127, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sql-translate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.opencode/skills/sql-translate/SKILL.md · 69 lines

How it starts

The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

  2. Get the SQL to translate — Either:

    • Read from a file path provided by the user (use read)
    • Accept inline SQL from the user's message
    • Read from clipboard or stdin if mentioned
  3. Call sql_translate with:

    • sql: The SQL query text
    • source_dialect: The source dialect
    • target_dialect: The target dialect
  4. Review the result:

    • If success is true, present the translated SQL
    • If there are warnings, explain each one and what may need manual adjustment
    • If success is false, explain the error and suggest fixes
  5. Format the output showing:

    • Original SQL (labeled with source dialect)
    • Translated SQL (labeled with target dialect)
    • Any warnings about lossy translations or features that need manual review
  6. Offer next steps if applicable:

    • Suggest running altimate_core_validate on the translated SQL to verify syntax
    • Offer to write the translated SQL to a file
    • Offer to translate additional queries

Usage

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

  • /sql-translate — Interactive: ask for source dialect, target dialect, and SQL
  • /sql-translate snowflake postgres — Translate from Snowflake to PostgreSQL (will ask for SQL)
  • /sql-translate snowflake postgres SELECT DATEADD(day, 7, CURRENT_TIMESTAMP()) — Full inline translation

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

Read the full file on GitHub · 69 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 69 lines · 26 tokens per session scan A 842dcd5da127

Subscribe to this mod's changes

sql-translate is a skill published in the GitHub repository AltimateAI/altimate-code (803 stars, last pushed 2d ago), licensed MIT. It adds 26 tokens to every session and 644 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

technology-search

Search tech blogs, developer forums, and IT media (TechCrunch, Hacker News, 36氪, etc.) for software and hardware industry updates with heat ranking and EN↔CN translation. Use this skill only when the topic is clearly about programming, software, hardware, AI, or IT infrastructure.

netease-youdao/LobsterAI · 65 tokens

email-draft

Use when the user asks to draft, polish, translate, or reply to an email. Produces a clean draft with subject line, greeting, body, and sign-off, plus a pre-send self-check.

shiwenwen/hope-agent · 46 tokens

omh-localization-review

This is a Hermes-native localization-review workflow skill.

rlaope/oh-my-hermes · 56 tokens

store-listing-localizer

Automate Microsoft Store (Partner Center) listing localization for Intelligent Terminal (Store ID 9NMQC2SSJX24). Use when asked to export/import Store listings, localize release notes / descriptions / captions / features into 80+ languages, update listingData CSV, or push Store listing translations without manually…

microsoft/intelligent-terminal · 97 tokens

text-tools

Text processing toolkit: translate, rewrite, regex, encoding/decoding, and formatting.

fuyuxiang/echo-agent · 21 tokens

agentero-cli

Use the Agentero CLI (bin agentero) to create, discover, and inspect a local research vault and catalog—list/get papers, import by id/URL, check wikilinks, layout regions (figures/tables/formulas), write reading marks (highlight / 批注 / translate / ask), download assets, parse PAPER.md, export bib—without BYOA. Prefer…

poco-ai/Agentero · 117 tokens