/gosqlx:sql-formatting [SQL string or path to .sql file]from GoSQLX
Format or pretty-print SQL using GoSQLX with consistent indentation, keyword casing, and optional trailing semicolons. Use when asked to beautify, reindent, or clean up SQL files.
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.
format_sql (mcp__plugin_gosqlx_gosqlx__format_sql) with:
sql (required)indent_size - integer 0–16, default 2. 0 puts each statement on one line. Clauses always start at column 0; larger values only indent nested blocks such as CREATE TABLE column listsuppercase_keywords - true upper-cases all keywords (AND, IN, CASE, ...) but not data type names such as int. The default false still upper-cases clause keywords (SELECT, FROM, WHERE, ...) and leaves others such as and/or as written; the MCP tool cannot lowercase keywordsadd_semicolon - default falsevalidate_sql and report the error instead of guessing a fix.sql block. When the input was a file, write the result back only if the user asked you to change the file; otherwise show it.Formatting is whitespace and keyword-case only - it must not change meaning. If the output appears to drop or alter anything (comments, hints, dialect syntax), say so and keep the original.
gosqlx format query.sql # print formatted SQL (keywords uppercased by default)
gosqlx format --indent 4 query.sql
gosqlx format --uppercase=false query.sql # lowercase clause keywords (do not use --no-uppercase: it currently uppercases)
gosqlx format --check query.sql # exit non-zero if the file needs formatting
gosqlx format -i query.sql # rewrite in place - only when asked
echo "select a from b" | gosqlx format
Both upper-case clause keywords by default. For lowercase keywords use the CLI with --uppercase=false.
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-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-Other plugins' skills for the same job