- Home
- Skills
- Data & Databases
- Database Schema & Query Review Gate
Works with the AI tools you already use
Database Schema & Query Review Gate
A bad query is a slow afternoon; a wrong table design or a migration that locks prod can hold your data and your users hostage.
Free
Database Schema & Query Review Gate
Example session with this skill installed
"Review this migration and these queries before I ship — Postgres."
- Read your context and instructions
- Compiled the database schema
- Generated the UI component
A BLOCK verdict: the migration adds a NOT NULL column to a 50M-row table (it'll rewrite/lock prod — add nullable, backfill in batches, then set NOT NULL); a query filtering WHERE lower(email) can't use a plain index (add an expression index); and the orders.user_id foreign key has no index. Each with the fix, prioritized, ending in "BLOCK until the migration is non-locking."
database-schema-query-review-gate-catch-.tsx
TSX · React component
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
A bad query is a slow afternoon; a wrong table design or a migration that locks prod can hold your data and your users hostage. This gate reviews schema, queries, and migrations for what actually bites in production and returns a clear ship decision.
It runs an engine-aware review (Postgres, MySQL, SQLite, SQL Server):
• Schema design — right types, primary/foreign keys, constraints that enforce invariants, sensible normalization
• Indexing — missing indexes on FKs and WHERE/JOIN/ORDER BY columns, composite order, over-indexing, engine-appropriate index types
• Queries — N+1 patterns, SELECT *, full scans, functions on indexed columns, OFFSET pagination, and more
• Security — SQL injection (string-built queries) and least privilege
• Migration safety — destructive/irreversible ops, table-locking rewrites on big tables, backfill and rollback plans
You get a PASS / REVIEW / BLOCK verdict with prioritized fixes, and it points you to EXPLAIN ANALYZE to confirm performance rather than guessing. It's a static review — it defers to your engine's docs and doesn't replace running it on real data.
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
5 installs
Downloaded by developers to date
Free forever
No account required to browse
Trust & safety
Security scanned
Verified clean 3 months ago
- Free to download with an account