ajitpratap0/gosqlx/sql-linting
Claude Code and agent skill by ajitpratap0/gosqlx
- community
Checking that the SKILL.md file is still in the repository.
Lint 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.
Install
npx vskill@latest install ajitpratap0/gosqlx/sql-lintingSKILL.md
SQL linting with GoSQLX
Input: $ARGUMENTS - SQL, a .sql file, or a rule ID to explain.
Which rules run where
| Entry point | Rules applied | |
|---|---|---|
MCP lint_sql (mcp__plugin_gosqlx_gosqlx__lint_sql) | L001-L010 (style). Keyword case expected UPPER, trailing commas, max line 100 | |
gosqlx lint CLI | L001-L010; --auto-fix fixes L001, L002, L003, L007, L010 | |
gosqlx.Lint() Go library | All 30 rules, L001-L030 |
L011-L030 are not returned by lint_sql or the CLI. When you spot one of those patterns yourself, cite the rule ID as guidance and say it comes from the Go library's rule set.
Rules
| ID | Rule | Severity | Auto-fix | |
|---|---|---|---|---|
| L001 | Trailing whitespace | Warning | Yes | |
| L002 | Mixed indentation (tabs and spaces) | Error | Yes | |
| L003 | Consecutive blank lines | Warning | Yes | |
| L004 | Indentation depth (excessive nesting) | Warning | No | |
| L005 | Long lines | Info | No | |
| L006 | Column alignment in SELECT lists | Info | No | |
| L007 | Keyword case consistency | Warning | Yes | |
| L008 | Comma placement (trailing vs leading) | Info | No | |
| L009 | Aliasing consistency | Warning | No | |
| L010 | Redundant whitespace | Info | Yes | |
| L011 | DELETE without WHERE | Error | No | |
| L012 | UPDATE without WHERE | Error | No | |
| L013 | DROP without IF EXISTS | Warning | No | |
| L014 | TRUNCATE TABLE | Warning | No | |
| L015 | SELECT ... INTO OUTFILE / DUMPFILE | Error | No | |
| L016 | SELECT * | Warning | No | |
| L017 | Missing WHERE on full scan (no WHERE or LIMIT) | Warning | No | |
| L018 | Leading wildcard LIKE ('%x') | Warning | No | |
| L019 | NOT IN with NULL risk (prefer NOT EXISTS) | Warning | No | |
| L020 | Correlated subquery in SELECT list (N+1) | Warning | No | |
| L021 | OR chain instead of IN | Warning | No | |
| L022 | Function on indexed column in WHERE | Warning | No | |
| L023 | Implicit cross join (comma joins) | Warning | No | |
| L024 | Table alias required | Warning | No | |
| L025 | Reserved keyword used as identifier | Warning | No | |
| L026 | INSERT without explicit column list | Warning | No | |
| L027 | UNION instead of UNION ALL | Warning | No | |
| L028 | LIMIT without ORDER BY | Warning | No | |
| L029 | Subquery that can be a JOIN | Warning | No | |
| L030 | DISTINCT on many columns | Warning | No |
Full reference with examples: https://github.com/ajitpratap0/GoSQLX/blob/main/docs/LINTING_RULES.md
Steps
- Call
lint_sqlwith{"sql": "..."}. Each violation hasrule,rule_name,severity,message,line,columnandsuggestion. - Group violations by rule, show the offending line, and give the fix. For auto-fixable rules, mention
gosqlx lint --auto-fix. - For a rule-ID question, explain the rule from the table above and show a before/after example.
Fallback when the MCP tools are unavailable
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-linting/SKILL.md
Popularity
- 7-day trend score
- 0
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-linting)