role-backend:database-implementation

Implement database layers with ORMs, migrations, pooling, and testing.

14|3|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/rnavarych/alpha-engineer --skill role-backend-database-implementation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: role-backend:database-implementation
Source: https://github.com/rnavarych/alpha-engineer/tree/main/plugins/roles/role-backend/skills/database-implementation
Command: npx skills add https://github.com/rnavarych/alpha-engineer --skill role-backend-database-implementation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of setting up, managing, and optimizing database interactions across a wide variety of ORMs and query builders, ensuring efficient and robust data access.

Core Features & Use Cases

  • ORM Integration: Supports Prisma, Drizzle, TypeORM, SQLAlchemy, GORM, Diesel, EF Core, Hibernate, ActiveRecord, Ecto, Sequelize, Kysely, and Knex.
  • Advanced Database Operations: Handles migrations, connection pooling, read replicas, query optimization, and transaction management.
  • Testing: Integrates with Testcontainers and factories for reliable database testing.
  • Use Case: When starting a new project, use this Skill to select the best ORM for your stack and set up its initial schema and migration strategy.

Quick Start

Use the database-implementation skill to set up Prisma with a PostgreSQL database and create initial user and order tables.

Frequently Asked Questions about role-backend:database-implementation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up database migrations and connection pooling using an ORM?

Set up database migrations and connection pooling by configuring your chosen ORM like Prisma or SQLAlchemy to manage schema changes and handle connection distribution. This ensures efficient data access and robust transaction management across your application.

What's the best way to test database layers in a CI environment?

Test database layers in CI environments by integrating Testcontainers to spin up isolated database instances and using data factories. This approach provides reliable, reproducible testing without leaving residual state between test runs.

Does this support configuring read replicas for query optimization with TypeORM?

Yes, it supports configuring read replicas and query optimization techniques with TypeORM. You can route read-heavy queries to replica databases to reduce load on the primary instance and improve overall application performance.

Can I use this to implement a database layer with GORM or Diesel?

You can implement database layers using GORM for Go or Diesel for Rust. It manages schemas, handles migrations, and applies transaction management strategies tailored to these specific query builders and ORMs.

How do I manage transaction management strategies across different ORMs?

Manage transaction strategies by applying consistent transaction control logic across supported ORMs like Hibernate, ActiveRecord, and Ecto. This ensures data integrity during complex multi-step operations and handles rollbacks effectively.

When should I configure read replicas for my database layer?

Configure read replicas when your application experiences high read traffic that overloads the primary database. Routing SELECT queries to replicas improves query optimization and scales read concurrency without impacting write performance.