Skip to content
Back to skills

Sql Review

ASecurity

Review SQL and ORM queries for correctness, safety, and performance before they ship.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 6, 2026
ai-agentssqlperformance

Security analysis

A100/100

Scanned September 6, 2026

npx -y skills add elitongadotti/cockpit --skill sql-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sql Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sql Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/elitongadotti-sql-review/badge)](https://www.skillsdirectory.com/skills/elitongadotti-sql-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sql-review
description: Review SQL and ORM queries for correctness, safety, and performance before they ship.
when_to_use: new query, a migration, an N+1 suspicion, a slow endpoint
---
# SQL Review
- **Injection** — parameterized, always. No string interpolation into SQL.
- **N+1** — a query inside a loop? Replace with a join or a batched IN.
- **Missing index** — does the WHERE/JOIN/ORDER BY hit an indexed column? If not, the table scan will surface at scale.
- **Unbounded** — SELECT with no LIMIT on a growing table; a JOIN that fans out rows.
- **Transactions** — multi-write operations wrapped so a partial failure can't corrupt state.
- **Migrations** — reversible (up AND down), and safe on a live table (no blocking lock on a hot table at peak).
Output: each issue with the line and the rewrite. Show the EXPLAIN if performance is the concern.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.