ba-db-prisma-migrate

Generate versioned Prisma migrations from schema and user story gaps.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/clovernguyen1010-ship-it/Clover_Nguyen --skill ba-db-prisma-migrate-clovernguyen1010-ship-it
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ba-db-prisma-migrate
Source: https://github.com/clovernguyen1010-ship-it/Clover_Nguyen/tree/main/.agent/skills/ba-db-prisma-migrate
Command: npx skills add https://github.com/clovernguyen1010-ship-it/Clover_Nguyen --skill ba-db-prisma-migrate-clovernguyen1010-ship-it

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Keeps Prisma schema aligned with User Story/ERD by generating and applying safe, versioned migrations, while guiding migrate dev/deploy, generate, and seed processes. It also reminds about postinstall prisma generate and updating tsconfig include prisma in monorepos and IDEs.

Core Features & Use Cases

  • Reads a user story and the current schema.prisma to identify necessary migrations or schema gaps.
  • Creates a new timestamped migration under prisma/migrations and provides a concise summary of changes.
  • Guides and coordinates running Prisma migrate dev/deploy, Prisma generate, and seeding steps, with safeguards for destructive changes.

Quick Start

Review the latest user story and current schema.prisma, then run Prisma migrate dev to generate and apply a timestamped migration after validation.

Frequently Asked Questions about ba-db-prisma-migrate

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

FAQPage Schema
How do I generate versioned Prisma migrations from a schema and user story?

To generate versioned Prisma migrations, the Skill reads your user story and current schema.prisma to identify gaps, then creates a timestamped migration folder under prisma/migrations with a concise summary of the applied changes.

What is the safest way to apply Prisma schema updates in an existing project?

The safest way to apply Prisma schema updates is by validating changes against your project context and architecture first, generating a secure migration path before running commands like npx prisma migrate dev or deploy to prevent destructive data loss.

Does this Prisma migration process handle npx prisma generate and seeding automatically?

Yes, the Prisma migration process guides and coordinates running npx prisma generate and database seeding steps alongside migrate dev or deploy, ensuring your Prisma Client stays synchronized with the latest versioned schema changes.

When do I need to update tsconfig and run prisma generate in a monorepo setup?

You need to update tsconfig to include prisma and run postinstall prisma generate in monorepo setups whenever schema changes occur, ensuring the Prisma Client is correctly generated and recognized across all workspace packages and IDEs.

Can I identify schema gaps between my ERD and current Prisma schema before migrating?

Yes, you can identify schema gaps by comparing your existing schema.prisma against the provided ERD or user story, allowing the Skill to calculate necessary structural updates and produce a safe, versioned migration plan before execution.