Skip to content
onewave-ai avatar

Database Schema Designer

Designs relational and document schemas with keys, constraints, query-driven indexes, ERDs, and reversible migrations.

CCM score
56 of 100
skills.sh installs
452
GitHub stars
451
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers requirements gathering, entity modeling, key and type selection, constraint design, index derivation, and migration writing
  • Defaults to PostgreSQL 18 with Supabase support, and also covers MySQL, SQLite, and MongoDB references
  • Enforces explicit ON DELETE behavior, indexed foreign keys, timestamptz timestamps, and row-level security for multi-tenant tables
  • Designed for building new app data models, reviewing existing schemas, and planning multi-tenancy; moving data between providers goes to database-migrator

Install

$ npx -y skills add onewave-ai/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

Design a schema that enforces the data's rules in the database and makes the app's real queries fast.

Workflow

  1. Collect requirements. Get from the conversation or codebase, and ask only for what blocks the design:

    • Engine and version (default: PostgreSQL 18; check docker-compose.yml, ORM config, or Supabase project if present)
    • Entities and how they relate, in plain language
    • The 5-10 most frequent or most important queries, including filters and sort order
    • Volume and growth (rows per table per year), read/write mix
    • Tenancy (single app, multi-tenant by organization), retention, audit, and compliance needs (PII, deletion requests)
    • ORM or migration tool in use (Prisma, Drizzle, Rails, Django, Alembic, Supabase migrations, plain SQL)
  2. Model entities and relationships. List entities, attributes, and cardinality (1:1, 1:N, N:M). Normalize to 3NF by default; denormalize only for a named query that needs it, and say which.

Details

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

Questions

What does the database-schema-designer skill do?

database-schema-designer designs relational and document database schemas from requirements or an existing app, covering tables, keys, relationships, constraints, and indexes driven by real query patterns. It also produces ERDs and reversible migration scripts, with PostgreSQL including Supabase as the default and MySQL, SQLite, and MongoDB supported.

Who should use database-schema-designer?

database-schema-designer suits developers who need to model data for a new app or feature, review or fix an existing schema, choose keys or indexes, plan multi-tenancy, or write CREATE TABLE statements or migrations. It also helps anyone who describes their app and asks how to store the data.

How do I install database-schema-designer?

Run npx -y skills add onewave-ai/claude-skills --skill database-schema-designer -y in a project to install database-schema-designer. Once installed, the agent can design the schema, derive indexes from your main queries, and write DDL, ERDs, and migrations with rollback.

Which tools or database engines does database-schema-designer need?

database-schema-designer defaults to PostgreSQL 18 and reads docker-compose.yml, ORM config, or a Supabase project when present. It can verify its DDL against a local Postgres, a Docker postgres:18 container, or a Supabase branch, and it works with ORMs such as Prisma, Drizzle, Rails, Django, and Alembic.

Where does database-schema-designer stand in the Databases category?

database-schema-designer is listed in the Databases category on Claude Marketplaces, next to supabase-postgres-best-practices and several Prisma skills. What sets it apart is that it enforces data rules as database constraints and derives each index from a named query, rather than indexing every column.

More from onewave-ai/claude-skills

All 104

Similar to Database Schema Designer

More Databases