AGENT SKILL

prisma-migration-safety

Plan Prisma schema changes, migrations, seed data, and backward-compatible database rollouts.

使用场景后端与接口
License 许可
MIT
最近更新
2026-05-28
Stars
★ 0
Forks
0

01 前言 Front Matter

name
prisma-migration-safety
author
Siming
license
MIT
version
1.0.0
metadata
{ "siming": { "tags": [ "backend", "prisma", "database" ] } }
description
Plan Prisma schema changes, migrations, seed data, and backward-compatible database rollouts.

03 SKILL.md 正文

Prisma Migration Safety

Use this skill before changing Prisma schemas or database migrations.

Workflow

  1. Identify whether the change is additive, destructive, or data-transforming.
  2. Prefer additive migrations before code that depends on new columns.
  3. Provide seed or bootstrap updates when new required data is needed.
  4. Verify Prisma Client generation and typecheck.
  5. Document local repair commands for development databases.

Checks

  • No required column is added without a safe default or migration plan.

04 同仓库更多 Skills