Database Schema Reviewer

Database Schema Reviewer is a skill for Claude Code, Codex from Notysoty/openagentskills. It costs 22 tokens per session (1,881 once invoked), scanned A, original, MIT.

A review tool for database schemas—the definitions of tables, fields, relationships, and rules that store application data.

In plain words
What is it for?
Use it to review SQL table definitions, ORM models, and migration files for normalization, indexes, constraints, nullable fields, naming, and scalability.
Why use it?
It identifies structural problems that can cause duplicate data, slow queries, inconsistent naming, invalid records, or scaling difficulties.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for cline. Also seen: mentions Claude Code; mentions Codex; built for cline.

Good fit Use it to review SQL table definitions, ORM models, and migration files for normalization, indexes, constraints, nullable fields, naming, and scalability.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/notysoty/openagentskills/database-schema-reviewer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Notysoty/openagentskills --skill database-schema-reviewer
Clone the repo
git clone --depth 1 https://github.com/Notysoty/openagentskills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Database Schema Reviewer

README.md
[![agentmods](https://agentmods.dev/badge/skills/notysoty/openagentskills/database-schema-reviewer/github.svg)](https://agentmods.dev/skills/notysoty/openagentskills/database-schema-reviewer)
Your own site
<a href="https://agentmods.dev/skills/notysoty/openagentskills/database-schema-reviewer"><img src="https://agentmods.dev/badge/skills/notysoty/openagentskills/database-schema-reviewer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Database Schema Reviewer

Your own site · 80×15
<a href="https://agentmods.dev/skills/notysoty/openagentskills/database-schema-reviewer"><img src="https://agentmods.dev/badge/skills/notysoty/openagentskills/database-schema-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,881 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.01881
Opus 5 $0.00011 $0.00941
Sonnet 5 $0.00004 $0.00376
Haiku 4.5 $0.00002 $0.00188

Measured 9d ago against content hash 706a467b7a97, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

Database Schema Reviewer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/database-schema-reviewer/SKILL.md · 205 lines

How it starts

The opening of the file, as written. The whole thing — 205 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Database Schema Reviewer

What this skill does

This skill directs the agent to review a database schema — provided as SQL DDL, an ORM model file (Drizzle, Prisma, SQLAlchemy, ActiveRecord, etc.), or a plain description — and produce a prioritized list of issues. It checks normalization, indexes, constraints, naming conventions, nullable columns, and overall scalability. Every issue includes a concrete SQL or ORM fix.

Use this before deploying a new schema to production, during code review of a migration file, or when a database is growing and you're starting to feel query pain.

How to use

Claude Code / Cline

Copy this file to .agents/skills/database-schema-reviewer/SKILL.md in your project root.

Then share your schema and ask:

  • "Use the Database Schema Reviewer skill on shared/schema.ts."
  • "Review this SQL migration file for schema issues using the Database Schema Reviewer skill."

Provide the full schema file, a SQL DDL dump, or paste the relevant CREATE TABLE statements.

Cursor

Add the "Prompt / Instructions" section to your .cursorrules file. Open your schema or migration file and ask Cursor to review it.

Codex

Paste the schema DDL or ORM model definitions into the chat along with the instructions below. Include any known query patterns if you want index recommendations tailored to your workload.

The Prompt / Instructions for the Agent

When asked to review a database schema, follow these steps:

  1. Parse the schema. Accept any format:

    • SQL DDL (CREATE TABLE statements)
    • Prisma schema (model blocks)
    • Drizzle ORM table definitions
    • SQLAlchemy/Django/ActiveRecord model classes
    • A plain-text description of tables and columns
  2. Check normalization:

    • 1NF: Flag any column that stores multiple values (comma-separated lists, JSON arrays used as a substitute for a proper relation)
    • 2NF: In tables with composite primary keys, flag non-key columns that depend on only part of the key
    • 3NF: Flag transitive dependencies — non-key columns that describe another non-key column rather than the primary key (e.g., zip_code and city in the same table as user_id)

Read the full file on GitHub · 205 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 205 lines · 22 tokens per session scan A 706a467b7a97

Subscribe to this mod's changes

Database Schema Reviewer is a skill published in the GitHub repository Notysoty/openagentskills (9 stars, last pushed 25d ago), licensed MIT. It adds 22 tokens to every session and 1,881 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories