ajitpratap0/gosqlx/sql-formatting
Claude Code and agent skill by ajitpratap0/gosqlx
- community
Checking that the SKILL.md file is still in the repository.
Format 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.
Install
npx vskill@latest install ajitpratap0/gosqlx/sql-formattingSKILL.md
SQL formatting with GoSQLX
Input: $ARGUMENTS - a SQL string or a path to a .sql file.
Steps
- Get the SQL (read the file if a path was given).
- Call
format_sql(mcp__plugin_gosqlx_gosqlx__format_sql) with:
sql(required)indent_size- integer 0–16, default 2.0puts each statement on one line. Clauses always start at column 0; larger values only indent nested blocks such as CREATE TABLE column listsuppercase_keywords-trueupper-cases all keywords (AND,IN,CASE, ...) but not data type names such asint. The defaultfalsestill upper-cases clause keywords (SELECT,FROM,WHERE, ...) and leaves others such asand/oras written; the MCP tool cannot lowercase keywordsadd_semicolon- defaultfalse
- If formatting fails, the SQL probably does not parse: call
validate_sqland report the error instead of guessing a fix. - Show the formatted SQL in a fenced
sqlblock. 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.
Fallback when the MCP tools are unavailable
Both upper-case clause keywords by default. For lowercase keywords use the CLI with --uppercase=false.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/gosqlx/skills/sql-formatting/SKILL.md
Popularity
- Repository stars
- 124
- Repository forks
- 15
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ajitpratap0/gosqlx/sql-formatting)