Database implementation

From rnavarych/alpha-engineer · View interactive version

Database implementation is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Implements database layers using Prisma, Drizzle ORM, TypeORM, SQLAlchemy 2.0, GORM, Diesel, Entity Framework Core 8, Hibernate/Panache, ActiveRecord, Ecto, Sequelize, Kysely, and Knex. Covers migrations, connection pooling, read replicas, query optimization, transaction management, and database tes

How to use this skill

Skill file

Database Implementation

When to use

Core principles

  1. ORM is a tool, SQL is the truth — know what queries your ORM generates; use EXPLAIN ANALYZE
  2. Migrations are immutable contracts — never modify a migration applied to any shared environment
  3. Pooling is not optional — one connection per request = death in production
  4. Transactions stay short — locks held across network calls cause cascading timeouts
  5. Test against the real database — in-memory SQLite mocks hide Postgres-specific bugs

Reference Files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.