/gosqlx:sql-analysis [SQL string or path to .sql file]from GoSQLX
Analyzes SQL queries and .sql files using GoSQLX: validates syntax, extracts metadata (tables, columns, functions), detects injection patterns, lints style, and formats. Provides a plain-language explanation and prioritized fix recommendations.
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 - a SQL string, or a path to a .sql file (read the file first). If nothing was given, use the SQL in the current conversation or ask for it.
analyze_sql (MCP server gosqlx, tool mcp__plugin_gosqlx_gosqlx__analyze_sql) with {"sql": "<the SQL>"}. It runs validate, parse, metadata, security, lint and format concurrently and returns one report with those six sections.validate_sql with dialect set (see the sql-dialects skill for valid values), because analyze_sql validates with the generic parser.sql-security-review.NOT IN with NULLs, unbounded DELETE/UPDATE, SELECT *) and label it as your judgment, not GoSQLX output.If the gosqlx MCP server is not connected, use the local CLI via Bash (install: go install github.com/ajitpratap0/GoSQLX/cmd/gosqlx@latest):
gosqlx validate path/to/query.sql # or: echo "SELECT ..." | gosqlx validate
gosqlx analyze --all path/to/query.sql # security, performance and complexity report
gosqlx analyze "SELECT * FROM users" # inline SQL
Never execute the SQL against a database as part of the analysis.
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-dialectsCheck whether SQL parses under a specific database dialect with GoSQLX (PostgreSQL, MySQL, SQL Server, Oracle, SQLite, Snowflake, generic; MariaDB and ClickHouse via the CLI) and explain dialect-specific syntax problems. Use when the user asks if SQL is valid for a particular database, is porting SQL between databases, or gets a syntax error that may be dialect-related./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./sql-security-reviewSQL injection review with GoSQLX - scan SQL text for injection patterns (tautologies, UNION attacks, stacked queries, comment bypasses, time-based and out-of-band probes, dangerous functions) and review application code that builds SQL strings (concatenation, f-strings, fmt.Sprintf, template literals), recommending parameterized queries. Use when the user asks whether SQL or database code is safe, about SQL injection, or to security-review queries or data-access code.Other plugins' skills for the same job