database-prisma

Community

Safely manage Prisma schemas and migrations.

AuthorCleanExpo
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Prevents unsafe schema changes, accidental destructive migrations, and inefficient queries by providing a validated, reviewable workflow for Prisma schema updates and migrations against a Supabase/PostgreSQL backend.

Core Features & Use Cases

  • Schema validation and safety: Inspect Prisma models for relationship, type, and index consistency before generating migrations.
  • Migration generation and review: Produce migration SQL, detect destructive operations, and require explicit confirmation and backups before applying.
  • Query optimisation and integrity checks: Identify N+1 patterns, suggest includes/selects and missing indexes, and validate foreign key/cascade behaviour.
  • Use Case: When adding a new field to ScheduledPost, generate a migration, review SQL for drops or type changes, run it locally against a Supabase dev instance, and regenerate the Prisma client.

Quick Start

Run a migration-create operation named add-slug to validate the schema, generate the migration SQL for review, and update the Prisma client.

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: database-prisma
Download link: https://github.com/CleanExpo/Synthex/archive/main.zip#database-prisma

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.