- Home
- Skills
- Data & Databases
- Database Schema & Query Review Gate
Works with the AI Agents 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.
$14
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
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."
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.
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.
A static review — it doesn't run your queries or see your real EXPLAIN plans, data distribution, or load, so confirm performance findings against the real thing. Engine and version behavior differ; defer to your engine's docs. It doesn't replace load testing or a DBA review for high-stakes systems.
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
6 uses
Times used to date
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 5 months ago
Permissions
No special permissions declared or detected