/gosqlx:sql-dialects [dialect] [SQL string or .sql file]from GoSQLX
Validates SQL syntax against multiple database dialects (PostgreSQL, MySQL, SQL Server, Oracle, SQLite, Snowflake, MariaDB, ClickHouse) using GoSQLX. Explains dialect-specific syntax issues and suggests equivalents when porting SQL between databases.
Ships in GoSQLX. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
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?}.
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
generic (or a neighbouring dialect) to tell a real syntax error apart from a dialect-specific construct.LIMIT vs TOP/FETCH FIRST, ILIKE, :: casts, QUALIFY, ON DUPLICATE KEY UPDATE vs ON CONFLICT).For conversion, the CLI has gosqlx transpile --from <d> --to <d>; it currently supports mysql -> postgres, postgres -> mysql and postgres -> sqlite.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ajitpratap0/gosqlx --plugin gosqlx5 skills in this plugin
/sql-analysisFull GoSQLX review of a SQL query or .sql file - syntax validity, statement types, referenced tables/columns/functions, injection patterns, style lint and a formatted version - followed by a plain-language explanation of what the SQL does and what to fix. Use when the user asks to analyze, review, check, explain or sanity-check SQL./sql-formattingFormat or pretty-print SQL with GoSQLX - consistent indentation, keyword casing and optional trailing semicolon. Use when the user asks to format, beautify, pretty-print, reindent or clean up SQL, or to make a .sql file consistent./sql-lintingLint SQL with GoSQLX and explain its rules L001-L030 (whitespace, keyword case, comma placement, aliasing, plus safety, performance and naming rules), including which rules each entry point applies and which can be auto-fixed. Use when the user asks to lint SQL, enforce SQL style, explains a GoSQLX rule ID like L007 or L019, or sets up SQL linting in CI.Other plugins' skills for the same job