nest-data-layer

Detect the ORM in use and apply NestJS data-layer patterns for entities, repositories, transactions, and migrations.

9|1|Updated Jun 16, 2026
One-click install
npx skills add https://github.com/AratKruglik/antigravity-sdlc --skill nest-data-layer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nest-data-layer
Source: https://github.com/AratKruglik/antigravity-sdlc/tree/main/plugins/nestjs-plugin/skills/nest-data-layer
Command: npx skills add https://github.com/AratKruglik/antigravity-sdlc --skill nest-data-layer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unifies and standardizes NestJS data-layer practices across the three most common ORMs: TypeORM, Prisma, and Mongoose, enabling teams to apply consistent patterns with minimal friction.

Core Features & Use Cases

  • Detect the ORM in use and apply the corresponding section (TypeORM, Prisma, or Mongoose) for entities, repositories, transactions, and migrations.
  • Provide concrete templates and guidance for entity definitions, repository/service integration, and transactional patterns across ORMs.
  • Use as a bridge for migrating projects between ORMs or adopting a multi-ORM strategy in NestJS apps.

Quick Start

Identify the ORM in use and implement the matching NestJS data-layer patterns to establish entities, repositories, transactions, and migrations.

Frequently Asked Questions about nest-data-layer

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

FAQPage Schema
How do I standardize NestJS ORM patterns across TypeORM, Prisma, and Mongoose?

You can standardize NestJS ORM patterns by applying consistent templates for entities, repositories, transactions, and migrations across TypeORM, Prisma, and Mongoose. This ensures reliable data layers with minimal friction.

What is the best way to structure transactions and repositories in a NestJS data layer?

The best way to structure transactions and repositories in a NestJS data layer is to use consistent patterns tailored to your specific ORM. You can apply concrete templates for service integration and transactional patterns across TypeORM, Prisma, or Mongoose.

Can I use this to migrate a NestJS project from TypeORM to Prisma?

Yes, you can use this approach as a bridge for migrating NestJS projects between TypeORM and Prisma. It provides migration steps and standardized guidelines to help you adopt a multi-ORM strategy.

How do I set up entities and migrations for Mongoose in a NestJS application?

To set up entities and migrations for Mongoose in a NestJS application, apply the provided Mongoose-specific templates and best practices. This includes guidelines for entity definitions, repository integration, and schema management.

Does NestJS support consistent data-layer practices across different ORMs?

Yes, NestJS supports consistent data-layer practices across different ORMs. By detecting the ORM in use, you can apply corresponding sections for TypeORM, Prisma, and Mongoose to implement reliable and standardized data access.