sql-dialects

sql-dialects is a skill for Claude Code from ajitpratap0/GoSQLX. It costs 86 tokens per session (607 once invoked), scanned A, original, Apache-2.0.

A SQL validator that checks whether a query parses under a chosen database dialect, such as PostgreSQL, MySQL, or SQLite. A dialect is the particular SQL syntax and rules supported by a database system.

In plain words
What is it for?
Use it to check SQL strings or files for a named database dialect and explain syntax errors with their location.
Why use it?
It helps separate general SQL errors from syntax that is valid in one database but not another, which is useful when moving queries between systems.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the gosqlx plugin — 5 skills, 4 commands, 1 agent, 1 hook, 1 MCP server shipped together

Good fit Use it to check SQL strings or files for a named database dialect and explain syntax errors with their location.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ajitpratap0/gosqlx/sql-dialects
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.

Any agent
npx skills add ajitpratap0/GoSQLX --skill sql-dialects
Clone the repo
git clone --depth 1 https://github.com/ajitpratap0/GoSQLX

Made for: Claude Code.

Or install gosqlx, the plugin that ships this one along with the rest of its 5 skills, 4 commands, 1 agent, 1 hook, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sql-dialects

README.md
[![agentmods](https://agentmods.dev/badge/skills/ajitpratap0/gosqlx/sql-dialects/github.svg)](https://agentmods.dev/skills/ajitpratap0/gosqlx/sql-dialects)
Your own site
<a href="https://agentmods.dev/skills/ajitpratap0/gosqlx/sql-dialects"><img src="https://agentmods.dev/badge/skills/ajitpratap0/gosqlx/sql-dialects/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sql-dialects

Your own site · 80×15
<a href="https://agentmods.dev/skills/ajitpratap0/gosqlx/sql-dialects"><img src="https://agentmods.dev/badge/skills/ajitpratap0/gosqlx/sql-dialects.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 607 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00086 $0.00607
Opus 5.5 $0.00034 $0.00243
Sonnet 5.5 $0.00017 $0.00121
Haiku 4.5 $0.00009 $0.00061

Measured yesterday against content hash 4407e4aeaecb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sql-dialects 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 yesterday.

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.

plugins/gosqlx/skills/sql-dialects/SKILL.md · 38 lines

What it actually says

Dialect validation with GoSQLX

Input: $ARGUMENTS - usually a dialect name and SQL (string or .sql path). If no dialect is given, infer it from the project (driver imports, connection strings, migration tooling) or ask.

MCP tool

Call validate_sql (mcp__plugin_gosqlx_gosqlx__validate_sql) with sql and dialect. Use only values listed in the tool's dialect enum. Every server version accepts:

generic, mysql, postgresql, sqlite, sqlserver, oracle, snowflake

Map user wording onto them: Postgres/PG -> postgresql; MSSQL/T-SQL/Azure SQL -> sqlserver; PL/SQL -> oracle. The result is {valid, error?, dialect?}.

CLI-only dialects

Newer server builds also list mariadb and clickhouse. If the connected server's enum does not include them, use the local CLI:

gosqlx validate --dialect mariadb query.sql
gosqlx validate --dialect clickhouse query.sql
gosqlx validate --list-dialects        # prints every name the CLI accepts

Steps

  1. Validate with the requested dialect. If it fails, also validate with generic (or a neighbouring dialect) to tell a real syntax error apart from a dialect-specific construct.
  2. Explain the error at its line/column and name the construct involved (for example backtick vs double-quote identifiers, LIMIT vs TOP/FETCH FIRST, ILIKE, :: casts, QUALIFY, ON DUPLICATE KEY UPDATE vs ON CONFLICT).
  3. Suggest an equivalent for the target dialect. Separate GoSQLX's verdict from your own knowledge of the database.
  4. A pass means GoSQLX parses it; it does not prove the target database accepts every function or type. Say so when it matters.

For conversion, the CLI has gosqlx transpile --from <d> --to <d>; it currently supports mysql -> postgres, postgres -> mysql and postgres -> sqlite.

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. yesterday First seen · 38 lines · 86 tokens per session scan A 4407e4aeaecb

Subscribe to this mod's changes

sql-dialects is a skill published in the GitHub repository ajitpratap0/GoSQLX (120 stars, last pushed today), licensed Apache-2.0. It adds 86 tokens to every session and 607 once invoked, about $0.0003 per session on Opus 5.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-10-22.

Related

Other skills, from other repositories

gograph

Go repository intelligence for Claude Code. Use when reading, navigating, editing, reviewing, or refactoring a Go codebase. Exposes 64 query, analysis, and workflow capabilities through the local gograph MCP server, including bounded first-call exploration, AST-aware call graphs, blast-radius analysis, impact, and…

ozgurcd/gograph · 69 tokens

squix

Run SQL queries across databases (Postgres, MySQL, SQLite, etc.) via the squix CLI. Use for running named queries, exploring schema, or parameterized queries. Always use -f for non-interactive output.

eduardofuncao/squix · 50 tokens

golang-samber-hot

In-memory caching in Golang using samber/hot — eviction algorithms (LRU, LFU, TinyLFU, W-TinyLFU, S3FIFO, ARC, TwoQueue, SIEVE, FIFO), TTL, cache loaders, sharding, stale-while-revalidate, missing key caching, and Prometheus metrics. Apply when using or adopting samber/hot, when the codebase imports…

alexastrum/skl · 122 tokens

golang-database

Comprehensive guide for Go database access — parameterized queries, struct scanning, NULLable columns, transactions, isolation levels, SELECT FOR UPDATE, connection pool, batch processing, context propagation, and migration tooling. Use when writing, reviewing, or debugging Golang code that interacts with PostgreSQL…

alexastrum/skl · 99 tokens

sq

Guides use of the sq CLI to query SQL databases and tabular files with SLQ (sq's jq-like query language) or native SQL, manage sources, choose output formats, and run inspect, diff, and table commands. Use when the user mentions sq, SLQ, wrangling CSV/Excel/JSON/DB data, cross-source joins, or command-line data…

neilotoole/sq · 89 tokens

homebutler

Tells an agent what changed on a server since it last looked - plus status, Docker, backups, Proxmox. Every tool is classed read, write or destructive, so an agent can tell a look from a change before it makes the call.

Higangssh/homebutler · 56 tokens