Design and optimize database schemas for SQL and NoSQL databases. Use when creating new databases, designing tables, defining relationships, indexing strategies, or database migrations. Handles PostgreSQL, MySQL, MongoDB, normalization, and performance optimization.
91
88%
Does it follow best practices?
Impact
100%
1.17xAverage score across 3 eval scenarios
Passed
No known issues
Schema structure and output format
Correct top-level structure
100%
100%
schema.sql present
100%
100%
migrations/ folder
100%
100%
seeds/ folder
100%
100%
docs/ folder with ERD and SCHEMA
40%
100%
Mermaid ERD diagram
0%
100%
UUID primary keys
100%
100%
snake_case naming
100%
100%
Plural table names
100%
100%
created_at and updated_at present
85%
100%
Soft delete pattern
100%
100%
Junction table for N:M
100%
100%
Foreign keys with cascade options
100%
100%
NOT NULL on required columns
100%
100%
Indexes on foreign keys
100%
100%
Migration scripts and constraints
UP migration files
42%
100%
DOWN migration files
20%
100%
Transactions in UP migration
0%
100%
Transactions in DOWN migration
0%
100%
CHECK constraint on quantity
100%
100%
CHECK constraint on refill limit
100%
100%
updated_at trigger
100%
100%
GIN index for full-text search
100%
100%
Foreign key on prescriptions
100%
100%
Index on prescription foreign key
100%
100%
UUID primary key on prescriptions
100%
100%
Normalization, indexing, and performance
OLTP normalized to 3NF
100%
100%
OLAP denormalization
100%
100%
Materialized view for aggregates
100%
100%
Time-ordered UUID
100%
100%
Composite index selectivity
75%
100%
Partial index on nullable/sparse column
100%
100%
Index on foreign keys
100%
100%
created_at and updated_at
100%
100%
Normalization rationale documented
100%
100%
UUID performance rationale
100%
100%
No EAV pattern
100%
100%
c033769
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.