askill
database-schema

database-schemaSafety 95Repository

Design a database schema

5 stars
1.2k downloads
Updated 1/23/2026

Package Files

Loading files...
SKILL.md

Database Schema Design

Help me design a database schema:

Requirements

  1. What are we storing? Describe the data.
  2. Relationships: How do entities relate?
  3. Access patterns: How will data be queried?
  4. Scale: Expected data volume?
  5. Database: PostgreSQL, MySQL, MongoDB, etc.?

Entity Design

For each entity, define:

Table Structure

  • Table name (plural, snake_case)
  • Columns with types
  • Primary key
  • Timestamps (created_at, updated_at)
  • Soft delete (deleted_at) if needed

Constraints

  • NOT NULL where required
  • UNIQUE constraints
  • CHECK constraints for validation
  • DEFAULT values

Relationships

  • Foreign keys
  • ON DELETE behavior
  • Junction tables for many-to-many

Indexes

  • Primary key index
  • Foreign key indexes
  • Query-specific indexes
  • Composite indexes where needed

Schema Generation

Generate:

  1. CREATE TABLE statements
  2. Index creation
  3. RLS policies (if using Supabase)
  4. Sample seed data

Optimization Review

Check for:

  • Normalization level appropriate
  • Index strategy sound
  • Query patterns supported
  • Future scaling considerations

Generate the complete schema with comments explaining decisions.

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

72/100Analyzed 2/18/2026

A solid reference skill for database schema design with comprehensive coverage of requirements gathering, entity design, constraints, relationships, indexes, and optimization. Well-structured with clear sections but lacks concrete step-by-step commands, making it more of a framework/template than an actionable skill. Located in proper skills folder but missing trigger context and tags for discoverability.

95
70
85
80
55

Metadata

Licenseunknown
Version-
Updated1/23/2026
Publishersunnypatneedi

Tags

database