mm

Create and deploy Prisma database migrations from schema.prisma changes.

12|2|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/alexandrbasis/wythm-claude-workflows --skill mm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mm
Source: https://github.com/alexandrbasis/wythm-claude-workflows/tree/main/.claude/skills/mm
Command: npx skills add https://github.com/alexandrbasis/wythm-claude-workflows --skill mm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation and deployment of database migrations for Prisma, ensuring your database schema stays in sync with your application code.

Core Features & Use Cases

  • Generate Migrations: Creates new migration files based on changes to your schema.prisma file.
  • Deploy Migrations: Applies pending migrations to your database.
  • Regenerate Prisma Client: Updates the Prisma Client to reflect the new schema.
  • Use Case: After modifying your schema.prisma to add a new user table, use this Skill to generate the migration, deploy it to your development database, and update the Prisma Client.

Quick Start

Use the mm skill to create and deploy a new database migration named 'add_user_table'.

Frequently Asked Questions about mm

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

FAQPage Schema
How do I create and deploy Prisma database migrations after changing my schema?

Creating and deploying Prisma database migrations involves applying schema changes from `backend/prisma/schema.prisma` to your database and regenerating the Prisma Client to ensure your application code stays in sync.

What environment variables do I need to run Prisma migrations?

Running Prisma migrations requires the `DATABASE_URL`, `DIRECT_URL`, and `SHADOW_DATABASE_URL` environment variables to execute migration files and regenerate the Prisma Client successfully.

When do I need to regenerate the Prisma Client?

You need to regenerate the Prisma Client after deploying database migrations to ensure your application reflects the updated schema changes from `backend/prisma/schema.prisma`.

Can I use this to apply pending Prisma migrations to a development database?

Yes, you can apply pending Prisma migrations to a development database by executing the generated migration files, provided the required database environment variables are configured.

Why does my Prisma migration fail due to missing shadow database configuration?

Prisma migration execution fails without the `SHADOW_DATABASE_URL` environment variable, which is explicitly required alongside `DATABASE_URL` and `DIRECT_URL` to generate and deploy migration files.