{"enrichment":{"faq":[{"a":"database-design guides you through schema creation by starting with normalization principles to eliminate redundancy, then defining clear relationships (one-to-many, many-to-many) with proper foreign keys and constraints. The skill covers entity-relationship modeling, choosing appropriate data types, and planning for indexing needs upfront. You'll learn to review your design against integrity requirements before implementation, whether you're building for PostgreSQL, MySQL, MongoDB, or another store.","q":"How do I design a database schema that follows best practices?"},{"a":"database-design teaches reversible migration strategies that minimize downtime and risk. Key practices include writing migrations that can be rolled back, deploying schema changes separately from application code, and using zero-downtime techniques like adding columns as nullable before backfilling. The skill covers migration tooling within ORMs like Prisma, Drizzle, and TypeORM, plus standalone migration runners, so you can execute changes safely across environments.","q":"What's the safest approach to database migrations in production?"},{"a":"database-design covers query optimization by teaching you to analyze execution plans, identify missing or inefficient indexes, and understand index trade-offs (speed vs. write cost). You'll learn when to index on single columns versus composite indexes, how to avoid common pitfalls like the N+1 query problem, and techniques for denormalization when normalization hurts performance. The skill applies to both SQL and document stores.","q":"How can I optimize slow database queries through indexing?"},{"a":"database-design helps you evaluate ORMs by comparing their schema design approaches, migration capabilities, query APIs, and type safety. Prisma excels at developer experience and type generation; TypeORM offers decorator-based patterns; Drizzle provides lightweight SQL-like syntax. The skill guides you through trade-offs in learning curve, performance, and flexibility so you can choose the right fit for your application's needs and team expertise.","q":"Should I use Prisma, TypeORM, or Drizzle for my project?"},{"a":"database-design explains normalization as the process of organizing data to reduce redundancy through normal forms (1NF through 3NF). This prevents anomalies and keeps updates efficient. However, the skill also covers denormalization\u2014intentionally breaking normalization rules by duplicating or combining data\u2014when read performance is critical and update frequency is low. You'll learn to measure trade-offs and apply denormalization strategically, not by default.","q":"What does database normalization mean and when should I break it?"},{"a":"database-design provides a review framework covering relationship integrity, missing or redundant indexes, normalization violations, and constraint gaps. You'll learn to spot anti-patterns like missing foreign keys, implicit many-to-many relationships, and columns that should be separate tables. The skill helps you prioritize fixes by impact, plan safe refactoring, and document design decisions so future changes stay aligned with your data model.","q":"How do I audit an existing database design for problems?"}],"shadow_tags":["schema-architecture","data-modeling","query-tuning","migration-safety","orm-selection","index-strategy","relational-design","document-databases","zero-downtime-ops"],"summary_rewrite":"Build well-structured database schemas from requirements through deployment. This skill guides you through normalization, relationship design, index optimization, and reversible migrations\u2014covering relational databases like PostgreSQL and MySQL, document stores like MongoDB, and ORMs including Prisma, Drizzle, and TypeORM."},"files":[{"bytes":2017,"path":"plugins/pokayokay/skills/database-design/SKILL.md","sha256":"c52cb917bb2989164dee30a6f6cdc27a513f487ce6cebbe191768006e4a9b857","url":"https://skillfed.io/files/srstomp/pokayokay/database-design/b298ddf4/SKILL.md"}],"id":"srstomp/pokayokay/database-design","links":{"html":"https://skillfed.io/srstomp/pokayokay/database-design","md":"https://skillfed.io/srstomp/pokayokay/database-design.md","repo":"https://github.com/srstomp/pokayokay"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":2,"language":"Shell","last_updated":"2026-07-05","license":"MIT","name":"database-design","publisher":"srstomp","stars":9},"relations":{"categories":["database-engineering","backend-architecture","data-modeling"],"similar":[{"id":"xu-xiang/everything-claude-code-zh/database-migrations"},{"id":"affaan-m/ECC/database-migrations"},{"id":"ancoleman/ai-design-components/using-relational-databases"},{"id":"vudovn/ag-kit/database-design"},{"id":"alekspetrov/navigator/database-migration"},{"id":"secondsky/claude-skills/drizzle-orm-d1"},{"id":"CuriousLearner/devkit/migration-generator"},{"id":"EliasOulkadi/shokunin/db-sculptor"},{"id":"wshobson/agents/database-migration"},{"id":"HermeticOrmus/LibreUIUX-Claude-Code/database-migration"}]},"slug":{"owner":"srstomp","repo":"pokayokay","skill":"database-design"},"version":"b298ddf4"}
