- Home
- Skills
- Data & Databases
- SQL Query Reviewer: Free Lint for Slow and Risky SQL
SQL Query Reviewer: Free Lint for Slow and Risky SQL
Free. Lint a SQL file for performance and safety problems such as SELECT *, NOT IN subqueries, functions on columns, leading wildcards and UPDATE or DELETE without WHERE.
Free
Works with the AI Agents you already use
SQL Query Reviewer: Free Lint for Slow and Risky SQL
Example session with this skill installed
Review query.sql (SQL Server) for performance problems and anything risky.
- Read your context and instructions
- Compiled the sql query reviewer
Summary
Reviewed query.sql as T-SQL and found 7 issues: 2 high and 5 medium.
Findings
| Severity | Rule | Line |
|---|---|---|
| High | not-in-subquery | 5 |
| High | no-where-update-delete | 7 |
| Medium | select-star | 1 |
| Medium | comma-join | 1 |
| Medium | function-on-column | 3 |
| Medium | leading-wildcard | 4 |
| Medium | nolock | 10 |
Next steps
- Add a WHERE clause to the UPDATE or DELETE on line 7 before running it.
- Replace the NOT IN subquery on line 5 with NOT EXISTS.
- Select only the columns you need and use explicit JOINs.
- Rewrite the function and leading wildcard so indexes can be used.
Connects securely to your tools. The creator never sees your data.
About this skill
Catch slow and dangerous SQL before it reaches production
SQL Query Reviewer is a free skill that lints a .sql file and reports problems by severity, with the line number and a suggested fix. It works on the text of your query, so it needs no database connection.
What it flags
- High: UPDATE or DELETE with no WHERE, and NOT IN with a subquery (breaks on NULLs)
- Medium: SELECT *, comma joins, functions wrapped around columns in WHERE (stops index use), leading wildcard LIKE patterns, and NOLOCK hints
- Dialect-aware checks for T-SQL, PostgreSQL, MySQL and SQLite
What you get
A findings table with severity, rule name, line number and a plain-English fix, plus a short checklist in references/checklist.md for manual review.
Honest by design
It is a static linter, not an execution planner. It cannot see your data volumes or indexes, so treat findings as prompts to check, not proof of a slow query.
Requirements
Python 3.9+. No packages needed beyond the standard library.
Works great with
Star Schema Designer and Power BI Model and DAX Helper, to review the SQL you load your warehouse with.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Data & Databases.
Cannot execute queries or view live execution plans. Performance claims are hypotheses based on static analysis and require manual verification via EXPLAIN ANALYZE or STATISTICS IO.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 4 days ago
- Free with an Agensi account