Prisma Integration

Community

Streamline Prisma integration for NestJS monorepos

Authornamnh240795
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill helps NestJS projects integrate Prisma ORM by providing setup guidance, PrismaService usage, and schema/templates aligned with traceability-backend conventions.

Core Features & Use Cases

  • PrismaService integration: Provides a nest-friendly PrismaService wrapper to manage PrismaClient lifecycle.
  • AppModule configuration: Global configuration and provider wiring to expose Prisma across modules.
  • Audit-friendly data modeling: Guidance to add audit fields (created_at, updated_at, deleted_at and by fields) and soft-delete patterns.
  • Migration & tooling workflows: Standardized commands for prisma generate, prisma migrate, and Prisma Studio within a multi-service monorepo.

Quick Start

Install Prisma CLI and client, initialize Prisma, and scaffold a prisma schema. Then configure generator and datasource, generate the client, and wire PrismaService in a NestJS module. For example:

  • npm install prisma @prisma/client
  • npx prisma init
  • Define schema.prisma with a generator client and a Postgres datasource
  • npm run prisma:generate

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Prisma Integration
Download link: https://github.com/namnh240795/automation-with-claude-cli/archive/main.zip#prisma-integration

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.