---
title: "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."
verification: "listed"
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

Choose whichever fits your setup:

1. Copy this skill folder into your local skills directory.
2. Clone the repo and symlink or copy the skill into your agent workspace.
3. Add the repo as a git submodule if you manage shared skills centrally.
4. Install it through your internal provisioning or packaging workflow.
5. Download the folder directly from GitHub and place it in your skills collection.

Install command or upstream instructions:

```
Install with `pip install sqlglot`, then use its parser and transpiler APIs or CLI inside migration, linting, or generated-SQL review workflows.
```

## Documentation

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

## Source

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