Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Database Schema & Query Review Gate

    1

    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

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    6 usesSecurity scanned
    Database Schema & Query Review Gate

    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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Listed5 months ago

    What's inside

    Frequently Asked Questions

    The tool performs an engine-aware static analysis of your SQL schema and migrations to identify risks like table-locking operations, N+1 query patterns, and missing indexes before they reach production.

    This skill supports PostgreSQL, MySQL, SQLite, and SQL Server, applying engine-specific best practices and syntax rules for each.

    Simply provide your schema DDL, proposed migration scripts, or application queries as text input to the agent to receive a categorized PASS/REVIEW/BLOCK verdict.

    No, this is a static analysis tool that reviews code and logic; it does not require or maintain a live connection to your production data, ensuring your database remains secure.

    You receive the full Database Schema & Query Review Gate skill, which includes prioritized fix recommendations and guidance on using EXPLAIN ANALYZE for performance validation.

    Yes, the skill is updated periodically to include new database engine features and to address emerging patterns in migration safety and query optimization.

    New in Data & Databases