howard36/probase / .claude/skills/prisma-migrate
prisma-migrate
VerifiedCreate a Prisma migration for a schema change against the local database. Use after editing prisma/schema.prisma.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 1.1 KB |
SKILL.md
View on GitHub---
name: prisma-migrate
description: Create a Prisma migration for a schema change against the local database. Use after editing prisma/schema.prisma.
disable-model-invocation: true
---
Migration name (from arguments, kebab-case; ask if missing): $ARGUMENTS
1. Confirm `prisma/schema.prisma` has the intended change and nothing else (`git diff prisma/schema.prisma`).
2. Generate and apply the migration against the local DB. The env wrapper is required; Prisma does not read `.env.local` on its own:
```
npm run local -- prisma migrate dev --name $ARGUMENTS
```
3. Read the generated SQL under `prisma/migrations/<timestamp>_<name>/migration.sql` and check for destructive statements (`DROP COLUMN`, `DROP TABLE`, type changes on populated columns). Call these out explicitly in your reply.
4. If the change affects seed data, update `prisma/seed.mjs` and re-run `npm run local -- prisma db seed`.
5. Run `/verify`.
Remind the user in your reply: merging this PR to `main` runs `prisma migrate deploy` against production automatically. Never run migrations with `npm run prod -- ...` yourself.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |