database-design

Design PostgreSQL, MySQL, and NoSQL schemas with indexes and migration plans.

2|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/abnegate/claudes --skill database-design-abnegate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-design
Source: https://github.com/abnegate/claudes/tree/main/skills/database-design
Command: npx skills add https://github.com/abnegate/claudes --skill database-design-abnegate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps prevent slow queries, brittle schemas, and risky migrations by providing battle-tested patterns for PostgreSQL, MySQL, and NoSQL schema design and evolution.

Core Features & Use Cases

  • Schema design principles: Apply normalization rules (1NF–3NF) while also performing deliberate denormalization for read-heavy workloads.
  • Index design & query optimization: Choose the right index types (B-tree, composite, partial, GIN, covering) and tune queries using EXPLAIN ANALYZE signals.
  • Migration patterns for zero downtime: Use transactional templates, concurrent index creation, batched backfills, and safe rollout steps for adding/dropping columns.

Quick Start

Ask for a PostgreSQL schema and migration plan for a new feature by describing your tables, relationships, expected query patterns, and current production constraints.

Frequently Asked Questions about database-design

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

FAQPage Schema
How do I design a PostgreSQL schema for a read-heavy workload?

To design a PostgreSQL schema for read-heavy workloads, apply normalization rules up to 3NF and perform deliberate denormalization. This ensures efficient, maintainable data models tailored to your specific access patterns.

What is the best way to run zero-downtime database migrations?

The best way to run zero-downtime database migrations is using transactional templates, concurrent index creation, and batched backfills. This ensures safe schema changes without locking production tables.

How do I choose the right index types for query optimization?

Choose the right index types for query optimization by matching data access patterns to B-tree, composite, partial, GIN, or covering indexes. Validate selections by interpreting EXPLAIN ANALYZE signals to tune slow queries.

Does this database schema design approach work with NoSQL scenarios?

Yes, this database schema design approach works with NoSQL scenarios alongside PostgreSQL and MySQL. It provides battle-tested patterns to prevent brittle schemas and maintain reliable data models.

Why does my database migration keep locking tables?

Your database migration likely locks tables because it lacks concurrent index creation and batched backfills. Implementing zero-downtime migration patterns with safe rollout steps prevents locking during schema changes.