sql-analyzer

Analyze SQL queries for anti-patterns and performance issues.

1|Updated Dec 22, 2025
One-click install
npx skills add https://github.com/abdullah1854/ClaudeSuperSkills --skill sql-analyzer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-analyzer
Source: https://github.com/abdullah1854/ClaudeSuperSkills/tree/main/sql-analyzer
Command: npx skills add https://github.com/abdullah1854/ClaudeSuperSkills --skill sql-analyzer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Analyzes SQL queries for anti-patterns and performance issues.

Core Features & Use Cases

  • Pattern Detection: Detects SELECT *, missing WHERE clauses, leading wildcards, etc.
  • Index Suggestions: Recommends potential indexing improvements.

Quick Start

Analyze a sample SQL query to surface issues and improvement points.

Frequently Asked Questions about sql-analyzer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect performance issues in my SQL queries?

SQL anti-pattern detection identifies performance issues like SELECT *, missing WHERE clauses on UPDATE/DELETE, leading wildcard LIKE, and ORDER BY ordinal. The analyzer scans queries across MSSQL, PostgreSQL, and MySQL, computes a complexity score, and returns a prioritized report with recommended fixes.

Can I use SQL analysis during code review and CI checks?

Yes. The analyzer is designed for development, code review, and automated CI pipeline integration. It produces structured reports with prioritized issues, making it suitable for catching anti-patterns before deployment.

What SQL dialects does the analyzer support?

The analyzer applies to MSSQL, PostgreSQL, and MySQL query dialects. It detects common anti-patterns and optimization opportunities across these database systems.

Does the tool provide index improvement recommendations?

Yes. Beyond anti-pattern detection, the analyzer recommends potential indexing improvements to optimize query performance.

What anti-patterns does the SQL analyzer detect?

The analyzer detects SELECT * usage, missing WHERE clauses on UPDATE/DELETE operations, leading wildcard LIKE patterns, and ORDER BY ordinal references. It computes a complexity score and flags issues with recommended fixes.