db-migrate
星标10
分支8
更新时间2026年3月19日 13:38
Create a Prisma database migration: edit schema, run migrate dev, generate client, and verify types
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Create a Prisma database migration: edit schema, run migrate dev, generate client, and verify types
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Generate Vitest tests for a server action or component, following project conventions with Prisma mocks
Scaffold a new Server Action with auth, Zod validation, Prisma mutation, revalidation, and ActionResult types
Scaffold a new MUI component with Digital Playbook theme, proper client/server boundary, and project conventions
| name | db-migrate |
| description | Create a Prisma database migration: edit schema, run migrate dev, generate client, and verify types |
| disable-model-invocation | true |
Run this skill after editing prisma/schema.prisma to safely create and apply a migration.
prisma/schema.prisma and identify what changedbun run db:migrate (prompts for migration name)bun run db:generate to update TypeScript typesbun run type-check to verify no type errors from schema changesschema.prisma and the new migration file togetherdb:push for changes that need to be tracked (use for prototyping only)db:migrate:reset without explicit user confirmation — it destroys all data