# SQL Review

> Review SQL queries and schema changes for performance, safety, and migration correctness.

- Skill: `skillist-io/sql-review` (Agent Skill)
- Install (CLI): `npx skillmds@latest add skillist-io/sql-review`
- Raw SKILL.md: https://api.skillmd.com/api/skills/skillist-io/sql-review/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- License: MIT
- Author: skillist-io (https://skillmd.com/u/skillist-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/skillist-io/sql-review

---


# SQL Review

Use when reviewing queries, indexes, or migrations before production.

## When to activate

- New migration or schema change
- Slow query investigation
- Index recommendations

## Procedure

1. Check for missing indexes on filter/join columns.
2. Flag `SELECT *`, unbounded scans, and missing `LIMIT` on exploratory queries.
3. Verify migrations are reversible or document irreversible steps.
4. Prefer parameterized queries; never interpolate user input.
5. Suggest `EXPLAIN` for non-trivial queries.

## Output format

- Findings by severity (blocker, warning, note)
- Suggested index or rewrite
- Migration risk summary

