prisma-expert

Diagnose and resolve Prisma ORM schema, migration, and query performance issues.

Updated Jan 6, 2026
One-click install
npx skills add https://github.com/marablemarcel/Living-Lytics --skill prisma-expert-marablemarcel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-expert
Source: https://github.com/marablemarcel/Living-Lytics/tree/main/living-lytics/.agent/skills/prisma-expert
Command: npx skills add https://github.com/marablemarcel/Living-Lytics --skill prisma-expert-marablemarcel

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prisma ORM usage often suffers from poorly designed schemas, migrating drift, and slow queries across PostgreSQL, MySQL, and SQLite. This Skill provides structured guidance to design robust schemas, manage migrations safely, and optimize data access.

Core Features & Use Cases

  • Schema design and explicit relation modeling to prevent runtime errors and data anomalies.
  • Migrations & safeguards: drift detection, validated migrations, and safe deployment strategies.
  • Query optimization: includes, selects, indexing, and safe use of raw queries for analytics. Use Case: In a multi-tenant SaaS app, Prisma is used to maintain a clean schema, apply migrations safely, and run efficient queries across related data.

Quick Start

Install Prisma, validate the schema, and apply a safe migration workflow to align your schema with the database.

Frequently Asked Questions about prisma-expert

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

FAQPage Schema
How do I prevent Prisma schema drift during database migrations across deploys?

Prevent Prisma schema drift by applying a structured migration workflow with environment checks, drift detection, and validated migrations to align your schema with the database safely.

What is the best way to model explicit relations in a Prisma schema?

Modeling explicit relations in a Prisma schema requires structured schema design guidance to prevent runtime errors and data anomalies in multi-database projects like PostgreSQL and MySQL.

Can I use Prisma to optimize slow queries across PostgreSQL and SQLite?

Yes, you can optimize slow Prisma queries using includes, selects, indexing strategies, and safe raw queries for analytics to ensure efficient data access across PostgreSQL and SQLite.

Does this Prisma workflow support multi-tenant SaaS database operations?

Yes, this Prisma workflow supports multi-tenant SaaS applications by maintaining a clean schema, applying safe migrations, and running efficient queries across related data.

Why do my Prisma migrations fail due to environment or database state issues?

Prisma migrations fail when environment checks are skipped, so enforcing structured workflows with diagnostic playbooks validates your environment and database state before applying schema changes.