Skip to content
alirezarezvani avatar

Database Schema Designer

Designs relational schemas from requirements, producing ERDs, normalized DDL, migrations, types, and RLS policies.

CCM score
64 of 100
skills.sh installs
751
GitHub stars
30.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers schema design from requirements through entity extraction, relationship mapping, and cross-cutting concerns like multi-tenancy and audit trails
  • Includes Mermaid ERD generation, Row-Level Security policies, index strategy guidance, and seed data scripts with faker-based test records
  • Generates migrations for Drizzle, Prisma, TypeORM, and Alembic, plus TypeScript interfaces and Python dataclasses or Pydantic models
  • Designed for backend teams adding tables, reviewing schemas for normalization or performance issues, or planning breaking migrations

Install

$ npx -y skills add alirezarezvani/claude-skills --skill database-schema-designer -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Database Schema Designer

Tier: POWERFUL
Category: Engineering
Domain: Data Architecture / Backend


Overview

Design relational database schemas from requirements and generate migrations, TypeScript/Python types, seed data, RLS policies, and indexes. Handles multi-tenancy, soft deletes, audit trails, versioning, and polymorphic associations.

Core Capabilities

  • Schema design — normalize requirements into tables, relationships, constraints
  • Migration generation — Drizzle, Prisma, TypeORM, Alembic
  • Type generation — TypeScript interfaces, Python dataclasses/Pydantic models
  • RLS policies — Row-Level Security for multi-tenant apps
  • Index strategy — composite indexes, partial indexes, covering indexes
  • Seed data — realistic test data generation
  • ERD generation — Mermaid diagram from schema

When to Use

  • Designing a new feature that needs database tables
  • Reviewing a schema for performance or normalization issues
  • Adding multi-tenancy to an existing schema
  • Generating TypeScript types from a Prisma schema
  • Planning a schema migration for a breaking change

Schema Design Process

Details

Repository
github.com/alirezarezvani/claude-skills
Categories
Databases, Backend & APIs
First seen
Jun 3, 2026

Questions

What does the database-schema-designer skill do?

database-schema-designer turns requirements into relational schemas, covering ERD diagrams, normalization, table relationships and schema migration plans. It produces an ERD and normalized DDL with migration steps, and can also generate types, seed data, RLS policies and indexes.

Which databases and ORMs does database-schema-designer work with?

database-schema-designer generates migrations for Drizzle, Prisma, TypeORM and Alembic. It also generates TypeScript interfaces and Python dataclasses or Pydantic models from a schema.

How do I install database-schema-designer?

Run npx -y skills add alirezarezvani/claude-skills --skill database-schema-designer -y inside your project. After that, database-schema-designer lets the agent design tables, draw Mermaid ERD diagrams and plan migrations for your schema.

Which Databases category skills are alongside database-schema-designer?

database-schema-designer sits in the Databases category next to supabase-postgres-best-practices and several Prisma skills. It stands apart by focusing on schema design itself, from entities and relationships through multi-tenancy, soft deletes and audit trails.

More from alirezarezvani/claude-skills

All 259

Similar to Database Schema Designer

More Databases