CtrlK
BlogDocsLog inGet started
Tessl Logo

database-schema-design

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

1.17x
Quality

88%

Does it follow best practices?

Impact

100%

1.17x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No known issues

SKILL.md
Quality
Evals
Security

Evaluation results

100%

11%

Task Management Platform Database

Schema structure and output format

Criteria
Without context
With context

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%

100%

30%

Evolving a Healthcare Records Database

Migration scripts and constraints

Criteria
Without context
With context

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%

100%

2%

Analytics-Optimized Schema for a Content Platform

Normalization, indexing, and performance

Criteria
Without context
With context

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%

Repository
supercent-io/skills-template
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

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.