database-schema-reviewer

Solid

Reviews database schemas for normalization issues, missing indexes, naming inconsistencies, and scalability risks.

API & Backend 9 stars 0 forks Updated 3 weeks ago MIT

Install

View on GitHub

Quality Score: 83/100

Stars 20%
33
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

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

Details

Author
Notysoty
Repository
Notysoty/openagentskills
Created
6 months ago
Last Updated
3 weeks ago
Language
JavaScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

API & Backend Listed

schema-review

Review database or data warehouse schemas for normalization, performance, naming, and query patterns

1 Updated today
SilviaAre95
API & Backend Listed

database-schema-review

Runs a structured review of a project's database schema design and migration safety, then reports the results as one table (check, area, status, evidence, recommendation). Covers normalization and data modeling (under-normalized vs. unjustified over-normalization, schema matching actual business entities), data types and constraints (appropriate column types, NOT NULL usage, CHECK constraints/enums for fixed value sets), referential integrity (foreign keys declared at the DB level, ON DELETE/ON UPDATE cascade behavior, orphan-record risk), uniqueness and identity (unique constraints vs. check-then-insert races, primary key/surrogate-key/UUID choice), migration safety (backward-compatible rolling deploys, expand/contract pattern, reversibility, DDL transactions, lock/downtime impact of large-table migrations), schema-vs-application drift, auditability/soft-delete conventions, and multi-tenancy data isolation at the schema level. This is a schema-design and migration-safety review, not a query-performance-tunin

0 Updated 4 days ago
finnley07
API & Backend Listed

postgres-schema-review

Audit an existing PostgreSQL schema and deployed catalog state for integrity, ownership, privileges, search-path exposure, constraints, RLS, partitions, indexes, and operational drift. Use when reviewing current DDL, dumps, migrations, or catalog snapshots. Do not use for greenfield data modeling, one slow-query diagnosis, or applying remediation in production.

0 Updated 1 weeks ago
genaptic