mcpbeat Sign in

Prisma CLI Migrate Reset Skill for Cursor

prisma migrate reset

442 tokens
context cost
the whole folder, loaded on every use
2
files
instructions only
0
copies elsewhere
how many repositories repackaged it
8
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/prisma/cursor-plugin --skill prisma-cli-migrate-reset

What comes with it

104 bytes besides the instruction
metadata.json

The instruction itself

11 sections, as written by the author

prisma migrate reset

Resets your database and re-applies all migrations.

Command

prisma migrate reset [options]

What It Does

  • Drops the database (if possible) or deletes all data/tables
  • Re-creates the database
  • Applies all migrations from prisma/migrations/
  • Runs the seed script (if configured)

Warning: All data will be lost.

Options

| Option | Description |

|--------|-------------|

| --force / -f | Skip confirmation prompt |

| --schema | Path to schema file |

| --config | Custom path to your Prisma config file |

Examples

Basic reset

prisma migrate reset

Prompts for confirmation in interactive terminals.

Force reset (CI/Automation)

prisma migrate reset --force

With custom schema

prisma migrate reset --schema=./custom/schema.prisma

When to Use

  • Development: When you want a fresh start
  • Testing: Resetting test database before suites
  • Drift Recovery: When the database is out of sync and you can't migrate

Behavior in v7

  • In v6, migrate reset automatically ran prisma generate.
  • In v7, you may need to run prisma generate separately if you want to update the client, though reset focuses on the database state.
  • Seed script IS run by default after reset.

Configuration

Configure seed script in prisma.config.ts to run it automatically after reset:

export default defineConfig({
  migrations: {
    seed: 'tsx prisma/seed.ts',
  },
})

How to use it

Copy the folder

Take prisma/prisma-cli-migrate-reset from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.