What problem does it solve? Backend applications often suffer from N+1 query problems, unsafe money transfers without transactions, and repeated database hits that degrade performance. This Skill provides proven patterns for structuring database access, ensuring data consistency, and optimizing query performance. ## Core Features & Use Cases - Repository Pattern: Abstract database queries behind typed repository interfaces using Prisma, keeping controllers decoupled from data access logic. - Transactions & Caching: Wrap critical operations like money transfers in atomic transactions and cache frequent reads in Redis with TTL expiration. - Query Optimization: Eliminate N+1 problems with include/select clauses and parallelize independent async calls with Promise.all. - Use Case: When building a Node.js API with Prisma, apply these patterns to structure a user repository, cache user lookups in Redis, and run safe balance transfers between accounts. ## Quick Start Apply the backend database skill to refactor my Prisma data access layer with the repository pattern, transactions, and Redis caching.