Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Database Schema Design Review (PostgreSQL, MySQL)

    by Saizul Amin

    1

    This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice.

    $8

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Database Schema Design Review (PostgreSQL, MySQL)

    Database Schema Design Review (PostgreSQL, MySQL)

    Example session with this skill installed

    Run the Database Schema Design Review skill on my project and give me a prioritised list of what to fix, with exact changes.

    • Read your context and instructions
    • Compiled the database schema design

    Here is what the Database Schema Design Review (PostgreSQL, MySQL) skill produced.

    Demo: real, unedited output of the skill's bundled script on the test fixture that ships with its source repo.

    Output

    schema review (postgres, 4 tables): 2 high, 3 medium, 6 low, 2 info
    HIGH    line 19    no_primary_key  event_log has no primary key
            fix: add a surrogate key (bigint identity / BIGINT AUTO_INCREMENT) or a natural PRIMARY KEY; replication, ORMs and online schema tools need one
    HIGH    line 14    float_money  orders.total is double precision: binary floating point cannot store money exactly
            fix: use numeric(12,2) / DECIMAL(12,2), or integer minor units (cents)
    MEDIUM  line 15    list_in_column  orders.tag_ids (text) looks like a delimited list
            fix: use a junction table (one row per value) with foreign keys; PostgreSQL arrays only if you never join on the values
    MEDIUM  line 34    fk_without_index  foreign key orders(customer_id) -> customers has no index starting with those columns
            fix: CREATE INDEX CONCURRENTLY ON orders (customer_id); without it every DELETE/UPDATE on customers scans orders, and joins are slow
    MEDIUM  line 34    fk_type_mismatch  orders.customer_id is bigint but references customers.id (integer)
            fix: use the same type on both sides (implicit casts, and int columns cannot hold bigint ids)
    LOW     line 3     int_primary_key  customers.id is integer: 32-bit keys run out at ~2.1 billion (4.2 billion unsigned)
            fix: use bigint for tables that grow; migrating later is a full rewrite
    LOW     line 5     quoted_identifier  customers."firstName" uses a quoted mixed-case name
            fix: use lower_snake_case
    LOW     line 6     repeating_group  customers has a repeating column group: phone1, phone2
            fix: move phone values to a child table (customers_phones) with one row per value
    LOW     line 8     timestamp_without_tz  customers.created_at is timestamp without time zone
            fix: use timestamptz (stores an absolute instant; displays in the session time zone)
    LOW     line 24    reserved_word  table name user is a reserved word
            fix: rename (e.g. app_user, orders)
    LOW     line 25    int_primary_key  user.id is serial: 32-bit keys run out at ~2.1 billion (4.2 billion unsigned)
            fix: use bigint for tables that grow; migrating later is a full rewrite
    INFO    line 2     all_nullable  every non-key column of customers is nullable
            fix: mark required columns NOT NULL; NULLs complicate queries, uniqueness and aggregates
    INFO    line 25    serial_column  user.id uses serial
            fix: prefer bigint GENERATED ALWAYS AS IDENTITY (standard SQL, clearer permissions)
    

    What you do next

    1. Fix the highest-severity items first.
    2. Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
    3. Keep the skill installed and re-run it whenever the project changes.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Review a relational schema (pg_dump --schema-only, mysqldump --no-data, migration DDL) for PostgreSQL and MySQL/MariaDB design problems - missing primary keys, 32-bit integer keys, unindexed foreign keys, foreign key type mismatches, FLOAT for money, timestamp without time zone, utf8mb3 and MyISAM, lists in text columns, repeating column groups, all-nullable tables, quoted mixed-case or reserved names, mixed naming styles - and propose normalised, constrained DDL.

    Who it's for

    Use when the user shares a schema or CREATE TABLE statements, designs new tables, asks for a data model or normalization review, or wants to know which types, keys and constraints to use.

    What's inside

    • Tested, offline Python script(s): schema_review.py (deterministic results, standard library only unless noted)
    • Reference guides: checklist.md, types.md
    • Step-by-step agent instructions in SKILL.md covering: When to use; When not to use; Workflow; Decision points

    Why it's worth it

    Generic prompts guess. This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice. See the real demo below.

    Works with every major AI agent

    Built on the open SKILL.md standard: Claude Code, Codex CLI, Cursor, VS Code Copilot, Gemini CLI, Windsurf and 20+ other agents.

    Requirements

    • Python 3.8+ for the bundled scripts
    • No API keys, no account, runs locally

    Open source: saizul/sql-database-skills on GitHub (MIT licence, by Saizul Amin).

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.

    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

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Frequently Asked Questions

    Review a relational schema (pg_dump --schema-only, mysqldump --no-data, migration DDL) for PostgreSQL and MySQL/MariaDB design problems - missing primary keys, 32-bit integer keys, unindexed foreign keys, foreign key type mismatches, FLOAT for money, timestamp without time zone, utf8mb3 and MyISA...

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use Database Schema Design Review (PostgreSQL, MySQL) on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.