onewave-ai avatar

Database Schema Designer

Handles the full database design workflow from requirements gathering to production-ready schemas. It generates proper SQL or NoSQL table definitions with primary keys, foreign keys, and indexes, plus ASCII ERD diagrams and up/down migration scripts. The output follows solid conventions like snake_case naming, appropriate data types, and 3NF normalization with denormalization notes where performance matters. It covers both relational patterns (PostgreSQL, MySQL) and document stores (MongoDB) with different strategies for each. The structured format with sections for relationships, indexes, and optimization notes makes it easy to review or hand off to a team. Solid for greenfield projects or when you need to formalize an ad hoc schema that grew organically.

skills.sh installs
426
GitHub stars
422
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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.

Sponsors

Details

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

More from onewave-ai/claude-skills

All 108
1vercel avatarai-gatewayvercel/vercel-pluginai gateway423skills.sh installs
2sickn33 avatarcc-skill-backend-patternssickn33/antigravity-awesome-skillscc skill backend patterns421skills.sh installs
3sickn33 avatardatabase-migrations-sql-migrationssickn33/antigravity-awesome-skillsdatabase migrations sql migrations408skills.sh installs
4insforge avatarinsforge-backend-advisorinsforge/agent-skillsinsforge backend advisor400skills.sh installs
5sickn33 avatarnodejs-backend-patternssickn33/antigravity-awesome-skillsnodejs backend patterns396skills.sh installs
6skillcreatorai avatardatabase-designskillcreatorai/ai-agent-skillsdatabase design394skills.sh installs