一键导入
write-database-migration
Guidance for writing safe, reversible database schema migrations with consistent naming, rollback support, and zero data-loss defaults.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guidance for writing safe, reversible database schema migrations with consistent naming, rollback support, and zero data-loss defaults.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Guidance for implementing secure, well-structured REST API endpoints.
Guidance for building accessible, testable frontend UI components.
Guidance for writing safe, reversible database schema migrations.
Guidance for implementing consistent, observable error handling.
Guidance for writing meaningful unit and integration tests.
Guidance for designing and implementing a well-structured REST API endpoint with proper validation, error handling, authentication, and documentation.
| name | Write Database Migration |
| description | Guidance for writing safe, reversible database schema migrations with consistent naming, rollback support, and zero data-loss defaults. |
Produce a safe, reviewable, and reversible database schema change that can be deployed incrementally without downtime or data loss.
docs/architecture/DESIGN-<slug>.md)..github/TECH.md section 3 (e.g., Prisma Migrate, TypeORM, Alembic, Flyway, Liquibase).add_email_verified_to_users, create_orders_table, drop_legacy_sessions.NOT NULL column without a DEFAULT value or a backfill step. Adding a non-nullable column to a large table without a default will fail.CREATE INDEX CONCURRENTLY (PostgreSQL) or equivalent to avoid table locks in production.UPDATE statement on large tables; use batch processing.NOT NULL column added without a default or backfill.CONCURRENTLY can lock a table for minutes in production.