Backend Database Patterns

Use this skill when the user says 'database design', 'schema design', 'query optimization', 'slow query', 'migration', 'index', 'ORM', 'repository pattern', 'N+1 problem', 'transaction', or when designing or troubleshooting the data layer. This skill enforces schema design principles, indexing strategy, N+1 detection and fixing, transaction boundaries, migration best practices, and the repository pattern. Applies to PostgreSQL, MySQL, MongoDB, and ORMs (TypeORM, Prisma, SQLAlchemy, Diesel, GORM, Spring Data). Do NOT use for: API design, caching, or frontend state management.

j4flmao Updated

File contents

j4flmao/agent-skills/tree/main/skills/backend/universal/database-patterns commit aaa7deae28

Frequently asked questions

npx skillmds@latest add j4flmao/backend-database-patterns