06-data-and-security/database-design/SKILL.md
# Database Design > A comprehensive collection of practical guides for database design. Covers normalization, schema design, query optimization, performance tuning, and migration strategies -- everything needed to build efficient, scalable databases. ## Target Audience - Developers who want to design reliable, performant database schemas - Engineers working on query optimization and performance tuning - Teams managing database migrations and schema evolution ## Prerequisites - Basic SQL kno
npx skillsauth add gaku52/claude-code-skills 06-data-and-security/database-designInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
A comprehensive collection of practical guides for database design. Covers normalization, schema design, query optimization, performance tuning, and migration strategies -- everything needed to build efficient, scalable databases.
| # | File | Content | |---|------|---------| | 01 | schema-design-complete.md | Normalization, relationships, data types, constraints, indexes |
| # | File | Content | |---|------|---------| | 01 | query-optimization-complete.md | EXPLAIN ANALYZE, index optimization, JOIN optimization, N+1 |
| # | File | Content | |---|------|---------| | 01 | performance-optimization-complete.md | Caching, partitioning, sharding, monitoring |
| # | File | Content | |---|------|---------| | 01 | migration-complete.md | Prisma, TypeORM, Knex.js, zero-downtime deployments |
| # | File | Content | |---|------|---------| | 01 | schema-evolution-complete.md | Alembic, Flyway, Liquibase, Blue-Green deployments, disaster recovery |
| # | File | Content | |---|------|---------| | 01 | btree-operations-proof.md | B-tree operations and correctness proofs |
| # | File | Content | |---|------|---------| | 01 | index-design.md | Index design checklist | | 02 | performance-optimization.md | Performance optimization checklist |
Database Design Cheat Sheet:
Normalization:
1NF -- eliminate repeating groups
2NF -- eliminate partial dependencies
3NF -- eliminate transitive dependencies
BCNF -- every determinant is a candidate key
Index Types (PostgreSQL):
B-tree -- equality, range, ORDER BY (default)
Hash -- equality only
GIN -- full-text search, JSONB, arrays
GiST -- spatial data, range types
Key Rules:
- Index columns used in WHERE, JOIN, ORDER BY
- Use composite indexes with equality columns first
- Use partial indexes to reduce index size
- Use covering indexes to avoid table access
- Avoid indexing low-selectivity columns (flags, booleans)
Migration Best Practices:
- Always write a rollback (down migration)
- Use zero-downtime patterns for production
- Prefer additive changes (add columns, not drop)
- Test migrations against a copy of production data
tools
Fundamentals of modern web development. Framework selection (React, Vue, Next.js), project architecture, state management, routing, build tools, and CSS strategy best practices.
development
# React Development — Complete Guide > A comprehensive guide to building modern React applications with TypeScript. Covers fundamentals through advanced patterns, Hooks mastery, TypeScript integration, performance optimization, and algorithm internals. ## Target Audience - Developers new to React who want a solid foundation - Intermediate React developers looking to deepen their understanding of Hooks and TypeScript patterns - Engineers who want to understand React's internal algorithms (Virt
development
# Node.js Development Skill > A practical guide collection for Node.js development. Covers all aspects of Node.js application development, including Express, NestJS, asynchronous patterns, and performance optimization. ## Overview This skill covers the following topics: - **Express & NestJS**: When to use a lightweight framework vs. an enterprise framework - **Asynchronous Patterns**: Promise, async/await, Event Emitter, Streams, Worker Threads, Cluster - **Performance Optimization**: Memory
development
# Backend Development — Complete Guide > A comprehensive guide to backend engineering. Covers the fundamentals of HTTP, REST API design, databases, authentication, environment configuration, and algorithm proofs — everything needed to build robust server-side systems. ## Target Audience - Developers new to backend engineering - Frontend engineers expanding toward full-stack development - Engineers looking to solidify their understanding of server-side fundamentals ## Prerequisites - Basic p