database-architect

Design normalized PostgreSQL and Prisma database schemas with indexes and migrations.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/sonyho2715/lee-meadows-saas --skill database-architect-sonyho2715
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: database-architect
Source: https://github.com/sonyho2715/lee-meadows-saas/tree/main/.claude/skills/database-architect
Command: npx skills add https://github.com/sonyho2715/lee-meadows-saas --skill database-architect-sonyho2715

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes uncertainty and manual effort when designing relational database schemas and optimizing them for production performance, maintainability, and safe migrations.

Core Features & Use Cases

  • Schema design and normalization for PostgreSQL using Prisma models and relations.
  • Indexing and query optimization guidance including composite indexes, explain-plan strategies, and when not to index.
  • Migration strategies and safe deployment practices including zero-downtime migrations, connection pooling, and partitioning for scaling.
  • Use Case: Build a normalized e-commerce data model with users, products, orders, comments, tags, audit logs, efficient indexes, and an upgradeable migration path.

Quick Start

Ask the database-architect to design a normalized PostgreSQL schema for an e-commerce app with users, products, orders, comments, tags, and audit logs while recommending indexes and stepwise migrations.

Frequently Asked Questions about database-architect

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

FAQPage Schema
How do I design a normalized PostgreSQL schema for a production application?▼

Design a normalized PostgreSQL schema by mapping Prisma models and relations, defining primary and foreign keys, and structuring tables to eliminate data redundancy for high-performance production applications.

What are the best indexing strategies for PostgreSQL query optimization?▼

PostgreSQL indexing strategies involve applying composite and unique indexes, analyzing explain-plans to identify bottlenecks, and knowing when not to index to maintain write performance and query tuning efficiency.

How do I run zero-downtime database migrations with Prisma?▼

Run zero-downtime migrations by applying safe migration patterns, utilizing connection pooling with PgBouncer, and planning stepwise deployments to ensure continuous availability during schema upgrades.

Can I use this to model an e-commerce database with users, products, and orders?▼

Yes, you can model a complete e-commerce database by creating normalized schemas for users, products, orders, comments, tags, and audit logs with efficient indexes and an upgradeable migration path.

When should I use composite indexes in a PostgreSQL database?▼

Use composite indexes in a PostgreSQL database when queries frequently filter or sort by multiple columns simultaneously, optimizing multi-column lookups without creating unnecessary single-column indexes.

Does PgBouncer connection pooling work with Prisma and PostgreSQL?▼

Yes, PgBouncer connection pooling works with Prisma and PostgreSQL by managing database connections efficiently, reducing connection overhead, and supporting safe migration patterns during scaling.