Skip to content
Back to skills

Translate And Validate Sql Across Dialects With Sqlglot

ASecurity

Use SQLGlot when an agent needs to parse, transpile, or sanity-check SQL before moving queries between engines or trusting generated SQL.

  • 36 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 8, 2026
ai-agentspythonrustgosqlgitsecuritydocumentation

Security analysis

A100/100

Scanned June 8, 2026

npx -y skills add agentskillexchange/skills --skill translate-and-validate-sql-across-dialects-with-sqlglot --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Translate And Validate Sql Across Dialects With Sqlglot?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Translate And Validate Sql Across Dialects With Sqlglot
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-translate-and-validate-sql-across-dialects-with-sq/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-translate-and-validate-sql-across-dialects-with-sq)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "Translate and validate SQL across dialects with SQLGlot"
slug: "translate-and-validate-sql-across-dialects-with-sqlglot"
description: "Use SQLGlot when an agent needs to parse, transpile, or sanity-check SQL before moving queries between engines or trusting generated SQL."
github_stars: 9133
verification: "security_reviewed"
source: "https://github.com/tobymao/sqlglot"
author: "tobymao"
publisher_type: "individual"
category: "Data Extraction & Transformation"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "tobymao/sqlglot"
  github_stars: 9133
---

# Translate and validate SQL across dialects with SQLGlot

Use SQLGlot when an agent needs to parse, transpile, or sanity-check SQL before moving queries between engines or trusting generated SQL.

## Prerequisites

Python 3.8+, SQLGlot, and any agent or script that needs SQL parsing, transpilation, or validation.

## Installation

Use the upstream install or setup path that matches your environment:
- # Optionally prefix with UV=1 to use uv for the installation
- make install
- make install-dev
- make docs-serve

Requirements and caveats from upstream:
- It is a very comprehensive generic SQL parser with a robust [test suite](https://github.com/tobymao/sqlglot/blob/main/tests/). It is also quite [performant](#benchmarks), while being written purely in Python.
- # Pure python version
- Like parsing, generating SQL also requires the target dialect to be specified, otherwise the SQLGlot dialect will be used by default. For example, to transpile a query from Spark SQL to DuckDB, do parse_one(sql, diale...

Basic usage or getting-started notes:
- SQLGlot can detect a variety of [syntax errors](#parser-errors), such as unbalanced parentheses, incorrect usage of reserved keywords, and so on. These errors are highlighted and dialect incompatibilities can warn or...
- [Run Tests and Lint](#run-tests-and-lint)
- From PyPI:

- Source: https://github.com/tobymao/sqlglot
- Extracted from upstream docs: https://raw.githubusercontent.com/tobymao/sqlglot/HEAD/README.md

## Documentation

- https://sqlglot.com/sqlglot.html

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/translate-and-validate-sql-across-dialects-with-sqlglot/)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.