alirezarezvani avatar

Database Schema Designer

You point this at your database needs and it generates normalized schemas with proper relationships, indexes, and constraints. Good for when you're prototyping a new project or refactoring an existing data model and want to avoid the usual pitfalls like missing foreign keys or poorly indexed queries. It understands different database paradigms and can explain the tradeoffs between normalization levels. The output is actual DDL you can run, not pseudocode, which saves the translation step. Most useful early in a project when the schema is still fluid, less so when you're deep in domain-specific optimization territory.

skills.sh installs
722
GitHub stars
29.5K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

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

More from alirezarezvani/claude-skills

All 267
1vercel avatarwrite-api-referencevercel/next.jswrite api reference706skills.sh installs
2aaronontheweb avatardatabase-performanceaaronontheweb/dotnet-skillsDatabase access patterns for performance. Separate read/write models, avoid N+1 queries, use AsNoTracking, apply row limits, and never do application-side joins700skills.sh installs
3aaronontheweb avatarapi-designaaronontheweb/dotnet-skillsDesign stable, compatible public APIs using extend-only design principles. Manage API compatibility, wire compatibility, and versioning for NuGet packages and d690skills.sh installs
4mindrally avatarviewcomfy-api-rulesmindrally/skillsExpert guidance for integrating ViewComfy API into web applications using Python and FastAPI686skills.sh installs
5bellopushon avatarwhatsapp-cloud-apibellopushon/whatsapp-cloud-apiwhatsapp cloud api684skills.sh installs
6sickn33 avatarpostgresqlsickn33/antigravity-awesome-skillspostgresql664skills.sh installs