database-schema

Design database schemas with CREATE TABLE statements, indexes, and constraints.

11|1|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/sunnypatneedi/claude-starter-kit --skill database-schema-sunnypatneedi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-schema
Source: https://github.com/sunnypatneedi/claude-starter-kit/tree/main/skills/engineering/database-schema
Command: npx skills add https://github.com/sunnypatneedi/claude-starter-kit --skill database-schema-sunnypatneedi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps architects and developers model data, enforce data integrity, and generate ready-to-run database schemas for common domains.

Core Features & Use Cases

  • Entity modeling: Define tables, columns, keys, and relationships with clear constraints.
  • Normalization & integrity: Recommend normalization levels and constraints to ensure data quality.
  • Schema generation: Produce CREATE TABLE statements, indexes, and seed data along with optional migration notes.
  • Use Case: Design a schema for a simple domain (blog, e-commerce) and review performance implications with example queries.

Quick Start

Design a complete PostgreSQL schema for a small domain and output the CREATE statements and indexes to get started.

Frequently Asked Questions about database-schema

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design a scalable database schema with proper indexing and normalization?

To design a scalable database schema, model domain entities and relationships, enforce data integrity, and generate CREATE TABLE statements with indexes. This process recommends normalization levels and constraints to optimize access patterns across PostgreSQL, MySQL, or MongoDB deployments.

What's the best way to generate CREATE TABLE statements and constraints for PostgreSQL?

Generate PostgreSQL CREATE TABLE statements by defining entity models, columns, and keys. This schema generation process outputs ready-to-run SQL with indexes, constraints, and seed data guidance, along with optional migration notes to capture domain concepts accurately.

How do I model data relationships and enforce data integrity in a MySQL database?

Model data relationships and enforce data integrity in MySQL by defining clear constraints and normalization levels. This approach captures domain concepts accurately, prevents anomalies, and ensures data quality through robust entity modeling and relationship mapping.

Can I use this approach to generate schemas for both SQL and MongoDB deployments?

Yes, you can generate schemas for both SQL and MongoDB deployments. This modeling approach scales across PostgreSQL, MySQL, and MongoDB by tailoring entity modeling, access patterns, and scaling needs to fit the specific database platform requirements.

How do I evaluate performance implications of indexes and queries for an e-commerce database schema?

Evaluate e-commerce database schema performance by reviewing example queries against generated indexes and constraints. This analysis identifies access patterns and scaling needs, documenting architectural decisions to ensure the schema handles expected query loads efficiently.

When do I need database schema normalization and what constraints should I apply?

You need database schema normalization when ensuring data quality and preventing update anomalies. Apply constraints based on domain concepts and recommended normalization levels to enforce integrity, capturing relationships accurately while optimizing for specific access patterns.